WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: RPi Zero headless - no network/ssh/dhcp?  (Read 4251 times)

Offline pic0refan

  • Newbie
  • *
  • Posts: 12
RPi Zero headless - no network/ssh/dhcp?
« on: November 15, 2018, 10:19:04 PM »
Hello!

I am trying to install PiCore at my Raspberry Pi Zero, no luck - it doesn't seem to bring up the network, and I have no screen/keyboard for now.

So far I have tried 8.1.5, 7.0 and 9.0...9.0.3 with the same result. The Pi itself and SD card are operable ( tried with basic installation of Arch Linux and that worked fine ).

What I did:
-
Code: [Select]
dd if=piCore-8.1.5.img of=/dev/mmcblk0 bs=1M status=progress- tried with both resized and unresized mmcblk0p2
- set/clear the bootable flag on first partition

the partition table:

Code: [Select]
Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       8192    69631    61440   30M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      69632 15130623 15060992  7.2G 83 Linux

Am I missing something important?

Thank you!

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: RPi Zero headless - no network/ssh/dhcp?
« Reply #1 on: November 15, 2018, 11:01:59 PM »
hi pic0refan,

I am not exactly sure what you are expecting?

RPi0's don't have any networking.

regards
Greg


Offline pic0refan

  • Newbie
  • *
  • Posts: 12
Re: RPi Zero headless - no network/ssh/dhcp?
« Reply #3 on: November 16, 2018, 07:50:00 AM »
Oh, sorry for not being clear - I use usb to Ethernet adapter ( like this one https://www.ebay.com/itm/Micro-USB-2-0-to-Ethernet-RJ45-Network-Lan-Adapter-For-Windows-10-8-1-8-Tablet-/351413958219 )

Which raises another question - do I need to have some custom Kernel module to make it work?

Again, it works out of a box with Arch Linux ( no custom kernel )

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14843
Re: RPi Zero headless - no network/ssh/dhcp?
« Reply #4 on: November 16, 2018, 08:02:04 AM »
You could do some checking:

* when you plug the adapter in under arch linux, which kernel modules are loaded?
* when you plug the adapter in under arch linux, does dmesg show that firmware was loaded?
* when you plug the adapter in under tinycore, does dmesg or lsusb show that it is recognised?

Offline pic0refan

  • Newbie
  • *
  • Posts: 12
Re: RPi Zero headless - no network/ssh/dhcp?
« Reply #5 on: November 16, 2018, 08:35:14 AM »
In order to try the last step, I need some way to get "into" the box without keyboard / monitor.

Is there a serial console available in TinyCore by default? Or any other way to log in?

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: RPi Zero headless - no network/ssh/dhcp?
« Reply #6 on: November 16, 2018, 04:48:15 PM »
Oh, sorry for not being clear - I use usb to Ethernet adapter ( like this one https://www.ebay.com/itm/Micro-USB-2-0-to-Ethernet-RJ45-Network-Lan-Adapter-For-Windows-10-8-1-8-Tablet-/351413958219 )

Which raises another question - do I need to have some custom Kernel module to make it work?

Again, it works out of a box with Arch Linux ( no custom kernel )

hi pic0refan,

You have to understand that normal Linux distributions usually includes everything, that is why they are huge. Tiny Core, on the other hand, is minute because almost nothing is included. You often have to install the extension(s) you need. What to use bash, then load bash.tcz.

In this case you probably need to install something like "net-usb-4.9.22-piCore-v7.tcz". You need to match kernel and RPi version. Hopefully the driver for your device is included.

regards
Greg

Offline pic0refan

  • Newbie
  • *
  • Posts: 12
Re: RPi Zero headless - no network/ssh/dhcp?
« Reply #7 on: November 16, 2018, 11:38:12 PM »
Thanks, that helps, at least now I know some direction :)

How/where can I download that net-usb-4.9.22-piCore module? Apparently I have no network (yet) on the board itself, so I need to
- download it
- put it on the second partition
- load it somehow

Thanks again!

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: RPi Zero headless - no network/ssh/dhcp?
« Reply #8 on: November 16, 2018, 11:51:42 PM »
Hi pic0refan
Here's the link:
http://tinycorelinux.net/9.x/armv6/tcz/net-usb-4.9.22-piCore.tcz
You'll need to add  net-usb-4.9.22-piCore.tcz  to the  onboot.lst  file in your  tce  directory for it to load.

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: RPi Zero headless - no network/ssh/dhcp?
« Reply #9 on: November 17, 2018, 12:17:15 AM »
Hi pic0refan,

Usually the tce directory is /mnt/mmcblk0p2/tce/optional

Add "net-usb-KERNEL.tcz" to /mnt/mmcblk0p2/tce/onboot.lst to load the extension during the boot process.

regards
Greg

Offline pic0refan

  • Newbie
  • *
  • Posts: 12
Re: RPi Zero headless - no network/ssh/dhcp?
« Reply #10 on: November 17, 2018, 11:59:42 AM »
Thanks a lot, that worked! 8)