-
Notifications
You must be signed in to change notification settings - Fork 0
init system for xv6-riscv in zig
License
aryalaadi/zinit-xv6-riscv
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
zinit: init system for xv6-riscv in zig to build: % git clone https://github.com/mit-pdos/xv6-riscv % mkdir xv6-riscv/zig % git clone https://aryalaadi/zinit xv6-riscv/zinit % cd xv6-riscv/zinit % zig build-obj zinit.zig -target riscv64-linux-gnu -O ReleaseSmall % riscv64-linux-gnu-ld -o init zinit.o ../user/initcode.o ../user/printf.o ../user/ulib.o ../user/usys.o -T ../user/user.ld to install and run: % cd ../ % ./mkfs/mkfs fs.img README init user/_sh user/_cat user/_ls ... % qemu-system-riscv64 --machine virt -bios none -kernel kernel/kernel -m 128 \ -nographic -global virtio-mmio.force-legacy=false -drive \ file=fs.img,if=none,format=raw,id=x0 \ -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0
About
init system for xv6-riscv in zig
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published