diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2023-01-08 18:04:52 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2023-01-08 18:04:52 +0100 |
commit | 7397b0527ae6fd53f2f72db6fa411f9197c11692 (patch) | |
tree | 5b1067b6c4a6a71a5b16055dfc651b85378a605d | |
parent | 890800e24f31720cdc6614445ce6ee043bd540b4 (diff) |
Added a target to emulate the system with qemu
-rw-r--r-- | board/genimage-raspberrypi3.cfg | 33 | ||||
-rwxr-xr-x | build.sh | 4 | ||||
-rw-r--r-- | configs/qemu_x86_64 | 5 |
3 files changed, 9 insertions, 33 deletions
diff --git a/board/genimage-raspberrypi3.cfg b/board/genimage-raspberrypi3.cfg deleted file mode 100644 index 0a54724..0000000 --- a/board/genimage-raspberrypi3.cfg +++ /dev/null @@ -1,33 +0,0 @@ -image boot.vfat { - vfat { - files = { - "bcm2710-rpi-3-b.dtb", - "bcm2710-rpi-3-b-plus.dtb", - "bcm2710-rpi-cm3.dtb", - "rpi-firmware/bootcode.bin", - "rpi-firmware/cmdline.txt", - "rpi-firmware/config.txt", - "rpi-firmware/fixup.dat", - "rpi-firmware/start.elf", - "rpi-firmware/overlays", - "zImage" - } - } - size = 32M -} - -image sdcard.img { - hdimage { - } - - partition boot { - partition-type = 0xC - bootable = "true" - image = "boot.vfat" - } - - partition rootfs { - partition-type = 0x83 - image = "rootfs.ext4" - } -} @@ -5,6 +5,8 @@ usage() { echo "with boardname in" echo " - raspberrypi0w" echo " - raspberrypi3_64" + echo " - qemu_x86_64" + } test -z ${BUILDROOT_DIR} && BUILDROOT_DIR="../buildroot-2022.08.1" @@ -23,6 +25,8 @@ case "$BOARDNAME" in ;; raspberrypi3_64) ;; + qemu_x86_64) + ;; *) usage echo diff --git a/configs/qemu_x86_64 b/configs/qemu_x86_64 new file mode 100644 index 0000000..a5a54c9 --- /dev/null +++ b/configs/qemu_x86_64 @@ -0,0 +1,5 @@ + +BR2_SYSTEM_DHCP="eth0" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/qemu/post-image.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_DEFCONFIG)" +BR2_TOOLCHAIN_BUILDROOT_CXX=y |