embeded/raspberry pi2021. 6. 9. 13:48

rpiboot for windows

[링크 : https://github.com/raspberrypi/usbboot/raw/master/win32/rpiboot_setup.exe]

 

Compute Module 4

Ensure the Compute Module is fitted correctly installed on the IO board. It should lie flat on the IO board.
  • Make sure that nRPI_BOOT which is J2 (disable eMMC Boot) on the IO board is set to the 'EN' position.
  • Use a micro USB cable to connect the micro USB slave port J11 on IO board to the host device.
  • Do not power up yet.

[링크 : https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md]

 

CAM0 / DISP0 사용하려면 J6 점퍼를 세로로 두개 달아야 한다는데

SCL1/SDA1이 연결되는걸 봐서는 i2c-1을 점유하게 되는 듯?

CAM1 / DISP1은 i2c-0 인 듯.

[링크 : https://datasheets.raspberrypi.org/cm4io/cm4io-datasheet.pdf]

 

cm4

J2 disable eMMC Boot 점퍼 연결(중앙 산단의 점퍼)

usb slave 와 pc 연결(하단 우측 1/4 지점)

 

rpiboot ready 실행하고

 

cm4 전원을 켜면 이런저런 펌웨어 올리고 USB 메모리 스틱처럼 인식된다.

 

포맷하라는걸 봐서는 ext인가 싶긴한데 나중에 다른 모듈을  리눅스에서 연결은 해봐야 할 듯..

 

그럼 이제 이미지를 굽굽!

 

아니 왜.. uSD 보다 느리죠!?

 

아무튼 굽고 나서 다시 인식되면 boot 파티션이 인식되는데

dt-blob-dualcam.bin을 받아서 dt-blob.bin 으로 저장을 하면 dual CSI/DSI 쓸 준비 끝!

sudo wget https://raw.githubusercontent.com/raspberrypi/documentation/master/hardware/computemodule/dt-blob-dualcam.bin -O /boot/dt-blob.bin

[링크 : https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-camera.md]

 

켜보니 USB가 인식 안된다 (야이 그지 깽깽이들아!!!)

dt-blob.bin을 받으면서 config.txt 가장 끝에 이걸 추가해는 걸 추천!

dtoverlay=dwc2,dr_mode=host

[링크 : https://www.jeffgeerling.com/.../usb-20-ports-not-working-on-compute-module-4-check-your-overlays]

 

눼.. 메뉴얼 정독 안한 제 잘못입니다 ㅠㅠ

[링크 : https://datasheets.raspberrypi.org/cm4io/cm4io-datasheet.pdf]

 

부팅하고 나서 파티션을 보니 /dev/mmcblk0 으로 연결이 똭!

$ lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0      179:0    0 29.1G  0 disk
├─mmcblk0p1  179:1    0  256M  0 part /boot
└─mmcblk0p2  179:2    0 28.9G  0 part /
mmcblk0boot0 179:32   0    4M  1 disk
mmcblk0boot1 179:64   0    4M  1 disk

 

$ mount | grep mmc
/dev/mmcblk0p2 on / type ext4 (rw,noatime)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)

 

raspi-config 에서 camera on , i2c on 켠 상태면 아래와 같이 설정된다.

USB host를 사용하기 위한 dtoverlay와

CM4 보드에 장착된 RTC 및 팬 컨트롤러를 쓰기 위한 dtparam 설정은 파란색 으로 수동 추가해야 함.

$ cat /boot/config.txt
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
dtoverlay=dwc2,dr_mode=host
start_x=1
gpu_mem=128
dtparam=i2c_vc=on

 

 

일단 정상부팅되고 i2c도 다 올라왔나 보는데  i2c-0/1 뿐만 아니라 10/11이 추가되어있다.

pi@raspberrypi:~ $ i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~ $ i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~ $ i2cdetect -y 10
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- 0c -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 2f
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- 51 -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~ $ i2cdetect -y 11
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- 0c -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 2f
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- 51 -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~ $ ls -al /dev/i2c*
crw-rw---- 1 root i2c 89,  0 Jun  9 18:27 /dev/i2c-0
crw-rw---- 1 root i2c 89,  1 Jun  9 18:27 /dev/i2c-1
crw-rw---- 1 root i2c 89, 10 Jun  9 18:27 /dev/i2c-10
crw-rw---- 1 root i2c 89, 11 Jun  9 18:27 /dev/i2c-11

 

+

0x0C 는 누구냐... -_-?

To enable the I2C bus to the RTC you will need dtparam=i2c_vc=on set in config.txt . The RTC then will be on i2c-10 address 0x51 ( 7bit address)
To enable the I2C bus to the fan controller you will need dtparam=i2c_vc=on set in config.txt . The fan controller then will be on i2c-10 address 0x2f ( 7bit address)

[링크 : https://datasheets.raspberrypi.org/cm4io/cm4io-datasheet.pdf]

[링크 : https://datasheets.raspberrypi.org/cm4/cm4-datasheet.pdf]

 

 

+

2021.06.10

리눅스에서 해봄

libusb의 경우 이전에 RTL-SDR 한다고 설치되어 있어서 설치 안하고 된 듯.

2GB RAM / 8GB eMMC 모델인데

마운트 하려고 시도해보니 파티션도 없고 빈 eMMC 인것 같은데

도대체 라즈베리 4에서 전원 넣으면 뜨는 GUI 부트로더는 어디에 들어있는거냐?!?!

$ sudo apt install libusb-1.0-0-dev
$ git clone https://github.com/raspberrypi/usbboot
$ cd usbboot

$ sudo ./rpiboot
Waiting for BCM2835/6/7/2711...
Loading embedded: bootcode4.bin
Sending bootcode.bin
Successful read 4 bytes
Waiting for BCM2835/6/7/2711...
Loading embedded: bootcode4.bin
Second stage boot server
Loading embedded: start4.elf
File read: start4.elf
Second stage boot server done

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb      8:16   1   7.3G  0 disk

$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 7.29 GiB, 7818182656 bytes, 15269888 sectors
Disk model: 0001
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

$ sudo mount /dev/sdb /mnt/
NTFS signature is missing.
Failed to mount '/dev/sdb': 부적절한 인수
The device '/dev/sdb' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

 

+

rpi4는 SPI EEPROM 512KB(4Mbit) 짜리 달려있고 거기에 bootcode.bin이 들어있다고

다만 SD에 있을 경우 내장 bootcode.bin은 무시되는 듯.

[링크 : https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md]

'embeded > raspberry pi' 카테고리의 다른 글

bmp280  (0) 2021.06.09
어?! 지름 망 ㅋㅋㅋ TEA5676  (0) 2021.06.09
라즈베리 Zero용 CSI FPCB 케이블 도착  (0) 2021.06.08
라즈베리 i2c 센서 작동 확인  (0) 2021.06.05
센서 스펙  (0) 2021.06.05
Posted by 구차니
embeded/raspberry pi2021. 6. 8. 18:30

내껀 아니지만 아무튼 도착!

라즈베리 Zero는 아니고 CM4용 보드에 한번 달아보려는데.. 잘 되겠지? ㅠㅠ

 

근데 언제 켜보나.. ㅠㅠ

 

 

흰 케이블이 원래 라즈베리 카메라에 딸려오는 FFC 케이블

갈색이 라즈베리 Zero용으로 구매한 FPCB 케이블(FPCB니 케이블이라고 하긴 그런가?)

'embeded > raspberry pi' 카테고리의 다른 글

어?! 지름 망 ㅋㅋㅋ TEA5676  (0) 2021.06.09
cm4 io board / rpiboot  (2) 2021.06.09
라즈베리 i2c 센서 작동 확인  (0) 2021.06.05
센서 스펙  (0) 2021.06.05
pinout  (0) 2021.06.05
Posted by 구차니
embeded/raspberry pi2021. 6. 5. 22:11

4개의 장비 4개의 id가 잘 뜨네!

0x1e - compass

0x53 - adxl345

0x68 - mpu6050

0x77 - bmp180

$ i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n]
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- 1e --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- 53 -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- 77

 

3.3v에 가까운 쪽에 대충 결선하다 보니, 운 좋게(!)  i2c-1에 죄다 연결된 듯

 $ gpio readall
 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
 |   2 |   8 |   SDA.1 | ALT0 | 1 |  3 || 4  |   |      | 5v      |     |     |
 |   3 |   9 |   SCL.1 | ALT0 | 1 |  5 || 6  |   |      | 0v      |     |     |
 |   4 |   7 | GPIO. 7 |   IN | 1 |  7 || 8  | 1 | ALT0 | TxD     | 15  | 14  |
 |     |     |      0v |      |   |  9 || 10 | 1 | ALT0 | RxD     | 16  | 15  |
 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |
 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |
 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |
 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |
 |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |
 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |
 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 1 | IN   | CE0     | 10  | 8   |
 |     |     |      0v |      |   | 25 || 26 | 1 | IN   | CE1     | 11  | 7   |
 |   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 1 | IN   | SCL.0   | 31  | 1   |
 |   5 |  21 | GPIO.21 |   IN | 1 | 29 || 30 |   |      | 0v      |     |     |
 |   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |
 |  13 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |
 |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 0 | IN   | GPIO.27 | 27  | 16  |
 |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |
 |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+

 

+

읭? 6축 외에 온도 값도 획득이 가능한가?

>>> from mpu6050 import mpu6050
>>> sensor = mpu6050(0x68)
>>> sensor.get_
sensor.get_accel_data(  sensor.get_all_data(    sensor.get_gyro_data(   sensor.get_temp(
>>> sensor.get_all_data()
[{'x': 9.897629663085937, 'y': 0.296881005859375, 'z': -1.1468225952148436}, {'x': -0.48854961832061067, 'y': -1.7251908396946565, 'z': -0.3053435114503817}, 27.541764705882354]

[링크 : https://pypi.org/project/mpu6050-raspberrypi/]

 

+

기압계

마이너스 고도라.. -_-

얼핏 어디서 보기로는 해발기준 기압을 조정해야 고도가 정상적으로 나올텐데 cal 값이 그 항목이려나?

>>> import Adafruit_BMP.BMP085 as BMP085
>>> sensor = BMP085.BMP085()
>>> sensor.
sensor.cal_AC1                  sensor.cal_AC6                  sensor.cal_MD                   sensor.read_sealevel_pressure(
sensor.cal_AC2                  sensor.cal_B1                   sensor.read_altitude(           sensor.read_temperature(
sensor.cal_AC3                  sensor.cal_B2                   sensor.read_pressure(
sensor.cal_AC4                  sensor.cal_MB                   sensor.read_raw_pressure(
sensor.cal_AC5                  sensor.cal_MC                   sensor.read_raw_temp(
>>> sensor.read_altitude()
-197.0233308539572
>>> sensor.read_pressure()
103706
>>> sensor.read_temperature()
31.9

[링크 : https://learn.adafruit.com/using-the-bmp085-with-raspberry-pi/using-the-adafruit-bmp-python-library]

 

온도와 고도가 이상해서 캘리브레이션 가능한가 찾아보는중.

AC1 = sensor.cal_AC1
AC2 = sensor.cal_AC2
AC3 = sensor.cal_AC3
AC4 = sensor.cal_AC4
AC5 = sensor.cal_AC5
AC6 = sensor.cal_AC6
B1 = sensor.cal_B1
B2 = sensor.cal_B2
MB = sensor.cal_MB
MC = sensor.cal_MC
MD = sensor.cal_MD

X1 = (UT-AC6) * AC5 / pow(2,15)
X2 = MC * pow(2,11) / (X1 + MD)
B5 = X1 + X2
T = (B5 + 8) / pow(2,4)
print(T)

[링크 : https://cdn-shop.adafruit.com/datasheets/BST-BMP180-DS000-09.pdf]

 

+

지자기 센서도 오케이!

>>> from i2clibraries import i2c_hmc5883l
>>> hmc5883l = i2c_hmc5883l.i2c_hmc5883l(1)
>>> hmc5883l.setContinuousMode()
>>> hmc5883l.setDeclination(2, 15)
>>> print(hmc5883l)
Axis X: -133.4
Axis Y: -411.24
Axis Z: -379.04
Declination: 2° 15'
Heading: 254° 17'
>>> hmc5883l.
hmc5883l.AxisXDataRegisterLSB     hmc5883l.IdentificationRegisterB  hmc5883l.declination              hmc5883l.scale
hmc5883l.AxisXDataRegisterMSB     hmc5883l.IdentificationRegisterC  hmc5883l.declinationDeg           hmc5883l.scale_reg
hmc5883l.AxisYDataRegisterLSB     hmc5883l.MeasurementContinuous    hmc5883l.declinationMin           hmc5883l.setContinuousMode(
hmc5883l.AxisYDataRegisterMSB     hmc5883l.MeasurementIdle          hmc5883l.getAxes(                 hmc5883l.setDeclination(
hmc5883l.AxisZDataRegisterLSB     hmc5883l.MeasurementSingleShot    hmc5883l.getDeclination(          hmc5883l.setOption(
hmc5883l.AxisZDataRegisterMSB     hmc5883l.ModeRegister             hmc5883l.getDeclinationString(    hmc5883l.setScale(
hmc5883l.ConfigurationRegisterA   hmc5883l.StatusRegister           hmc5883l.getHeading(
hmc5883l.ConfigurationRegisterB   hmc5883l.addOption(               hmc5883l.getHeadingString(
hmc5883l.IdentificationRegisterA  hmc5883l.bus                      hmc5883l.removeOption(

[링크 : https://tutorials-raspberrypi.com/build-your-own-raspberry-pi-compass-hmc5883l/]

 

+

가속도 센서도 오케이!

>>> from i2clibraries import i2c_adxl345
>>> adxl = i2c_adxl345.i2c_adxl345(1)
>>> print(adxl)
X:    0.0
Y:    -0.125
Z:    0.75

[링크 : https://python.hotexamples.com/.../-/i2c_adxl345/python-i2c_adxl345-function-examples.html]

'embeded > raspberry pi' 카테고리의 다른 글

cm4 io board / rpiboot  (2) 2021.06.09
라즈베리 Zero용 CSI FPCB 케이블 도착  (0) 2021.06.08
센서 스펙  (0) 2021.06.05
pinout  (0) 2021.06.05
딱 만들고 싶었던 그 프로그램  (0) 2021.06.04
Posted by 구차니
embeded/raspberry pi2021. 6. 5. 16:38

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 Zero용 CSI FPCB 케이블 도착  (0) 2021.06.08
라즈베리 i2c 센서 작동 확인  (0) 2021.06.05
pinout  (0) 2021.06.05
딱 만들고 싶었던 그 프로그램  (0) 2021.06.04
기압 고도 계산  (0) 2021.06.04
Posted by 구차니
embeded/raspberry pi2021. 6. 5. 00:03

파이썬 유틸이긴 한데

굳이 조금 이쁜거 보겠다고 무겁게 쓸만한 녀석은 아닌듯?

 

 

[링크 : https://gpiozero.readthedocs.io/en/stable/cli_tools.html]

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 i2c 센서 작동 확인  (0) 2021.06.05
센서 스펙  (0) 2021.06.05
딱 만들고 싶었던 그 프로그램  (0) 2021.06.04
기압 고도 계산  (0) 2021.06.04
rpi cm4 어댑터 보드 or RPI zero 케이블?  (0) 2021.06.04
Posted by 구차니
embeded/raspberry pi2021. 6. 4. 23:38

'embeded > raspberry pi' 카테고리의 다른 글

센서 스펙  (0) 2021.06.05
pinout  (0) 2021.06.05
기압 고도 계산  (0) 2021.06.04
rpi cm4 어댑터 보드 or RPI zero 케이블?  (0) 2021.06.04
rpi4 cm4 csi  (0) 2021.06.03
Posted by 구차니
embeded/raspberry pi2021. 6. 4. 19:33

'embeded > raspberry pi' 카테고리의 다른 글

pinout  (0) 2021.06.05
딱 만들고 싶었던 그 프로그램  (0) 2021.06.04
rpi cm4 어댑터 보드 or RPI zero 케이블?  (0) 2021.06.04
rpi4 cm4 csi  (0) 2021.06.03
rpi 4b 해상도, 주사율  (2) 2021.05.21
Posted by 구차니
embeded/raspberry pi2021. 6. 4. 14:01

라즈베리용 카메라를 CM4 보드에 꽂으려고 하니

어!?!?!

사달라고 징징대봐야겠다!? ㅋㅋ

 

[링크 : https://www.waveshare.com/cm-dsi-adapter.htm]

[링크 : https://kr.element14.com/raspberry-pi/rpi-cmdk-adapter/adaptor-compute-module-camera/dp/2433318]

 

라즈베리 파이 zero용 카메라 케이블이라는데 이게 호환되려나?

[링크 : https://www.eleparts.co.kr/EPXHJ96T]

'embeded > raspberry pi' 카테고리의 다른 글

딱 만들고 싶었던 그 프로그램  (0) 2021.06.04
기압 고도 계산  (0) 2021.06.04
rpi4 cm4 csi  (0) 2021.06.03
rpi 4b 해상도, 주사율  (2) 2021.05.21
라즈베리 파이 이미지 dd로 굽기  (0) 2021.05.21
Posted by 구차니
embeded/raspberry pi2021. 6. 3. 19:23

csi1 은 4 lane을 가지고 있으나 rpi 4b 에서는 2 lane만 쓰고 있다고..

아무튼 device tree 들도 수정해야지 csi 2채널을 쓸 수 있을 듯.

 

[링크 : https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-camera.md]

  [링크 : https://wikidocs.net/3356]

[링크 : https://www.raspberrypi.org/documentation/configuration/pin-configuration.md]

 

 

'embeded > raspberry pi' 카테고리의 다른 글

기압 고도 계산  (0) 2021.06.04
rpi cm4 어댑터 보드 or RPI zero 케이블?  (0) 2021.06.04
rpi 4b 해상도, 주사율  (2) 2021.05.21
라즈베리 파이 이미지 dd로 굽기  (0) 2021.05.21
rpi usb boot 확인?  (0) 2021.05.18
Posted by 구차니
embeded/raspberry pi2021. 5. 21. 11:43

기본 설정으로는 1080p60 / 2160p30이 한계이고

config.txt에서 hdmi_enable_4kp60=1을 넣어주면 4kp60을 지원한다고.

근데 해보고 나서 리부팅 하고 해상도 설정 바꾸어 보는데 60p가 안뜬다 -_-

(USB-C 바로 옆에 HDMI-0만 된다는데 왜 안되냐고!!)

 

The Raspberry Pi 4 can drive up to two displays, with a resolution up to 1080p at a 60Hz refresh rate. At 4K resolution, if you connect two displays then you are limited to a 30Hz refresh rate. You can also drive a single display at 4K with a 60Hz refresh rate: this requires that the display is attached to the HDMI port adjacent to the USB-C power input (labelled HDMI0). You must also enable 4Kp60 output by setting the hdmi_enable_4kp60=1 flag in config.txt. 

[링크 : https://www.raspberrypi.org/documentation/configuration/hdmi-config.md]

 

다 넣어봐도 안되네 -_ㅠ

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=246634]

 

+ 2021.05.24

config.txt 파일 뒤져보다 보니 어라?!

pi4 항목에 은근슬쩍 들어가있는 dtoverlay=vc4-fkms-v3d

이걸 주석처리 하니 1920x1080 0Hz로 인식되어버리고 메뉴에서도 화면설정하는 항목이 사라진다 -_-

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d

 

raspi-config 에서는 Advanced Options - HDMI / Composite 에 해당 항목이 존재한다.

 

 

'embeded > raspberry pi' 카테고리의 다른 글

rpi cm4 어댑터 보드 or RPI zero 케이블?  (0) 2021.06.04
rpi4 cm4 csi  (0) 2021.06.03
라즈베리 파이 이미지 dd로 굽기  (0) 2021.05.21
rpi usb boot 확인?  (0) 2021.05.18
rpi 4b / tensorflow lite 빌드  (0) 2021.05.18
Posted by 구차니