From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiTV8-00053X-SX for qemu-devel@nongnu.org; Sun, 26 Oct 2014 15:29:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiTV3-0003Sf-DO for qemu-devel@nongnu.org; Sun, 26 Oct 2014 15:29:18 -0400 Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]:44253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiTV3-0003Sb-5K for qemu-devel@nongnu.org; Sun, 26 Oct 2014 15:29:13 -0400 Received: by mail-la0-f48.google.com with SMTP id gi9so4760392lab.21 for ; Sun, 26 Oct 2014 12:29:11 -0700 (PDT) Sender: Rabin Vincent Date: Sun, 26 Oct 2014 20:29:03 +0100 From: Rabin Vincent Message-ID: <20141026192903.GA4830@debian> References: <1413898431.14632.25.camel@nilsson.home.kraxel.org> <1413916318.14632.32.camel@nilsson.home.kraxel.org> <1413929813.7230.1.camel@nilsson.home.kraxel.org> <1413971946.7230.13.camel@nilsson.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1413971946.7230.13.camel@nilsson.home.kraxel.org> Subject: Re: [Qemu-devel] boot arm fedora via u-boot in qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Peter Maydell , Fedora ARM , Cole Robinson , qemu-devel , Hans de Goede 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 --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 \