Difference between revisions of "Advanced User Section"

From StereoPi Wiki
Jump to navigation Jump to search
m (Upload image to EMMC over Micro USB (CM1, CM3 non-Lite))
m (Upload image to EMMC over Micro USB (CM1, CM3 non-Lite))
Line 1: Line 1:
 
== Upload image to EMMC over Micro USB (CM1, CM3 non-Lite) ==
 
== Upload image to EMMC over Micro USB (CM1, CM3 non-Lite) ==
 +
 
'''Important notice!'''
 
'''Important notice!'''
  
In StereoPi schematics we used reference solution from the Raspberry Pi Development board for eMMC and micro SD connection. Both eMMC and micro SD use the same SDIO lines. It means you can use '''either eMMC, or micro SD card'''. If you insert eMMC-equipped Compute Module to the StereoPi, and also insert micro SD card, system won't boot.
+
In StereoPi schematics we used the reference solution from the Raspberry Pi Development board for eMMC and micro SD connections. Both eMMC and micro SD use the same SDIO lines. It means you can use '''either an eMMC or a micro SD card'''. If you insert an eMMC-equipped Compute Module into the StereoPi and also insert a micro SD card, the system won't boot.
  
To upload Linux image to eMMC, follow these steps:
+
To upload a Linux image onto an eMMC follow these steps:
  
# Disconnect all equipment from the StereoPi, except Compute Module. Power cable should be disconnected too.
+
# Disconnect all equipment from the StereoPi except the Compute Module. The power cable should be disconnected as well.
# Find 2 pins, marked "A" [[StereoPi Specifications#StereoPi Pinout|on this picture]]. 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.
+
# Find the 2 pins marked 'A' [[StereoPi Specifications#StereoPi Pinout|on this picture]] and put a jumper on them. If you have no jumper you can use the additional power cable from the StereoPi kit. Put the white connector on this pair of pins and connect the wires with each other.
# 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.
+
# Take a USB to micro USB cable. Connect the USB end to your computer and the micro USB end to the StereoPi. The StereoPi's LEDs will light up regardless of the power switch position. Please note: while the jumper is connected StereoPi will not boot. It's the expected behaviour in this mode.
# Under Windows, run [https://github.com/raspberrypi/usbboot/raw/master/win32/rpiboot_setup.exe 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 [https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md official Raspberry Pi eMMC upload manual here].
+
# Under Windows, run [https://github.com/raspberrypi/usbboot/raw/master/win32/rpiboot_setup.exe rpiboot.exe]. After that you will see a new disk appear in the file manager. That's your eMMC. Now you can write a Linux image onto it the same way you would with a micro SD card. If you're curious about what rpiboot.exe is, please read the [https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md official Raspberry Pi eMMC upload manual here].
# Now you can remove jumper and disconnect micro USB cable. You can connect your equipment and boot up StereoPi.
+
# Now you can remove the jumper and disconnect the micro USB cable. You can connect your equipment back and boot up StereoPi.
Please remember, that while micro USB powering StereoPi disconnects LAN and USB ports. Please use power cable for powering.
+
Please remember that while StereoPi is powered through micro USB the LAN and USB ports are disabled. Please use the power cable for the ports to work.
  
 
Additional notices.  
 
Additional notices.  
# 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.
+
# If you upload our latest S.L.P. image (which takes just 2 Gb on the eMMC), then during first boot the system will format all the remaining eMMC space (~30 Gb if you use a 32Gb eMMC CM3) to FAT32 and will use this space for image and video storage.
# 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.
+
# To download the recorded files you can use the administration panel with the file manager. You can also connect your eMMC to a computer the same way you did for firmware upload. You can also use a USB flash drive as alternative storage for the StereoPi.
 +
 
 +
== GPIO pinout notice ==
 +
 
 +
To preserve Pi hats compatibility (electrical and physical) we kept the original Raspberry Pi GPIOs but rotated them 180 degrees.
  
 
== GPIO pinout notice ==
 
== GPIO pinout notice ==

Revision as of 22:40, 17 May 2019

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

Important notice!

In StereoPi schematics we used the reference solution from the Raspberry Pi Development board for eMMC and micro SD connections. Both eMMC and micro SD use the same SDIO lines. It means you can use either an eMMC or a micro SD card. If you insert an eMMC-equipped Compute Module into the StereoPi and also insert a micro SD card, the system won't boot.

To upload a Linux image onto an eMMC follow these steps:

  1. Disconnect all equipment from the StereoPi except the Compute Module. The power cable should be disconnected as well.
  2. Find the 2 pins marked 'A' on this picture and put a jumper on them. If you have no jumper you can use the additional power cable from the StereoPi kit. Put the white connector on this pair of pins and connect the wires with each other.
  3. Take a USB to micro USB cable. Connect the USB end to your computer and the micro USB end to the StereoPi. The StereoPi's LEDs will light up regardless of the power switch position. Please note: while the jumper is connected StereoPi will not boot. It's the expected behaviour in this mode.
  4. Under Windows, run rpiboot.exe. After that you will see a new disk appear in the file manager. That's your eMMC. Now you can write a Linux image onto it the same way you would with a micro SD card. If you're curious about what rpiboot.exe is, please read the official Raspberry Pi eMMC upload manual here.
  5. Now you can remove the jumper and disconnect the micro USB cable. You can connect your equipment back and boot up StereoPi.

Please remember that while StereoPi is powered through micro USB the LAN and USB ports are disabled. Please use the power cable for the ports to work.

Additional notices.

  1. If you upload our latest S.L.P. image (which takes just 2 Gb on the eMMC), then during first boot the system will format all the remaining eMMC space (~30 Gb if you use a 32Gb eMMC CM3) to FAT32 and will use this space for image and video storage.
  2. To download the recorded files you can use the administration panel with the file manager. You can also connect your eMMC to a computer the same way you did for firmware upload. You can also use a USB flash drive as alternative storage for the StereoPi.

GPIO pinout notice

To preserve Pi hats compatibility (electrical and physical) we kept the original Raspberry Pi GPIOs but rotated them 180 degrees.

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 install.sh file that is ready after you download and untar the tarball. The install.sh 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."
       LIBEDGETPU_SUFFIX=arm32
       HOST_GNU_TYPE=arm-linux-gnueabihf
   elif [[ "${MODEL}" == "Raspberry Pi 3 Model B Plus Rev"* ]]; then
       info "Recognized as Raspberry Pi 3 B+."
       LIBEDGETPU_SUFFIX=arm32
       HOST_GNU_TYPE=arm-linux-gnueabihf
   elif [[ "${MODEL}" == "Raspberry Pi Compute Module 3 Plus Rev"* ]]; then
       info "Recognized as Raspberry Pi CM3+."
       LIBEDGETPU_SUFFIX=arm32
       HOST_GNU_TYPE=arm-linux-gnueabihf
   fi

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

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