Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build main.img #5

Open
aspergarus opened this issue Apr 2, 2018 · 14 comments
Open

Can't build main.img #5

aspergarus opened this issue Apr 2, 2018 · 14 comments

Comments

@aspergarus
Copy link

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

@cirosantilli
Copy link
Owner

cirosantilli commented Apr 2, 2018

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
Copy link
Owner

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.

@canaknesil
Copy link

Installing xorriso package solved the problem for me:

sudo apt-get install xorriso

@initialxh

This comment was marked as spam.

@LondonStyles

This comment was marked as spam.

@qxyanda
Copy link

qxyanda commented Sep 2, 2023

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

多学习少胡说

@LondonStyles
Copy link

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

2 similar comments
@LondonStyles
Copy link

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

@LondonStyles
Copy link

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

@LondonStyles
Copy link

多学习少传销少洗脑

@LondonStyles
Copy link

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

2 similar comments
@LondonStyles
Copy link

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

@LondonStyles
Copy link

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

@an888888H

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@cirosantilli @aspergarus @canaknesil @qxyanda @an888888H @initialxh @LondonStyles and others