19 Commits (2432c0d283883ea87b5f2e70eed36971d74d44df)

Author SHA1 Message Date
Andre Richter 2432c0d283
Revert to assembly boot code
It is too risky to rely on the compiler to not insert any operations using the
stack.

Having a stack-setting call in Rust using the cortex-a crate as the first action
in a Rust-only _start() function does not work if you're subsequently using the
stack, because the compiler often inserts the operations to make room on the
stack to prepare a function call BEFORE the call to set the stack, which crashes
the boot process.

Hence, keep on using a small piece of assembly boot code throughout.
3 years ago
Andre Richter 223989adb9
Overhaul linker script 3 years ago
Andre Richter 2f90304149
Add color and verbosity to Makefile 3 years ago
Andre Richter 6db8b2bc72
Update toolchain 3 years ago
Andre Richter 8324b1fdac
PL011: Use BUSY bit
Fixes #100
3 years ago
Andre Richter c8e9b9713f
update deps 3 years ago
Andre Richter e7cb61b389
Refactoring
- Don't wildcard-import from arch modules. Make it explicit.
- Put translation table code into its own module.
- Put boot code in boot.rs instead of cpu.rs
- Other minor changes, most memory subsystem.
3 years ago
Andre Richter c35a30cd0b Bump UART to 921_600 baud + other bugfixes
Fixes #95
Fixes #98

Co-authored-by: Takumasa Sakao <sakataku7@gmail.com>
4 years ago
Andre Richter f2a891236e
Remove unused feature 4 years ago
Andre Richter ee52e8e288
Bump UART to 576000 baud 4 years ago
Andre Richter 269df3e25d
Update toolchain 4 years ago
Andre Richter 9b89f297d7
Update dependencies 4 years ago
Andre Richter 18c7259c60
Default to externally powered RPis
Addresses issues in #86
4 years ago
Andre Richter 163e2010ab
GPIO: Fix RPi4 driver init
The RPi4 GPIO pull-up/pull down sequence is done differently than on the
RPi3. Switch to using the correct way.

Also, configure pull-ups for both UART pins.

Fixes #81
4 years ago
Andre Richter 14be6a5f45
Update binaries (new FBRD) 4 years ago
Andre Richter bf8e6c36c7
Analyzer: Invoke cargo check through Makefile 4 years ago
Andre Richter c3632eeb3c
Refactor tutorial 07 4 years ago
Andre Richter 840c72d11b
Bump UART to 230400 Baud 4 years ago
Andre Richter 2fe2dcba6d
Add support for Raspberry Pi 4 🎉 5 years ago