Changes

Jump to navigation Jump to search

NASPi CM4-2.5

2,472 bytes added, 15:56, 21 July 2023
==User Manual==
===How to installing Please follow the Operating System (CM4 without eMMC)?steps below===Refer to [https://www.raspberrypi1.com/documentation/computers/getting-started.html#installing-the-operating-system Official installation tutorial]===How to flash Flash OS onto into the SSD(Optional)micro SD card===Load OS into ssd and If you can get extremely fast running speeduse CM4 without emmc, you need to refer to the above steps to flash the OS into the Micro SD card firstly, then insrt the Micro mush purchase a micro sd card, turn on the devicememory case, and then click '''Applications''' =>'''Accessories''' =>'''SD Card Copier''', run follow the '''SD Card Copier''' programinstructions here, and copy the OS to the NVME ssd as shown in the figure belowa minimum 16 Gb class 10 memory card is recommended.
Please refer to [[Filehttps:Sd//www.raspberrypi.com/documentation/computers/getting-copoerstarted.html#installing-scrot.png]the-operating-system Official installation tutorial]
Click ===2. Flash OS into the eMMC of CM4 (CM4 with eMMC)===You can falsh OS into the eMMC if you use the CM4 '''Startwith eMMC''' , refer to run. Then shut downthe following step, unplug thus you don't need purchase the Micro SD card, and restart the device.
===How to flash OS onto the eMMC of CM4? (CM4 with eMMC)?===1. Short nBOOT OTG Pin, refer to the picture below.
[[File:X510X515-IMG-58865890-1.jpg|500px]]
2. Connect Type-C OTG with a Type-A to Type-C cable to your computer
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 nBOOT pin OTG after flashing is complete, then restart your device;
'''PS:If you use CM4 with eMMC, then SD card cannot be used.'''
===Power management & safe shutdown script installation3. Preconfigure Device for CM4===Refer At this point, we think you have successfully flashed the OS to [[XScript]]the storage media (mciro sd card or eMMC of CM4). If you attempt to boot now you will not have working USB ports, ssh, or any wireless configuration, so do not remove your SD card, proceed as follows. 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. ====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=hostAfter adding this line the two USB ports (as well as the “External USB” header) will function the next time the CM4 boots. ====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 ====Preconfigure WiFi / Wireless====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.
Create a new file named wpa-supplicant.conf that contains the following:<pre>ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=How netdevcountry=USupdate_config=1 network={ ssid="YourNetwork" psk="YourPassword"}</pre>When this file is created in the base of the “boot” volume it will automatically be applied to the Pi upon the next startup. Make sure to enable adjust your country=US line to your own country as this can impact what channels and functionality are available from your WiFi card! Then you can insert your micro sd card into the device & power on it.===4. Installing script===After the device is reboot, install the following script to get safe and software shutdown function: refer to [[XScript]] ===5. Enable OLED display===
Refer to [[How to enable OLED display]]
 
===6. Flash OS into the NVME SSD(Optional)===
Load OS into ssd and you can get extremely fast running speed, you need to refer to the above steps to flash the OS into the Micro SD card firstly, then insrt the Micro sd card, turn on the device, and then click '''Applications''' =>'''Accessories''' =>'''SD Card Copier''', run the '''SD Card Copier''' program, and copy the OS to the ssd as shown in the figure below.
 
[[File:Sd-copoer-scrot.png]]
 
Click '''Start''' to run. Then shut down, unplug the SD card, and restart the device.
 
<!--Add review function! -->

Navigation menu