configs/qemu_ppc64_e5500: new defconfig
PATCH v2 1/1 configs/qemu_ppc64_e5500: new defconfig
Adding basic support modeled after the Freescale/NXP T1040RDBD4 board.
This target is used to support testing of the bootlin e5500 toolchain.
--
v1 -> v2
[Thomas P
- Fixed title
- Added defconfig to DEVELOPERS
- Updated linux config to have more clarification on e500
- Option to set kernel headers default (missed this in orig as 4.15 is default)
- Adjusted linux cfg to support virtio block device and mount a ext fs as the rootfs. Also setup config to support a net virtio device(assuming this would come up as a bug eventually)
--- DEVELOPERS | 2 ++ board/qemu/ppc64-e5500/linux.fragment | 10 ++++++++++ board/qemu/ppc64-e5500/readme.txt | 7 +++++++ configs/qemu_ppc64_e5500_defconfig | 20 ++++++++++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 board/qemu/ppc64-e5500/linux.fragment create mode 100644 board/qemu/ppc64-e5500/readme.txt create mode 100644 configs/qemu_ppc64_e5500_defconfig
DEVELOPERS +2 -0
@@ -1165,8 +1165,10 @@ F: package/ts4900-fpga/ N: Matt Weber <[email protected]> F: board/freescale/p* F: board/freescale/t* +F: board/qemu/ppc64-e5500/ F: configs/freescale_p* F: configs/freescale_t* +F: configs/qemu_ppc64_e5500_defconfig F: package/argp-standalone/ F: package/aufs/ F: package/aufs-util/
board/qemu/ppc64-e5500/linux.fragment new file +10 -0
@@ -0,0 +1,10 @@ +# Enables generic PPC e500 base arch support for QEMU. +# The e5500 is a variant of the e500 arch. +CONFIG_PPC_QEMU_E500=y + +# Enable virtio (blk, rng and net devices) +CONFIG_VIRTIO=y +CONFIG_VIRTIO_PCI=y +CONFIG_HW_RANDOM_VIRTIO=y +CONFIG_VIRTIO_BLK=y +CONFIG_VIRTIO_NET=y
board/qemu/ppc64-e5500/readme.txt new file +7 -0
@@ -0,0 +1,7 @@ +Run the emulation with: + + qemu-system-ppc64 -M ppce500 -cpu e5500 -m 256 -kernel output/images/uImage -drive file=output/images/rootfs.ext2,if=virtio,format=raw -append 'console=ttyS0 root=/dev/vda' -serial mon:stdio -nographic + +The login prompt will appear in the terminal that started Qemu. + +Tested with QEMU 2.0.0
configs/qemu_ppc64_e5500_defconfig new file +20 -0
@@ -0,0 +1,20 @@ +# Architecture +BR2_powerpc64=y +BR2_powerpc_e5500=y + +# Serial port config +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" + +# Linux headers same as the kernel +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_15=y + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.15.7" +BR2_LINUX_KERNEL_DEFCONFIG="corenet64_smp" +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/ppc64-e5500/linux.fragment" + +# Filesystem +BR2_TARGET_ROOTFS_EXT2=y +# BR2_TARGET_ROOTFS_TAR is not set
Signature · 1 line
1.9.1
Thomas Petazzoni
AppliedPATCH v2 1/1 configs/qemu_ppc64_e5500: new defconfig
Hello,
Quoted 18 lines · Matt Weber
Adding basic support modeled after the Freescale/NXP T1040RDBD4 board.
This target is used to support testing of the bootlin e5500 toolchain.
Signed-off-by Matthew Weber <[email protected]>--
v1 -> v2
[Thomas P
- Fixed title
- Added defconfig to DEVELOPERS
- Updated linux config to have more clarification on e500
- Option to set kernel headers default (missed this in orig as 4.15 is default)
- Adjusted linux cfg to support virtio block device and mount a ext fs as the rootfs. Also setup config to support a net virtio device(assuming this would come up as a bug eventually)
Quoted 9 lines
--- DEVELOPERS | 2 ++ board/qemu/ppc64-e5500/linux.fragment | 10 ++++++++++ board/qemu/ppc64-e5500/readme.txt | 7 +++++++ configs/qemu_ppc64_e5500_defconfig | 20 ++++++++++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 board/qemu/ppc64-e5500/linux.fragment create mode 100644 board/qemu/ppc64-e5500/readme.txt create mode 100644 configs/qemu_ppc64_e5500_defconfig
Applied to master after updating the .gitlab-ci.yml file. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com