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

From Waveshare Wiki
Jump to: navigation, search
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<font color="#ff0000">EMMC version cannot use SD card for booting, please note it</font><br>
+
<div class="wiki-pages jet-green-color">
 +
=Steps=
 +
<big><font color="#ff0000">Please note that the EMMC version does not support being booted from the SD card. </font></big><br>
 +
==Image Download==
 +
* Download the latest Raspberry Pi image from [https://www.raspberrypi.org/downloads/raspberry-pi-os/ Raspberry Pi Website].
 +
:[[FILE:Compute_Module_4_IO_Board_32.png|600px]]
 +
*The option "Raspberry Pi OS with desktop and recommended software" is recommended for EMMC 16G or CM4 lite 16G above memory cards.
 +
==Download rpiboot==
 +
*Download and open the [https://files.waveshare.com/upload/f/f3/Rpiboot_setup.zip rpiboot software] with administrator authority to install the driver and start the tool.
 +
*After the installation is successful, there is an application of rpiboot.exe in the installation directory.<br>
 +
:[[File:CM4 Burn EMMC 3.png|400px]]
 +
==Enter Writing Mode==
 +
<ol><li>Connect BOOT and GND, set the switch to ON, or just connect the USB-C port. You can check the product page to understand the location of the BOOT pin, for example:
 +
:[[FILE:CM4_Burn_EMMC_1.png|900px]]
 +
</li>
 +
<li>Connect the Micro USB/Type C interface (SLAVE port) of the carrier board to the host PC, then connect a power adapter to the cattier board.<br>
 +
*If you use the following products, you do not need to connect the power adapter:
 +
<pre>
 +
Compute Module 4 PoE Board
 +
Compute Module 4 IO Board
 +
CM4-DUAL-ETH-BASE
 +
Compute Module 4 PoE 4G Board
 +
</pre>
 +
*If no need external power supply:
 +
<pre>
 +
CM4-IO-BASE-B
 +
CM4-IO-BASE-A
 +
Compute Module 4 PoE Board (B)
 +
CM4-NANO-A
 +
CM4-NANO-B
 +
</pre>
 +
</li>
 +
*After connecting, the boards should be recognized as BCMxxx devices on Windows PC. <br>
 +
:[[File:CM4 Burn EMMC 4.png|200px]]
 +
<li>Run the rpiboot.exe as administrator (The software in the installation directory of Step 2). <br>
 +
:[[File:CM4 Burn EMMC 5.png|400px]]
 +
</li>
 +
<li>Then the boards will be recognized as a portable disk, just format and write it with a new image.<br>
 +
:[[File:CM4 Burn EMMC 6.png|200px]]
 +
<font color="#ff0000">Note: If your PC doesn't recognize the BCMxxx device, please check the connection again. Note that the USB cable used should be an OTG cable.</font>
 +
<font color="#ff00ff">*If you cannot write the image successfully, please try:
 +
*Use Windows 10 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.<br/>[[File:Compute-Module-4-5.png|800px]]
 +
**Connect a power adapter to the Power interface.
 +
**Change to another USB OTG cable.
 +
**Change to another USB port of the PC.
 +
**Try to restart your host PC.
 +
**Remount the CM4 board and try it again.
 +
**Try with another PC.
 +
</font>
 +
</li>
 +
</ol>
  
#Download the newest Raspberry Pi image from[https://www.raspberrypi.org/downloads/raspberry-pi-os/ Raspberry Pi Website].
+
==Format EMMC==
#:[[FILE:Compute_Module_4_IO_Board_3.png|600px]]
+
*Format the SD card by [https://files.waveshare.com/upload/d/d7/Panasonic_SDFormatter.zip SDFormatter.exe software] <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.
+
[[File:SDFormatter.png]]<br>
#Download the [https://www.waveshare.com/w/upload/f/f3/Rpiboot_setup.zip rpiboot software] and install it as administrator.
+
*Also, you can use the disk manager in WIN to set or delete the partition, just set the new partition after deleting the partition:
#Connect BOOT and GND, set the switch to ON, or just connect the USB C port. You can check the product page to understand the location of the BOOT pin, for example:
+
*Right-click My Computer -> Manager -> Disk Manager -> Find the new disk descriptor (Please select the correct one) -> Delete all partitions -> Create a partition (any file system) If you have programmed the system, there will be two disk descriptors, all you need to do is format it directly or delete the partition.
#:[[FILE:CM4_Burn_EMMC_1.png|900px]]
+
==Write Image==
#Connect the Micro USB/Type C interface(SLAVE port) of carrier board to host PC, then connect a power adapter to the cattier board.
+
<ol>
#: If you use the following products, you do not need to connect the power adapter:
+
<li>Write the Raspberry Pi image by [https://files.waveshare.com/upload/7/76/Win32DiskImager.zip Win32DiskImager.exe software].<br></li>
#*CM4-IO-BASE-B
+
<li>Choose the image file and click "Write" to start. It may prompt whether to format it after writing, please ignore it.<br>[[File:Win32DiskImager.png]]</li>
#*CM4-IO-BASE-A
+
<li>After writing, in My Computer, a USB flash driver descriptor is recognized.</li>
#*Compute Module 4 PoE Board (B)
+
<li>Note:
#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>
+
*If you use the latest Raspberry Pi OS (image after October 30, 2021) USB2.0 is OTG mode by default, CM4 will report an error: <br><pre>config failed, hub doesn't have any ports! (err -19)</pre>
#:<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>
+
*However, USB is still available. If you want to remove this error, remove "otg_mode=1" in [cm4] of config.txt, and add "dtoverlay=dwc2, dr_mode=host" (USB cannot be recognized without adding it). <br><pre>dtoverlay=dwc2,dr_mode=host</pre>[[FILE:CM4 Burn EMMC_12.png|800px]]<br>
#:<font color="#ff00ff">If you cannot write the image successfully, please try:
+
</li>
#*Use Windows10 PC instead of Windows 7 or Linux. The other two OS are unstable as feedback.
+
</ol>
#*Check if you write the eMMC version but not the Lite version. The eMMC version has one more chip than the Lite version.
+
 
#:[[File:Compute-Module-4-5.png|800px]]
+
==Reboot==
#*Connect a power adapter to the Power interface.
+
*Power off after writing images, just disconnect it from the computer. Turn off the BOOT key or switch it off. Then reboot it.
#*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.</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.
 

Latest revision as of 08:07, 28 April 2024

Steps

Please note that the EMMC version does not support being booted from the SD card.

Image Download

Compute Module 4 IO Board 32.png
  • The option "Raspberry Pi OS with desktop and recommended software" is recommended for EMMC 16G or CM4 lite 16G above memory cards.

Download rpiboot

  • Download and open the rpiboot software with administrator authority to install the driver and start the tool.
  • After the installation is successful, there is an application of rpiboot.exe in the installation directory.
CM4 Burn EMMC 3.png

Enter Writing Mode

  1. Connect BOOT and GND, set the switch to ON, or just connect the USB-C port. You can check the product page to understand the location of the BOOT pin, for example:
    CM4 Burn EMMC 1.png
  2. Connect the Micro USB/Type C interface (SLAVE port) of the carrier board to the 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:
    Compute Module 4 PoE Board
    Compute Module 4 IO Board
    CM4-DUAL-ETH-BASE
    Compute Module 4 PoE 4G Board
    
    • If no need external power supply:
    CM4-IO-BASE-B
    CM4-IO-BASE-A
    Compute Module 4 PoE Board (B)
    CM4-NANO-A
    CM4-NANO-B
    
    • After connecting, the boards should be recognized as BCMxxx devices on Windows PC.
    CM4 Burn EMMC 4.png
  3. Run the rpiboot.exe as administrator (The software in the installation directory of Step 2).
    CM4 Burn EMMC 5.png
  4. Then the boards will be recognized as a portable disk, just format and write it with a new image.
    CM4 Burn EMMC 6.png
    Note: If your PC doesn't recognize the BCMxxx device, please check the connection again. Note that the USB cable used should be an OTG cable. *If you cannot write the image successfully, please try:
    • Use Windows 10 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 the PC.
      • Try to restart your host PC.
      • Remount the CM4 board and try it again.
      • Try with another PC.

Format EMMC

SDFormatter.png

  • Also, you can use the disk manager in WIN to set or delete the partition, just set the new partition after deleting the partition:
  • Right-click My Computer -> Manager -> Disk Manager -> Find the new disk descriptor (Please select the correct one) -> Delete all partitions -> Create a partition (any file system) If you have programmed the system, there will be two disk descriptors, all you need to do is format it directly or delete the partition.

Write Image

  1. Write the Raspberry Pi image by Win32DiskImager.exe software.
  2. Choose the image file and click "Write" to start. It may prompt whether to format it after writing, please ignore it.
    Win32DiskImager.png
  3. After writing, in My Computer, a USB flash driver descriptor is recognized.
  4. Note:
    • If you use the latest Raspberry Pi OS (image after October 30, 2021) USB2.0 is OTG mode by default, CM4 will report an error:
      config failed, hub doesn't have any ports! (err -19)
    • However, USB is still available. If you want to remove this error, remove "otg_mode=1" in [cm4] of config.txt, and add "dtoverlay=dwc2, dr_mode=host" (USB cannot be recognized without adding it).
      dtoverlay=dwc2,dr_mode=host
      CM4 Burn EMMC 12.png

Reboot

  • Power off after writing images, just disconnect it from the computer. Turn off the BOOT key or switch it off. Then reboot it.