For booting into u-boot:
Hold key “s” while booting then do:
setenv init /bin/sh
saveenv
bootd
For people who wanna reset the password:
You need to boot manually:
mount -t proc p /proc
. /lib/functions/preinit.sh
. /lib/preinit/80_mount_root
do_mount_root
. /etc/init.d/boot
link_by_name
. /lib/preinit/81_initramfs_config
do_initramfs_config
It should do the trick.
Then just cp /etc/shadow to /overlay/upper/etc/shadow
Just change the shadow root password in /overlay/upper/etc/shadow
.
I used this website to generate a password.
then run sync
just to make sure it saved everything.
You can also override any file in the system by placing them in the upper overlay.
Then reboot the device and reboot into u-boot again.
Also you may change bootdelay also so it gets easier.
Then change back init to /sbin/init
setenv init /sbin/init
setenv bootdelay 3
saveenv
reset