|
@@ -9,6 +9,7 @@ These instructions apply to all models of the Raspberry Pi:
|
|
- the model B2 (aka Raspberry Pi 2)
|
|
- the model B2 (aka Raspberry Pi 2)
|
|
- the model B3 (aka Raspberry Pi 3).
|
|
- the model B3 (aka Raspberry Pi 3).
|
|
- the model B4 (aka Raspberry Pi 4).
|
|
- the model B4 (aka Raspberry Pi 4).
|
|
|
|
+ - the model CM4 (aka Raspberry Pi Compute Module 4 and IO Board).
|
|
|
|
|
|
How to build it
|
|
How to build it
|
|
===============
|
|
===============
|
|
@@ -47,6 +48,10 @@ or for model 4 B (64 bit):
|
|
|
|
|
|
$ make raspberrypi4_64_defconfig
|
|
$ make raspberrypi4_64_defconfig
|
|
|
|
|
|
|
|
+For model CM4 (on IO Board):
|
|
|
|
+
|
|
|
|
+ $ make raspberrypicm4io_defconfig
|
|
|
|
+
|
|
Build the rootfs
|
|
Build the rootfs
|
|
----------------
|
|
----------------
|
|
|
|
|
|
@@ -71,6 +76,7 @@ After building, you should obtain this tree:
|
|
+-- bcm2710-rpi-3-b.dtb [1]
|
|
+-- bcm2710-rpi-3-b.dtb [1]
|
|
+-- bcm2710-rpi-3-b-plus.dtb [1]
|
|
+-- bcm2710-rpi-3-b-plus.dtb [1]
|
|
+-- bcm2711-rpi-4-b.dtb [1]
|
|
+-- bcm2711-rpi-4-b.dtb [1]
|
|
|
|
+ +-- bcm2711-rpi-cm4.dtb [1]
|
|
+-- boot.vfat
|
|
+-- boot.vfat
|
|
+-- rootfs.ext4
|
|
+-- rootfs.ext4
|
|
+-- rpi-firmware/
|
|
+-- rpi-firmware/
|
|
@@ -105,3 +111,31 @@ Insert the SDcard into your Raspberry Pi, and power it up. Your new system
|
|
should come up now and start two consoles: one on the serial port on
|
|
should come up now and start two consoles: one on the serial port on
|
|
the P1 header, one on the HDMI output where you can login using a USB
|
|
the P1 header, one on the HDMI output where you can login using a USB
|
|
keyboard.
|
|
keyboard.
|
|
|
|
+
|
|
|
|
+How to write to CM4 eMMC memory
|
|
|
|
+===============================
|
|
|
|
+
|
|
|
|
+For CM4 modules without eMMC memory see above for booting from SD card,
|
|
|
|
+for CM4 moduels with eMMC memory proceed as following:
|
|
|
|
+
|
|
|
|
+- fit jumper on IO Board header J2 to disable eMMC boot
|
|
|
|
+- connect IO Board micro USB port (J11 USB slave) to your host linux system
|
|
|
|
+- power up CM4/IO Board (lsusb command should show a '0a5c:2711 Broadcom Corp.
|
|
|
|
+ BCM2711 Boot' device)
|
|
|
|
+- run 'sudo ./host/bin/rpiboot', output should look like the following:
|
|
|
|
+ Waiting for BCM2835/6/7/2711...
|
|
|
|
+ Loading embedded: bootcode4.bin
|
|
|
|
+ Sending bootcode.bin
|
|
|
|
+ Successful read 4 bytes
|
|
|
|
+ Waiting for BCM2835/6/7/2711...
|
|
|
|
+ Loading embedded: bootcode4.bin
|
|
|
|
+ Second stage boot server
|
|
|
|
+ Loading embedded: start4.elf
|
|
|
|
+ File read: start4.elf
|
|
|
|
+ Second stage boot server done
|
|
|
|
+
|
|
|
|
+- a USB mass storage device should show up (the CM4 eMMC memory), proceed
|
|
|
|
+ as described above to copy sdcard.img to it
|
|
|
|
+- power down CM4/IO Board
|
|
|
|
+- remove jumper on IO Board header J2 to re-enable eMMC boot
|
|
|
|
+- power up CM4/IO Board
|