Commit 15aac0cd08039ac28225d5820c38c4ce733f0cd8

Authored by Tim Gover
1 parent bff2516f

mass-storage-gadget: Update & move source repo to official Raspberry Pi buildroot fork

mass-storage-gadget/README.md
... ... @@ -42,3 +42,34 @@ N.B. This takes a few seconds longer to initialise than the
42 42 previous mass storage implementation. However, the write speed
43 43 should be much faster now that all of the file-system code
44 44 is running on the ARM processors.
  45 +
  46 +## Source code
  47 +The buildroot configuration and supporting patches is available on
  48 +the [mass-storage-gadget](https://github.com/raspberrypi/buildroot/tree/mass-storage-gadget)
  49 +branch of the Raspberry Pi [buildroot](https://github.com/raspberrypi/buildroot) repo.
  50 +
  51 +### Building
  52 +```bash
  53 +git clone --branch mass-storage-gadget git@github.com:raspberrypi/buildroot.git
  54 +cd buildroot
  55 +make raspberrypicm4io_initrd_defconfig
  56 +make
  57 +```
  58 +
  59 +The output is written to `output/target/images/sdcard.img` and can be copied
  60 +to `boot.img`
  61 +
  62 +Optional:
  63 +Load time can be reduced by optmizing the size of the sdcard.img as
  64 +follows (run as root).
  65 +
  66 +```bash
  67 +mkdir -p source-files
  68 +kpartx -av sdcard.img
  69 +mount /dev/mapper/loop0p1 source-files/
  70 +usbboot/tools/make-boot-image -d source-files/ -o boot.img
  71 +umount source-files
  72 +kpartx -dv sdcard.img
  73 +dmsetup remove /dev/mapper/loop0p1
  74 +losetup -D
  75 +```
... ...
mass-storage-gadget/boot.img
No preview for this file type