Mercurial > hg > Members > kono > xv6-singularity
changeset 0:f71ead957726 draft default tip
xv6 debug for singularity
author | kono |
---|---|
date | Thu, 14 Jul 2022 15:09:47 +0900 |
parents | |
children | |
files | README.md xv6-arm-build.def xv6-arm-clang.def xv6-arm.def xv6.def |
diffstat | 5 files changed, 105 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Thu Jul 14 15:09:47 2022 +0900 @@ -0,0 +1,39 @@ +# debugging x.v6 in singularity + +# ARM + + xv6-arm-build.def + xv6-arm.def + +差分で作られている + +# 動かし方 + + kernel 側 + singularity shell xv6-arm.sif + `Singularity> cd /xv6/xv6-riscv` + `Singularity> make qemu` + + gdb 側 + + singularity shell xv6-arm.sif + `Singularity> cd /xv6/xv6-riscv` + `Singularity> make qemu-gdb` + +# 作り方 + + singularity build --fakeroot xv6-arm-build.sif xv6-arm-build.def + singularity build --sandbox --fakeroot xv6-arm.sif xv6-arm.def + +# RISCV + + xv6.def + +# clang version + + xv6-arm-clang.def + +### console exit + + C-a x +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xv6-arm-build.def Thu Jul 14 15:09:47 2022 +0900 @@ -0,0 +1,21 @@ +BootStrap: docker +From: debian:10.10 + +%post + apt update + apt install -y \ + git \ + mercurial \ + vim \ + perl \ + zsh \ + clang \ + build-essential \ + gdb-multiarch \ + qemu-system-arm \ + gcc-arm-none-eabi \ + binutils-aarch64-linux-gnu + cd / + hg clone http://www.cr.ie.u-ryukyu.ac.jp/hg/Members/shivanidubey/xv6 + cd /xv6/src/ +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xv6-arm-clang.def Thu Jul 14 15:09:47 2022 +0900 @@ -0,0 +1,22 @@ +BootStrap: docker +From: debian:10.10 + +%post + apt update + apt install -y \ + git \ + mercurial \ + vim \ + perl \ + zsh \ + build-essential \ + gdb-multiarch \ + qemu-system-arm \ + gcc-arm-none-eabi \ + clang \ + binutils-aarch64-linux-gnu + cd / + hg clone http://www.cr.ie.u-ryukyu.ac.jp/hg/Members/shivanidubey/xv6 + cd /xv6/src/ + make kernel.elf +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xv6-arm.def Thu Jul 14 15:09:47 2022 +0900 @@ -0,0 +1,10 @@ +BootStrap: localimage +From: /mnt/nvme0/singularity/teachers/kono/xv6/xv6-arm-build.sif +Stage: make + +%post + cd /xv6/src/ + hg pull -u + make clean + make kernel.elf +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xv6.def Thu Jul 14 15:09:47 2022 +0900 @@ -0,0 +1,13 @@ +BootStrap: docker +From: debian:10.10 + +%post + apt update + apt install -y \ + git \ + zsh \ + build-essential \ + gdb-multiarch \ + qemu-system-misc \ + gcc-riscv64-linux-gnu \ + binutils-riscv64-linux-gnu