Commit 9324fd7034b9d3606aed8a27da74d6d57e066e7e
Committed by
Phil Elwell
1 parent
07392b7c
Add native Raspberry Pi Imager port - beta
Showing
5 changed files
with
33 additions
and
11 deletions
Readme.md
| @@ -10,21 +10,16 @@ embedded versions of bootcode.bin and start.elf are used to enable the MSD behav | @@ -10,21 +10,16 @@ embedded versions of bootcode.bin and start.elf are used to enable the MSD behav | ||
| 10 | 10 | ||
| 11 | For more information run 'rpiboot -h' | 11 | For more information run 'rpiboot -h' |
| 12 | 12 | ||
| 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 | - | ||
| 18 | ## Building | 13 | ## Building |
| 19 | 14 | ||
| 20 | Clone this on your Pi or an Ubuntu linux machine | 15 | Clone this on your Pi or an Ubuntu linux machine |
| 21 | 16 | ||
| 22 | ``` | 17 | ``` |
| 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 | ||
| 28 | ``` | 23 | ``` |
| 29 | 24 | ||
| 30 | ## Running your own (not MSD) build | 25 | ## 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 | @@ -37,8 +32,31 @@ you can build an initramfs into the kernel, add an initramfs to the boot directo | ||
| 37 | other interface to the filesystem. | 32 | other interface to the filesystem. |
| 38 | 33 | ||
| 39 | ``` | 34 | ``` |
| 40 | -$ sudo ./rpiboot -d boot | 35 | +sudo ./rpiboot -d boot |
| 41 | ``` | 36 | ``` |
| 42 | 37 | ||
| 43 | This will serve the boot directory to the Raspberry Pi Device. | 38 | This will serve the boot directory to the Raspberry Pi Device. |
| 44 | 39 | ||
| 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
0 → 100644
| 1 | +*.h |
imager/boot.img
0 → 100644
No preview for this file type
imager/bootcode4.bin
0 → 100644
No preview for this file type
imager/config.txt
0 → 100644