diff --git a/Readme.md b/Readme.md index 6622f67..ec416ec 100644 --- a/Readme.md +++ b/Readme.md @@ -10,21 +10,16 @@ embedded versions of bootcode.bin and start.elf are used to enable the MSD behav For more information run 'rpiboot -h' -## Compute Module 4 -On Compute Module 4 the EMMC disable jumper (GPIO 40) must be fitted to switch -the ROM to usbboot mode. Otherwise, the SPI EEPROM bootloader image will be loaded -instead. - ## Building Clone this on your Pi or an Ubuntu linux machine ``` -$ git clone --depth=1 https://github.com/raspberrypi/usbboot -$ cd usbboot -$ sudo apt install libusb-1.0-0-dev -$ make -$ sudo ./rpiboot +git clone --depth=1 https://github.com/raspberrypi/usbboot +cd usbboot +sudo apt install libusb-1.0-0-dev +make +sudo ./rpiboot ``` ## 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 other interface to the filesystem. ``` -$ sudo ./rpiboot -d boot +sudo ./rpiboot -d boot ``` This will serve the boot directory to the Raspberry Pi Device. +## Compute Module 4 +On Compute Module 4 EMMC-DISABLE / nRPIBOOT (GPIO 40) must be fitted to switch the ROM to usbboot mode. +Otherwise, the SPI EEPROM bootloader image will be loaded instead. + +### Raspberry Pi Imager - BETA +The Raspberry Pi Imager can be run natively on the CM4 providing a GUI for downloading and installing the operating system. + +Beta notes: +* The current version runs rpi-update upon completion in order to update the firwamre and kernel to support NVMe. +* uart_2ndstage is enabled +* The HDMI display is limited to 1080p to avoid potential problems with cables etc if a 4K display is attached. + +For NVMe boot update the bootloader first: +``` +sudo ./rpiboot -d nvme +``` + +Run Raspberry Pi Imager: +``` +sudo ./rpiboot -d imager +``` + +Once the imager is running you will be prompted to remove the micro-usb cable and connect a mouse. diff --git a/imager/.gitignore b/imager/.gitignore new file mode 100644 index 0000000..424c745 --- /dev/null +++ b/imager/.gitignore @@ -0,0 +1 @@ +*.h diff --git a/imager/boot.img b/imager/boot.img new file mode 100644 index 0000000..491dcf1 --- /dev/null +++ b/imager/boot.img diff --git a/imager/bootcode4.bin b/imager/bootcode4.bin new file mode 100644 index 0000000..17f66d0 --- /dev/null +++ b/imager/bootcode4.bin diff --git a/imager/config.txt b/imager/config.txt new file mode 100644 index 0000000..68a4143 --- /dev/null +++ b/imager/config.txt @@ -0,0 +1,3 @@ +boot_ramdisk=1 +uart_2ndstage=1 +