Skip to content

Commit abd32d1

Browse files
authored
Merge pull request #787 from wedsonaf/configs
configs: add `qemu-busybox-min`
2 parents ec6f850 + c9b67a0 commit abd32d1

File tree

3 files changed

+77
-0
lines changed

3 files changed

+77
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CONFIG_PCI_HOST_GENERIC=y
2+
3+
CONFIG_SERIAL_AMBA_PL011=y
4+
CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
5+
6+
CONFIG_GPIOLIB=y
7+
CONFIG_GPIO_PL061=y
8+
9+
CONFIG_KEYBOARD_GPIO=y
10+
11+
CONFIG_CMDLINE="console=ttyAMA0 nokaslr rdinit=/sbin/init"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CONFIG_64BIT=y
2+
CONFIG_ACPI=y
3+
4+
CONFIG_SERIAL_8250=y
5+
CONFIG_SERIAL_8250_CONSOLE=y
6+
7+
CONFIG_HYPERVISOR_GUEST=y
8+
CONFIG_PVH=y
9+
10+
CONFIG_CMDLINE_BOOL=y
11+
CONFIG_CMDLINE="console=ttyS0 nokaslr rdinit=/sbin/init"
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# This is a minimal configuration for running a busybox initramfs image with
2+
# networking support.
3+
#
4+
# The following command can be used create the configuration for a minimal
5+
# kernel image:
6+
#
7+
# make allnoconfig qemu-busybox-min.config
8+
#
9+
# The following command can be used to build the configuration for a default
10+
# kernel image:
11+
#
12+
# make defconfig qemu-busybox-min.config
13+
#
14+
# On x86, the following command can be used to run qemu:
15+
#
16+
# qemu-system-x86_64 -nographic -kernel vmlinux -initrd initrd.img -nic user,model=rtl8139,hostfwd=tcp::5555-:23
17+
#
18+
# On arm64, the following command can be used to run qemu:
19+
#
20+
# qemu-system-aarch64 -M virt -cpu cortex-a72 -nographic -kernel arch/arm64/boot/Image -initrd initrd.img -nic user,model=rtl8139,hostfwd=tcp::5555-:23
21+
22+
CONFIG_SMP=y
23+
CONFIG_PRINTK=y
24+
CONFIG_PRINTK_TIME=y
25+
26+
CONFIG_PCI=y
27+
28+
# We use an initramfs for busybox with elf binaries in it.
29+
CONFIG_BLK_DEV_INITRD=y
30+
CONFIG_RD_GZIP=y
31+
CONFIG_BINFMT_ELF=y
32+
33+
# This is for /dev file system.
34+
CONFIG_DEVTMPFS=y
35+
36+
# Core networking (packet is for dhcp).
37+
CONFIG_NET=y
38+
CONFIG_PACKET=y
39+
CONFIG_INET=y
40+
41+
# RTL8139 NIC support.
42+
CONFIG_NETDEVICES=y
43+
CONFIG_ETHERNET=y
44+
CONFIG_NET_VENDOR_REALTEK=y
45+
CONFIG_8139CP=y
46+
47+
# To get GDB symbols and script.
48+
CONFIG_DEBUG_KERNEL=y
49+
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
50+
CONFIG_GDB_SCRIPTS=y
51+
52+
# For the power-down button (triggered by qemu's `system_powerdown` command).
53+
CONFIG_INPUT=y
54+
CONFIG_INPUT_EVDEV=y
55+
CONFIG_INPUT_KEYBOARD=y

0 commit comments

Comments
 (0)