Git Product home page Git Product logo

Comments (8)

dimerr avatar dimerr commented on August 13, 2024

What's your soc?

reboot and try ipctool again

from ipctool.

Moleus avatar Moleus commented on August 13, 2024

hi3518ev200

# cat cpuinfo
Processor       : ARM926EJ-S rev 5 (v5l)
BogoMIPS        : 269.10
Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 5

Hardware        : hi3518ev200
Revision        : 0000
Serial          : 0000000000000000

The output of ipctool - ipctool_output.txt (after reboot I got the same result)

I've looked at a table with sensor identifiers provided by Paul, and saw that GC1024 has chip_id 0x1004. That's strange.

I'm tinkering with VstarCam C7824WIP and found a note about it's GC1024 sensor - code. Does this mean that it's the GC1024 with invalid id?

from ipctool.

dimerr avatar dimerr commented on August 13, 2024

try again

from ipctool.

Moleus avatar Moleus commented on August 13, 2024

Got the ipctool with the patch. Still doesn't work. Same error.

I think that this condition fails, because 0x78 not listed in possible_i2c_addrs

if (sdata->sensor_type == type) {

As far as I understand list of possible addresses for hisilicon is declared here:

static unsigned char gc_addrs[] = {0x6e, 0x52, 0x42, 0};
static unsigned char superpix_addrs[] = {0x79, 0};
static sensor_addr_t my_possible_i2c_addrs[] = {
{SENSOR_SONY, sony_addrs}, {SENSOR_SOI, soi_addrs},
{SENSOR_ONSEMI, onsemi_addrs}, {SENSOR_SMARTSENS, ssens_addrs},
{SENSOR_OMNIVISION, omni_addrs}, {SENSOR_GALAXYCORE, gc_addrs},
{SENSOR_SUPERPIX, superpix_addrs}, {0, NULL}};

What if we add 0x78 to this array?

from ipctool.

dimerr avatar dimerr commented on August 13, 2024

it's already added

from ipctool.

Moleus avatar Moleus commented on August 13, 2024

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?

from ipctool.

dimerr avatar dimerr commented on August 13, 2024

Yeah, really weird, hal_hisi is missing

from ipctool.

Moleus avatar Moleus commented on August 13, 2024

It works!

sensors:
- vendor: GalaxyCore
  model: GC1024
  control:
    bus: 0
    type: i2c
    addr: 0x78
  data:
    type: DC
  clock: 24MHz

Thank you!

from ipctool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.