{"id":1723,"date":"2016-05-07T06:34:59","date_gmt":"2016-05-07T05:34:59","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1723"},"modified":"2016-05-07T06:34:59","modified_gmt":"2016-05-07T05:34:59","slug":"arm64-odroid-c2-u-boot-latest","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1723","title":{"rendered":"ARM64 &#8211; Odroid C2 U-Boot &#8211; Latest.."},"content":{"rendered":"<p>I discovered there was a later version (6) of the U-boot patch for the <strong>Odroid C2<\/strong>, and also &#8211; after more research &#8211; found the reason for the compile error&#8230;<\/p>\n<p>It turns out that the GIT version (May 5, 2016) of U-boot currently needs <span style=\"text-decoration: underline;\">two<\/span> patches..<\/p>\n<p>The first one is to provide <strong><span style=\"font-family: courier new,courier;\">psci_system_reset<\/span><\/strong> for armv8, and details can be found here:\u00a0 <a href=\"http:\/\/article.gmane.org\/gmane.comp.boot-loaders.u-boot\/259967\/\" target=\"_blank\">http:\/\/article.gmane.org\/gmane.comp.boot-loaders.u-boot\/259967\/<\/a><\/p>\n<p>The second is the C2 support patch itself, which needs <strong><span style=\"font-family: courier new,courier;\">psci_system_reset<\/span><\/strong> to compile correctly, and details of version 6 of the patch can be found here:\u00a0\u00a0\u00a0 <a href=\"http:\/\/article.gmane.org\/gmane.comp.boot-loaders.u-boot\/259968\/\" target=\"_blank\">http:\/\/article.gmane.org\/gmane.comp.boot-loaders.u-boot\/259968\/<\/a><\/p>\n<p>After applying these two patches, and adding the Hardkernel binary in sd_fuse, then U-boot compiled and installed OK, but the C2 still failed to initialise:<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">BL2 Built : 11:44:26, Nov 25 2015.<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">gxb gfb13a3b-c2 - jcao@wonton<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Board ID = 8<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">set vcck to 1100 mv<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">set vddee to 1050 mv<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">CPU clk: 1536MHz<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">DDR channel setting: DDR0 Rank0+1 same<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">DDR0: 2048MB(auto) @ 912MHz(2T)-13<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">DataBus test pass!<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">AddrBus test pass!<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x000000b0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">aml log : SIG CHK : 351 for address 0x01700000<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">reset...<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:0;<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">&lt;&lt; repeated... &gt;&gt;<\/span><\/strong><\/pre>\n<p>I had already found that the latest &#8216;mainline&#8217; kernel code for the C2 (in <strong><em>linux-next<\/em><\/strong>) would not boot with the Hardkernel-supplied version of U- Boot, which is why this new\/patched version is needed..<\/p>\n<p>More info when I have made some more progress..<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0\u00a0 May 6, 2016.<\/em><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I discovered there was a later version (6) of the U-boot patch for the Odroid C2, and also &#8211; after more research &#8211; found the reason for the compile error&#8230; It turns out that the GIT version (May 5, 2016) of U-boot currently needs two patches.. The first one is to provide psci_system_reset for armv8, and details <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1723\"><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,706,1131,1280,5,6,11,1285,19,20,937],"tags":[1347,1346,1286,1345,1344,372],"class_list":["post-1723","post","type-post","status-publish","format-standard","hentry","category-aarch64","category-alpha-release","category-arm64","category-boot","category-compilation","category-crash-and-burn","category-hacks","category-odroid-c2","category-opinion","category-performance-2","category-u-boot-2","tag-boot-fails","tag-compile-cleanly","tag-odroid-c2","tag-psci_system_reset","tag-two-patches-needed","tag-u-boot"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1723","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=1723"}],"version-history":[{"count":1,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1723\/revisions"}],"predecessor-version":[{"id":1724,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1723\/revisions\/1724"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}