Closed nathanchance closed 5 years ago
Just a thought, but another solution is to always run qemu with the -cpu host -enable-kvm
options. Not sure if it slows down the build (doubt that it matters). Thanks for figuring out that my hypothetical was indeed the case, and the report.
I don't think -cpu host -enable-kvm
works with Travis but I can try later. I think this is a fine solution for right now.
Thanks for the review!
Joel reported in #120 that when passing
init=/bin/bash
via the kernel cmdline, there is a nice panic that happens on boot due to an invalid opcode. Nick suggested that it was possible that the rootfs was compiled with ISA extensions that aren't supported by QEMU's virtual CPU, which is exactly the case.When I initially created these images for myself, I selected
CONFIG_BR2_x86_corei7=y
(as that's what I was using at the time), which selects a bunch of ISA extensions 1:I have never noticed a problem because I always use the
-cpu host -enable-kvm
options, which makes QEMU's CPU emulate the host's (which supported those extensions). QEMU's default cpu "qemu64" only supports SSE3 2, which Buildroot's default target variant "nocona" supports as well. Use that variant and rebuild the images so there are no more issues withinit=/bin/bash
.Presubmit: https://travis-ci.com/nathanchance/continuous-integration/builds/99019841