WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Pi-Zero USB Ethernet doesn't work - adapter problem  (Read 1052 times)

Offline vinikon

  • WikiUser
  • *
  • Posts: 36
Pi-Zero USB Ethernet doesn't work - adapter problem
« on: April 03, 2017, 08:21:45 PM »
Hello all,

I'm trying to make it work. Dmesg shows the usb-ethernet adapter as asix....something. Gives it a usb bus number 1.1.4 but no module is loaded after it boots.
When doing lsmod - I don't see asix module loaded.

What I'm doing wrong?

Also lsusb is not found in the system.

I'm running 8.1.5 version.

Thanks in advance for any help
An inspired user of TinyCore...

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1677
Re: Pi-Zero USB Ethernet doesn't work - adapter problem
« Reply #1 on: April 04, 2017, 12:27:25 AM »
Hi vinikon,
Did you install the    net-usb-KERNEL.tcz  extension?
There is an  asix  module in  net-usb-4.4.20-piCore+.tcz .
for the  lsusb  command, install  usbutils.tcz .
Download a copy and keep it handy: Core book ;)

Offline vinikon

  • WikiUser
  • *
  • Posts: 36
Re: Pi-Zero USB Ethernet doesn't work - adapter problem
« Reply #2 on: February 12, 2018, 05:53:52 AM »
THanks  :D
A bit of late reply... but useful anyway!
An inspired user of TinyCore...

Offline shaunm

  • WikiUser
  • *
  • Posts: 4
Re: Pi-Zero USB Ethernet doesn't work - adapter problem
« Reply #3 on: February 18, 2018, 01:53:21 AM »
Did you install the    net-usb-KERNEL.tcz  extension?
There is an  asix  module in  net-usb-4.4.20-piCore+.tcz .
for the  lsusb  command, install  usbutils.tcz .

Hello, I'm completely new to linux and not sure how to install an application on the command line.

I've tried

install net-usb-KERNEL.tcz

but the screen replies with with...

BusyBox v1.26.2 (2017-05-05 07:13:57 UTC) multi-call bninary.

Usage: install...blah, blah.


I am completely new to linux so can anyone help me with the full command to use?

Thanks in advance.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10103
Re: Pi-Zero USB Ethernet doesn't work - adapter problem
« Reply #4 on: February 18, 2018, 02:26:46 AM »
It would probably be best to read the tinycore book first.

http://tinycorelinux.net/book.html
« Last Edit: February 18, 2018, 03:06:28 AM by Juanito »

Offline shaunm

  • WikiUser
  • *
  • Posts: 4
Re: Pi-Zero USB Ethernet doesn't work - adapter problem
« Reply #5 on: February 18, 2018, 03:24:20 AM »
Thanks for the reply, but there is no mention in the book of how to use the "install" command mentioned above.  It's understandable as it's probably too basic for anyone who isn't completely new to linux.

I've managed to get this far now...

1. Without internet connection you can't do "tce-ab" so can't search for a driver.

2. Trying "tce -i"...
/mnt/mmcblk0p1 has no tcz files in the folder or the "overlaps" sub-folder
/mnt/mmcblk0p2 has a tce folder. sub-folder "ondemand" is empty, "optional" has tcz files but there is no

net-usb-KERNEL.tcz
or
net-usb-4.4.20-piCore+.tcz

as mentioned in the previous comments.
 
So I'm pretty much stuck.

3. There is mention in this forum post of where to download net-usb-4.9.22-piCore.tcz on an internet connected pi, but you have to be connected in the first place!
http://forum.tinycorelinux.net/index.php?topic=21327.0

4. There is a great video for newbies like me on how to add the WIFI drivers for the Pi ZERO W to the microsd card BEFORE first boot.
I just need to do the same for the Pi Zero (NO W) with an USB ethernet driver.
newbielink:https://www.youtube.com/watch?v=aKvW59uk4PY [nonactive]

Thanks in advance for your replies.
« Last Edit: February 18, 2018, 03:38:27 AM by shaunm »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10103
Re: Pi-Zero USB Ethernet doesn't work - adapter problem
« Reply #6 on: February 18, 2018, 03:49:04 AM »
You need to download the extensions you need on another machine from:

http://www.tinycorelinux.net/9.x/armv6/tcz

and copy them into /mnt/mmcblk0p2/tce/optional.

For each extension you need:

extension_name.tcz
extension_name.tcz.dep (might not exist)
extension_name.tcz.md5.txt

..and repeat the process for each extension listed in extension_name.tcz.dep

You load extensions with "tce-load -i extension_name", "install" is used for something else entirely.
« Last Edit: February 18, 2018, 03:51:20 AM by Juanito »

Offline shaunm

  • WikiUser
  • *
  • Posts: 4
Re: Pi-Zero USB Ethernet doesn't work - adapter problem
« Reply #7 on: February 18, 2018, 05:41:02 AM »
Thanks, I did manage to get there on my own which means I must be learning something.  It's great to hear your reply matches what I figured out!

So,
For future reference, to use a USB-ethernet adapter with piCore 9 on a pi zero:
Download newbielink:http://repo.tinycorelinux.net/9.x/armv6/tcz/net-usb-4.9.22-piCore.tcz [nonactive]
Place it on the SD card: /mnt/mmcblk0p2/tce/optional/
Add "net-usb-4.9.22-piCore.tcz" to /mnt/mmcblk0p2/tce/onboot.lst

1. I think I did this last step, but how can I check?  What is the text editor in TinyCore?

2. I did sudo reboot and have ethernet (ifcongig shows eth0), so that's great.
3. I did tce-load -w TC.ycz and it downloaded everything (just like the youtube video I mentioned above)
4. I then celebrated with a cheer (prematurely at it turns out) then typed startx and get
-sh: startx: not found

After 7 hours, I feel like I'm so close!
Once I've got this working I'll write a full How-To for installing PiCore on a Pi Zero for newbies like me!  Should help open up TinyCore to more of the younger Pi generation!

Thanks in advance for help with the (hopefully) final step...

Offline shaunm

  • WikiUser
  • *
  • Posts: 4
Re: Pi-Zero USB Ethernet doesn't work - adapter problem
« Reply #8 on: February 18, 2018, 05:48:40 AM »
I found my silly mistake! 

I was using "tce -w" instead of "tce -wi"
(my fault as from the youtube video i thought -wi meant download from wireless, so I thought -w meant wired!)

Sorted it by reading the book, and also understand there's not text editor by default, so you can download nano

I've now got xstart working!

Will write a full tutorial from my experiences and post here in the hope it helps out others!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10103
Re: Pi-Zero USB Ethernet doesn't work - adapter problem
« Reply #9 on: February 18, 2018, 06:23:43 AM »
If you enter "provides.sh startx" it should tell you which extension provides startx