Difference between revisions of "Write Image for Compute Module Boards eMMC version"

From Waveshare Wiki
Jump to: navigation, search
(Created page with "<!-- 1、 If your Compute Module 4 (CM4 hereafter) is the LITE version, you just need to write the image to Micro SD card like Raspberry Pi boards.<br> 2、 If your use the eM...")
 
Line 1: Line 1:
<!--
+
<font color="#ff0000">EMMC version cannot use SD card for booting, please note it</font><br>
1、 If your Compute Module 4 (CM4 hereafter) is the LITE version, you just need to write the image to Micro SD card like Raspberry Pi boards.<br>
+
 
2、 If your use the eMMC version, you need to connect the CM4 to PC by Micro USB cable, Download the [https://raw.githubusercontent.com/raspberrypi/usbboot/master/win32/rpiboot_setup.exe  rpiboot tools] and install it as administrator<br>
+
#Download the newest Raspberry Pi image from[https://www.raspberrypi.org/downloads/raspberry-pi-os/ Raspberry Pi Website].
3、 Download newest Raspberry Pi OS image from [https://www.raspberrypi.org/downloads/raspberry-pi-os/ Raspberry Pi Website].<br>
+
#:[[FILE:Compute_Module_4_IO_Board_3.png|600px]]
[[FILE:Compute_Module_4_IO_Board_3.png|600px]]<br>
+
#: If the memory of the eMMC of your board is small, we will recommend you to download the second version or the Lite version of the Raspberry Pi image.
If you use the eMMC version, you need to connect the CM4 to the IO board. Connect the <font color="#ff0000">BOOT </font> pin of IO board to the <font color="#ff0000">GND  </font> . Connect USB SLAVE Interface of IO board to PC. Connect 12V power adapter to IO Board. A device named BCMxxx is recognized, and you need to run the rpiboot software, to recognized eMMC of CM4 as an portable drive.<br>
+
#Download the [https://www.waveshare.com/w/upload/f/f3/Rpiboot_setup.zip  rpiboot software] and install it as administrator.
[[FILE:Compute-Module-4-1-1.png|600px]]<br>
+
#Connect the BOOT and GND, set the switch into ON. You can check the product page for the position of the BOOT pin, for example:
4、 Format SD card: You need to format the MicroSD card or the eMMC by SDFormatter.exe software.<br>
+
#:[[FILE:CM4_Burn_EMMC_1.png|800px]]
[[FILE:PI4-03.jpg]]<br>
+
#Connect the Micro USB/Type C interface(SLAVE port) of carrier board to host PC, then connect a power adapter to the cattier board.
5、 Write image: You need to write the image to Micro SD card or the eMMC by Win32DiskImager.exe software. Select the image file and click “Write”. Please DO NOT format it after formatting.<br>
+
#: If you use the following products, you do not need to connect the power adapter:
[[FILE:PI4-04.jpg]]<br>
+
#*CM4-IO-BASE-B
6、 Booting: Insert the Micro SD card into the card slot and connect the 12V power adapter. Power indicator turn solid red and the ACT is green and blink while booting.<br>
+
#*CM4-IO-BASE-A
If you use the eMMC version, don't forget to disconnect the nRPI_BOOT J2 jumpers when powering off and reboot.<br>
+
#*Compute Module 4 PoE Board (B)
<font color="#ff00ff">If you failed to write the eMMC, please try with the following steps:
+
#After connecting, the boards should be recognized as BCMxxx devices in Windows PC. Run the rpiboot.exe as administrator(The software in the installation directory of Step 2). Then the boards will be recognized as a portable disk, just format and write it with a new image.<br>
*User Windows PC instead of Windows 7 or Linux. It seems that Windows 7 or Linux PC is not stable for eMMC writing.
+
#:<font color="#ff0000">Note: If your PC didn't recognize the BCMxxx device, please check connection again. Note that the USB cable used should be an OTG cable.</font>
*Check your CM4, make sure that it is the eMMC version which has one more eMMC chip compare to the LITE version..
+
#:<font color="#ff00ff">If you cannot write the image successfully, please try:
[[File:Compute-Module-4-5.png|800px]]
+
#*Use Windows10 PC instead of Windows 7 or Linux. The other two OS are unstable as feedback.
*Note that you need to connect 12 power adapter to the Power port.
+
#*Check if you write the eMMC version but not the Lite version. The eMMC version has one more chip than the Lite version.
*Please change a USB cable for a try and make sure that the cable is data accessible.
+
#:[[File:Compute-Module-4-5.png|800px]]
*Change the USB port of the PC and try it again.
+
#*Connect a power adapter to the Power interface.
*Try to restart your PC.
+
#*Change to another USB OTG cable
*Re-connect the CM4 for a  try.
+
#*Change to another USB port of PC。
*Try with other PCs.
+
#*Try to restart your host PC
</font>
+
#*Remount the CM4 board and try it again.
-->
+
#*Try with another PC.</font>
 +
# Format the CM4 (the portable disk) by [https://{{SERVERNAME}}/w/upload/d/d7/Panasonic_SDFormatter.zip SDFormatter.exe software]
 +
#Write the Raspberry Pi image to the CM4 by[https://{{SERVERNAME}}/w/upload/7/76/Win32DiskImager.zip Win32DiskImager.exe software], Choose the image file and click "Write" to start. It may prompt to format the CM4 again after writing, just ignore it.
 +
#After writing, a disk named BOOT is recognized, go into the disk and modify the config.txt file. Add the line to the file: ''dtoverlay=dwc2,dr_mode=host''
 +
#To finish, eject the BOOT disk from the host PC. Disconnect the USB cable and power adapter, disconnect the BOOT, and set the switch into OFF. restart the board and go ahead with the examples.

Revision as of 12:48, 2 July 2021

EMMC version cannot use SD card for booting, please note it

  1. Download the newest Raspberry Pi image fromRaspberry Pi Website.
    Compute Module 4 IO Board 3.png
    If the memory of the eMMC of your board is small, we will recommend you to download the second version or the Lite version of the Raspberry Pi image.
  2. Download the rpiboot software and install it as administrator.
  3. Connect the BOOT and GND, set the switch into ON. You can check the product page for the position of the BOOT pin, for example:
    CM4 Burn EMMC 1.png
  4. Connect the Micro USB/Type C interface(SLAVE port) of carrier board to host PC, then connect a power adapter to the cattier board.
    If you use the following products, you do not need to connect the power adapter:
    • CM4-IO-BASE-B
    • CM4-IO-BASE-A
    • Compute Module 4 PoE Board (B)
  5. After connecting, the boards should be recognized as BCMxxx devices in Windows PC. Run the rpiboot.exe as administrator(The software in the installation directory of Step 2). Then the boards will be recognized as a portable disk, just format and write it with a new image.
    Note: If your PC didn't recognize the BCMxxx device, please check connection again. Note that the USB cable used should be an OTG cable.
    If you cannot write the image successfully, please try:
    • Use Windows10 PC instead of Windows 7 or Linux. The other two OS are unstable as feedback.
    • Check if you write the eMMC version but not the Lite version. The eMMC version has one more chip than the Lite version.
    Compute-Module-4-5.png
    • Connect a power adapter to the Power interface.
    • Change to another USB OTG cable
    • Change to another USB port of PC。
    • Try to restart your host PC
    • Remount the CM4 board and try it again.
    • Try with another PC.
  6. Format the CM4 (the portable disk) by SDFormatter.exe software
  7. Write the Raspberry Pi image to the CM4 byWin32DiskImager.exe software, Choose the image file and click "Write" to start. It may prompt to format the CM4 again after writing, just ignore it.
  8. After writing, a disk named BOOT is recognized, go into the disk and modify the config.txt file. Add the line to the file: dtoverlay=dwc2,dr_mode=host
  9. To finish, eject the BOOT disk from the host PC. Disconnect the USB cable and power adapter, disconnect the BOOT, and set the switch into OFF. restart the board and go ahead with the examples.