x86-bare-metal-examples
x86-bare-metal-examples copied to clipboard
Can't build main.img
Command
grub-mkrescue -o '$@' iso
throws warning and doesn't make any main.img.
So I can' run it in next mode:
qemu-system-i386 -hda '$<'
However, kernel works fine.
The warning of grub-mkrescue:
grub-mkrescue: warning: Your xorriso doesn't support `--grub2-boot-info'. Some features are disabled. Please use xorriso 1.2.9 or later..
So just to check, the problem is that when you do:
git checkout 8ceb4b27a68d44318b58db4c48ccf8b95eca9f1b
cd grub/chainloader
make run
it just gets stuck at "Booting from Hard Disk" and never shows the "hello world", is that correct?
That is what I observe in Ubuntu 17.10, grub 2.02, xorriso 1.4.6, QEMU 2.10.1 and I think it is wrong.
I'll have to look a bit more into it, it's been a while :-)
Edit: none of the grub-mkrescue examples works it seem, all same problem.
Ubuntu 14.04 had qemu 2.0.0, grub 2.02 (lol the same), xorriso 1.3.2.
Edit 2: I have gone into a 14.04 Docker, and checked out various points of the old code, but nothing worked.
The error message there was:
boot failed not a bootable disk
Using this does not help either:
qemu-system-i386 -drive format=raw,index=0,media=disk,file=./main.img
OK... I've found my problem:
sudo apt-get install grub-pc-bin
wtf
I've documented docker at: https://github.com/cirosantilli/x86-bare-metal-examples/blob/f2b71464180bb33d62ce8e43873afe996c6de631/getting-started.md#docker give it a shot.
Installing xorriso package solved the problem for me:
sudo apt-get install xorriso
sb别来污染GitHub。这里人不玩政治。sb
禁止在此给别人洗脑、传销,还github一片净土。
禁止在此给别人洗脑、传销,还github一片净土。
多学习少胡说
禁止在此给别人洗脑、传销,还github一片净土。
禁止在此给别人洗脑、传销,还github一片净土。
禁止在此给别人洗脑、传销,还github一片净土。
多学习少传销少洗脑
禁止在此给别人洗脑、传销,还github一片净土。
禁止在此给别人洗脑、传销,还github一片净土。
禁止在此给别人洗脑、传销,还github一片净土。
草泥马 你别在github上污染环境行吗,傻逼东西