nxtv2.0 Posted December 6, 2016 Posted December 6, 2016 I am using kernel 4.9 built from https://github.com/megous/linux and tried DTB plus/plus2E in a custom distro ,But the ethernet isn't working. ifconfig: SIOCGIFFLAGS: No such device ifconfig: SIOCSIFADDR: No such device route: SIOCADDRT: Network is unreachable What could be the reason? 1
Drakoh Posted December 6, 2016 Posted December 6, 2016 Keep in mind, that 4.9 is till in work-in-progress state. My OpiPC runs on megous' 4.7 kernel for some time now and the ethernet works fine. The last time I tried 4.9, it doesn't even booted, but it was back around rc2. In the meantime, he also updated/switched the ethernet driver to montjoie's one, which is also a "wip" source tree. As you can see, a lot of "work-in-progress" code is present in the currently available 4.9 kernels, so some breakage can be expected. I'll test the 4.9 kernel once Linus decides it is stable enough and after the sunxi guys do their magic to patch it for my Opi.
martinayotte Posted December 6, 2016 Posted December 6, 2016 I'm running 4.9.x on my OPiPlus2E since more than a month, and it is working properly.
Drakoh Posted December 6, 2016 Posted December 6, 2016 @martinayotte: from whose source if I may ask? megous' 4.9 branch or montjoie's sun8i-emac-wip-v5?
martinayotte Posted December 6, 2016 Posted December 6, 2016 My image of last month was using montjoie's sun8i-emac-wip-v5, but few days ago, I've upgraded the kernel+modules (without redoing full image) using orange-pi-4.9 from megous, I didn't faced any issues. BTW, I've almost forgot to mention, I'm using the built-in WiFi of OPiPlus2E, not the EMAC. Maybe I should try it and report here... EDIT : Effectively, I have problem with orange-pi-4.9, and fortunately I always keep old image for a while, and I've tried sun8i-emac-wip-v5 from last month, it is working fine. I will probably revert my eMMC setup back to sun8i-emac-wip-v5. EDIT2 : Interestingly, I've just verified one of my OPiPC+ which was updated the same day with orange-pi-4.9 too, and EMAC seems to work fine. (I will have to rebuild a new image for OPiPlus2E to see if it still fail.)
nxtv2.0 Posted December 6, 2016 Author Posted December 6, 2016 Could this issue be a problem in the distro and the kernel?How do i troubleshoot this? And when compiling kernel , how do i configure it? Do i use defconfig ? 1
nxtv2.0 Posted December 7, 2016 Author Posted December 7, 2016 I tried: 1) montjoie's using make defconfig,then make zImage ,dtbs 2) megous same way as above 3) armbian kernel and every dtbs for plus2E or plus None worked,all same issue as above.
martinayotte Posted December 7, 2016 Posted December 7, 2016 As I said, the build I've done a month ago, Oct 27th to be exact, worked, but not the newer one. We need to figure out which bug has been introduced to be able to fix it. Until we found it, the only way you can get networking is to use the built-in WiFi of the OPiPlus2E. EDIT : For those who wish to get my kernel from Oct 27th : http://www.megafileupload.com/83l9/orangepiplus2e-20161027.tgz
nxtv2.0 Posted December 9, 2016 Author Posted December 9, 2016 With your kernel and dtb and lib/modules the ethernet led lights up IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready The distro uses ethernet by: ifconfig eth0 down ifconfig eth0 add 192.168.1.30 up route add default gw 192.168.1.1 echo nameserver 192.168.1.1 >> /etc/resolv.conf What could be wrong? 1
tkaiser Posted December 9, 2016 Posted December 9, 2016 We need to figure out which bug has been introduced to be able to fix it. Until we found it, the only way you can get networking is to use the built-in WiFi of the OPiPlus2E. Huh? https://forum.armbian.com/index.php/topic/2966-opi2e-mainline-ethernet-not-working-any-more/?p=20438 This works. And since no one takes the time to compare DT stuff and to send a patch as PR this will remain as it is now.
martinayotte Posted December 9, 2016 Posted December 9, 2016 Oh ! Thanks, @TKaiser ! This potentially gave me a clue here : it seems that PD6/EMAC-PWR-EN is used in Plus2E, but not on PCPlus, therefore no power apply if we don't add it to DT. EDIT : Fix done and committed ... EDIT2 : For those who are interested, http://www.megafileupload.com/cg8v/orangepiplus2e-20161209.tgz 1
Poxucis Posted December 13, 2016 Posted December 13, 2016 Looks like 4.9 doesnt boot on Pi PC, downloaded this nightly image - http://image.armbian.com/betaimages/Armbian_5.24.161212_Orangepipc_Ubuntu_xenial_4.9.0.7zEthernet green led is blinking and red on board - 2 blinks each second. Ok, weird, now it booted, but looks like ethernet isnt working - green led on port blinking
Recommended Posts