Ian Campbell
2013-Oct-31 16:43 UTC
[PATCH OSSTEST v2] 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(+)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index c675e0d..e51a233 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -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>
--
1.7.10.4
Ian Jackson
2013-Oct-31 16:54 UTC
Re: [PATCH OSSTEST v2] Debian: Allow per-host additional u-boot script commands
Ian Campbell writes ("[PATCH OSSTEST v2] 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
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Ian Campbell
2013-Oct-31 17:53 UTC
Re: [PATCH OSSTEST v2] Debian: Allow per-host additional u-boot script commands
On Thu, 2013-10-31 at 16:54 +0000, Ian Jackson wrote:> Ian Campbell writes ("[PATCH OSSTEST v2] 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 > > Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>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.