aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2023-01-08 18:04:52 +0100
committerSébastien Dailly <sebastien@dailly.me>2023-01-08 18:04:52 +0100
commit7397b0527ae6fd53f2f72db6fa411f9197c11692 (patch)
tree5b1067b6c4a6a71a5b16055dfc651b85378a605d
parent890800e24f31720cdc6614445ce6ee043bd540b4 (diff)
Added a target to emulate the system with qemu
-rw-r--r--board/genimage-raspberrypi3.cfg33
-rwxr-xr-xbuild.sh4
-rw-r--r--configs/qemu_x86_645
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"
- }
-}
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