Debian: Add "fdt chosen" to boot script
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
@@ -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
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.
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
Acked-by Ian Jackson <[email protected]>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.