Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion boot-qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ function setup_qemu_args() {
ARCH=powerpc
KIMAGE=vmlinux
QEMU_ARCH_ARGS=(
-cpu power8
-machine pseries
-vga none
)
Expand All @@ -226,7 +227,7 @@ function setup_qemu_args() {
-device "ipmi-bmc-sim,id=bmc0"
-device "isa-ipmi-bt,bmc=bmc0,irq=10"
-L "${IMAGES_DIR}/" -bios skiboot.lid
-machine powernv
-machine powernv8
)
QEMU_RAM=2G
QEMU=(qemu-system-ppc64)
Expand Down Expand Up @@ -260,6 +261,8 @@ function setup_qemu_args() {
-enable-kvm
-smp "$(nproc)"
)
else
QEMU_ARCH_ARGS=(-cpu Nehalem)
fi
case ${ARCH} in
x86) QEMU=(qemu-system-i386) ;;
Expand Down
8 changes: 3 additions & 5 deletions buildroot/arm.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
BR2_arm=y
BR2_OPTIMIZE_3=y
BR2_KERNEL_HEADERS_4_4=y
BR2_GCC_VERSION_8_X=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARMV5_EABI_UCLIBC_STABLE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
BR2_ROOTFS_OVERLAY="../overlay-reboot"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_BASH=y
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What shell do we boot to with -i? I assume we still have one, it's just whatever busybox has which I don't think is Bash?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use this with -i a lot, so I'm just checking this doesn't break that.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the shell is busybox ash.

BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
8 changes: 3 additions & 5 deletions buildroot/arm64.config
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
BR2_aarch64=y
BR2_cortex_a57=y
BR2_OPTIMIZE_3=y
BR2_KERNEL_HEADERS_4_4=y
BR2_GCC_VERSION_8_X=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_UCLIBC_STABLE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
BR2_ROOTFS_OVERLAY="../overlay-poweroff"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_BASH=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
8 changes: 3 additions & 5 deletions buildroot/arm64be.config
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
BR2_aarch64_be=y
BR2_cortex_a57=y
BR2_OPTIMIZE_3=y
BR2_KERNEL_HEADERS_4_4=y
BR2_GCC_VERSION_8_X=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64BE_UCLIBC_STABLE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
BR2_ROOTFS_OVERLAY="../overlay-poweroff"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_BASH=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
8 changes: 3 additions & 5 deletions buildroot/mips.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
BR2_mips=y
BR2_OPTIMIZE_3=y
BR2_KERNEL_HEADERS_4_4=y
BR2_GCC_VERSION_8_X=y
# BR2_MIPS_SOFT_FLOAT is not set
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_MIPS32_UCLIBC_STABLE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
BR2_ROOTFS_OVERLAY="../overlay-poweroff"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_BASH=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
8 changes: 3 additions & 5 deletions buildroot/mipsel.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
BR2_mipsel=y
BR2_OPTIMIZE_3=y
BR2_KERNEL_HEADERS_4_4=y
BR2_GCC_VERSION_8_X=y
# BR2_MIPS_SOFT_FLOAT is not set
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_MIPS32EL_UCLIBC_STABLE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
BR2_ROOTFS_OVERLAY="../overlay-poweroff"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_BASH=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
8 changes: 3 additions & 5 deletions buildroot/ppc32.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
BR2_powerpc=y
BR2_powerpc_440=y
BR2_KERNEL_HEADERS_4_4=y
BR2_GCC_VERSION_8_X=y
BR2_powerpc_440fp=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_POWERPC_440FP_UCLIBC_STABLE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_SYSTEM_BIN_SH_BASH=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_ROOTFS_OVERLAY="../overlay-reboot"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
8 changes: 3 additions & 5 deletions buildroot/ppc64.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
BR2_powerpc64=y
BR2_CCACHE=y
BR2_KERNEL_HEADERS_4_4=y
BR2_GCC_VERSION_8_X=y
BR2_powerpc_power8=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_POWERPC64_POWER8_GLIBC_STABLE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_SYSTEM_BIN_SH_BASH=y
BR2_TARGET_GENERIC_GETTY_PORT="hvc0"
BR2_ROOTFS_OVERLAY="../overlay-poweroff"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
8 changes: 3 additions & 5 deletions buildroot/ppc64le.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
BR2_powerpc64le=y
BR2_CCACHE=y
BR2_KERNEL_HEADERS_4_4=y
BR2_GCC_VERSION_8_X=y
BR2_powerpc_power8=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_POWERPC64LE_POWER8_GLIBC_STABLE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_SYSTEM_BIN_SH_BASH=y
BR2_TARGET_GENERIC_GETTY_PORT="hvc0"
BR2_ROOTFS_OVERLAY="../overlay-poweroff"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
10 changes: 9 additions & 1 deletion buildroot/rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,21 @@ done
# Download latest LTS buildroot release
BUILDROOT_VERSION=2020.11.2
if [[ -d src ]]; then
if [[ $(cd src && make print-version | cut -d - -f 1 2>/dev/null) != "${BUILDROOT_VERSION}" ]]; then
# Make support/scripts/setlocalversion do nothing because we are in a git
# repository so it will return information about this repo, not Buildroot
echo >src/support/scripts/setlocalversion

