Comments (4)
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.
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.
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.
@alistair23 ok thank you, I will reach out to someone from Xilinx. thanks.
from qemu.
Related Issues (20)
- ERROR: glib-2.22 gthread-2.0 is required to compile QEMU HOT 1
- Xilinx QEMU for Windows 10
- SRIOV support to remote-port
- How to run QNX OS on qemu HOT 6
- MPSoC CAN QEMU acceptance filter register layout not compatible with hardware HOT 2
- arm: cp15 support
- cadence_i2c.c DATA register issue
- Cannot recreate QEMU Petalinux commands HOT 1
- Enable virtfs in xilinx-qemu?
- Remote for `dtc` submodule points to deprecated git.qemu-project.org HOT 2
- Assessment of the difficulty in porting CPU architecture for qemu
- Block device read operation misses one byte(8 bit) per chip per SPI transaction HOT 3
- Error:undefined reference to `fcntl64'
- No null check on info leads to segfault
- QEMU Object Model for PL
- QEMU - How to enable two GEMs on xilinx-zcu102 machine HOT 4
- qemu support of VCR register on Cortex-A9
- Remote Port: need to disable/enable byte_enable
- Secure Boot with Xilinx QEMU
- qemu-system-aarch64: Connection refused
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qemu.