Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: risshuu on November 30, 2016, 05:45:42 AM

Title: USB Ethernet on Pi Zero in PiCore
Post by: risshuu on November 30, 2016, 05:45:42 AM
Is there anything that I am able to check to see why my new PiZero is not getting access to the internet when using my new USB Ethernet adapter? 

I checked some previous postings and there were mentions to an Ethernet configuration file in /opt/, but I don't see any.

The bad thing is that my Ethernet adapter is micro-usb so I can't use both my keyboard and adapter at the same time.

I tried running ifconfig on a loop to see if anything popped up when I unplugged my keyboard and plugged in the Ethernet adapter, but I didn't see anything but lo.
Title: Re: USB Ethernet on Pi Zero in PiCore
Post by: bmarkus on November 30, 2016, 06:12:47 AM
Is USB Ethernet kernel module installed and loaded? What is in dmesg?
Title: Re: USB Ethernet on Pi Zero in PiCore
Post by: patrikg on December 01, 2016, 06:08:40 AM
And also when using ifconfig command you may use -a as argument.

Code: (bash) [Select]
       -a     display all interfaces which are currently  available,  even  if
              down
Title: Re: USB Ethernet on Pi Zero in PiCore
Post by: CentralWare on January 30, 2017, 06:52:24 PM
Bela, are there any known USB dongles which have PiCore issues on Zero?

Configuration: RasPiZero v1.3, PiCore7 (8 won't boot?), net-usb installed (along with firmware.tcz and a bunch of others due to the mystery), OTG hard-wired to a 4-port hub, keyboard and NIC, dual (redundant) 40A regulated power supplies (there should be no issue with power fluctuations)

Keyboard works as expected.
NIC is "detected" (dmesg) and LEDs light up as expected

ifconfig -a shows only local loopback

dmesg shows:
...
usb 1-1.2: new full-speed USB device number 4 using dwc_otg
usb 1-1.2: new USB device found, idVendor=0fe6, idProduct=8101
usb 1-1.2: new USB device strings: Mfr=0, Product=2, SerialNumber=3
usb 1-1.2: Product: USB Network Controller

... (Then moves onto SPI, GPIO 7/8)

Thanks!
Title: Re: USB Ethernet on Pi Zero in PiCore
Post by: bmarkus on January 31, 2017, 12:59:38 AM
I do not have any USB Ethernet adapter in hand unfortunately so I can't test it but I didn't receive any note here about issues. You can try it wit Raspbian, we the same 4.4.x Kernel line. If it works with Raspbian, check dmesg and installed kernel modules with lsmod to find differences.
Title: Re: USB Ethernet on Pi Zero in PiCore
Post by: CentralWare on January 31, 2017, 01:40:03 AM
Bela, thank you for your reply.  It turned out to be a very odd behavior between two different DM9106 based USB dongles and a mishap when swapping between RasPi3 and the Zero (arm6 versus arm7 kernel drivers somehow got mixed up in one of the tests.)  However, the same 9106 failed to load in Jessie as well as Pi's NOOBS loader, so the investigation will still continue (later) but I've come across what needs to be accommodated in TCL so for the moment, that's all that matters for my needs. :)

http://forum.tinycorelinux.net/index.php/topic,20728.0.html

Thanks!