-
Notifications
You must be signed in to change notification settings - Fork 4
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
Failed to create I2C device #3
Comments
Greetings, The error messages seems to be about I2C peripherals, defined in the DTS file, not being registered. That does not mean that I2C lines are unusable. I'll check why these peripherals are not detected. Meanwhile, what does Also could you try to play with |
@Tonymac32 Which RasPi camera had issues with mainline kernels ? The first one or the second one ? |
Ugh, As far as cameras go I've never gotten either of them to work. The I2C EEPROM throwing an error is new, and shouldn't be there, perhaps something changed in the bindings... |
Thank you for the feedback. I was wrong mentioning the attached camera module because As the camera module is expected at i2c-2 line, here is the output of
The presence of the camera module is supposed to be observed as appearance of 0x10 (IMX219 sensor) and 0x64 (crypto chip) addresses. But here we see only 0x64 instead. The device /dev/video0 appears no matter if the camera module is attached or not. Here is the output of The output of As a reference, here are the outputs of Under TinkerOS 2.0.7 the camera is working but a very special way - yielding dark green image, see |
On mainline kernels, Now, I see that the TinkerOS uses the rkisp10 driver, which is some Rockchip specific driver... Since it's a Raspberry Camera, isn't there an official driver for that one. I think I saw something similar in the "staging" area some time ago. Could you try to adapt this sequence and see how it goes ? You might have to change the I'm not very familiar with I²C, but I guess that you might need a special sequence to "wake up" the camera. However, you might still need a V4L2 driver for the camera itself to use it with any software. Hmm... I'll take a look and see what I find about Raspberry Pi camera drivers on mainline kernels. |
Also, if you run into color issues, maybe the color encoding is just a little off. Dumping a frame and trying to shift bits or reorder bytes might do the trick sometimes. |
An attempt at the ISP driver on Armbian yielded unbelievably smooth frames, all dark green. We never debugged it. (Kernel 4.4) |
The dark green stuff isn't due to Big Endian / Little Endian mixed reads ? Anyway, I'll take a look at the 4.4 kernel... Once I sort out how to port the JPEG V4L2 decoder for Rockchip systems into an OOT module. |
I misread the forum post about that previous i2cset commands. These commands are only useful to setup the CSI clocks on Nvidia Jetson boards. Ugh... Taking a quick look at the driver, it seems some clocks needs to be initialized in a very special way : https://github.com/rockchip-linux/kernel/blob/a3c79584a44219e2845301e7f10d1ef7601c1653/drivers/media/platform/rk-isp10/cif_isp10_rk3288.c So I guess the reason you're not seeing the Camera chip is due to the clocks being inactive. Since I don't know how I²C works, I don't know if you can emulate a clock by driving a specific GPIO and setting it as a "clock" for testing purposes. |
@Tonymac32 Dark green images - it most likely means that 2A (AE/AWB) is not implemented. So it is working, but unbalanced. |
Hello,
I'm booting RK3288 Tinker Board with Raspberry Camera Module V2 attached (IMX219). Here is the output of dmesg | grep i2c
[ 0.751264] i2c /dev entries driver
[ 0.759772] of_get_named_gpiod_flags: parsed 'dvs-gpios' property of node '/i2c@ff650000/pmic@1b[0]' - status (0)
[ 0.760051] of_get_named_gpiod_flags: parsed 'dvs-gpios' property of node '/i2c@ff650000/pmic@1b[1]' - status (0)
[ 0.778772] i2c i2c-2: Invalid 7-bit I2C address 0x00
[ 0.778809] i2c i2c-2: of_i2c: Failure registering /i2c@ff660000/af-controller@0
[ 0.778841] i2c i2c-2: Failed to create I2C device for /i2c@ff660000/af-controller@0
[ 0.778880] i2c i2c-2: Invalid 7-bit I2C address 0x00
[ 0.778907] i2c i2c-2: of_i2c: Failure registering /i2c@ff660000/m24c08@50
[ 0.778936] i2c i2c-2: Failed to create I2C device for /i2c@ff660000/m24c08@50
Mainline zImage, rk3288-tinker.dtb (The 4.18-rc5), lib and usr were used.
The text was updated successfully, but these errors were encountered: