-
Notifications
You must be signed in to change notification settings - Fork 54
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
ov2740 i2c-INT3474:01: failed to find sensor: -121 #252
Comments
Hi, Same as #237 for Samsung, we have observed that even those designs with IPU6 Camera but has no Ubuntu cert granted. Hence the integration should be involved with BIOS configuration (I have seen in some cases BIOS config is wrong; but the camera still works in Windows. Suspects there are hacks in Windows driver), upstream kernel driver implementation, and few xml files required to be modified in user space. PC vendor would have to step in to make the camera work both on Windows and Linux. Not sure Acer customer service will give you the response, but there is no easy way to obtain an installation package on your Acer device. Thanks. |
Vendor: Wortmann AG Same Bug with Fedora 40: Kernel 6.10.11
|
Debug so far i could get without recompiling the kernel with debug messages: ov2740 driver calls stack as far as it matters for the issue: Line 628 ov2740_identify_module(ov2740) Line 637 ov2740_read_reg(ov2740, OV2740_REG_CHIP_ID, 3, &val); Line 579 ret=i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); ret must be != ARRAY_SIZE(MSGS), because otherwise 0 or -EIO would be returned, but it is EREMOTE_IO ( -121 ) (this is a stupid check anyway, because you can get any return value by accident that you expect and than your code continues and will crash sooner or later. A defined return value with 0 => worked and all other values mean fail + a errorcode attribute set in the structure, would be much more fault tolerant, but i think you can't expect good code from c coder at all ;) ) So, the i2c sys could not talk to the chip at all, otherwise the "ret" would > 0 and still != ARRAY_SIZE(msgs), in which case, it would have received more/less msgs than it expected to receive. If one can give advises to debug the TRACE event nightmare that comes next, feel free. |
Just to keep the issue updated. I tried to upgrade the kernel from 6.8 to 6.11 and also made a fresh install of Ubuntu 24.10 (kernel 6.11). Every time still the same issue and same error message. |
Hello,
I think there are connection issues between ipu6, i2c modules and cameras... Ah, just I would also like to add the og0va1b IR camera which is on many laptops, but I don't have the technical specifications to do so... |
News from the war front: Terrapad 1262v3 ov2740 sensor the chips do not propagate theire pins correctly AND the manufactorer had used some hardwiring tricks, so both sensors share the wires of only one sensor on the board for powering and reseting. Sensor#2 does not react to it's own power/reset lines. If initialized correctly, the sensors react to startup, stop and reset , which i have seen with my own eyes, so there is hope to end this soon, as one of Fedora's Best gpio specialists is on it on my Pad to get us all a fixed driver and upstream the hack, no other term is correct here, into the kernel. I will try to get a detection algorithm from him, so there is a testtool for all the others, which then can send theire manufacturer id to the kernel team to add it to the necessary database. |
See more details here: |
I don't know if it's useful but I'll allow myself to make my remarks (I'm French I use a translator). I tested by making a fake diver OVTI00AB based on og01a1b.c and the driver loads well, without working, of course, because I can't find the details of the sensor. I also notice on my laptop that when I only put the OVTI08F4 module, so without the other modules at startup, v4l2-ctl -all gives me a resolution of 640x480 which is impossible with this sensor but which is the default value of OVTI00AB. However, the image I got by following the https://github.com/aigilea/hp_spectre_x360_14_eu0xxx is not good and it may be the IR image and not the Camera that I got? Which makes me also think that the 2 cameras are on the same circuit. Kind regards, let me know if I can help |
Today @ 12:50 : OP SUCCESS ... ov2740 works with modified kernel driver.. WE HAVE FIRST LIGHT on both sensors! Working Apps: QCAM, Cheese, Firefox Expect a upstream kernel driver patch soon, but you may need to downstream patch it, to contain your vendor id, so the special fix has a chance to detect your device. ATTN: This may or may not work on your device. |
Full log: dmesg_file.txt
I already tried different solutions mentioned here #228 with no success.
I had this problem since older versions o the kernel and other versions of Ubuntu
EDIT
Just to add more information about what i have tried, before open this issue
IPU6 driver from intel-ipu6-dkms
by himself with out install anything more.IPU6 driver from intel-ipu6-dkms
by himself making some changes on the file location, and installing some packages trying something.IPU6 driver from intel-ipu6-dkms
and installIPU6 from libcamhal0
. Tried using the steps of this repository o Readme and also using the ppa.IPU6 from libcamhal0
without removeIPU6 driver from intel-ipu6-dkms
.Any case always get the same error.
Yes, I know and understand my system is not "officially" supported for Ubuntu, but never was a problem until now.
The text was updated successfully, but these errors were encountered: