Any Uart
A easy way to use early console in ARM.
Get the debug uart address from dtb, and some uart driver are supported.
supported uart
- 8250 and 16550
- pl011
- aux_mini (raspi 4b)
example
use NonNull;
// your dtb address
let dtb_addr = 0usize as *mut u8
if let Some = init
test
cargo install ostool
# test with qemu
cargo test -p hello --test test -- --show-output
# test with uboot
cargo test --release -p hello --test test -- --show-output --uboot