INSTALLED_VERSION=$(cd src && make print-version | cut -d - -f 1 2>/dev/null)
if [[ "${INSTALLED_VERSION}" != "${BUILDROOT_VERSION}" ]]; then
rm -rf src
download_br
fi
else
download_br
fi
# Patch buildroot with fakeroot fixes for newer glibc versions
[[ ! -f src/package/fakeroot/0002-libfakeroot.c-define-_STAT_VER-if-not-already-define.patch ]] &&
curl -LSs https://github.com/buildroot/buildroot/commit/f45925a951318e9e53bead80b363e004301adc6f.patch | patch -d src -p1
cd src || exit 1

# Build the images for the architectures requested
Expand Down
5 changes: 2 additions & 3 deletions buildroot/riscv.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
BR2_riscv=y
BR2_OPTIMIZE_3=y
BR2_RISCV_ABI_LP64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_ROOTFS_OVERLAY="../overlay-poweroff"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_BASH=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
10 changes: 2 additions & 8 deletions buildroot/s390.config
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
BR2_s390x=y
BR2_OPTIMIZE_3=y
BR2_KERNEL_HEADERS_4_4=y
BR2_GCC_VERSION_8_X=y
BR2_BINUTILS_VERSION_2_35_X=y
BR2_GCC_VERSION_10_X=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_ROOTFS_OVERLAY="../overlay-poweroff"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_BASH=y
BR2_TARGET_ROOTFS_CPIO=y
# glibc required for s390, as per Ulrich Weigand.
BR2_TOOLCHAIN_USES_GLIBC=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_TOOLCHAIN_BUILDROOT_LIBC="glibc"
# BR2_TARGET_ROOTFS_TAR is not set
8 changes: 3 additions & 5 deletions buildroot/x86.config
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
BR2_OPTIMIZE_3=y
BR2_KERNEL_HEADERS_4_4=y
BR2_GCC_VERSION_8_X=y
BR2_x86_i686=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_I686_UCLIBC_STABLE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_ROOTFS_OVERLAY="../overlay-poweroff"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_BASH=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
8 changes: 3 additions & 5 deletions buildroot/x86_64.config
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
BR2_x86_64=y
BR2_OPTIMIZE_3=y
BR2_KERNEL_HEADERS_4_4=y
BR2_GCC_VERSION_8_X=y
BR2_x86_corei7=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_CORE_I7_UCLIBC_STABLE=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
BR2_ROOTFS_OVERLAY="../overlay-poweroff"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_BASH=y
BR2_TARGET_ROOTFS_CPIO=y
# BR2_TARGET_ROOTFS_TAR is not set
Binary file modified images/arm/rootfs.cpio.zst
Binary file not shown.
Binary file modified images/arm64/rootfs.cpio.zst
Binary file not shown.
Binary file modified images/arm64be/rootfs.cpio.zst
Binary file not shown.
Binary file modified images/mips/rootfs.cpio.zst
Binary file not shown.
Binary file modified images/mipsel/rootfs.cpio.zst
Binary file not shown.
Binary file modified images/ppc32/rootfs.cpio.zst
Binary file not shown.
Binary file modified images/ppc64/rootfs.cpio.zst
Binary file not shown.
Binary file modified images/ppc64le/rootfs.cpio.zst
Binary file not shown.
Binary file modified images/riscv/rootfs.cpio.zst
Binary file not shown.
Binary file modified images/s390/rootfs.cpio.zst
Binary file not shown.
Binary file modified images/x86/rootfs.cpio.zst
Binary file not shown.
Binary file modified images/x86_64/rootfs.cpio.zst
Binary file not shown.