pi@raspberrypi:~/raspberrypi_v4l2/i2c_cmd/source $ sudo ./make.sh
问题:
i2c_read.c: In function ‘main’:
i2c_read.c:112:42: warning: passing argument 4 of ‘i2c_rd’ from incompatible pointer type [-Wincompatible-pointer-types]
112 | i2c_rd(fd, device_addr,reg_addr, &value, num);
| ^~~~~~
| |
| unsigned char (*)[512]
i2c_read.c:20:68: note: expected ‘unsigned char ’ but argument is of type ‘unsigned char ()[512]’
20 | static int i2c_rd(int fd, uint8_t i2c_addr, uint16_t reg, uint8_t *values, uint32_t n)
5157972e-2e6f-451a-b0df-c2344adf9ed2-001.JPG
pi@raspberrypi:~/raspberrypi_v4l2/i2c_cmd/source $ dmesg | grep veye
[ 2.947096] veyecam2m: loading out-of-tree module taints kernel.
[ 2.957137] veyecam2m 4-003b: Unable to load ds90ub954 driver,will go on
[ 2.984139] rp1-cfe 1f00110000.csi: found subdevice /axi/pcie@120000/rp1/i2c@88000/veyecam2m@3b
[ 2.984914] rp1-cfe 1f00128000.csi: found subdevice /axi/pcie@120000/rp1/i2c@80000/veyecam2m@3b
[ 3.082974] veyecam2m 4-003b: camera id is veyecam2m
[ 3.084546] veyecam2m 4-003b: sensor is IMX385
[ 3.084552] veyecam2m 4-003b: board type is ONE board
[ 3.084970] rp1-cfe 1f00128000.csi: Using sensor veyecam2m 4-003b for capture
[ 3.106635] veyecam2m 4-003b: veyecam2m camera probed
[ 3.113508] veyecam2m 6-003b: Unable to load ds90ub954 driver,will go on
[ 3.229811] veyecam2m 6-003b: probe failed
pi@raspberrypi:~/raspberrypi_v4l2/i2c_cmd/source $ cd
cd raspberrypi_v4l2/rpi5_scripts
./media_setting_rpi5.sh veyecam2mpi@raspberrypi:~ $ cd raspberrypi_v4l2/rpi5_scripts
pi@raspberrypi:~/raspberrypi_v4l2/rpi5_scripts $ ./media_setting_rpi5.sh veyecam2m
This is a Raspberry Pi 5.
camera is YUV type
camera name veyecam2m; width 1920; height 1080; media_fmt UYVY8_1X16; pixel_fmt UYVY
CAM1 probed: media device is /dev/media2
set CAM1 finish, plese get frame from /dev/video0 and use /dev/v4l-subdev2 for camera setting
veyecam2m 6 NOT FOUND
pi@raspberrypi:~/raspberrypi_v4l2/rpi5_scripts $