oscourse-tsinghua / rcore_plus

Rust version of THU uCore OS. Linux compatible.
MIT License
172 stars 26 forks source link

Prepare user programs for RISCV #21

Closed wangrunji0408 closed 5 years ago

wangrunji0408 commented 5 years ago

Port Biscuit programs to RISCV

Ref: riscv-musl, build pass.

Build Busybox for RISCV

I tried but failed. Ref: qemu运行riscv linux

wangrunji0408 commented 5 years ago

@jiegec found a prebuilt binary of Busybox on Debian: busybox-static. Then we noticed that the syscall ids are different across platforms.

jiegec commented 5 years ago

Problem: glibc TLS is not working at the minute.

jiegec commented 5 years ago

Syscall id inconsistency is fixed by @jiegec and @equation314

jiegec commented 5 years ago

Busybox for RISC-V is available at https://github.com/rcore-os/busybox-riscv-prebuilts

jiegec commented 5 years ago

It works now.