ClangBuiltLinux / boot-utils

Collection of files for booting Linux kernels
26 stars 7 forks source link

boot-qemu.sh: Add '-nodefaults' to ppc64le command line #3

Closed nathanchance closed 4 years ago

nathanchance commented 4 years ago

An upcoming QEMU change will make it so that the bmc devices are created automatically. Unfortunately, that breaks our command line with the following cryptic error:

qemu-system-ppc64: error creating device tree: node: FDT_ERR_EXISTS

The author of the patch changed it so that the devices are only created when '-nodefaults' is not set (i.e. using defaults). Add this flag to our QEMU command line so that this command line continues to work for all QEMU versions. Tested locally with 3.1.0 (the version in Debian stable), 4.2.0 (current QEMU stable), and 5.0.0-rc1 (latest QEMU -rc).

Link: https://lore.kernel.org/qemu-devel/20200404071707.GA24708@ubuntu-m2-xlarge-x86/ Link: https://lore.kernel.org/qemu-devel/20200404153655.166834-1-clg@kaod.org/

nathanchance commented 4 years ago

I'll start with this then test -nodefaults for QEMU 3.1.0, 4.2.0, and 5.0.0-rc1 at some point this week.

Thanks for the note and review!