Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry PI 5 compatibility #9

Open
iftahnaf opened this issue Jan 4, 2024 · 1 comment
Open

Raspberry PI 5 compatibility #9

iftahnaf opened this issue Jan 4, 2024 · 1 comment

Comments

@iftahnaf
Copy link

iftahnaf commented Jan 4, 2024

Hi all,

Will the driver and camera work on Raspberry Pi 5 running Ubuntu 23.10 with kernel version 6.5?

@luntik2012
Copy link

The same question for official rpi distro with 6.6.51

$ uname -ra
Linux raspberrypi 6.6.51+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux

I'm able to build this driver and it's loaded, but I have errors in dmesg. The second working camera stops working too.

$ dmesg  | grep inno
[    2.074743] platform 1f00128000.csi: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/i2c@80000/inno_mipi_ov9281@60
[    2.843653] i2c 4-0060: Fixed dependency cycle(s) with /axi/pcie@120000/rp1/i2c@80000/inno_mipi_ov9281@60/camera-clk
[    6.818879] rp1-cfe 1f00128000.csi: found subdevice /axi/pcie@120000/rp1/i2c@80000/inno_mipi_ov9281@60
[    6.937934] inno_mipi_ov9281: loading out-of-tree module taints kernel.
[    6.938394] inno_mipi_ov9281 4-0060: InnoMaker Camera controller found!
[    6.978921] inno_mipi_ov9281 4-0060: [ MAGIC  ] [ \x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87 ]
[    6.978925] inno_mipi_ov9281 4-0060: [ MANUF. ] [ \x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87 ] [ MID=0x8787 ]
[    6.978929] inno_mipi_ov9281 4-0060: [ SENSOR ] [ \x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87 \x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87\x87 ]
[    6.978932] inno_mipi_ov9281 4-0060: [ MODULE ] [ ID=0x8787 ] [ REV=0x8787 ]
[    6.978935] inno_mipi_ov9281 4-0060: [ MODES  ] [ NR=0x8787 ] [ BPM=0x8787 ]
[    7.083833] inno_mipi_ov9281 4-0060:  Sensor MODE=1 PowerOn STATUS=0xffffff87 i=1
[    7.090321] inno_mipi_ov9281 4-0060: GAIN = 16 
[    7.096467] inno_mipi_ov9281 4-0060: EXPOSURE = 10896 
[    7.105240] inno_mipi_ov9281 4-0060: Model ID 0x9281, Lot ID 0x0000a1, Chip ID 0x0000
[    7.105251] rp1-cfe 1f00128000.csi: Using sensor inno_mipi_ov9281 4-0060 for capture

should rpicam-apps work with inno-makera camera or ?

$ rpicam-hello --list-cameras
No cameras available!
$ cat /boot/firmware/config.txt | tail -n 14
##########################################
#                Cameras                 #
##########################################
# waveshare ov9281
#dtoverlay=ov9281,cam1

# inno-maker CAM-OV9281RAW-V2
dtparam=i2c_vc=on
dtoverlay=inno_mipi_ov9281,cam0
disable_touchscreen=1
cma=512M

tools do not work for me

user@raspberrypi:~/inno-maker/CAM-OV9281RAW-V2/tools/tools_code $ gcc v4l2_capture_raw10.c -o v4l2_capture_raw10
user@raspberrypi:~/inno-maker/CAM-OV9281RAW-V2/tools/tools_code $ gcc v4l2_capture_raw12.c -o v4l2_capture_raw12
user@raspberrypi:~/inno-maker/CAM-OV9281RAW-V2/tools/tools_code $ ./v4l2_capture_raw10 -s 100 -g 1.0 -c 10
Setting Shutter Value to 100.
Setting Gain Value to 1.000000.
Capture 10 frame.
sensor_set_parameters():  ioctl(VIDIOC_G_CTRL) throws Error (25(Inappropriate ioctl for device))!
error on main:386
user@raspberrypi:~/inno-maker/CAM-OV9281RAW-V2/tools/tools_code $ ./v4l2_capture_raw12 -s 100 -g 1.0 -c 10
Setting Shutter Value to 100.
Setting Gain Value to 1.000000.
Capture 10 frame.
sensor_set_parameters():  ioctl(VIDIOC_G_CTRL) throws Error (25(Inappropriate ioctl for device))!
error on main:388


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants