diff mbox

boot arm fedora via u-boot in qemu

Message ID 20141026192903.GA4830@debian
State New
Headers show

Commit Message

Rabin Vincent Oct. 26, 2014, 7:29 p.m. UTC
On Wed, Oct 22, 2014 at 11:59:06AM +0200, Gerd Hoffmann wrote:
> syntax error
> ## Error: "catX" not defined
> syntax error
> ## Error: "catX" not defined
> No kernel provides dtb named vexpress-v2p-ca9.dtb
> No value for u_kernel.  Getting help.
> [ ... ]
> 
> Google finds me this:
> 
> https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_BeagleBone_Black
> 
> Suggested fix is to replace uboot.  Heh.
> 
> Anyone has clue what is going on and how to fix it?  I suspect it is
> simply one of the many CONFIG_* switches in u-boot which must be
> flipped?

The problem is that commit fe9ca3d3287185 ("hush: fix some quoted
variable expansion issues") in U-Boot breaks this command in boot.scr.

 setenv catcat setenv catout\;'setenv catX "setenv catout '\\\\\\\''\$\$catin'\\\\\\\''"' \; run catX

Reverting that commit from U-Boot fixes the script problem, then you'll
need to set a few more variables to get the full boot working:
diff mbox

Patch

diff --git a/include/configs/vexpress_common.h b/include/configs/vexpress_common.h
index 54cb69f..72436d2 100644
--- a/include/configs/vexpress_common.h
+++ b/include/configs/vexpress_common.h
@@ -217,6 +217,9 @@ 
 		"scriptaddr="     "0x67d00000\0" \
 		"pxefile_addr_r=" "0x67e00000\0" \
 		"fdt_addr_r="     "0x67f00000\0" \
+		"u_boot="     "bootz\0" \
+		"u_kernel="     "3.11.10-301.fc20.armv7hl\0" \
+		"u_extraargs="     "console=ttyAMA0,115200n8\0" \
 		"ramdisk_addr_r=" "0x68000000\0"
 #elif defined(CONFIG_VEXPRESS_EXTENDED_MEMORY_MAP)
 #define CONFIG_PLATFORM_ENV_SETTINGS \