FooDeas / raspberrypi-ua-netinst

RaspberryPi (minimal) unattended netinstaller
ISC License
220 stars 46 forks source link

Installation works, reinstallation doesn't #211

Closed melyux closed 1 year ago

melyux commented 3 years ago

Say you installed this and it worked. Now you want to reinstall. The README instructions say cp /boot/raspberrypi-ua-netinst/config.txt /boot/config.txt, however, config.txt is not under /boot/raspberrypi-ua-netinst/, but under /boot/raspberrypi-ua-netinst/reinstall/. So they may be outdated.

Anyway, even if you copy it from the right location, the headless install fails with this error:

Kernel modules for the kernel version "5.4.83+" could not be found. Searching for alternatives...
  Using modules of kernel version "4.19.97-v7l+".
modprobe: can't load module asix (kernel/drivers/net/usb/asix.ko): invalid module format

This leads to Waiting for eth0... 1.. 2.. 3.. 4.. 5.. 6.. 7.. 8.. 9.. 10.. 11.. 12.. 13.. 14.. FAILED since it couldn't load the ethernet adapter's modules, even though they worked perfectly for a fresh install.

I've tried copying everything in the reinstall directory (config.txt kernel.img kernel7.img kernel7l.img) to boot, but still the same error.

The only thing that works is to completely delete everything under /boot/ and copy everything from the release onto it again, like a fresh install.