How do I run a baremetal hello world program? #68
-
I've managed to follow the repository and run a hello world code on the Debian Linux. Now how would i go about configuring the bootloader such that it doesn't launch the Debian Linux but rather a simple bare-metal hello world program? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
You don't need to modify bootloader. I have added simple bare metal hello world example to the repo: bare-metal. You can put in on SD card instead of Linux. |
Beta Was this translation helpful? Give feedback.
-
@eugene-tarassov What if my board does not have an SD card? I ported the project to the Arty-A7-100 board but I don't know how to test it. |
Beta Was this translation helpful? Give feedback.
-
I have bare metal working on riscv64 on an arty7-100, what is required, or what needs to be changed to get it working on riscv32? I have compiled the riscv-toolchain from source, and this riscv64 is enough to get a working "Hello world", I also have access to riscv32 through this path. |
Beta Was this translation helpful? Give feedback.
-
The README in bare-metal describes both 64-bit and 32-bit cases. |
Beta Was this translation helpful? Give feedback.
You don't need to modify bootloader.
I have added simple bare metal hello world example to the repo: bare-metal. You can put in on SD card instead of Linux.