Difference between revisions of "Advanced User Section"
Realizator (talk | contribs) m (→Upload image to EMMC over Micro USB (CM1, CM3 non-Lite)) |
Realizator (talk | contribs) m |
||
(One intermediate revision by the same user not shown) | |||
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 | + | 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 upload a Linux image onto an eMMC follow these steps: |
− | # Disconnect all equipment from the StereoPi | + | # Disconnect all equipment from the StereoPi except the Compute Module. The power cable should be disconnected as well. |
− | # Find 2 pins | + | # 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 | + | # 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 | + | # 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 | + | 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 | + | # 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. | + | # 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 == | == GPIO pinout notice == | ||
− | To | + | To preserve Pi hats compatibility (electrical and physical) we kept the original Raspberry Pi GPIOs but rotated them 180 degrees. |
[[File:Stereopi-gpio.png|none|600px|StereoPi GPIO]] | [[File:Stereopi-gpio.png|none|600px|StereoPi GPIO]] |
Revision as of 23:45, 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:
- Disconnect all equipment from the StereoPi except the Compute Module. The power cable should be disconnected as well.
- 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.
- 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 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.
- 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.
- 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 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.
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.