RISCV学习

内核技术

图形化仿真器

使用Qemu模拟

sudo /home/pengdl/work/qemu-6.0.0/build/riscv64-softmmu/qemu-system-riscv64 \
        -M virt -smp 4\
        -nographic \
        -m 4G \
        -kernel /home/pengdl/work/Qemu/riscv64/linux-5.19_pdl/arch/riscv/boot/Image \
        -append "noinitrd root=/dev/vda rootfstype=ext4 rw console=ttyS0" \
        -fsdev local,security_model=passthrough,id=fsdev0,path=/home/pengdl/work/Qemu/riscv64/share \
        -device virtio-9p-pci,id=fs1,fsdev=fsdev0,mount_tag=hostshare \
        -drive if=none,format=qcow2,file=/home/pengdl/work/Qemu/riscv64/ubuntu22.qcow2,id=hd0 \
        -device virtio-blk-device,drive=hd0 \
        -netdev user,id=eth0,hostfwd=tcp::8090-:22 -device virtio-net-device,netdev=eth0

交叉编译工具链

技术手册

posted @ 2022-11-05 10:24  摩斯电码  阅读(89)  评论(0编辑  收藏  举报