Skip to content

moritz-meier/arm64-rt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust on bare-metal AArch64

A crate for running Rust on bare-metal AArch64

  • Startup Code
  • Multi-Core
  • Exception Level EL3-EL1 NS
  • Cache Maintenance
  • Virtual Memory
  • PSCI support
  • System Timer
  • ARM Performance Monitoring Unit
  • ARM Coresight STM Instrumentation Trace

Example

cd ./example
cargo build --target aarch64-unknown-none
cargo run --target aarch64-unknown-none

Run on ZynqMP Board

Xilinx xsdb debugger is needed
for example from xilinx-nix-utils (nix develop .#xilinx-lab):

xsdb

connect
target 10 # (or whatever number Cortex-A53 #0 is)
# ensure board has booted into U-Boot
stop
dow ./target/aarch64-unknown-none/debug/example
con

Connect gdb debugger to xsdb:

rust-gdb ./target/aarch64-unknown-none/debug/example

target extended-remote :3001

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages