Git Product home page Git Product logo

Comments (4)

alistair23 avatar alistair23 commented on August 25, 2024

Hey Safwen,

You are seeing the seg fault because your DMA node (dma@40400000) doesn't have the sg property set. You need to ensure that the sg property in the device tree points to a valid QEMU MemoryRegion (https://github.com/Xilinx/qemu/blob/master/hw/dma/xilinx_axidma.c#L609).

Have a look at a Xilinx provided DTS and you can just copy it from there.

from qemu.

bsafwen avatar bsafwen commented on August 25, 2024

Hi @alistair23, thank you for your answer, it no longer segfaults, but now I am stuck at
Waiting for root device /dev/mmcblk0... and then I there is this debug message "Skipping voltage switch". After some debugging, I found that this functions does not succeed:
linux-xlnx/drivers/mmc/core/sd.c: int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr)
and this function calls

> err = mmc_set_signal_voltage(host, MMC_SIGNAL_VOLTAGE_180,
>                                         pocr);
>                 if (err == -EAGAIN) {
>                         retries--;
>                         goto try_again;
>                 } else if (err) {
>                         retries = 0;
>                         goto try_again;
>                 }

here err is 25, and so this function never returns because it could not set the voltage signal.
A stupid workaround that I did, was to set err to 0 just before the check and now the kernel can load the rootfs. But it took me 5 minutes to get to the prompt login, issuing a command like ls takes at least 10 seconds.
The machine that I am testing on has 70 GB of RAM, 8 cpus, 2 cores each.

Can you reproduce this problem??:
linux-xlnx: xilinx-v2017.3

>  make xilinx_zynq_defconfig 
>  make ARCH=arm CROSS_COMPILE=arm-none-eabi- zImage dtbs

qemu-xlnx: xilinx-v2017.3

> ./configure --target-list="aarch64-softmmu,microblazeel-softmmu" --enable-fdt --disable-kvm --disable-xen
> make

qemu-system-aarch64 -M arm-generic-fdt-7series -machine linux=on -serial /dev/null -serial mon:stdio -nographic -dtb zynq-zed.dtb -kernel zImage -drive if=sd,format=raw,index=0,file=sd.img -append "root=/dev/mmcblk0 rw rootwait rootfstype=ext2"

So far, I reproduced the same behavior on all zynq boards.
Thanks @alistair23

from qemu.

alistair23 avatar alistair23 commented on August 25, 2024

Hey Safwen,

I don't see anything obviously wrong with what you are doing, it all looks standard in which case QEMU should not take that long to boot or to run commands. Maybe try not an SD boot (JTAG boot) to just narrow down the issue?

Unfortunately I can't help reproduce and fix the problem, you will need someone from Xilinx to help you there.

from qemu.

bsafwen avatar bsafwen commented on August 25, 2024

@alistair23 ok thank you, I will reach out to someone from Xilinx. thanks.

from qemu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.