Skip to contentSkip to conversation

Debian: Allow per-host additional u-boot script commands

PATCH In review Ian Campbell 2 participants 3 messages Oct 31, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Debian: Allow per-host additional u-boot script commands

On marilith boxes an appropriate setting is:

HostProp_marilith-n4_UBootScriptEarlyCommands fdt set /soc/ethernet@fff50000 dma-coherent;fdt set /soc/ethernet@fff51000 dma-coherent

---
v2: Avoid newlines in suggested config (commit message)

---
 Osstest/Debian.pm |    4 ++++
 1 file changed, 4 insertions(+)
Osstest/Debian.pm +4 -0
index c675e0d..e51a233 100644
@@ -136,6 +136,8 @@ sub setupboot_uboot ($$$) {
 	logm("Xen options: $xenhopt");
 	logm("Linux options: $xenkopt");
 
+	my $early_commands = get_host_property($ho, 'UBootScriptEarlyCommands', '');
+
 	target_cmd_root($ho, <<END);
 if test ! -f /boot/$kern ; then
     exit 1
@@ -154,6 +156,8 @@ scsi scan
 fdt addr \\\${fdt_addr}
 fdt resize
 
+${early_commands}
+
 fdt set /chosen \\\#address-cells <1>
 fdt set /chosen \\\#size-cells <1>
 
Signature · 1 line
1.7.10.4
Acked-by on v2 1/1
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST v2] Debian: Allow per-host additional u-boot script commands"):

Quoted 3 lines

On marilith boxes an appropriate setting is:

HostProp_marilith-n4_UBootScriptEarlyCommands fdt set /soc/ethernet@fff50000 dma-coherent;fdt set /soc/ethernet@fff51000 dma-coherent

#2 lore raw
Quoted 6 lines · Ian Jackson

Ian Campbell writes ("[PATCH OSSTEST v2] Debian: Allow per-host additional u-boot script commands"):

Quoted 3 lines

On marilith boxes an appropriate setting is:

HostProp_marilith-n4_UBootScriptEarlyCommands fdt set /soc/ethernet@fff50000 dma-coherent;fdt set /soc/ethernet@fff51000 dma-coherent

Added my S-o-b and pushed to pretest.

I added the above runes to marilith-n{4,5} first, since this means that osstests own push gate will have this new code active, while old versions of osstest won't care about this setting...

Ian.