qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Hans de Goede <hdegoede@redhat.com>,
	Fedora ARM <arm@lists.fedoraproject.org>,
	qemu-devel <qemu-devel@nongnu.org>,
	Cole Robinson <crobinso@redhat.com>
Subject: Re: [Qemu-devel] boot arm fedora via u-boot in qemu
Date: Wed, 22 Oct 2014 11:59:06 +0200	[thread overview]
Message-ID: <1413971946.7230.13.camel@nilsson.home.kraxel.org> (raw)
In-Reply-To: <1413929813.7230.1.camel@nilsson.home.kraxel.org>

  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

  reply	other threads:[~2014-10-22  9:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-21 13:33 [Qemu-devel] boot arm fedora via u-boot in qemu Gerd Hoffmann
2014-10-21 13:42 ` Hans de Goede
2014-10-21 17:01   ` Gerd Hoffmann
2014-10-21 13:47 ` Peter Maydell
2014-10-21 18:31   ` Gerd Hoffmann
2014-10-21 19:11     ` Peter Maydell
2014-10-21 22:16       ` Gerd Hoffmann
2014-10-22  9:59         ` Gerd Hoffmann [this message]
2014-10-26 19:29           ` Rabin Vincent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1413971946.7230.13.camel@nilsson.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=arm@lists.fedoraproject.org \
    --cc=crobinso@redhat.com \
    --cc=hdegoede@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).