Add a new x86_64 target without qemu.

This commit is contained in:
2018-03-28 22:26:16 +02:00
parent 0a54ddca34
commit a6d48e761d
13 changed files with 5766 additions and 9 deletions

View File

@@ -8,12 +8,3 @@ export BR_PROJECT_NAME:=x86_64_domo
export BR_BOARD:=$(shell pwd)/../../bsp/board/domo/
include $(BR_BOARD)/main.mk
include qemu-args.mk
qemu:
qemu-system-x86_64 -kernel "$(BR_STAGING)/buildroot/images/bzImage" -fsdev "local,id=root,path=$(BR_STAGING)/buildroot/target,security_model=mapped-xattr" -device virtio-9p-pci,fsdev=root,mount_tag=/dev/root -append "rootfs=root rootfstype=9p rootflags=trans=virtio,version=9p2000.L console=ttyS0" -serial mon:stdio -nographic -usb $(QEMU_ARGS)
qemu.map-all-xattr:
PATH="${PATH}:$(BR_STAGING)/cross/usr/bin" $(BR_PROJECT)/map-all-xattr.sh "$(BR_STAGING)/buildroot/target"
.PHONY: qemu qemu.map-all-xattr

View File

@@ -1,21 +0,0 @@
#!/bin/bash
# Catch Postbuild Error
function error {
echo "Postbuild Failed."
exit 1;
}
set -e
trap error ERR
echo "==> POSTBUILD:"
echo "BR_STAGING: ${BR_STAGING}"
echo "BR_PROJECT: ${BR_PROJECT}"
ROOT_DIR=${BR_STAGING}/buildroot/target
echo " => Setting-up the target rootfs to be used by qemu"
PATH="${PATH}:${BR_STAGING}/cross/usr/bin" "${BR_PROJECT}/map-all-xattr.sh" "${ROOT_DIR}"

View File

@@ -1,24 +0,0 @@
# Tips:
# * the monitor console is multiplexed with the serial line; to switch between the two, hit "CTRL-a c"
# * create a TAP virtual ethernet device named 'tap0':
# sudo ip tuntap add dev tap0 mode tap user $USER
# * connect a TAP device to a bridge 'bridge0':
# sudo ip link set tap0 master bridge0 up
# forward an usb device to the guest, by bus/device
#QEMU_ARGS += -usbdevice host:4.32
# forward an usb device to the guest, by vendor/product
#QEMU_ARGS += -usbdevice host:050d:016a
# emulate a sound card
QEMU_ARGS += -soundhw ac97
# wait for a gdb remote connection on port 1234 (kernel debug).
#QEMU_ARGS += -gdb tcp::1234
# create a virtual ethernet interface and plug it with tap0
#QEMU_ARGS += -netdev tap,id=tap0,ifname=tap0,script=no,downscript=no -device virtio-net,netdev=tap0
# add a second serial port for debugging
QEMU_ARGS += -device pci-serial,chardev=gdb -chardev pty,id=gdb