Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Failed to boot XenZynqDist-Beta_02_19_2016 in QEMU
#1
Hi all,
I am trying to boot XenZynqDist-Beta_02_19_2016 pre-built images in QEMU for Xilinx ultrascale+ MPSoC. But system failed to boot properly.
Hangs at boot loader with the following message
scanning bus for devices...
Found 0 device(s).
Net:   Gem.ff0e0000
Hit any key to stop autoboot:  0 
PHY is not detected
Gem.ff0e0000: No link.
ZynqMP> 

Do I need to configure anything in host OS(Ubuntu 14.04) to get the GEM link properly? The command line that I have used  to launch qemu is give below:
qemu-system-aarch64 -L $RELEASE_DIR/petalinux-v2015.4-final/etc/qemu -M arm-generic-fdt -device loader,addr=0xfd1a0104,data=0x8000000e,data-len=4 -serial monConfusedtdio -serial /dev/null -display none -device loader,file=$RELEASE_DIR/dist/images/linux/bl31.elf,cpu=0 -device loader,file=$RELEASE_DIR/dist/images/linux/u-boot.elf -gdb tcp::9000 -tftp /tftpboot -drive file=$RELEASE_DIR/dist/images/dom0.img,format=raw,if=sd -redir tcp:2222::22 -net nic,vlan=0 -net user,vlan=0 -net nic,vlan=0 -net nic,vlan=0 -net nic,vlan=0 -hw-dtb $RELEASE_DIR/dist/images/linux/zynqmp-qemu-arm.dtb -pflash $RELEASE_DIR/dist/images/linux/nand0.qcow2


Thanks
Akhil
Reply
#2
Akhil,

Sorry to hear about your difficulties, and I'm a bit stumped to start off as this is the first time someone has run into this problem. Can you provide the entire log of your boot sequence, starting with the command to launch QEMU? It looks like you're not even getting out of u-boot.

To answer your question, no, you shouldn't have to configure anything on your host beyond is mentioned in the User's Manual, which is primarily ensuring you have the correct packages installed.

Regards,

-Jarvis
Reply
#3
Dear Jarvis,
Thank you for the quick reply.
I have shared the details below:

Command to launch QEMU:
>> export RELEASE_DIR=`pwd`/XenZynqDist-Beta_02_19_2016
>> cd $RELEASE_DIR/dist
>> qemu-system-aarch64 -L $RELEASE_DIR/petalinux-v2015.4-final/etc/qemu -M arm-generic-fdt -device loader,addr=0xfd1a0104,data=0x8000000e,data-len=4 -serial monConfusedtdio -serial /dev/null -display none -device loader,file=$RELEASE_DIR/dist/images/linux/bl31.elf,cpu=0 -device loader,file=$RELEASE_DIR/dist/images/linux/u-boot.elf -gdb tcp::9000 -tftp /tftpboot -drive file=$RELEASE_DIR/dist/images/dom0.img,format=raw,if=sd -redir tcp:2222::22 -net nic -net nic -net nic -net nic -net user -hw-dtb $RELEASE_DIR/dist/images/linux/zynqmp-qemu-arm.dtb -pflash $RELEASE_DIR/dist/images/linux/nand0.qcow2

Boot Log:

Xilinx QEMU Apr 12 2016 14:23:46.
--------------------------------------------------------------------
NOTICE: ATF running on QEMU/RTL0.0 at 0xfffe4000
NOTICE: BL3-1: Secure code at 0xfffc0000
NOTICE: BL3-1: Non secure code at 0x8000000
NOTICE: BL3-1: v1.1(release):9708c93
NOTICE: BL3-1: Built : 10:33:37, Feb 8 2016
ERROR: Error initializing runtime service sip_svc


U-Boot 2015.07 (Feb 08 2016 - 10:35:10 -0500) Xilinx ZynqMP ZCU102

I2C: ready
DRAM: 2 GiB
Enabling Caches...
EL Level: EL2
MMC: zynq_sdhci: 0
Using default environment

In: serial
Out: serial
Err: serial
Bootmode: JTAG_MODE
SCSI: SATA link 0 timeout.
AHCI 0001.0000 32 slots 2 ports 1.5 Gbps 0x3 impl SATA mode
flags: ncq only
scanning bus for devices...
Found 0 device(s).
Net: Gem.ff0e0000
Hit any key to stop autoboot: 0
PHY is not detected
Gem.ff0e0000: No link.
ZynqMP>

BdInfo:
ZynqMP> bdinfo
arch_number = 0x00000000
boot_params = 0x00000000
DRAM bank = 0x00000000
-> start = 0x00000000
-> size = 0x80000000
eth0name = Gem.ff0e0000
ethaddr = 00:0a:35:00:01:22
current eth = Gem.ff0e0000
ip_addr = 10.0.2.15
baudrate = 115200 bps
TLB addr = 0x7FFF0000
relocaddr = 0x7FF25000
reloc off = 0x77F25000
irq_sp = 0x7DF1D0B0
sp start = 0x7DF1D0B0
ARM frequency = 50 MHz
DSP frequency = 0 MHz
DDR frequency = 0 MHz
ZynqMP>
Reply
#4
Akhil,

Can you issue 'which qemu-system-aarch64' and 'qemu-system-aarch64 --version' and post the results? The time stamp on your QEMU version seems questionable.

-Jarvis
Reply
#5
Jarvis,
I have shared the details below. I have downloaded QEMU source code from xilinx git server( (git://github.com/Xilinx/qemu.git) and built in my system.

./qemu/aarch64-softmmu/qemu-system-aarch64 --version
--------------------------------------------------------------------
Xilinx QEMU Apr 14 2016 10:23:44.
--------------------------------------------------------------------
QEMU emulator version 2.2.50, Copyright © 2003-2008 Fabrice Bellard


-Akhil
Reply
#6
Akhil,

The current supported and tested version of qemu is the one that is included with petalinux 2015.4.  You can set up your environment to use this version with 'source petalinux-v2015.4-final/settings.sh'.

$ petalinux-v2015.4-final/tools/linux-i386/petalinux/bin/qemu-system-aarch64 --version
--------------------------------------------------------------------
Xilinx QEMU Dec 10 2015 13:38:20.
--------------------------------------------------------------------
QEMU emulator version 2.2.50, Copyright © 2003-2008 Fabrice Bellard

The latest Xilinx qemu introduced some changes to how SD card and ethernet are emulated, and we are working to support those changes soon.  We will support the latest petalinux release in our next release of XZD in ~3 months time.

-Stewart
Reply
#7
Hi Stewart,
I have downloaded the QEMU from the branch https://github.com/Xilinx/qemu/releases/...2015.4-rc2 and now I am able to boot the Linux(xilinx-dom0). Thank you very much for your support.

Now I would like to know is there any prebuilt GUI based Linux distribution for this and how the system is booted in the QEMU.

-Akhil
Reply
#8
Akhil,

There's nothing pre-built at this time, but in theory it should be possible to use a software frame buffer + VNC method to boot a graphical desktop environment. The good folks at Xilinx have managed to get Doom running on this platform using VNC (http://www.wiki.xilinx.com/Doom+on+Xen+Demo).

-Stewart
Reply
#9
Akhil,

If that functionality is something you need right away, please check out our available professional support services at http://dornerworks.com/services/xilinxxe...on-support.


Regards,

-Jarvis
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)