Updated direct build tutorial

This commit is contained in:
Adam Greenwood-Byrne 2021-05-11 18:23:26 +01:00
parent 06e7cc5ebf
commit cab823fc5f

View file

@ -17,7 +17,7 @@ You'll then need to download a cross-compiler from the Arm website.
What you're looking for is the current [AArch64 ELF bare-metal target (aarch64-none-elf)](https://developer.arm.com/-/media/Files/downloads/gnu-a/10.2-2020.11/binrel/gcc-arm-10.2-2020.11-aarch64-aarch64-none-elf.tar.xz). If this link is somehow broken, you can use Google to search for "Arm GNU-A linux hosted cross compilers".
Then unpack the archive using `tar -xf _downloaded-filename_`. You'll end up with a _gcc_ directory (albeit with a slightly longer name), which itself contains a _bin_ subdirectory, wherein you'll find the _gcc_ executable (again - with a longer name!). Remember this path.
Then unpack the archive using `tar -xf <filename>`. You'll end up with a _gcc_ directory (albeit with a slightly longer name), which itself contains a _bin_ subdirectory, wherein you'll find the _gcc_ executable (again - with a longer name!). Remember this path.
Now let's build something:
@ -30,7 +30,7 @@ Now let's build something:
If you want to then boot with this, you'll need to copy the _kernel8.img_ file to a prepped SD card as the tutorial discusses. For the purposes of testing this process, I did the following (NOTE: it will trash your OS install unless you backup the old files so you can move them back later):
* `sudo cp kernel8.img /boot`
* Then edit _/boot/config.txt_ to include only these lines (for _part5-framebuffer_ anyway, read the tutorial in full for any necessary config changes for other parts):
* Then edit _/boot/config.txt_ to include only these lines (for _part5-framebuffer_ anyway, otherwise read the tutorial in full for any necessary config changes for other parts...):
```c
hdmi_group=1
@ -38,6 +38,6 @@ hdmi_mode=16
core_freq_min=500
```
Reboot and you should see the part5-framebuffer demo firing up!
Reboot and you should see the _part5-framebuffer_ demo firing up!
[Go to part1-bootstrapping >](./part1-bootstrapping/)