DaleD Posted December 12, 2022 Share Posted December 12, 2022 (edited) I built the OOB project from GitHub https://github.com/Digilent/Genesys-ZU release tag 3eg/oob/release/v2.1 with PetaLinux 2020.1. While the resulting image boots on the board when programmed on an SD card, attempting to issue petalinux-boot --qemu --kernel results in a boot that does not progress beyond U-boot (log attached). One error in the log is "Could not get PHY for eth0: addr 15". Do the patches in meta-user/recipes-bsp/u-boot or elsewhere conflict with QEMU? Is there something else I need to configure to allow QEMU to boot? As an extra data point, I created a brand new petalinux-project without the BSP in 2020.1, and was able to boot the minimal image in QEMU. qemu_boot.log Edited December 12, 2022 by DaleD Added information Link to comment Share on other sites More sharing options...
0 JColvin Posted December 13, 2022 Share Posted December 13, 2022 Hi @DaleD, I have reached out to another engineer more experienced with Petalinux about this question. Thanks, JColvin Link to comment Share on other sites More sharing options...
0 Ana-Maria Balas Posted December 14, 2022 Share Posted December 14, 2022 Hello @DaleD, Can you try with petalinux-boot --qemu --u-boot Or You can use the built image: petalinux-boot --qemu --image ./images/linux/Image Or If you packaged a prebuilt image petalinux-boot --qemu --prebuilt 2 Link to comment Share on other sites More sharing options...
0 Ionel Posted December 15, 2022 Share Posted December 15, 2022 When u-boot tries to load image.ub the following error ocurs Verifying Checksum ... Bad Data CRC Ramdisk image is corrupt or invalid After that it tries to boot over network thus the other errors. Make sure to regenerate image.ub and retry. Link to comment Share on other sites More sharing options...
0 DaleD Posted December 27, 2022 Author Share Posted December 27, 2022 On 12/14/2022 at 7:57 AM, Ana-Maria Balas said: Hello @DaleD, Can you try with petalinux-boot --qemu --u-boot Or You can use the built image: petalinux-boot --qemu --image ./images/linux/Image Or If you packaged a prebuilt image petalinux-boot --qemu --prebuilt 2 The first and third methods work exactly as before. The second method hangs. If I program an SD card, it boots fine. So is there something about the board design that QEMU doesn't like? Link to comment Share on other sites More sharing options...
0 Ana-Maria Balas Posted December 29, 2022 Share Posted December 29, 2022 We did not try the image with QEMU. I think it is a problem with the emulator. In the early stage of booting, it cannot determine the necessary resources needed by u-boot, because the QEMU is built for Xilinx QEMU device trees to generate a machine model. Xilinx recommends to use their prebuilt image, which works with QEMU or I think you can integrate the 3eg device tree into QEMU (see here https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/822312999/Building+and+Running+QEMU+from+Source+Code#BuildingandRunningQEMUfromSourceCode-Buildingdevicetreebinaries%3A) You should use their prebuilt image to create compatible Petalinux drivers/applications if it is something not specific to the board. https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/818708631/Chapter+2+-+Building+and+Running+QEMU Link to comment Share on other sites More sharing options...
Question
DaleD
I built the OOB project from GitHub https://github.com/Digilent/Genesys-ZU release tag 3eg/oob/release/v2.1 with PetaLinux 2020.1.
While the resulting image boots on the board when programmed on an SD card, attempting to issue
petalinux-boot --qemu --kernel
results in a boot that does not progress beyond U-boot (log attached). One error in the log is "Could not get PHY for eth0: addr 15".
Do the patches in meta-user/recipes-bsp/u-boot or elsewhere conflict with QEMU? Is there something else I need to configure to allow QEMU to boot?
As an extra data point, I created a brand new petalinux-project without the BSP in 2020.1, and was able to boot the minimal image in QEMU.
qemu_boot.log
Edited by DaleDAdded information
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now