From: Ian Campbell Subject: [PATCH OSSTEST] Debian: Add "fdt chosen" to boot script Date: Wed, 18 Feb 2015 10:43:26 +0000 Message-ID: <1424256206-18497-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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. Signed-off-by: Ian Campbell --- Osstest/Debian.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 7633b51..f6874af 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -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} -- 2.1.4