freebsd / crochet

Build FreeBSD images for RaspberryPi, BeagleBone, PandaBoard, and others.
BSD 2-Clause "Simplified" License
609 stars 187 forks source link

Support for Raspberry Pi Compute Module 3 Lite #214

Closed ZakSN closed 6 years ago

ZakSN commented 6 years ago

These commits add a directory for the Raspberry Pi Compute Module 3 Lite and create README and setup.sh files for the CM3. The setup script is mostly identical to the RPi3 setup script except that a different device tree is fetched and the sysutils/rpi-firmware port is used for firmware instead of sysutils/u-boot-rpi3. The u-boot-rpi3 firmware does not seem to select the correct device tree during boot whereas rpi-firmware does.

EDIT: The image that this generates also works on the Raspberry Pi Compute Module 3 (with eMMC), with two caveats:

  1. Size: the image size must be kept <4GB since the Compute Module 3 only has 4GB of embedded flash.

  2. Difficult to flash eMMC: The official method for flashing the CM3 only officially works on Debian-based distros (or Cygwin). This means that the CM3 can be reliably flashed from an RPi running Raspbian. However rpiboot is not reliable on FreeBSD. I've gotten it to work on one FreeBSD computer, but not others for unclear reasons. Presumably due to differing versions of libusb...

With the above in mind board/RaspberryPiCM3 could be added as a link to board/RaspberryPiCM3L

kientzle commented 6 years ago

Thanks!