Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
resources:tools-software:linux-build:generic:raspberrypi [30 Oct 2020 14:21] – [Adding the generated file on the SD-card] Travis Collinsresources:tools-software:linux-build:generic:raspberrypi [02 Nov 2020 23:51] – Add modules_install Travis Collins
Line 37: Line 37:
 </code> </code>
  
-Get an ARM compiler for cross-compiling.+Get an ARM compiler for cross-compiling for Pi 3.
  
 <code> <code>
Line 44: Line 44:
 </code> </code>
  
 +For Pi 4.
 +<code>
 +ARCH=arm make adi_bcm2711_defconfig
 +ARCH=arm CROSS_COMPILE=<path-to-arm-toolchain> make
 +</code>
 ===== Building the ADI kernel - script method ===== ===== Building the ADI kernel - script method =====
  
Line 61: Line 66:
  
 The generated **arch/arm/boot/zImage** file should be copied to the /boot to overwrite the **kernel7.img** (or kernel7l.img for Pi4+). The generated **arch/arm/boot/zImage** file should be copied to the /boot to overwrite the **kernel7.img** (or kernel7l.img for Pi4+).
 +
 +Any drivers built as modules must be installed onto the rootfs:
 +<code>
 +make ARM=arm CROSS_COMPILE=<toolchain> INSTALL_MOD_PATH=< path to SD card rootfs> modules_install
 +</code>
  
 <note important>Always remember to run **sudo sync** or un-mount the SD-card safely so that whatever is copied on it, actually gets flushed to it.</note> <note important>Always remember to run **sudo sync** or un-mount the SD-card safely so that whatever is copied on it, actually gets flushed to it.</note>
resources/tools-software/linux-build/generic/raspberrypi.txt · Last modified: 10 Mar 2022 10:13 by Michael Hennerich