: How to use qemu to run 64MB bmc image?
Hi Joel Stanley, Andrew Jeffery, Cédric Le Goater,
How to modify it so that QEMU can run 64MB BMC image?
In addition, how to learn the source code of QEMU? Are there any guidelines and reference documents?
thanks,
Byron
Hello,
Quoted 3 lines · www
Hi Joel Stanley, Andrew Jeffery, Cédric Le Goater,
How to modify it so that QEMU can run 64MB BMC image?
You can increase the FW image file size with 'dd' or with :
cat foo foo > bar
if the expected size is 128MB
C.
Quoted 8 lines
In addition, how to learn the source code of QEMU? Are there any guidelines and reference documents?
thanks,
Byron
Quoted 5 lines · Cédric Le Goater
Hello,
Quoted 2 lines · www
Hi Joel Stanley, Andrew Jeffery, Cédric Le Goater,
Quoted 7 lines
Quoted 1 line
How to modify it so that QEMU can run 64MB BMC image?
You can increase the FW image file size with 'dd' or with :
cat foo foo > bar
if the expected size is 128MB
You can use 'truncate' from coreutils:
$ truncate -s 128M image.bin
Quoted 13 lines
C.
Quoted 8 lines
In addition, how to learn the source code of QEMU? Are there any guidelines and reference documents?
thanks,
Byron
Quoted 11 lines · Philippe Mathieu-Daudé
Quoted 9 lines · Cédric Le Goater
Hello,
Quoted 3 lines · www
Hi Joel Stanley, Andrew Jeffery, Cédric Le Goater,
How to modify it so that QEMU can run 64MB BMC image?
You can increase the FW image file size with 'dd' or with :
Quoted 7 lines
Quoted 3 lines
cat foo foo > bar
if the expected size is 128MB
You can use 'truncate' from coreutils:
$ truncate -s 128M image.bin
Nice tip!
(What an obvious name for a tool to extend files)
Cheers,
Joel
hi,
Thank you for your reply.
I mean: I've modified the OBMC project to generate 64MB of BMC image, which can run smoothly on the actual machine. I tried to run 64MB BMC image in QEMU, but failed.
I want to ask:
1. Do I need to modify QEMU source code and recompile it?
2. How to modify it if necessary?
3. Is there any document about QEMU that can help me understand the working principle of QEMU quickly?
console log:
[ 5.557654] Checked W+X mappings: passed, no W+X pages found [ 5.558203] Run /init as init process rofs = mtd4 squashfs rwfs = mtd5 jffs2 mount: mounting /dev/loop0 on run/initramfs/ro failed: Invalid argument [ 18.297377] jffs2: Too few erase blocks (0)
mount: mounting /dev/mtdblock5 on run/initramfs/rw failed: Invalid argument
Mounting read-write /dev/mtdblock5 filesystem failed. Please fix and run
mount /dev/mtdblock5 run/initramfs/rw -t jffs2 -o rw
to to continue, or do change nothing to run from RAM for this boot. Enter password to try to manually fix.
After fixing run exit to continue this script, or reboot -f to retry, or touch /takeover and exit to become PID 1 allowing editing of this script. Give root password for system maintenance
(or type Control-D for normal startup):
qemu log:
aspeed_soc.io: unimplemented device read (size 4, offset 0x80064) aspeed_soc.io: unimplemented device read (size 4, offset 0x80060) aspeed_soc.io: unimplemented device write (size 4, value 0x47f0000, offset 0x80060) aspeed_soc.io: unimplemented device read (size 4, offset 0x80060) aspeed_soc.io: unimplemented device read (size 4, offset 0x80064) aspeed_soc.io: unimplemented device read (size 4, offset 0x80060) aspeed_soc.io: unimplemented device write (size 4, value 0x4200000, offset 0x80060) aspeed_soc.io: unimplemented device read (size 4, offset 0x80060) aspeed_soc.io: unimplemented device read (size 4, offset 0x80064) aspeed_soc.io: unimplemented device read (size 4, offset 0x80060) aspeed_soc.io: unimplemented device write (size 4, value 0x4000000, offset 0x80060) aspeed_soc.io: unimplemented device read (size 4, offset 0x80060) aspeed_soc.io: unimplemented device read (size 4, offset 0x80064) aspeed_soc.io: unimplemented device write (size 4, value 0x0, offset 0xa0008) aspeed_soc.io: unimplemented device write (size 4, value 0x1ff, offset 0xa000c) aspeed_soc.io: unimplemented device write (size 4, value 0x80030800, offset 0xa0000) aspeed_soc.io: unimplemented device write (size 4, value 0x80070800, offset 0xa0000) aspeed_soc.io: unimplemented device write (size 4, value 0x33f, offset 0xa0020) aspeed_soc.io: unimplemented device write (size 4, value 0x0, offset 0xa0020) aspeed_soc.io: unimplemented device write (size 4, value 0x0, offset 0xa0010) aspeed_soc.io: unimplemented device write (size 4, value 0x0, offset 0xa0014) aspeed_soc.io: unimplemented device write (size 4, value 0x7fff, offset 0xa0018) aspeed_soc.io: unimplemented device write (size 4, value 0x7fff, offset 0xa001c) aspeed_soc.io: unimplemented device write (size 4, value 0x0, offset 0xa0030) aspeed_soc.io: unimplemented device write (size 4, value 0x5, offset 0xa0038) aspeed_soc.io: unimplemented device write (size 4, value 0x0, offset 0xa003c) aspeed_soc.io: unimplemented device write (size 4, value 0x9b040000, offset 0xa0034) aspeed_soc.io: unimplemented device write (size 4, value 0x0, offset 0xa0004) aspeed_soc.io: unimplemented device write (size 4, value 0x80070801, offset 0xa0000) aspeed_soc.io: unimplemented device write (size 4, value 0x101cb, offset 0xa0008)
thank you,
Byron
Quoted 27 lines · Joel Stanley
Quoted 11 lines · Philippe Mathieu-Daudé
Quoted 9 lines · Cédric Le Goater
Hello,
Quoted 3 lines · www
Hi Joel Stanley, Andrew Jeffery, Cédric Le Goater,
How to modify it so that QEMU can run 64MB BMC image?
You can increase the FW image file size with 'dd' or with :
Quoted 7 lines
Quoted 3 lines
cat foo foo > bar
if the expected size is 128MB
You can use 'truncate' from coreutils:
$ truncate -s 128M image.binNice tip!
(What an obvious name for a tool to extend files)
Cheers,
Joel