WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Pi Zero usb LAN adapter  (Read 27499 times)

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: Pi Zero usb LAN adapter
« Reply #45 on: August 15, 2017, 05:15:32 AM »
net-usb-4.9.22-piCore added to piiCore 9.x armv6 repo

Offline tehfink

  • Newbie
  • *
  • Posts: 11
Re: Pi Zero usb LAN adapter
« Reply #46 on: August 15, 2017, 11:15:47 AM »
net-usb-4.9.22-piCore added to piiCore 9.x armv6 repo

Hi Juanito,

Are you saying that it was added, or that will be added at a later date? Because I can't find it here:
http://distro.ibiblio.org/tinycorelinux/9.x/armv6/tcz/
nor
http://distro.ibiblio.org/tinycorelinux/9.x/armv6/tcz/updates/updatelist.txt
which is where it should be located, yes? (as of this posting)

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: Pi Zero usb LAN adapter
« Reply #47 on: August 15, 2017, 11:18:35 AM »
You should find it at repo.tinycorelinux.net
« Last Edit: August 15, 2017, 11:24:53 AM by Juanito »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11590
Re: Pi Zero usb LAN adapter
« Reply #48 on: August 15, 2017, 11:19:20 AM »
Hi tehfink
It was posted here:
http://tinycorelinux.net/9.x/armv6/tcz/
It just hasn't propagated to the mirror sites yet.

Offline tehfink

  • Newbie
  • *
  • Posts: 11
Re: Pi Zero usb LAN adapter
« Reply #49 on: August 15, 2017, 11:51:49 AM »
You should find it at repo.tinycorelinux.net

Hi tehfink
It was posted here:
http://tinycorelinux.net/9.x/armv6/tcz/
It just hasn't propagated to the mirror sites yet.

Thanks, guys!

For future reference, to use a USB-ethernet adapter with piCore 9 on a pi zero:

Offline juliannojungle

  • Newbie
  • *
  • Posts: 6
Re: Pi Zero usb LAN adapter
« Reply #50 on: October 29, 2019, 06:23:56 PM »
Sorry to revive such an old thread, but I'm having this problem today.

I'm just trying to plug my Raspberry Pi Zero using PiCore on USB as a network device, so I can just SSH into it.

I've tried already the last post's procedure (putting "http://repo.tinycorelinux.net/9.x/armv6/tcz/net-usb-4.9.22-piCore.tcz" on "/mnt/mmcblk0p2/tce/optional/" and adding the "net-usb-4.9.22-piCore.tcz" line to the end of the "/mnt/mmcblk0p2/tce/onboot.lst" file.
After reboot, nothing happened.
Tried the regular "Raspbian" procedure as well after the above procedure (add "dtoverlay=dwc2" on "config.txt" and "modules-load=dwc2,g_ether" after "rootwait" on "cmdline.txt" file), but obviously with that the keyboard attached to Pi stops working after reboot (because of gadget mode) and still no network device.

What am I missing? Thank you very much in advance.

Offline gestein

  • Newbie
  • *
  • Posts: 16
Re: Pi Zero usb LAN adapter
« Reply #51 on: November 02, 2019, 03:47:23 PM »
Hi,

I also tried to get this running, but I had the same problem as juliannojungle.

But I recognized in some other thread, that "net-usb-KERNEL.tcz" has to be loaded and installed.
If I manually try to do "tce-load -i net-usb-KERNEL.tcz" eth0 appears and the module r8152 is loaded.
After a reboot, eth0 is gone again.

So I added the line "net-usb-KERNEL.tcz" in "/mnt/mmcblk0p2/tce/onboot.lst" instead of "net-usb-4.9.22-piCore.tcz".
After a reboot, it works!

Maybe you could try this also.
Best regards
Gerhard

Offline juliannojungle

  • Newbie
  • *
  • Posts: 6
Re: Pi Zero usb LAN adapter
« Reply #52 on: November 03, 2019, 08:36:03 AM »
I think I did not make myself clear. Sorry for that.
What I meant wasn't to connect an USB network adapter to the Pi, but just plug the Pi on computer's USB and SSH it.

I've tried the "tce-load -i net-usb-KERNEL.tcz" and still didn't get the usb0 on ifconfig.

Tried the following as well: https://gist.github.com/chr15m/84d7f4b0eba45102848a76ac6b47b449
That is:
Code: [Select]
tce-load -wi net-usb-4.9.22-piCore-v7
modprobe cdc_ether
modprobe usbnet
ifconfig -a
ifconfig usb0 up
sudo /sbin/udhcpc -b -i usb0 -x hostname:$HOSTNAME -p /var/run/udhcpc.usb0.pid
but got stuck on "modprobe usbnet", with message: "modprobe: module usbnet not found in modules.dep"

Really have no idea on what to do. :/

Offline gestein

  • Newbie
  • *
  • Posts: 16
Re: Pi Zero usb LAN adapter
« Reply #53 on: November 03, 2019, 09:58:52 AM »
I see. Completely different story. Sorry.

There is an answer in the thread, that you mentioned:
Quote
For rpi zero use net-usb-4.9.22-piCore from http://repo.tinycorelinux.net/9.x/armv6/tcz/, as it's armv6, not armv7.

Does this help?

Gerhard