Welcome! Log In Create A New Profile


[How-To] Kirkwood USB rescue rootfs

Posted by bodhi 
[How-To] Kirkwood USB rescue rootfs
October 26, 2023 01:53PM
How to create and boot with a USB rescue rootfs for Kirkwood boxes with bodhi's u-boot 2017.07-kirkwood-tld-1 already installed.

1. Create a brand new USB rootfs using the instruction in the kernel/rootfs release thread. At the time of this writing, the latest rootfs is Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (26 Sept 2021).

2. Mount this USB rootfs on another Linux box. Assuming it is mounted at /media/sdb1. You'll need to become root before doing the following.

3. Create the uEnv.txt
cd /media/sdb1/boot
touch uEnv.txt

And then edit this uEnv.txt file to have the following envs (copy/paste the envs in):
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=usb_rootfs rootdelay=10 $mtdparts $custom_params

4. Change the partition label of this USB rootfs.

Warning: make sure that the USB rootfs is actually /dev/sdb1. This could mess up the current Linux host, if it is not /dev/sdb1. Use the mount command to double check before changing label.

e2label /dev/sdb1 usb_rootfs
And then
umount /media/sdb1

Bring the USB rootfs back to your Kirkwood box and cold start.

Wait for about 30 seconds and look for the box dynamic IP in the network (either in the router page, or using network scanning tool such as Linux nmap or IOS Fing). Or just ping the hostname
ping debian.local
Since this is a brand new rootfs, you can login with root/root credentials.

Forum Wiki
bodhi's corner (buy bodhi a beer)

Edited 2 time(s). Last edit at 10/26/2023 09:34PM by bodhi.

Your Email:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.