Open main menu

Changes

NASPi CM4-M2

200 bytes added, 19:39, 26 July 2023
Please follow the steps below
===1. Flash OS into the micro SD card===
If you use CM4 without emmc, you mush purchase a micro sd memory case, then follow the instructions here, a minimum 16 Gb class 10 memory card is recommended.
Please refer ===Flash OS Image===Due to [https://wwwCM4 has a version with eMMC, micro SD card is optional.raspberrypi.com/documentation/computers/getting-startedIf you are using the CM4 with eMMC, you don't need to buy a extra Micro SD card.html#installing-the-operating-system Official installation tutorial]
===2. Flash OS into You flash the eMMC of CM4===You can falsh OS image into the eMMC if you use the CM4 '''with eMMC''', refer different media according to the following step, thus you don't need purchase the Micro SD cardyour own situation.
====1. Short OTG Pin, refer to Flash OS into the picture belowmicro SD card====:A minimum 16 Gb class 10 memory card is recommended.
:Please refer to [[Filehttps:X515//www.raspberrypi.com/documentation/computers/getting-IMGstarted.html#installing-5890the-1.jpg|500px]operating-system Official installation tutorial]
====2. Connect Type-C OTG Flash OS into the eMMC of CM4(Optional)====:You can falsh OS into the eMMC if you use the CM4 '''with a Type-A eMMC''', refer to Type-C cable to your computerthe following step.
3:1. Power Short OTG Pin, refer to the device via PWR Type-C with your 5V Power adaperpicture below.
4. Then rerfer to :[[httpsFile://www.jeffgeerling.com/blog/2020/howX515-flashIMG-raspberry5890-pi-os-compute-module-4-emmc-usbboot this tutorial1.jpg|500px]] to flash raspberry pi OS
5:2. Remove the jumper of Connect Type-C OTG after flashing is complete, then restart with a Type-A to Type-C cable to your device;computer
:3. Power the device via PWR Type-C with your 5V Power adaper :4. Then rerfer to [https://www.jeffgeerling.com/blog/2020/how-flash-raspberry-pi-os-compute-module-4-emmc-usbboot this tutorial] to flash raspberry pi OS :5. Remove the jumper of OTG after flashing is complete, then restart your device; :'''PS:If you use CM4 with eMMC, then SD card cannot be used.'''
===3. Preconfigure Device for CM4===
We can preconfigure your CM4 device by plugging mico sd via sd reader into a windows computer / Pi. You should see the “boot” volume where we can preconfigure our CM4 to be working right from the start.
====3.1 Enable USB Ports====:When mounted in the IO board the USB ports will not function without making a change to config.txt and adding an overlay.
:Add the following line to config.txt:
dtoverlay=dwc2,dr_mode=host
:After adding this line the two USB ports (as well as the “External USB” header) will function the next time the CM4 boots.
====3.2 Enable SSH====:It's very useful to have SSH enabled when working with the Compute Module 4. It is enabled simply by creating an empty file named:
touch ssh
:in the root folder of the “boot” volume (the top-most folder of the drive where start4x.elf, fixup.dat and those files are located)
:Now when the Pi starts up SSH will automatically be enabled!
:PS: This step is optional, you can also enable ssh through the <code>raspi-config</code> program after the device boot
====3.3 Preconfigure WiFi / Wireless(Optional)====:You can also preconfigure the Compute Module 4 (and any Pi) by creating wpa-supplicant.conf at the base of the “boot” volume like we did with “ssh” file. In fact, you can setup your wifi after you boot up.
:Create a new file named wpa-supplicant.conf that contains the following:
<pre>
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev