Booting Raspberry Pi 3: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
No edit summary
No edit summary
Line 26: Line 26:
https://github.com/raspberrypi/firmware/blob/master/boot/bootcode.bin
https://github.com/raspberrypi/firmware/blob/master/boot/bootcode.bin


There is also another file required to boot properly. A config.txt file must be supplied to provide configuration details for the device and the OS. Here are the only entry you need:
There is also another file required to boot properly. A config.txt file must be supplied to provide configuration details for the device and the OS. Here are the only entries you need:


<pre>
<pre>
arm_64=1
enable_uart=1
enable_uart=1
</pre>
</pre>
Line 35: Line 36:


https://raspberrypi.stackexchange.com/a/10595
https://raspberrypi.stackexchange.com/a/10595

https://www.raspberrypi.org/documentation/configuration/config-txt/
https://www.raspberrypi.org/documentation/configuration/config-txt/


Line 43: Line 45:
By now you should have your cross compiler set up. The compiler binaries have the same name as they usually would with "aarch64-elf-" prefixing them (e.x. aarch64-elf-gcc). For this example, three files are used:
By now you should have your cross compiler set up. The compiler binaries have the same name as they usually would with "aarch64-elf-" prefixing them (e.x. aarch64-elf-gcc). For this example, three files are used:


*linker.ld - Linker script
*start.S - Setup the environment and call the kernel
*start.S - Setup the environment and call the kernel
*kernel.c - Kernel entry and use
*kernel.c - Kernel entry and use
*uart.c - UART driver
*uart.c - UART driver
*linker.ld - Linker script