Difference between revisions of "Compute-Module-4"
Line 37: | Line 37: | ||
*If the CM4 you get has eMMC, you need to insert it on the IO board and then write the image use the IO Board. | *If the CM4 you get has eMMC, you need to insert it on the IO board and then write the image use the IO Board. | ||
**[https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md Guides of writing eMMC] | **[https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md Guides of writing eMMC] | ||
+ | |||
+ | ==CSI DSI== | ||
+ | CSI and DSI are disabled by default. I2C-10、I2C-11、I2C-0 should be used for Camera and DSI displays.<br> | ||
+ | Open a terminal and run the following commands:<br> | ||
+ | <pre> | ||
+ | sudo apt-get install p7zip-full | ||
+ | wget https://www.waveshare.com/w/upload/4/41/CM4_dt_blob.7z | ||
+ | 7z x CM4_dt_blob.7z -O./CM4_dt_blob | ||
+ | sudo chmod 777 -R CM4_dt_blob | ||
+ | cd CM4_dt_blob/ | ||
+ | #If you want to use both cameras and DSI0 | ||
+ | sudo dtc -I dts -O dtb -o /boot/dt-blob.bin dt-blob-disp0-double_cam.dts | ||
+ | #If you want to ue both cameras and DSI1 | ||
+ | sudo dtc -I dts -O dtb -o /boot/dt-blob.bin dt-blob-disp1-double_cam.dts | ||
+ | #HDMI1 is disabled if you use DSI interfaces for displayin. HDMI1 cannot work even thought you just built the file without connecting DSI display, please note it. | ||
+ | #If you want to enable the HDMI1, please remove the dt-blob.bin file with the command: '''sudo rm -rf /boot/dt-blob.bin''' | ||
+ | #Turn off IO Board and re-power the CM4 | ||
+ | </pre> | ||
+ | Connect Cameras and DSI display<br> | ||
+ | 1: Please first disconnect power off the IP Board when connecting.<br> | ||
+ | 2: Use [https://www.waveshare.com/CM-DSI-ADAPTER.htm CM-DSI-ADAPTER ] to connect Compute Module 4 PoE Board and DSI displays<br> | ||
+ | 3: Use[https://www.waveshare.com/RPi-Zero-v1.3-Camera-Cable.htm CSI adapter cable] to connect Compute Module 4 PoE Board and CSI cameras.<br> | ||
+ | 3: Connect the power adapter<br> | ||
+ | 4: Wait for booting.<br> | ||
+ | 5: If the DSI display cannot work, please check if you have added /boot/dt-blob.bin and reboot.<br> | ||
+ | 6: Please enable camera by raspi-config, choose Interfacing Options->Camera->Yes->Finish-Yesand reboot<br> | ||
+ | |||
+ | Reference: | ||
+ | |||
+ | Test RPi Camera:<br /> | ||
+ | Test video0: | ||
+ | sudo raspivid -t 0 -cs 0 | ||
+ | Test video1: | ||
+ | sudo raspivid -t 0 -cs 1 | ||
Revision as of 11:02, 4 March 2021
| ||
Compute Module 4
Raspberry Pi Compute Module 4, The Power Of Raspberry Pi 4 In A Compact Form Factor, Options For RAM / EMMC/ Wireless
- Dimension
Compute Module 4 IO Board
Raspberry Pi Compute Module 4 IO Board, A Development Platform And Reference Base-Board Design For CM4
- Dimension
Writing image
- If the CM4 you get is the Lite version, you just need to write an image to the SD card as you do for the Raspberry Pi board.
- If the CM4 you get has eMMC, you need to insert it on the IO board and then write the image use the IO Board.
CSI DSI
CSI and DSI are disabled by default. I2C-10、I2C-11、I2C-0 should be used for Camera and DSI displays.
Open a terminal and run the following commands:
sudo apt-get install p7zip-full wget https://www.waveshare.com/w/upload/4/41/CM4_dt_blob.7z 7z x CM4_dt_blob.7z -O./CM4_dt_blob sudo chmod 777 -R CM4_dt_blob cd CM4_dt_blob/ #If you want to use both cameras and DSI0 sudo dtc -I dts -O dtb -o /boot/dt-blob.bin dt-blob-disp0-double_cam.dts #If you want to ue both cameras and DSI1 sudo dtc -I dts -O dtb -o /boot/dt-blob.bin dt-blob-disp1-double_cam.dts #HDMI1 is disabled if you use DSI interfaces for displayin. HDMI1 cannot work even thought you just built the file without connecting DSI display, please note it. #If you want to enable the HDMI1, please remove the dt-blob.bin file with the command: '''sudo rm -rf /boot/dt-blob.bin''' #Turn off IO Board and re-power the CM4
Connect Cameras and DSI display
1: Please first disconnect power off the IP Board when connecting.
2: Use CM-DSI-ADAPTER to connect Compute Module 4 PoE Board and DSI displays
3: UseCSI adapter cable to connect Compute Module 4 PoE Board and CSI cameras.
3: Connect the power adapter
4: Wait for booting.
5: If the DSI display cannot work, please check if you have added /boot/dt-blob.bin and reboot.
6: Please enable camera by raspi-config, choose Interfacing Options->Camera->Yes->Finish-Yesand reboot
Reference:
Test RPi Camera:
Test video0:
sudo raspivid -t 0 -cs 0
Test video1:
sudo raspivid -t 0 -cs 1
Support
If you require technical support, please go to the Support page and open a ticket.