x86-bare-metal-examples icon indicating copy to clipboard operation
x86-bare-metal-examples copied to clipboard

Can't build main.img

Open aspergarus opened this issue 7 years ago • 14 comments

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..

aspergarus avatar Apr 02 '18 12:04 aspergarus

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 

cirosantilli avatar Apr 02 '18 14:04 cirosantilli

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.

cirosantilli avatar Apr 02 '18 20:04 cirosantilli

Installing xorriso package solved the problem for me:

sudo apt-get install xorriso

canaknesil avatar May 17 '20 18:05 canaknesil

sb别来污染GitHub。这里人不玩政治。sb

initialxh avatar Aug 31 '23 01:08 initialxh

禁止在此给别人洗脑、传销,还github一片净土。

LondonStyles avatar Sep 02 '23 05:09 LondonStyles

禁止在此给别人洗脑、传销,还github一片净土。

多学习少胡说

qxyanda avatar Sep 02 '23 06:09 qxyanda

禁止在此给别人洗脑、传销,还github一片净土。

LondonStyles avatar Sep 02 '23 06:09 LondonStyles

禁止在此给别人洗脑、传销,还github一片净土。

LondonStyles avatar Sep 02 '23 06:09 LondonStyles

禁止在此给别人洗脑、传销,还github一片净土。

LondonStyles avatar Sep 02 '23 06:09 LondonStyles

多学习少传销少洗脑

LondonStyles avatar Sep 02 '23 06:09 LondonStyles

禁止在此给别人洗脑、传销,还github一片净土。

LondonStyles avatar Sep 02 '23 06:09 LondonStyles

禁止在此给别人洗脑、传销,还github一片净土。

LondonStyles avatar Sep 02 '23 07:09 LondonStyles

禁止在此给别人洗脑、传销,还github一片净土。

LondonStyles avatar Sep 02 '23 07:09 LondonStyles

草泥马 你别在github上污染环境行吗,傻逼东西

an888888H avatar Dec 27 '23 09:12 an888888H