Skip to content
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

Wrong sensor JXQ03P detection. Xiaomi MJSXJ03HL #1560

Open
xstealth741 opened this issue Sep 30, 2024 · 0 comments
Open

Wrong sensor JXQ03P detection. Xiaomi MJSXJ03HL #1560

xstealth741 opened this issue Sep 30, 2024 · 0 comments

Comments

@xstealth741
Copy link

Hello,
I have problem with sensor detection. My camera has JXQ03P sensor, but openIPC detect IT as JXQ03.
No video!
Can anybody help me?

Camera board id: t31n (t31 family) Xiaomi MJSXJ03HL
OpenIPC version: 2.4.09.27-ultimate,
installation method: UART

///////IPCTOOL LOG///////

chip:
vendor: Ingenic
model: T31N
board:
vendor: OpenIPC
version: 2.4.09.27
ethernet:
mac: "ec:4d:3e:fa:36:38"
rom:

  • type: nor
    block: 32K
    partitions:
    • name: boot
      size: 0x40000
      sha1: 149ebad5
    • name: env
      size: 0x10000
      sha1: 39313e18
      contains:
      • name: uboot-env
        offset: 0x0
    • name: kernel
      size: 0x200000
      sha1: eca2f451
    • name: rootfs
      size: 0x800000
      sha1: 38f6a561
    • name: rootfs_data
      size: 0x5b0000
      path: /overlay,jffs2,rw
      size: 16M
      ram:
      total: 64M
      media: 25M
      firmware:
      u-boot: "2013.07-g90873ad (Jul 26 2024 - 19:15:18)"
      kernel: "3.10.14__isvp_swan_1.0__ (PREEMPT Fri Sep 27 00:20:46 UTC 2024)"
      toolchain: buildroot-gcc-13.2.0
      sensors:
  • vendor: Silicon Optronics
    model: JXQ03P
    control:
    bus: 0
    type: i2c
    addr: 0x80

///////

//////Majestic Log:

majestic[805]: Majestic Lite for Ingenic, version master+8d1a069, built on 2024-09-26
majestic[805]: Detected jz Watchdog
majestic[805]: Watchdog timeout set to 300 seconds
majestic[805]: Set server path: /var/www
majestic[805]: HTTP server started on :::80
majestic[805]: Loading main configuration: /etc/majestic.yaml
majestic[805]: SENSOR=jxq03
majestic[805]: Using /etc/sensor/jxq03.yaml as sensor config
majestic[805]: VI: jxq03 @ 0x40 [2304x1296]
majestic[805]: CPU T31-N, SDK SYSUTILS-1.1.6, Model Swan, Dev 17140008
majestic[805]: IMP_ISP_AddSensor failed [jxq03]
majestic[805]: imp_system_init() failed
majestic[805]: Cannot start SDK
majestic Tainted: G O 3.10.14__isvp_swan_1.0__ #2

//////

///////Kernel LOG:

[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.14__isvp_swan_1.0__ (runner@fv-az658-989) (buildroot-gcc-13.2.0) #2 PREEMPT Fri Sep 27 00:20:46 UTC 2024
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 RESET ERROR PC:6C100E1C
[ 0.000000] CPU0 revision is: 00d00100 (Ingenic Xburst)
[ 0.000000] FPU revision is: 00b70000
[ 0.000000] cgu_get_rate, parent = 1404000000, rate = 0, m = 129, n = 255, reg val = 0x081000ff
[ 0.000000] cgu_get_rate, parent = 1404000000, rate = 0, m = 129, n = 255, reg val = 0x081000ff
[ 0.000000] CCLK:1404MHz L2CLK:702Mhz H0CLK:250MHz H2CLK:250Mhz PCLK:125Mhz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 00530000 @ 00010000 (usable)
[ 0.000000] memory: 00030000 @ 00540000 (usable after init)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 02700000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x026fffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x026fffff]
[ 0.000000] On node 0 totalpages: 9984
[ 0.000000] free_area_init_node: node 0, pgdat 8053e510, node_mem_map 81000000
[ 0.000000] Normal zone: 78 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 9984 pages, LIFO batch:1
[ 0.000000] Primary instruction cache 32kB, 8-way, VIPT, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 8-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] pls check processor_id[0x00d00100],sc_jz not support!
[ 0.000000] MIPS secondary cache 128kB, 8-way, linesize 32 bytes.
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 9906
[ 0.000000] Kernel command line: console=ttyS1,115200 panic=10 root=/dev/mtdblock3 init=/init mtdparts=jz_sfc:256k(boot),64k(env),2048k(kernel),8192k(rootfs),-(rootfs_data) mem=39M rmem=25M@0x2700000 nogmac
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 33360k/39936k available (3968k kernel code, 6576k reserved, 1342k data, 192k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:358
[ 0.000000] clockevents_config_and_register success.
[ 0.000014] Calibrating delay loop... 1397.55 BogoMIPS (lpj=6987776)
[ 0.037790] pid_max: default: 32768 minimum: 301
[ 0.042650] Mount-cache hash table entries: 512
[ 0.047578] Initializing cgroup subsys debug
[ 0.051835] Initializing cgroup subsys freezer
[ 0.057314] devtmpfs: initialized
[ 0.062122] regulator-dummy: no parameters
[ 0.066508] NET: Registered protocol family 16
[ 0.074340] Skipping GMAC GPIO setup
[ 0.078539] set gpio strength: 32-2
[ 0.078549] set gpio strength: 33-2set gpio strength: 34-2
[ 0.078558] set gpio strength: 35-2set gpio strength: 36-2
[ 0.078565] set gpio strength: 37-2set gpio pull: 59-90
[ 0.097512] bio: create slab at 0
[ 0.107923] jz-dma jz-dma: JZ SoC DMA initialized
[ 0.113781] usbcore: registered new interface driver usbfs
[ 0.119833] usbcore: registered new interface driver hub
[ 0.125610] usbcore: registered new device driver usb
[ 0.130987] (null): set:311 hold:312 dev=125000000 h=625 l=625
[ 0.138858] Switching to clocksource jz_clocksource
[ 0.146335] dwc2 otg probe start
[ 0.146363] jz-dwc2 jz-dwc2: cgu clk gate get error
[ 0.151242] DWC IN OTG MODE
[ 0.155042] dwc2 dwc2: Keep PHY ON
[ 0.158411] dwc2 dwc2: Using Buffer DMA mode
[ 0.162738] dwc2 dwc2: Core Release: 3.00a
[ 0.167089] dwc2 dwc2: DesignWare USB2.0 High-Speed Host Controller
[ 0.173393] dwc2 dwc2: new USB bus registered, assigned bus number 1
[ 0.180841] hub 1-0:1.0: USB hub found
[ 0.184682] hub 1-0:1.0: 1 port detected
[ 0.188678] dwc2 dwc2: DWC2 Host Initialized
[ 0.192974] dwc2 otg probe success
[ 0.193228] NET: Registered protocol family 2
[ 0.198130] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.205190] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.211563] TCP: Hash tables configured (established 512 bind 512)
[ 0.217905] TCP: reno registered
[ 0.221098] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.227061] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.233563] NET: Registered protocol family 1
[ 0.238176] RPC: Registered named UNIX socket transport module.
[ 0.244152] RPC: Registered udp transport module.
[ 0.248871] RPC: Registered tcp transport module.
[ 0.253639] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.260785] freq_udelay_jiffys[0].max_num = 10
[ 0.265282] cpufreq udelay loops_per_jiffy
[ 0.269634] dwc2 dwc2: ID PIN CHANGED!
[ 0.273462] 12000 59724 59724
[ 0.276715] 24000 119449 119449
[ 0.280132] 60000 298622 298622
[ 0.283575] 120000 597245 597245
[ 0.287192] 200000 995409 995409
[ 0.290642] 300000 1493114 1493114
[ 0.294456] 600000 2986229 2986229
[ 0.298084] 792000 3941822 3941822
[ 0.301792] 1008000 5016864 5016864
[ 0.305622] 1200000 5972458 5972458
[ 0.319537] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.326722] jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
[ 0.332802] msgmni has been set to 65
[ 0.337814] io scheduler noop registered
[ 0.341738] io scheduler cfq registered (default)
[ 0.353710] jz-uart.1: ttyS1 at MMIO 0x10031000 (irq = 58) is a uart1
[ 0.361333] console [ttyS1] enabled, bootconsole disabled
[ 0.381508] brd: module loaded
[ 0.389352] loop: module loaded
[ 0.392846] logger: created 256K log 'log_main'
[ 0.415134] jz SADC driver registeres over!
[ 0.423493] jz TCU driver register completed
[ 0.428986] the id code = 1c7018, the flash name is EN25QH128A
[ 0.435111] JZ SFC Controller for SFC channel 0 driver register
[ 0.441240] 5 cmdlinepart partitions found on MTD device jz_sfc
[ 0.447594] Creating 5 MTD partitions on "jz_sfc":
[ 0.452555] 0x000000000000-0x000000040000 : "boot"
[ 0.458638] 0x000000040000-0x000000050000 : "env"
[ 0.464742] 0x000000050000-0x000000250000 : "kernel"
[ 0.470951] 0x000000250000-0x000000a50000 : "rootfs"
[ 0.477281] 0x000000a50000-0x000001000000 : "rootfs_data"
[ 0.484035] SPI NOR MTD LOAD OK
[ 0.487464] JZ GMAC disabled
[ 0.490440] STA : @@@@@@ rtusb init rt2870 --->
[ 0.495378] usbcore: registered new interface driver rt2870
[ 0.501142] i2c /dev entries driver
[ 0.506194] wait stable.[289][cgu_msc0]
[ 0.510165] jzmmc_v1.2 jzmmc_v1.2.0: vmmc regulator missing
[ 0.516324] jzmmc_v1.2 jzmmc_v1.2.0: register success!
[ 0.521680] jzmmc_v1.2 jzmmc_v1.2.1: vmmc regulator missing
[ 0.527916] jzmmc_v1.2 jzmmc_v1.2.1: register success!
[ 0.533721] ipip: IPv4 over IPv4 tunneling driver
[ 0.539267] TCP: cubic registered
[ 0.543843] NET: Registered protocol family 10
[ 0.549223] NET: Registered protocol family 17
[ 0.555204] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 0.562622] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.573451] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 0.584636] devtmpfs: mounted
[ 0.588010] Freeing unused kernel memory: 192K (80540000 - 80570000)
[ 1.013761] jzmmc_v1.2 jzmmc_v1.2.0: card inserted, state=0
[ 1.172665] jffs2: notice: (463) jffs2_build_xattr_subsystem: complete building xattr subsystem, 3 of xdatum (0 unchecked, 3 orphan) and 3 of xref (0 dead, 3 orphan) found.
[ 2.235877] mmc0: SD Status: Invalid Allocation Unit size.
[ 2.237711] wait stable.[289][cgu_msc0]
[ 2.273764] mmc0: new SD card at address cffc
[ 2.276708] mmcblk0: mmc0:cffc SU512 483 MiB
[ 2.278271] mmcblk0: p1
[ 2.314319] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 2.844617] cfg80211: Calling CRDA to update world regulatory domain
[ 3.218418] RTL871X: module init start
[ 3.218435] RTL871X: rtl8189ftv v4.3.24.7_21113.20170208.nova.1.02
[ 3.218441] RTL871X: build time: Aug 14 2020 13:46:20
[ 3.218452] wlan power on
[ 3.234107] RTL871X: module init ret=0
[ 3.356156] mmc1: card claims to support voltages below the defined range. These will be ignored.
[ 3.414528] mmc1: new SDIO card at address 0001
[ 3.417543] RTL871X: ++++++++rtw_drv_init: vendor=0x024c device=0xf179 class=0x07
[ 3.446601] RTL871X: HW EFUSE
[ 3.446630] RTL871X: hal_com_config_channel_plan chplan:0x20
[ 3.542485] RTL871X: rtw_regsty_chk_target_tx_power_valid return FALSE for band:0, path:0, rs:0, t:-1
[ 3.543479] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=ec:4d:3e:fa:36:38
[ 5.117024] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 6.798118] RTL871X: rtw_set_802_11_connect(wlan0) fw_state=0x00000008
[ 6.830560] RTL871X: start auth
[ 6.832182] RTL871X: auth success, start assoc
[ 6.840406] RTL871X: assoc success
[ 6.840508] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 6.851790] RTL871X: recv eapol packet
[ 6.852917] RTL871X: send eapol packet
[ 6.860278] RTL871X: recv eapol packet
[ 6.860642] RTL871X: send eapol packet
[ 6.861940] RTL871X: set pairwise key camid:4, addr:c4:ad:34:90:3a:ab, kid:0, type:AES
[ 6.862231] RTL871X: set group key camid:5, addr:c4:ad:34:90:3a:ab, kid:1, type:AES
[ 10.022895] @@@@ avpu driver ok(version H20220825a) @@@@@
[ 10.234793] @@@@ tx-isp-probe ok(version H20221206a), compiler date=Dec 6 2022 @@@@@
[ 10.291412] jz_codec_register: probe() successful!
[ 10.291541] cgu_set_rate, parent = 1404000000, rate = 2048000, n = 43875, reg val = 0x0400ab63
[ 10.291549] cgu_enable,cgu_i2s_spk reg val = 0x2400ab63
[ 10.291591] cgu_set_rate, parent = 1404000000, rate = 2048000, n = 43875, reg val = 0x0400ab63
[ 10.291599] cgu_enable,cgu_i2s_mic reg val = 0x2400ab63
[ 10.694017] dma dma0chan24: Channel 24 have been requested.(phy id 7,type 0x06 desc a23f1000)
[ 10.694415] dma dma0chan25: Channel 25 have been requested.(phy id 6,type 0x06 desc a0fdf000)
[ 10.694811] dma dma0chan26: Channel 26 have been requested.(phy id 5,type 0x04 desc a206f000)
[ 10.721644] GPIO claim module (c) OpenIPC.org
[ 10.744878] gpio_claim: GPIO[49] Claiming...
[ 10.761567] gpio_claim: GPIO[50] Claiming...
[ 10.792107] gpio_claim: GPIO[60] Claiming...
[ 11.675015] wait stable.[289][cgu_cim]
[ 11.675031] probe ok ------->jxq03
[ 11.734241] -----jxq03_detect: 711 ret = 0, v = 0x08
[ 11.734252] chip found @ 0x40 (i2c0) is not an jxq03 chip.

[ 11.734262] CPU: 0 PID: 805 Comm: majestic Tainted: G O 3.10.14__isvp_swan_1.0
_ #2
[ 11.734269] Stack : 00000000 00000000 00000000 00000000 8057316a 00000051 30001c01 80570000
[ 11.734269] 804942a0 818bb118 804febc7 80572904 00000325 c07314c0 c0730000 c0730000
[ 11.734269] 779cd000 803e6584 00000000 80036a38 00000002 00000000 80495c10 823bfce4
[ 11.734269] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 11.734269] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 823bfc70
[ 11.734269] ...
[ 11.734344] Call Trace:
[ 11.734358] [<8001fcec>] show_stack+0x58/0x70
[ 11.734518] [] isp_printf+0x78/0x90 [tx_isp_t31]
[ 11.734675] [] jxq03_g_chip_ident+0x18c/0x2a4 [sensor_jxq03_t31]
[ 11.734830] [] subdev_sensor_ops_ioctl+0x2dc/0x564 [tx_isp_t31]
[ 11.735139] [] ispcore_sensor_ops_ioctl+0x68/0xb8 [tx_isp_t31]
[ 11.735451] [] tx_isp_unlocked_ioctl+0x4dc/0x182c [tx_isp_t31]
[ 11.735610] [<800e0c70>] vfs_ioctl+0x30/0x48
[ 11.735615]

@xstealth741 xstealth741 changed the title Wrong sensor JXQ03P detection Wrong sensor JXQ03P detection. Xiaomi MJSXJ03HL Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant