{"id":1826,"date":"2016-10-20T00:12:59","date_gmt":"2016-10-19T23:12:59","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1826"},"modified":"2016-10-20T08:29:43","modified_gmt":"2016-10-20T07:29:43","slug":"arm64-odroid-c2-new-mmc-driver-ok-ethernet-still-broken","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1826","title":{"rendered":"ARM64 &#8211; Odroid C2 &#8211; New MMC Driver,  Ethernet \/ USB Still Broken.."},"content":{"rendered":"<p>After some of the code for the C2 has been removed from various git repositories, there is a new 4.9-rc1-based tree at <a href=\"https:\/\/git.kernel.org\/cgit\/linux\/kernel\/git\/khilman\/linux-amlogic.git\/?h=v4.10\/integ\" target=\"_blank\">https:\/\/git.kernel.org\/cgit\/linux\/kernel\/git\/khilman\/linux-amlogic.git\/?h=v4.10\/integ<\/a> , which now includes the &#8216;new&#8217; rewritten MMC driver.<\/p>\n<p>To select this, choose &#8216;<em>Amlogic S905\/GX* SD\/MMC Host Controller support (MMC_MESON_GX)<\/em>&#8216; in the kernel config..<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">......<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Fedora 24 (Workstation Edition)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Kernel 4.9.0-rc1-c2 on an aarch64 (ttyAML0)<\/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 rgc2 4.9.0-rc1-c2 #1 SMP PREEMPT Tue Oct 18 17:26:37 PDT 2016 aarch64 aarch64 aarch64 GNU\/Linux<\/span><\/strong><\/pre>\n<p>The C2 booted OK, but MMC is now at <em><strong>\/dev\/mmcblk0<\/strong><\/em> &#8211; not <em>\/dev\/mmcblk1<\/em><\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">.....<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">mmc0: new HS200 MMC card at address 0001<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">mmcblk0: mmc0:0001 BGND3R 29.1 GiB<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">mmcblk0boot0: mmc0:0001 BGND3R partition 1 4.00 MiB<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">mmcblk0boot1: mmc0:0001 BGND3R partition 2 4.00 MiB<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> mmcblk0: p1 p2<\/span><\/strong><\/pre>\n<p>So, I changed <em><strong>\/etc\/fstab<\/strong><\/em> to<\/p>\n<pre><span style=\"font-family: courier new,courier;\"><strong>\/dev\/mmcblk0p1 \/ ext4 defaults 1 1<\/strong><\/span><\/pre>\n<p>&#8211; and changed u-boot <em>bootargs<\/em> to:<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">setenv bootargs \"root=\/dev\/mmcblk0p1 rootwait rw\"<\/span><\/strong><\/pre>\n<p>As before, the Ethernet connection works at first, but then hang\/stalls.\u00a0\u00a0\u00a0 Dropping the speed to 100Mbps improves things a bit, but the hang\/stall still occurs&#8230;<\/p>\n<p>The <strong><em>meson8b-dwmac<\/em><\/strong> driver does throw an error, when loading:<\/p>\n<pre><span style=\"font-family: courier new,courier;\">[ 19.515508] eth0: device MAC address 00:1e:06:33:13:6e<\/span>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 19.584616] meson8b-dwmac c9410000.ethernet eth0: PTP support cannot init.<\/span><\/strong>\r\n<span style=\"font-family: courier new,courier;\">[ 19.585002] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 19.776363] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 21.669797] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 23.713185] meson8b-dwmac c9410000.ethernet eth0: Link is Up - 1Gbps\/Full - flow control rx\/tx<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 23.715914] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 24.036288] Link is Up - 1000\/Full<\/span><\/pre>\n<p>I tried enabling PTP support where possible in the kernel config, but there was no change..<\/p>\n<p>One workaround would be to use a USB Ethernet device, but USB still does not work, at all..\u00a0\u00a0\u00a0\u00a0 <span style=\"font-family: courier new,courier;\"><strong># lsusb<\/strong><\/span> shows nothing..<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0 October 20, 2016.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After some of the code for the C2 has been removed from various git repositories, there is a new 4.9-rc1-based tree at https:\/\/git.kernel.org\/cgit\/linux\/kernel\/git\/khilman\/linux-amlogic.git\/?h=v4.10\/integ , which now includes the &#8216;new&#8217; rewritten MMC driver. To select this, choose &#8216;Amlogic S905\/GX* SD\/MMC Host Controller support (MMC_MESON_GX)&#8216; in the kernel config.. &#8230;&#8230; Fedora 24 (Workstation Edition) Kernel 4.9.0-rc1-c2 on an aarch64 <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1826\"><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,6,11,14,16,1437,19,20],"tags":[1174,1133,1461,1462,1173,1459,242,1460,1463,1286],"class_list":["post-1826","post","type-post","status-publish","format-standard","hentry","category-aarch64","category-arm64","category-crash-and-burn","category-hacks","category-kernel","category-linux-arm","category-network","category-opinion","category-performance-2","tag-arm","tag-arm64","tag-boots-ok","tag-ethernet-still-hangs","tag-kernel","tag-kernel-4-9-rc1-patched","tag-linux","tag-new-mmc-driver","tag-no-usb","tag-odroid-c2"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1826","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=1826"}],"version-history":[{"count":4,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1826\/revisions"}],"predecessor-version":[{"id":1830,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1826\/revisions\/1830"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}