Commit 879641fc1503656d3173eeb7928783fd0fc512de

Authored by tim
1 parent 09852a98

Readme: Add docs for examining the contents of boot.img

Showing 1 changed file with 18 additions and 0 deletions
Readme.md
@@ -121,6 +121,24 @@ sudo ../tools/make-boot-image -d secure-boot-files -o boot.img -b pi4 @@ -121,6 +121,24 @@ sudo ../tools/make-boot-image -d secure-boot-files -o boot.img -b pi4
121 121
122 The maximum supported size for boot.img is currently 96 megabytes. 122 The maximum supported size for boot.img is currently 96 megabytes.
123 123
  124 +#### Verify the boot image
  125 +To verify that the boot image has been created correctly use losetup to mount the .img file.
  126 +
  127 +```bash
  128 +sudo su
  129 +mkdir -p boot-mount
  130 +LOOP=$(losetup -f)
  131 +losetup -f boot.img
  132 +mount ${LOOP} boot-mount/
  133 +
  134 + echo boot.img contains
  135 +find boot-mount/
  136 +
  137 +umount boot-mount
  138 +losetup -d ${LOOP}
  139 +rmdir boot-mount
  140 +```
  141 +
124 #### Sign the boot image 142 #### Sign the boot image
125 ```bash 143 ```bash
126 ../tools/rpi-eeprom-digest -i boot.img -o boot.sig -k "${KEY_FILE}" 144 ../tools/rpi-eeprom-digest -i boot.img -o boot.sig -k "${KEY_FILE}"