From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgshJ-0001ow-3Q for qemu-devel@nongnu.org; Wed, 22 Oct 2014 05:59:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgshE-0007Pq-Df for qemu-devel@nongnu.org; Wed, 22 Oct 2014 05:59:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgshE-0007PR-4q for qemu-devel@nongnu.org; Wed, 22 Oct 2014 05:59:12 -0400 Message-ID: <1413971946.7230.13.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Wed, 22 Oct 2014 11:59:06 +0200 In-Reply-To: <1413929813.7230.1.camel@nilsson.home.kraxel.org> 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> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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: Peter Maydell Cc: Hans de Goede , Fedora ARM , qemu-devel , Cole Robinson Hi, > "if (base < phys_offset)" in early_init_dt_add_memory_arch triggers. > Seems __pa() isn't working correctly. > > Any chance this can be caused by setting some uboot env var incorrectly? > There is a confusing high number of *_addr_* variables ... Yep, that was it. Linux kernel wants be loaded at the start of memory, loading it somewhere else doesn't fly. And neither kernel_addr nor kernel_addr_r in upstream u-boot repo is correct. Or maybe it works when booting the kernel from flash or building it with different config options. Next problem: When booting f20 image (no extlinux yet) uboot tries the boot script instead, then fails this way: [ ... ] Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot.scr 18481 bytes read in 79 ms (227.5 KiB/s) ## Executing script at 67d00000 Welcome to a-b-c 0.59. Found kernel_addr_r (0x60008000), using for u_k_addr. Found ramdisk_addr_r (0x68000000), using for u_ramfs_addr. Found fdt_addr_r (0x67f00000), using for u_dtb_addr. Using defaults for vexpress-v2p-ca9.dtb, and will load dtb during startup. Will scan for kernels on mmc usb scsi sata ide, using ext2 fat filesystems with bootm Starting menu init.... 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? cheers, Gerd PS: https://www.kraxel.org/repos/ has builds yum install -y u-boot.git qemu-arm -M vexpress-a9 -m 512M -sd $image \ -kernel /usr/share/u-boot.git/arm/vexpress-a9/u-boot