3 ms·
I tried it but the qemu boot failed because /sbin/init exists but could'nt execute it (error -8) I think there is a problem with the menu selections. Is there
by skanga 5y ago
I tried it but the qemu boot failed because /sbin/init exists but could'nt execute it (error -8)
I think there is a problem with the menu selections. Is there a command line way to select the right options? Or can someone share a working config file for both the kernel and busybox?
- quasarj 5y agoI am stuck at the same place. Not sure what is wrong!
- w84death 5y agoDid you try qemu-system-x86_64 instead?
- cturner 5y agoAssume you are hashbanging /bin/bash at the top of your /sbin/init. Ensure that shell does not have missing dependencies and is compiled for the matching arch. It can be fiddly to supply shared object dependencies for the shell. It is easier to use a statically linked shell while bootstrapping. Idea: create a hello world program in c, configure your make script to statically link it, make sure it is compiled for the same arch as the distro you are booting (amd64 vs x86), place that as /sbin/init, ensure execute bit is set, create a new image, boot, and see if you get output.
- w84death 5y agoIt could be 2 things: - you compiled some parts in 64 bits and try to run the QEMU 32 bit system. Try qemu-system-x86_64 - you do not enabled starting #! scripts in the kernel