Getting CM3 ready for Slice using a Mac


#1

Hello everyone,

I wonder if anyone has gotten their CM3 ready for Slice using a Mac. I see some suggestions for using Windows but I have no access to a Windows machine. Any help will be greatly appreciated.

If there is a post somewhere I wasn’t able to find, I’d greatly appreciate it if someone can find it out for me.

Thanks !


#2

rpiboot does not work on the Mac for BCM2835, due to an bug in the usb-controller of the BCM2835.
This affects the original CM. The bug is fixed on the BCM2837, so it should work with the CM3.

From https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md:

Note There is a bug in the BCM2835 bootloader which returns a slightly incorrect USB packet to the host.
Most USB hosts seem to ignore this benign bug and work fine; we do, however, see some USB ports that
don’t work due to this bug. We don’t quite understand why some ports fail, as it doesn’t seem to be
correlated with whether they are USB2 or USB3 (we have seen both types working), but it’s likely to be
specific to the host controller and driver. This bug has been fixed in BCM2837.

I just build rpiboot on my MAC and used it to make the eMMC of the CM3 available as an 3.9Gb
external drive. Works fine.


#3

If you can guide me through the steps it would be greatly helpful, as the instructions on the weblink didn’t quite work for me.


#4

I guess the major problem is building rpiboot under OSX.
I have used macports (https://www.macports.org) to get the necessary tools.
Alternatively you can use homebrew (https://brew.sh).

  • Install macports following the instructions on the macports site (you’ll also need XCode and XCode Command Tools).
  • You need to install the following packages: git, libusb and libusb-devel
  • Get the rpiboot source from https://github.com/raspberrypi/usbboot and build it. Note you havel already installed libusb-devel above.
  • Then you can run it to make your CM3 eMMC available as external disk to your Mac.
  • To put your CM3 (assumed already installed in your Slice) into programming mode, connect the Slice to your Mac using the micro-USB cable and then power your Slice. Run rpiboot. Suggest to use ‘rpiboot -v’ so you can see what is happening.
  • If rpiboot completes successfully the eMMC will show up as an external disk and OSX will probably not recognize its format and propose to initialize it. Cancel this.
  • The flash the libreelec build use the ‘dd’ command or the Libreelec installer.
  • Using the LibreElec installer (https://libreelec.tv/downloads/) is probably easier because you can select Slice(CM3) and it will select the latest build for you.

Good luck


#5

Thanks for your pointers. I ended up doing the whole thing on an idle Raspberry Pi 2 and it worked like a charm !


#6

Hi, Im trying to upgrade to aCM3, and am following you’re instructions. Please be aware I’m not an expert so am a bit lost. May I ask you some questions.
I have installed, X Code, Xcode Command, and Mac ports.

  1. Where do I obtain the packages : git,libusb and libusb-devel?
  2. How do I build the rpiboot source that you mention that i obtain from https://github.com/raspberrypi/usbboot?

Like I said i’m no computer expert so need help

thanks
Colin


#7

Instructions have been posted here before. In short:
https://libreelec.tv/downloads/

Choose FiveNinjas Slice, and it will provide instructions. Using the tool, it will grab the latest OS.