I need to recover my RPi5B by flashing openwrt-bcm27xx-bcm2712-rpi-5-ext4-sysupgrade.img.gz
... What I have done is to boot the RPi5B to another distro and then via USB, mounted the OpenWrt uSD card to ~/ok
and ~/ok/boot
I bind mounted the following:
mount --bind /dev ok/dev
mount --bind /proc ok/proc
mount --bind /sys ok/sys
I can chroot into the OpenWrt install just fine but I cannot run /sbin/sysupgrade
due to I suspect the PATH not being setup properly:
# chroot ok /bin/ash
BusyBox v1.36.1 (2024-11-26 22:47:00 UTC) built-in shell (ash)
/ # /sbin/sysupgrade
/sbin/sysupgrade: line 67: cat: not found
Is there something I need to source in order to get the PATH defined?
EDIT: Ah, I just did:
export PATH=/usr/sbin:/usr/bin:/sbin:/bin:/root/bin