This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-build:generic:raspberrypi [15 May 2019 16:01] – add dt Alexandru Ardelean | resources:tools-software:linux-build:generic:raspberrypi [10 Mar 2022 10:13] (current) – [Building for Raspberry PI] Michael Hennerich | ||
---|---|---|---|
Line 10: | Line 10: | ||
The Raspberry PI branches are: | The Raspberry PI branches are: | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | + | * [[https:// |
* There maybe be a few other branches that start with **rpi-xxx** ; these should not be used, they will be removed in the future, and were used to test things sometime in the past. | * There maybe be a few other branches that start with **rpi-xxx** ; these should not be used, they will be removed in the future, and were used to test things sometime in the past. | ||
Line 31: | Line 31: | ||
===== Building the ADI kernel - manual cross-compiling ===== | ===== Building the ADI kernel - manual cross-compiling ===== | ||
- | Get an ARM compiler for cross-compiling. | + | Get a toolchain for cross-compiling. |
+ | |||
+ | < | ||
+ | git clone https:// | ||
+ | </ | ||
+ | |||
+ | Get an ARM compiler for cross-compiling | ||
< | < | ||
ARCH=arm make adi_bcm2709_defconfig | ARCH=arm make adi_bcm2709_defconfig | ||
+ | ARCH=arm CROSS_COMPILE=< | ||
+ | </ | ||
+ | |||
+ | For Pi 4. | ||
+ | < | ||
+ | ARCH=arm make adi_bcm2711_defconfig | ||
+ | ARCH=arm CROSS_COMPILE=< | ||
+ | </ | ||
+ | |||
+ | For Pi Zero, Pi Zero 2. | ||
+ | < | ||
+ | ARCH=arm make adi_bcmrpi_defconfig | ||
ARCH=arm CROSS_COMPILE=< | ARCH=arm CROSS_COMPILE=< | ||
</ | </ | ||
Line 54: | Line 72: | ||
First backup the **kernel7.img** file on the SD-card. | First backup the **kernel7.img** file on the SD-card. | ||
- | The generated **arch/ | + | The generated **arch/ |
+ | |||
+ | Any drivers built as modules must be installed onto the rootfs: | ||
+ | < | ||
+ | make ARM=arm CROSS_COMPILE=< | ||
+ | </ | ||
<note important> | <note important> | ||
Line 71: | Line 94: | ||
https:// | https:// | ||
+ | Copy built overlays (usually name <def config name> | ||
+ | < | ||
+ | [all] | ||
+ | dtoverlay=rpi-adar1000 | ||
+ | </ |