Created
December 16, 2012 10:26
-
-
Save fcicq/4306136 to your computer and use it in GitHub Desktop.
qemu + seaslic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usage: qemu-kvm -acpitable file=FILE/TO/374/BYTES/SLIC/BIN | |
# You may wish to modify the path to your own | |
SLIC_PATH="" | |
if [ "${SLIC_PATH}" == "" ]; then | |
SLIC_PATH="/sys/firmware/acpi/tables/SLIC" | |
fi | |
git clone git://github.com/ghuntley/seaslic | |
cd seaslic | |
git submodule init | |
git submodule sync | |
git submodule update | |
cd seabios.submodule | |
git reset --hard && git clean -f | |
patch -p1 < ../seabios.patch | |
xxd -i ${SLIC_PATH} | grep -v len | sed 's/unsigned char.*/static char SLIC[] = {/' > src/acpi-slic.hex | |
# the modify comes from bit.ly/SZWrWP | |
echo "LS0tIHNyYy9hY3BpLmMubm9hY3BpCTIwMTItMTItMTYgMTc6MjI6MzkuMjI0MTAzNzQ5ICswODAw | |
CisrKyBzcmMvYWNwaS5jCTIwMTItMTItMTYgMTc6NDA6MjEuOTY2OTU5MzM4ICswODAwCkBAIC02 | |
MzUsNyArNjM1LDcgQEAKICAgICBBQ1BJX0lOSVRfVEFCTEUoYnVpbGRfaHBldCgpKTsKICAgICBB | |
Q1BJX0lOSVRfVEFCTEUoYnVpbGRfc3JhdCgpKTsKIAotI2lmZGVmIENPTkZJR19PRU1fU0xJQwor | |
I2lmIDAKICAgICB7IHZvaWQgKmJ1ZiA9IG1hbGxvY19oaWdoKHNpemVvZihTTElDKSk7CiAgICAg | |
ICBpZiAoIWJ1ZikKICAgICAgICAgd2Fybl9ub2FsbG9jKCk7Cg==" | base64 -d > seaslic.patch | |
# this patch enable SLIC table hotplug. you may not like this feature. | |
# patch -p0 < seaslic.patch | |
make | |
ls out/bios.bin | |
echo you may now copy out/bios.bin to /usr/share/qemu-kvm/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you very much.