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

rootfs ? #51

Open
bianchi77 opened this issue May 17, 2017 · 6 comments
Open

rootfs ? #51

bianchi77 opened this issue May 17, 2017 · 6 comments

Comments

@bianchi77
Copy link

Hi Ciro, I got your link from here 👍
https://unix.stackexchange.com/questions/70931/install-x11-on-my-own-linux-system
......Tested on Ubuntu 16.04, Buildroot 2016.05.....

I tried to run rootfs.tar from qemu but I don't know root="" ?
Kernel panic, can not find root system , what should I do with rootfs.tar with qemu ?

Thanks

@cirosantilli
Copy link
Owner

cirosantilli commented May 17, 2017

Hi

  1. So you are running these commands, correct:
make BR2_JLEVEL=$(nproc)
qemu-system-x86_64 \
    -enable-kvm \
    -M pc \
    -m 512 \
    -kernel output/images/bzImage \
    -drive file=output/images/rootfs.ext2,if=virtio,format=raw \
    -append root=/dev/vda \
    -net nic,model=virtio \
    -net user

with this .config file: https://github.com/cirosantilli/buildroot-configs/blob/44b45b5c7f68e44abcda360a2b980f8301901a9a/qemu_x86_64_x11_defconfig ?

  1. Does output/images/rootfs.ext2 exist?

  2. The root in -append root=/dev/vda shouldn't change I think, what matters most is the -drive file=output/images/rootfs.ext2.

I'll try this once again when I get the time.

@cirosantilli
Copy link
Owner

OK, I have just re-run this and those exact instructions worked :-)

@bianchi77
Copy link
Author

bianchi77 commented May 17, 2017 via email

@cirosantilli
Copy link
Owner

Hmmm, sorry, but I don't know much about X.

Are you sure you have:

?

If yes, try opening a stack overflow question ;-)

@bianchi77
Copy link
Author

bianchi77 commented May 18, 2017 via email

@cirosantilli
Copy link
Owner

Rename qemu_x86_64_x11_defconfig to .config, make uses .config in current directory :-)

@cirosantilli cirosantilli transferred this issue from cirosantilli/chat Apr 20, 2019
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

2 participants