sunny
sunny

Reputation: 11

File transfer between RISCV - Qemu and Host

I am following steps provided on

https://www.cnx-software.com/2018/03/16/how-to-run-linux-on-risc-v-with-qemu-emulator/.

and trying to bootup riscv qemu on linux.

I was able to boot the qemu successfully, but now I want to run my own hello world program on riscv-qemu.

I have cross compiled my hello world program using riscv gnu toolchain on my host system, but I am looking for a shared directory to place my executable, so that I can run the compiled code on riscv-qemu after booting it up.

Any help is appreciated. thank you.

Upvotes: 1

Views: 617

Answers (1)

cnxsoft
cnxsoft

Reputation: 146

Glad you found the RISC-V qemu instructions useful. I also wrote some tutorials about copying files to QEMU either 1. Mounting the image to add or delete file 2. Via a network connection

I'm not sure thr RISC-V qemu image supports Ethernet (yet), so the first method may be the only option.

Upvotes: 1

Related Questions