Welcome! Log In Create A New Profile

Advanced

changing dtb

Posted by Joe123 
changing dtb
December 19, 2025 06:00AM
Sorry for all the posts, I would have deleted this if I could

I think it will be OK. I messed up the environment and used

setenv dtb_file /boot/dts/kirkwood-nsa320.dtb
boot

to fix it, not sure



Edited 1 time(s). Last edit at 12/19/2025 09:26AM by Joe123.
Re: changing dtb
December 19, 2025 02:51PM
Joe,

> I think it will be OK. I messed up the
> environment and used
>
> setenv dtb_file /boot/dts/kirkwood-nsa320.dtb
> boot
>
> to fix it, not sure

After booting into Debian, you can do

fw_printenv > current_envs.txt

And then compare with the default envs

Quote
https://forum.doozan.com/read.php?3,12381

uboot.2016.05-tld-1.environment.img (the default envs image to be flashed)
uboot.2016.05-tld-1.environment (the content of the default envs in text format)
uboot.2016.05-tld-1.environment.64K.img (small envs image to be flashed on HP T5325 and Dreamplug only).

diff uboot.2016.05-tld-1.environment current_envs.txt
And see what you did wrong. For example, the DTB might have been mispelled, so correct it:
fw_setenv dtb_file '/boot/dts/kirkwood-nsa320.dtb'

The difference between setenv in u-boot and fw_setenv in Debian is: fw_setenv will save the env permanently, while setenv sets it but not saving it.

In u-boot you must use the command saveenv to make the changes permanent. But try to avoid saving envs in u-boot if you are able do it in Debian. It's easier to make mistake in u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: