Lab0: Environment Setup
Requirement
- Raspberry Pi 3 Model B+
- Broadcom BCM2837B0, Cortex-A53 (ARMv8) 64-bit SoC @ 1.4GHz
Linker script
a.S
1 | .section ".text" |
linker.ld
1 | SECTIONS |
Build
1 | # From source code to object files |
Deploy to REAL rpi3
1 | # Flash bootable image to SD card |
Test functionality on QEMU
1 | qemu-system-aarch64 -M raspi3 -kernel kernel8.img -display none -serial null -serial pty -monitor stdioProblem |
According to FT232R Datasheet, baudrate@115200 is not available. However, it works well.
Baud Rate = 3000000 / (n + x)
Where ‘n’ can be any integer between 2 and 16,384 ( = 214 ) and ‘x’ can be a sub-integer of the value 0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, or 0.875. When n = 1, x = 0, i.e. baud rate divisors with values between 1 and 2 are not possible.