{"id":1060,"date":"2014-02-19T22:10:46","date_gmt":"2014-02-19T22:10:46","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1060"},"modified":"2014-02-19T22:28:51","modified_gmt":"2014-02-19T22:28:51","slug":"arm-odroid-u3-kernel-to-3-13","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1060","title":{"rendered":"ARM &#8211; Odroid U3 kernel to 3.13&#8230; &#8211; and Back Again!"},"content":{"rendered":"<p><em><strong>Update:<\/strong><\/em><strong><em>\u00a0\u00a0\u00a0 <\/em><\/strong>Logged in, and was immediately aware of EXT4 filesystem errors..<\/p>\n<pre><strong>[ 2520.305000] EXT4-fs error (device sda1): ext4_lookup:1437: inode #261634: comm xauth: deleted inode referenced: 307878<\/strong>\r\n<strong>[ 2520.315000] EXT4-fs error (device sda1): ext4_lookup:1437: inode #261634: comm xauth: deleted inode referenced: 307878<\/strong>\r\n<strong>[ 2520.325000] EXT4-fs error (device sda1): ext4_lookup:1437: inode #261634: comm xauth: deleted inode referenced: 307878<\/strong>\r\n<strong>[ 2520.330000] EXT4-fs error (device sda1): ext4_lookup:1437: inode #261634: comm xauth: deleted inode referenced: 307878<\/strong>\r\n<strong>[ 2520.340000] EXT4-fs error (device sda1): ext4_lookup:1437: inode #261634: comm xauth: deleted inode referenced: 307878<\/strong>\r\n<strong>[ 2520.350000] EXT4-fs error (device sda1): ext4_lookup:1437: inode #261634: comm xauth: deleted inode referenced: 307878\r\n<\/strong><strong>EXT4-fs (sda1): initial error at 1392848030: ext4_lookup:1437: inode 261634<\/strong>\r\n<strong>EXT4-fs (sda1): last error at 1392848030: ext4_lookup:1437: inode 261634<\/strong><\/pre>\n<p>So &#8211; I have reverted to 3.8.13.18 again, for the time being!\u00a0\u00a0\u00a0\u00a0 Fortunately, I was able to run <em>fsck<\/em> against the USB stick, to fix the (several!) errors..\u00a0\u00a0\u00a0\u00a0 So &#8211; I would <span style=\"text-decoration: underline;\">not<\/span> recommend trying this, for the time being!<\/p>\n<p><em>RG.<\/em><\/p>\n<p>Finally found the correct info for loading the &#8216;device tree&#8217; 3.13 kernel for the <strong>Odroid U3<\/strong> &#8211; from <a title=\"http:\/\/git.prahal.homelinux.net\/odroid.git\/tree\/refs\/heads\/odroid_G9\" href=\"http:\/\/git.prahal.homelinux.net\/odroid.git\/tree\/refs\/heads\/odroid_G9\" target=\"_blank\">http:\/\/git.prahal.homelinux.net\/odroid.git\/tree\/refs\/heads\/odroid_G9<\/a>.<\/p>\n<p>Most of the up-to-date (device tree) kernel boot instruction examples I found were for the XU model, and didn&#8217;t work for the U2\/U3, but I finally found a combined zImage-with-dtb set of instructions, that actually worked, to produce the boot image, as follows:<\/p>\n<pre>Compile the kernel \/ zImage \/ dtbs \/ modules etc., and then:\r\n<strong>cat arch\/arm\/boot\/zImage arch\/arm\/boot\/dts\/exynos4412-odroidu2.dtb &gt; \/boot\/uboot\/zImage_w_dtb<\/strong><\/pre>\n<p>Then make a boot.scr image from the following boot.txt:<\/p>\n<pre><strong>setenv initrd_high \"0xffffffff\"<\/strong>\r\n<strong>setenv fdt_high \"0xffffffff\"<\/strong>\r\n<strong>setenv fb_x_res \"1920\"<\/strong>\r\n<strong>setenv fb_y_res \"1080\"<\/strong>\r\n<strong>setenv hdmi_phy_res \"1080\"<\/strong>\r\n<strong>setenv bootargs \"console=tty1 console=ttySAC1,115200n8 fb_x_res=${fb_x_res} fb_y_res=${fb_y_res} hdmi_phy_res=${hdmi_phy_res} root=\/dev\/sda1 rootwait rw mem=2047M\"<\/strong>\r\n<strong>setenv bootcmd \"fatload mmc 0:1 0x40008000 zImage_w_dtb; bootm 0x40008000\"<\/strong>\r\n<strong>boot<\/strong><\/pre>\n<p>And the result:<\/p>\n<pre><strong>Fedora release 20 (Heisenbug)<\/strong>\r\n<strong>Kernel 3.13.0 on an armv7l (ttySAC1)<\/strong>\r\n<strong>................<\/strong>\r\n<strong># uname -a<\/strong>\r\n<strong>Linux rgodroid 3.13.0 #1 SMP PREEMPT Wed Feb 19 21:24:15 GMT 2014 armv7l armv7l armv7l GNU\/Linux<\/strong><\/pre>\n<p>The Odroid u-boot <span style=\"text-decoration: underline;\">should<\/span> be capable of loading the zImage and dtb separately, but I cannot &#8211; so far &#8211; find any details on how to do this for the U2\/U3..<\/p>\n<p>Thanks are due to <strong>Alban Browaeys<\/strong>, for all his work on producing this kernel version &#8211; patched for the Odroid U2\/U3, and to the folks at <strong>ArchLinux<\/strong>, for the original boot.txt example I used as a starting point..<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0 February 19, 2014.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update:\u00a0\u00a0\u00a0 Logged in, and was immediately aware of EXT4 filesystem errors.. [ 2520.305000] EXT4-fs error (device sda1): ext4_lookup:1437: inode #261634: comm xauth: deleted inode referenced: 307878 [ 2520.315000] EXT4-fs error (device sda1): ext4_lookup:1437: inode #261634: comm xauth: deleted inode referenced: 307878 [ 2520.325000] EXT4-fs error (device sda1): ext4_lookup:1437: inode #261634: comm xauth: deleted inode referenced: 307878 [ <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1060\"><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,"footnotes":""},"categories":[5,11,16,794],"tags":[101,809,120,722,795,1175,808],"class_list":["post-1060","post","type-post","status-publish","format-standard","hentry","category-compilation","category-hacks","category-linux-arm","category-odroid","tag-boot","tag-boot-scr","tag-compile","tag-kernel-3-13","tag-odroid-u3","tag-success","tag-zimage-with-dtb"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1060","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=1060"}],"version-history":[{"count":5,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1060\/revisions"}],"predecessor-version":[{"id":1065,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1060\/revisions\/1065"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}