Skip to contentSkip to conversation

Debian: Add "fdt chosen" to boot script

PATCH In review Ian Campbell 2 participants 3 messages Feb 18, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Debian: Add "fdt chosen" to boot script

This causes u-boot to fill in the various fields in the chosen node (specifically the bootargs) which would otherwise not be done until the bootz command. Doing it manually means the following "fdt print /chosen" will print what is actually going to be used.

This change means that instead of whatever /chosen/bootargs is embedded in the firmware FDT we end up printing what we will actually use.

---
 Osstest/Debian.pm | 2 ++
 1 file changed, 2 insertions(+)
Osstest/Debian.pm +2 -0
index 7633b51..f6874af 100644
@@ -237,6 +237,8 @@ fdt set /chosen/module\@1 compatible "xen,linux-initrd" "xen,multiboot-module"
 fdt set /chosen/module\@1 reg <\\\${ramdisk_addr_r} ${size_hex_prefix}\\\${filesize}>
 echo Loaded $initrd to \\\${ramdisk_addr_r} (\\\${filesize})
 
+fdt chosen
+
 fdt print /chosen
 
 echo Booting \\\${xen_addr_r} - \\\${fdt_addr}
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] Debian: Add "fdt chosen" to boot script"):

Quoted 8 lines

This causes u-boot to fill in the various fields in the chosen node (specifically the bootargs) which would otherwise not be done until the bootz command. Doing it manually means the following "fdt print /chosen" will print what is actually going to be used.

This change means that instead of whatever /chosen/bootargs is embedded in the firmware FDT we end up printing what we will actually use.

FWIW

but really I mean that although I have no knowledge of what this does or why it is helpful beyond what you have written, I have no objection to the patch :-).

Maybe this should be combined with Wei's XSM series ?

Ian.

#2 lore raw
Quoted 10 lines · Ian Jackson

Ian Campbell writes ("[PATCH OSSTEST] Debian: Add "fdt chosen" to boot script"):

Quoted 8 lines

This causes u-boot to fill in the various fields in the chosen node (specifically the bootargs) which would otherwise not be done until the bootz command. Doing it manually means the following "fdt print /chosen" will print what is actually going to be used.

This change means that instead of whatever /chosen/bootargs is embedded in the firmware FDT we end up printing what we will actually use.

Quoted 7 lines

FWIW

but really I mean that although I have no knowledge of what this does or why it is helpful beyond what you have written, I have no objection to the patch :-).

;-) Would you like me to try and clarify or do you not really care?

Quoted 1 line

Maybe this should be combined with Wei's XSM series ?

That's as good a place as any.

Ian.