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

Latest fails to detect camera on Luckfox Ultra #211

Open
jlunn-tactacam opened this issue Dec 10, 2024 · 1 comment
Open

Latest fails to detect camera on Luckfox Ultra #211

jlunn-tactacam opened this issue Dec 10, 2024 · 1 comment

Comments

@jlunn-tactacam
Copy link

The latest build defaults to i2c4_m0 instead of i2c4_m2 for Luckfox Ultra non-tb builds.

Steps to reproduce:

./build.sh lunch
ls: cannot access 'BoardConfig*.mk': No such file or directory
You're building on Linux
  Lunch menu...pick the Luckfox Pico hardware version:
  选择 Luckfox Pico 硬件版本:
                [0] RV1103_Luckfox_Pico
                [1] RV1103_Luckfox_Pico_Mini_A
                [2] RV1103_Luckfox_Pico_Mini_B
                [3] RV1103_Luckfox_Pico_Plus
                [4] RV1106_Luckfox_Pico_Pro
                [5] RV1106_Luckfox_Pico_Max
                [6] RV1106_Luckfox_Pico_Ultra
                [7] RV1106_Luckfox_Pico_Ultra_W
                [8] custom
Which would you like? [0~7][default:0]:

select 6 or 7 for Luckfox Ultra
select defaults for all other options

on boot the log message shows i2c conflict and i2c4m0-xfer instead of i2c4m2-xfer

[root@luckfox root]# dmesg | grep i2c
[    0.410175] i2c /dev entries driver
[    0.410577] rockchip-pinctrl pinctrl: pin gpio2-1 already requested by ff000000.syscon:rgb; cannot claim for ff470000.i2c
[    0.410596] rockchip-pinctrl pinctrl: pin-65 (ff470000.i2c) status -22
[    0.410609] rockchip-pinctrl pinctrl: could not request pin 65 (gpio2-1) from group i2c4m0-xfer  on device rockchip-pinctrl
[    0.410620] rk3x-i2c ff470000.i2c: Error applying setting, reverse things back
[    0.410645] rk3x-i2c: probe of ff470000.i2c failed with error -22
@jlunn-tactacam jlunn-tactacam changed the title Latest commit fails to detect camera on Luckfox Ultra Latest fails to detect camera on Luckfox Ultra Dec 10, 2024
@luckfox-eng29
Copy link
Collaborator

Hello, since both the camera and GPIO have I2C4 pins, in order to allow luckfox-config to successfully control i2C4m0-xfer, the pinctrl information of i2c4 in the device tree will contain multiple sets of i2c4 pins, so the error message can be ignored.
The camera does not turn on automatically on the Luckfox Pico Ultra/Ultra W, you need to run luckfox-config -> Advanced Options -> CSI -> enabled after entering the system

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