{"id":1683,"date":"2016-03-27T18:43:47","date_gmt":"2016-03-27T17:43:47","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1683"},"modified":"2016-03-27T21:00:58","modified_gmt":"2016-03-27T20:00:58","slug":"arm-rock2-to-4-6-rc1-and-ethernet-fix","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1683","title":{"rendered":"ARM &#8211; Rock2 to 4.6-rc1 &#8211; and Ethernet Fix Fails.."},"content":{"rendered":"<p>Updated the Rock2 to Kernel <strong>4.6-rc1<\/strong>:<\/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-rc1 on an armv7l (ttyS2)<\/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 rgrock2 4.6.0-rc1 #1 SMP Sun Mar 27 03:47:06 EDT 2016 armv7l armv7l armv7l GNU\/Linux<\/span><\/strong><\/pre>\n<p>The stmmac Ethernet driver bug from 4.5 Final has still not been fixed, and the driver code has changed in 4.6-rc1, and copying the 4.5-rc7 drivers no longer worked..<br \/>\nSo.. I created patches from the <em>diff<\/em> between the 4.5-rc7 and 4.5 Final versions, and applied them to the 4.6-rc1 source..<br \/>\n<strong><span style=\"font-family: courier new,courier;\">~\/drivers\/net\/ethernet\/stmicro\/stmmac\/stmmac_platform.c<\/span><\/strong><br \/>\nand<br \/>\n<strong><span style=\"font-family: courier new,courier;\">~\/drivers\/net\/ethernet\/stmicro\/stmmac\/stmmac_mdio.c<\/span><\/strong><\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">[root@rgrock2 src]# cat stmmac_mdio_fix.patch |patch -p0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">patching file a\/drivers\/net\/ethernet\/stmicro\/stmmac\/stmmac_mdio.c<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[root@rgrock2 src]# cat stmmac_platform_fix.patch |patch -p0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">patching file b\/drivers\/net\/ethernet\/stmicro\/stmmac\/stmmac_platform.c<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #1 succeeded at 146 (offset 36 lines).<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hunk #2 succeeded at 176 (offset 36 lines).<\/span><\/strong><\/pre>\n<p>The re-compiled, and re-booted, and Ethernet appears to work OK:<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">rk_gmac-dwmac ff290000.ethernet eth0: Link is Up - 1Gbps\/Full - flow control rx\/tx<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready<\/span><\/strong><\/pre>\n<p>But.. further tests show the link does <span style=\"text-decoration: underline;\">not<\/span> work..<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">$ sftp rgrock2<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">ssh: connect to host rgrock2 port 22: No route to host<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Couldn't read packet: Connection reset by peer<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">.....<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">$ ping rgrock2<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">PING rgrock2 (192.168.0.xx) 56(84) bytes of data.<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">From rglinux-i7 (192.168.0.xxx) icmp_seq=1 Destination Host Unreachable<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">From rglinux-i7 (192.168.0.xxx) icmp_seq=2 Destination Host Unreachable<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">From rglinux-i7 (192.168.0.xxx) icmp_seq=3 Destination Host Unreachable<\/span><\/strong>\r\n\r\n<\/pre>\n<p><em>Robert Gadsdon.\u00a0\u00a0 March 27, 2016. &#8211; Updated..<br \/>\n<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Updated the Rock2 to Kernel 4.6-rc1: &#8230;&#8230;&#8230; Fedora 23 (Twenty Three) Kernel 4.6.0-rc1 on an armv7l (ttyS2) &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. # uname -a Linux rgrock2 4.6.0-rc1 #1 SMP Sun Mar 27 03:47:06 EDT 2016 armv7l armv7l armv7l GNU\/Linux The stmmac Ethernet driver bug from 4.5 Final has still not been fixed, and the driver code has changed in 4.6-rc1, <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1683\"><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":[1275,1238,11,14,16,1276,1274,350],"tags":[1174,576,687,1303,242,1281,1282,1175,379],"class_list":["post-1683","post","type-post","status-publish","format-standard","hentry","category-armv7","category-fix","category-hacks","category-kernel","category-linux-arm","category-radxa","category-rock2","category-success","tag-arm","tag-armv7","tag-ethernet-patch","tag-kernel-4-6-rc1","tag-linux","tag-radxa","tag-rock2","tag-success","tag-update"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1683","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=1683"}],"version-history":[{"count":3,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1683\/revisions"}],"predecessor-version":[{"id":1686,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1683\/revisions\/1686"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}