Welcome! Log In Create A New Profile

Advanced

Howto reset envs to uboot.2016.05-tld-1.environment while in netconsole

Posted by bodhi 
Howto reset envs to uboot.2016.05-tld-1.environment while in netconsole
May 06, 2019 12:51AM
In this instruction, the Pogo E02 is used as example. The current installed u-boot is uboot.2016.05-tld-1 or later.

It will work if you have uboot.2016.05-tld-1 or later installed on your box. Earlier u-boot will work with some more adjustment.

Preparation:

Download the uboot.2016.05-tld-1.environment.bodhi.tar tarball from the u-boot release thread:
https://forum.doozan.com/read.php?3,12381

Quote

a. Download the default u-boot envs at Dropbox:

uboot.2016.05-tld-1.environment.bodhi.tar
md5:
3823eef10011b864859d31a76470e0e3
sha256:
c8db95a4225e8d78bdaaaa372bd5a87e4b98f3448dd9c62fc96c72b2df1a997c

Instruction:

1. Extract the tarball uboot.2016.05-tld-1.environment.bodhi.tar and copy the envs file in text format to the Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 rootfs on USB.

(Assuming the USB rootfs is mounted on another Linux box as /media/sdb1)

cp -a uboot.2016.05-tld-1.environment /media/sdb1/boot/uEnv.txt

2. Modify the envs in uEnv.txt to make it usable in netconsole (that you already has set up and working).

Remove the following lines in uEnv.txt

ethaddr=52:3b:20:9c:11:51
ipaddr=192.168.0.231
serverip=192.168.0.220
stderr=serial
stdin=serial
stdout=serial

3. sync and umount the USB rootfs

cd
sync

4. Plug the USB rootfs into the Pogo E02 and power up, interrupt netconsole. At the prompt:

usb start
ext2load usb 0:1 0x810000 /boot/uEnv.txt
env import -t 0x810000 $filesize
printenv

5. At this point your current u-boot envs are set to a correct set of u-boot envs to boot the USB rootfs (If you want confirmation, post the log of netconsole up until this point here).

Go ahead and boot

boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Howto reset envs to uboot.2016.05-tld-1.environment while in netconsole
May 09, 2019 02:58PM
Hi bodhi,

apparently, I need to do this each time I reboot. How can I make these changes permanent?

- Andreas
Re: Howto reset envs to uboot.2016.05-tld-1.environment while in netconsole
May 09, 2019 08:22PM
Andreas,

After verified that it works, repeat the procedure. But also save envs at step 5 before boot:
saveenv
boot

Now it will be Ok to boot normally.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Howto reset envs to uboot.2016.05-tld-1.environment while in netconsole
May 09, 2019 09:54PM
Hi bodhi,

thank you very much for you fast help. Much appreciated!

Best,
Andreas
Author:

Your Email:


Subject:


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.
Message: