I have followed this link (
https://github.com/surajx/qemu-arm-linux/wiki/Compile-Linux,-BusyBox-for-ARM-and-load-it-using-QEMU) to install successfully an embedded Linux for testing. I can boot up the system using the following command:
<path to arm-softmmu>/qemu-system-arm -M vexpress-a9 -m 256M -kernel linux-3.10/arch/arm/boot/zImage -initrd busybox-1.21.1/rootfs.img -append "root=/dev/ram rdinit=/sbin/init"
Now, I have some other questions
1. While testing Windows guest image, I can easily create a snapshot for the raw.s2e image. Could you let me know how to create a similar snapshot for an embedded linux image? In my case, the rootfs is just a compiled busybox in .img format.
2. I am trying to cross-compile a simple C program for testing. To do so, I include the s2e-arm.h to call s2e_make_concolic custom instruction but I face errors due to missing uint64_t data type definition
s2e-arm.h:316:43: error: unknown type name ‘uint64_t’
s2e-arm.h:317:43: error: unknown type name ‘uint64_t’
s2e-arm.h:318:43: error: unknown type name ‘uint64_t’
s2e-arm.h:319:43: error: unknown type name ‘uint64_t’
s2e-arm.h:450:59: error: unknown type name ‘uint64_t’
Could you give me some suggestion to fix the issue.
Thanks a lot.
Thuan.