From 7397b0527ae6fd53f2f72db6fa411f9197c11692 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 8 Jan 2023 18:04:52 +0100 Subject: Added a target to emulate the system with qemu --- board/genimage-raspberrypi3.cfg | 33 --------------------------------- build.sh | 4 ++++ configs/qemu_x86_64 | 5 +++++ 3 files changed, 9 insertions(+), 33 deletions(-) delete mode 100644 board/genimage-raspberrypi3.cfg create mode 100644 configs/qemu_x86_64 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" - } -} diff --git a/build.sh b/build.sh index 3d3bf80..15e6d5a 100755 --- a/build.sh +++ b/build.sh @@ -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 -- cgit v1.2.3