Advanced User Section

From StereoPi Wiki
Revision as of 11:48, 14 May 2019 by Realizator (talk | contribs)
Jump to navigation Jump to search

Upload image to EMMC over Micro USB (CM1, CM3 non-Lite)

  1. Disconnect all equipment from the StereoPi, except Compute Module. Power cable should be disconnected too.
  2. Find 2 pins, marked "A" on this picture. Actually there are 2 pins, but you can see 3 on the picture (I'll update this Wiki image in the nearest time). You need to put a jumper on them. If you have no jumper, you may use additional power cable from the StereoPi kit. Put white connector on this pair of pins, and connect wires with each other.
  3. Take USB to micro USB cable. Connect USB to your computer, and micro USB to the StereoPi. StereoPi will light up LEDs, regardless of power switch position. Please note: while jumper is connected, StereoPi will not boot. It is Ok for this mode.
  4. Under Windows, run rpiboot.exe After that you will see new disk appears in file manager. That is your eMMC. Now you can write Linux image the same way, as yo do it with the micro SD card. If you're curious what is a rpiboot.exe - please look at the official Raspberry Pi eMMC upload manual here.
  5. Now you can remove jumper and disconnect micro USB cable. You can connect your equipment and boot up StereoPi.

Please remember, that while micro USB powering StereoPi disconnects LAN and USB ports. Please use power cable for powering.

Additional notices.

  1. If you will upload our latest S.L.P. image (which takes just 2 Gb of eMMC), then during 1st boot system will format all other eMMC space (~30 Gb if you use 32Gb eMMC CM3) to Fat32, and will use this space for image and video recording.
  2. To download recorded files you can use administration panel with the file manager. Also you can connect your eMMC to the computer the way you used for firmware upload. Also you may use USB flash dongle as alternative storage for the StereoPi.

GPIO pinout notice

To save Pi hats compatibility (electrical and physical) we kept original Raspberry Pi GPIOs, but rotated them 180 degree.

StereoPi GPIO

Google Coral Installation with Compute Modules

If you're planning to install Google's Coral Accelerator with EdgeTPU support, you will need to edit the file that is ready after you download and untar the tarball. The script checks

   cat /sys/firmware/devicetree/base/model

and compares that string to the stored strings. The Compute Module is not listed among them. I have included here the entire section with the Compute Module's Model Line included:

   if [[ "${MODEL}" == "Raspberry Pi 3 Model B Rev"* ]]; then
       info "Recognized as Raspberry Pi 3 B."
   elif [[ "${MODEL}" == "Raspberry Pi 3 Model B Plus Rev"* ]]; then
       info "Recognized as Raspberry Pi 3 B+."
   elif [[ "${MODEL}" == "Raspberry Pi Compute Module 3 Plus Rev"* ]]; then
       info "Recognized as Raspberry Pi CM3+."

Save that and run the script. Installation of EdgeTPU will be successfully completed.

Thanks to Dave Xanatos for providing this guide in our forum.