[U-Boot] qemu-system-arm segfaults on zynq_zed

Douglas Rupp douglas.b.rupp at gmail.com
Mon Nov 24 18:40:05 CET 2014


The result is:

arm-softmmu/qemu-system-arm -M arm-generic-fdt -nographic -smp 2 -machine
linux=on -serial mon:stdio -dtb devicetree.dtb -kernel boot.bin
SPI device 0x7f8161521ee0
qemu: fatal: Trying to execute code outside RAM or ROM at 0xfffffff0

then a register dump

The "boot.bin" and "devicetree.dtb" is from xilinx binary release
2014.3-release/zed

I tried removing -smp 2 -machine linux=on, and same error.

On Mon, Nov 24, 2014 at 9:21 AM, Sören Brinkmann <soren.brinkmann at xilinx.com
> wrote:

> Could you try whether these instructions work?
> http://www.wiki.xilinx.com/QEMU
>
>         Sören
>
> On Mon, 2014-11-24 at 08:58AM -0800, Douglas Rupp wrote:
> > I built qemu-system-arm from the xilinx-master branch.   xilinx-zynq-a9
> is
> > not a supported machine. :(
> >
> > On Mon, Nov 24, 2014 at 7:02 AM, Douglas Rupp <douglas.b.rupp at gmail.com>
> > wrote:
> >
> > > It's the version of qemu-system-arm downloaded for Ubuntu 14.04
> > > Version info:
> > > qemu-system-arm --version
> > > QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.7)
> > >
> > > I also tried the three "boot.bin" files in "2014.3-release.tar.gz"
> > > downloaded from the Xilinx website, those in subdirectories
> zc70x/zc706/
> > > and zc70x/zc702/, and zed/ .  Same command line.  Hangs with no output.
> > >
> > > I also tried the version 2.0.0 version of qemu-system-arm from the
> > > open-do.org website that we regular use with xlnx-zynq-a9 bsp for
> > > vxworks7, it boots vxworks without uboot, but hangs with uboot.
> > >
> > > You're suggesting that only the qemu-system-arm built from the xilinx
> repo
> > > is functional with uboot?  I used that version of qemu about a year
> ago,
> > > and it worked fine for Linux but it was an ancient version of qemu (at
> that
> > > time).
> > >
> > > On Sun, Nov 23, 2014 at 10:17 PM, Jagan Teki <jagannadh.teki at gmail.com
> >
> > > wrote:
> > >
> > >> On 24 November 2014 at 06:03, Douglas Rupp <douglas.b.rupp at gmail.com>
> > >> wrote:
> > >> > I'm brand new to Uboot, so hopefully this is just some missing
> switch.
> > >> I
> > >> > did search the archive, and I was able to build and u-boot a
> > >> versaatilepb
> > >> > version, but xilinx-zynq-a9 is the one I really need.
> > >> >
> > >> > u-boot-2014.10$ make zynq_zed_defconfig
> > >> > u-boot-2014.10$ make all CROSS_COMPILE=arm-none-eabi- ARCH=arm
> > >> > u-boot-2014.10$ qemu-system-arm -M xilinx-zynq-a9 -m 1024M
> -nographic
> > >> > -kernel u-boot-dtb.bin
> > >> > Segmentation fault (core dumped)
> > >>
> > >> I guess it may be qemu usage issue, is qemu from
> > >> https://github.com/Xilinx/qemu ?
> > >>
> > >> + Peter
> > >> Hope, he will give some inputs
> > >>
> > >> >
> > >> > What am I doing wrong?
> > >>
> > >> thanks!
> > >> --
> > >> Jagan.
> > >>
> > >
> > >
>
> > _______________________________________________
> > U-Boot mailing list
> > U-Boot at lists.denx.de
> > http://lists.denx.de/mailman/listinfo/u-boot
>
>


More information about the U-Boot mailing list