-
Notifications
You must be signed in to change notification settings - Fork 210
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
[Discuss] Test real Linux user program in zCore #177
Comments
Run the shell, The first attmptYou can get the prebuilt Alpine Linux rootfs with: make rootfs Then you can run the shell in libOS with cargo run --release -p linux-loader /bin/busybox sh The internal commands works well
However it is not possible to start a process in this shell. The shell uses
However, |
Run shell with customized busybox@wangrunji0408 sent me a prebuilt busybox binary with NOMMU option.
Is this a Host filesystem related issue? |
The correct way to
However it is still a bug to panic instead of error when there is no required binary, see rcore-os/rcore-fs#20 |
Maybe some error is because the command in you can change the link of command file to the relative path, in this case the command is supposed to run properly: #149 |
I'm sorry I was busy with something recently and I've seen this issue just now. The usage of Linux shell and GCC in LibOS and QEMU had been written in usage.md, all the precautions are written here, please check. |
@wfly1998 and @yunwei37 did some works to run shell, gcc and rustc in the linux part of zCore. Here we try to reproduce their works and attempt to find and fix the problem that breaks rustc.
Goals:
Recourse:
The text was updated successfully, but these errors were encountered: