-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
gc1024 is not detected #52
Comments
What's your soc? reboot and try ipctool again |
hi3518ev200
The output of I've looked at a table with sensor identifiers provided by Paul, and saw that I'm tinkering with |
try again |
Got the ipctool with the patch. Still doesn't work. Same error. I think that this condition fails, because Line 791 in 34ef8b2
As far as I understand list of possible addresses for hisilicon is declared here: ipctool/src/hal/hisi/hal_hisi.c Lines 28 to 35 in 34ef8b2
What if we add |
it's already added |
I see, in this 34ef8b2 commit you've only added the case statement, and might forgot to push the changes with the address. Am I wrong? |
Yeah, really weird, hal_hisi is missing |
It works!
Thank you! |
ipctool -s
returns a messageError: unexpected value for SuperPix == 0x78
.Manual detection
I've followed suggestions of OpenIPC's telegram chat members and ran:
The sensor id can be found at
f0
-10 24
. (Unnecessary lines are removed, file with the original output - i2cdump_0x78.txt)The problem
According to the detection function source code,
3f0
or3f1
should beFF
to read the value fromf0
address.ipctool/src/sensors.c
Lines 664 to 675 in 11f8946
But it's not the case, because
3f0
and3f1
are filled with a garbage. You can see the output of multiple executions below:Side-effects
Also, garbage in
fa
and infb
addresses prevents the early break in SuperPix detection functionipctool/src/sensors.c
Lines 746 to 749 in 11f8946
and execution falls into the default case
ipctool/src/sensors.c
Lines 768 to 769 in 11f8946
, so we get an error message
Error: unexpected value for SuperPix == 0x78
, but it's not a SuperPix sensorSolutions?
I'm knew to this topic and don't have a fundamental knowledge in sensors/i2c stuff, so I can't say if it's OK to have a "garbage" in a memory and how to deal with it. But can we check the value of
f0
address before3f0
?The text was updated successfully, but these errors were encountered: