Skip to content

Commit 9324fd7

Browse files
timpelwell
authored andcommitted
Add native Raspberry Pi Imager port - beta
1 parent 07392b7 commit 9324fd7

5 files changed

Lines changed: 33 additions & 11 deletions

File tree

Readme.md

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,16 @@ embedded versions of bootcode.bin and start.elf are used to enable the MSD behav
1010

1111
For more information run 'rpiboot -h'
1212

13-
## Compute Module 4
14-
On Compute Module 4 the EMMC disable jumper (GPIO 40) must be fitted to switch
15-
the ROM to usbboot mode. Otherwise, the SPI EEPROM bootloader image will be loaded
16-
instead.
17-
1813
## Building
1914

2015
Clone this on your Pi or an Ubuntu linux machine
2116

2217
```
23-
$ git clone --depth=1 https://github.com/raspberrypi/usbboot
24-
$ cd usbboot
25-
$ sudo apt install libusb-1.0-0-dev
26-
$ make
27-
$ sudo ./rpiboot
18+
git clone --depth=1 https://github.com/raspberrypi/usbboot
19+
cd usbboot
20+
sudo apt install libusb-1.0-0-dev
21+
make
22+
sudo ./rpiboot
2823
```
2924

3025
## Running your own (not MSD) build
@@ -37,8 +32,31 @@ you can build an initramfs into the kernel, add an initramfs to the boot directo
3732
other interface to the filesystem.
3833

3934
```
40-
$ sudo ./rpiboot -d boot
35+
sudo ./rpiboot -d boot
4136
```
4237

4338
This will serve the boot directory to the Raspberry Pi Device.
4439

40+
## Compute Module 4
41+
On Compute Module 4 EMMC-DISABLE / nRPIBOOT (GPIO 40) must be fitted to switch the ROM to usbboot mode.
42+
Otherwise, the SPI EEPROM bootloader image will be loaded instead.
43+
44+
### Raspberry Pi Imager - BETA
45+
The Raspberry Pi Imager can be run natively on the CM4 providing a GUI for downloading and installing the operating system.
46+
47+
Beta notes:
48+
* The current version runs rpi-update upon completion in order to update the firwamre and kernel to support NVMe.
49+
* uart_2ndstage is enabled
50+
* The HDMI display is limited to 1080p to avoid potential problems with cables etc if a 4K display is attached.
51+
52+
For NVMe boot update the bootloader first:
53+
```
54+
sudo ./rpiboot -d nvme
55+
```
56+
57+
Run Raspberry Pi Imager:
58+
```
59+
sudo ./rpiboot -d imager
60+
```
61+
62+
Once the imager is running you will be prompted to remove the micro-usb cable and connect a mouse.

imager/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.h

imager/boot.img

42 MB
Binary file not shown.

imager/bootcode4.bin

119 KB
Binary file not shown.

imager/config.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
boot_ramdisk=1
2+
uart_2ndstage=1
3+

0 commit comments

Comments
 (0)