embeddedinn / embeddedinn.github.io

https://embeddedinn.com
MIT License
0 stars 0 forks source link

articles/tutorial/Linux-Python-on-RISCV-using-QEMU-from-scratch/ #18

Closed utterances-bot closed 2 years ago

utterances-bot commented 3 years ago

Linux & Python on RISC-V using QEMU from scratch - embeddedinn

This article explores how to set up RISC-V on QEMU, boot a simple application on it using the PK kernel, and boot a cross-compiled Linux on the emulation platform. We top it by booting a standard Linux distro with python support.

https://www.embeddedinn.xyz/articles/tutorial/Linux-Python-on-RISCV-using-QEMU-from-scratch/

yslys commented 3 years ago

Hi, this is a great tutorial.

I have built riscv64 Linux on QEMU twice. The first approach was to follow this link, which is similar to but not the same as your tutorial, and the second approach was to follow SiFive Freedom Unleashed SDK.

I chose to develop in the riscv64 Linux in the second approach since it supports git, diff, as well as other shell commands, but in the first approach, the riscv64 Linux does not support those commands.

Could you please give me some hint on how to add such commands (like git, diff, etc.) when building Linux following your tutorial? Thanks in advance!

vppillai commented 2 years ago

basic commands like diff can be easily enabled in busybox if it is not available in the default config. Git would be tricky since you will have to cross-compile it and getting the dependencies in would itself be an exercise.