PiZero fails to boot after upgrade

159 views
Skip to first unread message

Bruce Rindahl

unread,
Mar 24, 2018, 12:09:35 PM3/24/18
to ClusterHAT
Using ClusterHAT-2017-11-29-lite-2-usbboot.zip to boot two zeros over usb. Followed directions,worked perfectly. Later I did sudo apt-get update & upgrade on the controller with no issues. But when I do update & upgrade from the zeros they do not boot. LED flashes but does not stay on or boot. I have done this twice to confirm. Individual zeros work until upgrade.
Ideas?

Chris Burton

unread,
Mar 24, 2018, 3:54:27 PM3/24/18
to ClusterHAT
Hi,

Using ClusterHAT-2017-11-29-lite-2-usbboot.zip to boot two zeros over usb.  Followed directions,worked perfectly.  Later I did sudo apt-get update & upgrade on the controller with no issues. But when I do update & upgrade from the zeros they do not boot.  LED flashes but does not stay on or boot. I have done this twice to confirm.  Individual zeros work until upgrade.
Ideas?

One of the upgrades is for the kernel so it'll need the initramfs rebuilding otherwise it won't have the kernel modules it needs to continue booting.

On the controller (with power off to the Pi Zeros).

for I in 1 2 3 4 ; do
 for V in `(cd /var/lib/clusterhat/nfs/p$I/lib/modules/;ls|grep -v v7)`; do
  chroot /var/lib/clusterhat/nfs/p$I/ /bin/bash -c "mkinitramfs -o /boot/initramfs.img $V"
 done
done

You should then be able to start them up as normal.

Chris.

Bruce Rindahl

unread,
Mar 24, 2018, 5:41:53 PM3/24/18
to ClusterHAT
That did the trick.
Thanks!

Pa Cisneros

unread,
Apr 1, 2018, 11:15:10 PM4/1/18
to ClusterHAT
Hi Chris,

I have the same problem... I try to run the code that you provided in a bash file and show this error :

./commd.sh: line 3: cd: /var/lib/clusterhat/nfs/p1/lib/modules/: No such file or directory
chroot: failed to run command ‘/bin/bash’: No such file or directory

Chris Burton

unread,
Apr 2, 2018, 3:05:35 PM4/2/18
to ClusterHAT
Hi, 
./commd.sh: line 3: cd: /var/lib/clusterhat/nfs/p1/lib/modules/: No such file or directory
chroot: failed to run command ‘/bin/bash’: No such file or directory

If the directory doesn't exist you're not running the usbboot image so this wouldn't apply.

I would advise starting your own thread explaining how you have everything setup and what the problem is.

Chris.
Reply all
Reply to author
Forward
0 new messages