QEMU works fine with Eclipse, but doesn't work when debugging

I am studying the source code for QEMU.

I opened it with Eclipse and set up the environment. Then I can create it for the ARM platform and run it by loading Linux.

When debugging, it does not work after performing some functions . Error message:

  qemu: could not open disk image rdinit = / bin / sh ": No such file or directory 
+4
source share
1 answer

looks like missing " (double quote character) somewhere in the project configuration files or maybe redundant.

a typical QEMU call is qemu-system-arm -kernel path/to/zImage -initrd path/to/test_rootfs -append "root=/dev/ram rdinit=/test"

if you skip the first double quote immediately after -append - qemu will think rdinit=/test is a disk image and try to open it as a file

one possible solution is grep for the eclipse project dir for the keyword "rdinit" and examine all grep results for missing / redundant quotes

 cd /your/project/dir grep -rw rdinit . 
0
source

All Articles