You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andre Richter 1ca70bcd56
Check-in kernel8
Useful for assembly inspection via objdump
6 years ago
..
.cargo Use aarch64-unknown-none target in nightly 🎉 6 years ago
raspi3_boot Remove unused cortex-a imports. 6 years ago
src rust-fmt all 6 years ago
Cargo.lock Remove unused cortex-a imports. 6 years ago
Cargo.toml Bump register to v0.2.0 6 years ago
Makefile Use cargo-xbuild 6 years ago
README.md minor style fixes 6 years ago
kernel8 Check-in kernel8 6 years ago
kernel8.img Bump cortex-a to v1.1.0 6 years ago
link.ld Correct linker issues 6 years ago

README.md

Tutorial 05 - UART0, PL011

This tutorial does the same as tutorial 04, but it prints the serial number on UART0. As such, it can be used easily with qemu, like

$ make # To build the kernel
$ make qemu
<Press any key>
Hello Rustacean!
My serial number is: 0000000000000000

uart.rs

Before we could use a rate divisor value, we must establish a valid clock rate for the PL011. It's done via mailboxes, with the same property channel we used earlier. Otherwise this interface is identical to the UART1 one.

main.rs

We query the board's serial number and then we display it on the serial console.