{"id":1898,"date":"2017-01-15T07:22:18","date_gmt":"2017-01-15T07:22:18","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1898"},"modified":"2017-01-15T07:22:18","modified_gmt":"2017-01-15T07:22:18","slug":"arm64-odroid-c2-working-u-boot","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1898","title":{"rendered":"ARM64 &#8211; Odroid C2 &#8211; Working U-Boot.."},"content":{"rendered":"<p>Thanks to <strong>Heiner Kallweit<\/strong>, there is now a functional version of U-Boot for the Odroid C2, at <a href=\"https:\/\/github.com\/hkallweit\/u-boot\" target=\"_blank\">https:\/\/github.com\/hkallweit\/u-boot<\/a> ..<\/p>\n<p>I have installed it on my C2 (eMMC) and it works fine..\u00a0\u00a0\u00a0 Nice to have a functioning <strong><span style=\"font-family: courier new,courier;\">&gt; saveenv<\/span><\/strong> command, at last..<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">U-Boot 2017.01-rc3 (Jan 14 2017 - 02:22:15 -0800) odroid-c2<\/span><\/strong>\r\n\r\n<strong><span style=\"font-family: courier new,courier;\">DRAM: 2 GiB<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">MMC: meson_mmc: 0, meson_mmc: 1<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">In: serial@4c0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Out: serial@4c0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Err: serial@4c0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Net: eth0: ethernet@c9410000<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hit any key to stop autoboot: 0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">=&gt; setenv bootdelay 10<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">=&gt; saveenv<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Saving Environment to MMC...<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Writing to MMC(0)... done<\/span><\/strong><\/pre>\n<p>The u-boot parameters I use are:<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">setenv loadaddr \"0x20000000\"<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">setenv dtb_loadaddr \"0x01000000\"<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">setenv initrd_high \"0xffffffff\"<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">setenv fdt_high \"0xffffffff\"<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">setenv kernel_filename boot\/uboot\/Image<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">setenv fdt_filename boot\/uboot\/meson-gxbb-odroidc2.dtb<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">setenv bootargs \"root=\/dev\/mmcblk0p1 rootwait rw\"<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">setenv bootcmd \"ext4load mmc 0:1 '${loadaddr}' '${kernel_filename}'; ext4load mmc 0:1 '${dtb_loadaddr}' '${fdt_filename}'; booti '${loadaddr}' - '${dtb_loadaddr}'\"<\/span><\/strong><\/pre>\n<p><em>Robert Gadsdon.\u00a0\u00a0 January 14,2017.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to Heiner Kallweit, there is now a functional version of U-Boot for the Odroid C2, at https:\/\/github.com\/hkallweit\/u-boot .. I have installed it on my C2 (eMMC) and it works fine..\u00a0\u00a0\u00a0 Nice to have a functioning &gt; saveenv command, at last.. U-Boot 2017.01-rc3 (Jan 14 2017 &#8211; 02:22:15 -0800) odroid-c2 DRAM: 2 GiB MMC: meson_mmc: 0, meson_mmc: <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1898\"><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,1131,1280,1285,937],"tags":[1133,1528,1286,1529,372],"class_list":["post-1898","post","type-post","status-publish","format-standard","hentry","category-aarch64","category-arm64","category-boot","category-odroid-c2","category-u-boot-2","tag-arm64","tag-new-version","tag-odroid-c2","tag-saveenv-works","tag-u-boot"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1898","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=1898"}],"version-history":[{"count":1,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1898\/revisions"}],"predecessor-version":[{"id":1899,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1898\/revisions\/1899"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}