{"id":1713,"date":"2016-04-26T03:21:41","date_gmt":"2016-04-26T02:21:41","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1713"},"modified":"2016-04-26T03:21:41","modified_gmt":"2016-04-26T02:21:41","slug":"arm64-pi3-success-almost","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1713","title":{"rendered":"ARM64 &#8211; Pi3 Success &#8211; Almost.."},"content":{"rendered":"<p>After more &#8216;investigation&#8217;, I managed to find a working U-Boot for a 64-bit boot of the Raspberry Pi 3, by copying it from the boot directory of this: <a href=\"http:\/\/www.tom-yam.or.jp\/rpi3\/rpi3-arm64-debian-20160414.img.xz\" target=\"_blank\">http:\/\/www.tom-yam.or.jp\/rpi3\/rpi3-arm64-debian-20160414.img.xz<\/a> found towards the end of the latest 64-bit thread on the Pi Forum: <a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=72&amp;t=137963&amp;sid=cd15abd8d4dd2a2d5c517f47a3e4f5e4&amp;start=125\" target=\"_blank\">https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=72&amp;t=137963&amp;sid=cd15abd8d4dd2a2d5c517f47a3e4f5e4&amp;start=125<\/a> .\u00a0 Thanks to <strong><em>xyinao<\/em><\/strong> for putting it all together..<\/p>\n<p>I copied the kernel Image etc into a <strong>Fedora 23<\/strong> aarch64 SDcard, and it booted OK, but I noticed one odd thing&#8230;\u00a0\u00a0 There were only 3 CPU cores instead of 4..\u00a0\u00a0\u00a0 I tested by booting the original Debian system, with the <span style=\"text-decoration: underline;\">same<\/span> kernel image, and there were 4&#8230;<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">[ 0.000000] Booting Linux on physical CPU 0x0\r\n[ 0.036066] Detected VIPT I-cache on CPU1\r\n[ 0.036112] CPU1: Booted secondary processor [410fd034]<\/span><\/strong>\r\n<span style=\"font-family: courier new,courier;\"><strong>[ 0.048091] Detected VIPT I-cache on CPU2<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>[ 0.048120] CPU2: Booted secondary processor [410fd034]<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>[ 0.060128] Detected VIPT I-cache on CPU3<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>[ 0.060158] CPU3: Booted secondary processor [410fd034]<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>[ 0.060218] Brought up 4 CPUs<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>[ 0.060349] SMP: Total of 4 processors activated.<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>[ 0.060375] CPU: All CPU(s) started at EL2<\/strong><\/span><\/pre>\n<p>I wanted (as usual) to compile my own kernel, and found that the 4.5.0-based one at <a href=\"https:\/\/github.com\/zeldin\/linux\/tree\/rpi3\" target=\"_blank\">https:\/\/github.com\/zeldin\/linux\/tree\/rpi3<\/a> booted, but then hung..\u00a0\u00a0\u00a0 I tried another (4.6-rc3-based) version at <a href=\"https:\/\/github.com\/anholt\/linux\/tree\/bcm2837-64-next\" target=\"_blank\">https:\/\/github.com\/anholt\/linux\/tree\/bcm2837-64-next<\/a>, and this one <span style=\"text-decoration: underline;\">did<\/span> boot successfully:<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">.........<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Fedora 23 (Twenty Three)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Kernel 4.6.0-rc3-next-20160413 on an aarch64 (ttyS0)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">....................<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"># uname -a<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Linux rgpi3 4.6.0-rc3-next-20160413 #1 SMP Mon Apr 25 21:14:33 EDT 2016 aarch64 aarch64 aarch64 GNU\/Linux<\/span><\/strong><\/pre>\n<p>But&#8230;\u00a0 I still only had <span style=\"text-decoration: underline;\">three<\/span> CPU cores:<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\"># dmesg |grep CPU<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 0.000000] Booting Linux on physical CPU 0x0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 0.000000] Boot CPU: AArch64 Processor [410fd034]<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 0.000000] Detected VIPT I-cache on CPU0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 0.000000] CPU features: enabling workaround for ARM erratum 845719<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 0.102974] Detected VIPT I-cache on CPU1<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 0.103023] CPU1: Booted secondary processor [410fd034]<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 0.103417] Detected VIPT I-cache on CPU2<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 0.103449] CPU2: Booted secondary processor [410fd034]<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 1.107755] CPU3: failed to come online<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 1.107766] CPU3: failed in unknown state : 0x0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 1.107785] Brought up 3 CPUs<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 1.107801] CPU: All CPU(s) started at EL2<\/span><\/strong><\/pre>\n<p>So&#8230; Nearly there, but more investigation needed..<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0 April 25, 2016.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After more &#8216;investigation&#8217;, I managed to find a working U-Boot for a 64-bit boot of the Raspberry Pi 3, by copying it from the boot directory of this: http:\/\/www.tom-yam.or.jp\/rpi3\/rpi3-arm64-debian-20160414.img.xz found towards the end of the latest 64-bit thread on the Pi Forum: https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=72&amp;t=137963&amp;sid=cd15abd8d4dd2a2d5c517f47a3e4f5e4&amp;start=125 .\u00a0 Thanks to xyinao for putting it all together.. I copied the kernel Image <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1713\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1132,1280,5,6,10,11,14,16,19,20,21,937],"tags":[1335,822,1216,1336,1318,363],"class_list":["post-1713","post","type-post","status-publish","format-standard","hentry","category-aarch64","category-boot","category-compilation","category-crash-and-burn","category-fedora","category-hacks","category-kernel","category-linux-arm","category-opinion","category-performance-2","category-raspberry-pi","category-u-boot-2","tag-64-bit-kernel","tag-boot-ok","tag-fedora-23","tag-only-3-cpu-cores","tag-raspberry-pi-3","tag-tests"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1713"}],"version-history":[{"count":1,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1713\/revisions"}],"predecessor-version":[{"id":1714,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1713\/revisions\/1714"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}