Skip to content

Ingenic T41LQ reports the T40 SoC family and is detected as t40 #299

Done

Description

Camera: VStarcam Q07 (Q07_GC4023), Ingenic T41LQ. The stock SPL prints Board info: T41LQ, the stock SDK string is isvp-t41-1.1.1-t41lq-mp-v3-20240326, and libimp on OpenIPC reports CPU T41-LQ, SDK SYSUTILS-1.2.0.

What happens: ipctool cannot identify the chip (chip.model: unknown), and ipcinfo -f prints t40. OpenIPC's load_ingenic takes the SoC from ipcinfo -f, so on this camera it runs modprobe tx-isp-t40 (module tx-isp-t40 not found in modules.dep), the ISP never loads and there is no video.

Registers (read with devmem on the camera):

0x1300002C (SoC ID)            = 0x10040003   -> family 0x40
0x13540250 (T40/T41 subtype)   = 0x99991111   -> HIWORD 0x9999
0x13540238                     = 0x00000000
0x10000034 (CPPSR)             = 0x00003535

Why: in get_cpu_id() (src/hal/ingenic.c), family 0x40 only knows the T40 subtypes (0x1111, 0x8888, 0x7777, 0x4444) plus 0xAAAA, which is already mapped to T41NQ for the same reason (OpenIPC/majestic#376). 0x9999 is the code the 0x41 branch already gives to T41LQ, so here it falls to default: return -1.

Fix: in the 0x40 branch, handle 0x9999 as 0xAAAA is handled: chip_generation = 0x41, return the T41LQ index. With that patch, on this camera ipcinfo -c prints t41lq, ipcinfo -f prints t41, and the ISP loads. PR: <ссылка>.

The other subtype codes that exist only on T41 (0x3333 T41L, 0x5555 T41ZL, 0x6666 T41ZX) may well show up under family 0x40 too. I have no such chips, so the PR adds only the measured one.

Activity

  1. openipc-ai commented on Nov 29, 2026

    @openipc-ai
    Contributor

    Fixed by #300 (bae99d9): family 0x40 with subtype 0x9999 is now T41LQ, chip_generation 0x41, so ipcinfo -c gives t41lq and ipcinfo -f gives t41. It will be in the next rolling latest build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions