Tapo C120(SSC377 ) Image Sensor isn't detected
I'm trying to test the openipc on Tapo C120 (SSC377). I've finished to write the openipc firmware(lite) for SSC377 to my C120 successfully but image sensor isn't detected while booting.
I checked C120 log as follows. The correct sensor is sc430ai but it didn't work.
detecting sensor sc430ai_MIPI... [ 5.774277] g_stSelSpinLock init. [ 5.774372] [ 5.774372] Sensor configuration, ID=0, Bus=1, Lane=1, MCLK=27000, PWD_PIN=1, RST_PIN=1 [ 5.774372] detect sensor sc430ai_MIPI result: 1 sensor_name=sc430ai_MIPI ========== Sensor sc430ai_MIPI was detected! ============= insmod /config/auto_detect_sensor/modules/sc430ai_MIPI.ko chmap=1
How to fix this issue?
<Device Status>
-
Hardware Processor: ssc377 Family: infinity6c Sensor: sc430ai Flash: 16 MB
-
Firmware Version: 2.5.03.20-lite Build: local+build, 2025-03-20 Majestic: master+fb5eab3, 2025-03-04 U-Boot: U-Boot 2015.01 (Oct 27 2024 - 16:59:44)
<Majestic Log>
majestic[652]: Majestic Lite for SigmaStar, version master+fb5eab3, built on 2025-03-04 majestic[652]: Detected SSTAR Watchdog majestic[652]: Watchdog timeout set to 10 seconds majestic[652]: Set server path: /var/www majestic[652]: HTTP server started on 0.0.0.0:80 majestic[652]: Loading main configuration: /etc/majestic.yaml majestic[652]: Initializing Sigmastar SDK, mi_sys_version_3.011 majestic[652]: Cannot query sensor index majestic[652]: Cannot initialize sensor majestic[652]: Error initializing snr majestic[652]: Cannot start SDK
<Kernel Log> Booting Linux on physical CPU 0x0 Linux version 5.10.61 (valiantx-ai-dev-server@valiantxaidevserver-MS-7E01) (buildroot-gcc-13.3.0) #12 PREEMPT Thu Mar 20 18:05:53 KST 2025 CPU: ARMv7 Processor [411fd040] revision 0 (ARMv7), cr=50c5383d CPU: div instructions available: patching division code CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache early_atags_to_fdt() success OF: fdt: Machine model: INFINITY6C SSC027A-S01A LXmem is 0x4000000 PHYS_OFFSET is 0x20000000 Add mem start 0x20000000 size 0x4000000!!!!
LX_MEM = 0x20000000, 0x4000000 LX_MEM2 = 0x0, 0x0 LX_MEM3 = 0x0, 0x0 MMU_MEM = 0x0, 0x0 EMAC_LEN= 0x0 DRAM_LEN= 0x0 Memory policy: Data cache writeback Reserved memory: bypass cma0 node, using cmdline CMA params instead OF: reserved mem: node cma0 compatible matching fail no any mmap reserved deal_with_reserve_mma_heap memblock_reserve success mma_config[0].reserved_start= 0x22000000 size:2000000
cma: Reserved 2 MiB at 0x21e00000 Zone ranges: Normal [mem 0x0000000020000000-0x0000000023ffffff] Movable zone start for each node Early memory node ranges node 0: [mem 0x0000000020000000-0x0000000023ffffff] Initmem setup node 0 [mem 0x0000000020000000-0x0000000023ffffff] On node 0 totalpages: 16384 Normal zone: 128 pages used for memmap Normal zone: 0 pages reserved Normal zone: 16384 pages, LIFO batch:3 CPU: All CPU(s) started in SVC mode. pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: [0] 0 Built 1 zonelists, mobility grouping on. Total pages: 16256 Kernel command line: console=ttyS0,115200 panic=20 root=/dev/mtdblock3 init=/init mtdparts=NOR_FLASH:256k(boot),64k(env),2048k(kernel),8192k(rootfs),-(rootfs_data) LX_MEM=0x4000000 mma_heap=mma_heap_name0,miu=0,sz=0x2000000 cma=2M Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear) mem auto-init: stack:off, heap alloc:off, heap free:off Memory: 25736K/65536K available (2404K kernel code, 347K rwdata, 1068K rodata, 124K init, 114K bss, 37752K reserved, 2048K cma-reserved) SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 rcu: Preemptible hierarchical RCU implementation. Trampoline variant of Tasks RCU enabled. rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 GICv3: 192 SPIs implemented GICv3: 0 Extended SPIs implemented GICv3: Distributor has no Range Selector support GICv3: 16 PPIs implemented GICv3: CPU0: found redistributor 0 region 0:0x16040000 ms_init_main_intc: np->name=ms_main_intc, parent=gic ms_init_pm_intc: np->name=ms_pm_intc, parent=ms_main_intc ss_init_gpi_intc: np->name=ms_gpi_intc, parent=ms_main_intc random: get_random_bytes called from start_kernel+0x1e3/0x364 with crng_init=0 Find CLK_cpupll_clk, hook ms_cpuclk_ops arch_timer: cp15 timer(s) running at 6.00MHz (virt). clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1623fa770, max_idle_ns: 440795202238 ns sched_clock: 56 bits at 6MHz, resolution 166ns, wraps every 4398046511055ns Switching to timer-based delay loop, resolution 166ns printk: console [ttyS0] enabled Calibrating delay loop (skipped), value calculated using timer frequency.. 12.00 BogoMIPS (lpj=60000) pid_max: default: 4096 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) CPU: Testing write buffer coherency: ok Setting up static identity map for 0x200081c0 - 0x200081f8 rcu: Hierarchical SRCU implementation. devtmpfs: initialized VFP support v0.3: implementor 41 architecture 3 part 40 variant 4 rev 3 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns futex hash table entries: 16 (order: -4, 448 bytes, linear) NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations
Version : MVX4##I6C#g#######KL_LX510##[BR:g]#XVM
GPIO: probe end usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb clocksource: Switched to clocksource arch_sys_counter NET: Registered protocol family 2 IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear) tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 6144 bytes, linear) TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) TCP bind hash table entries: 1024 (order: 2, 20480 bytes, linear) TCP: Hash tables configured (established 1024 bind 1024) UDP hash table entries: 128 (order: 0, 6144 bytes, linear) UDP-Lite hash table entries: 128 (order: 0, 6144 bytes, linear) NET: Registered protocol family 1 Initialise system trusted keyrings workingset: timestamp_bits=30 max_order=13 bucket_order=0 squashfs: version 4.0 (2009/01/31) Phillip Lougher jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc. Key type asymmetric registered Asymmetric key parser 'x509' registered io scheduler mq-deadline registered loop: module loaded libphy: Fixed MDIO Bus: probed tun: Universal TUN/TAP device driver, 1.6 ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver Sstar_ehc_init version:20180309 i2c /dev entries driver MSYS: DMEM request: [Sstar URDMA 0 TX]:0x00001000 MSYS: DMEM request alignment: [Sstar URDMA 0 TX]:0x00002000 MSYS: DMEM request: [Sstar URDMA 0 TX]:0x00002000 success, CPU phy:@0x0000000021E40000, virt:@(ptrval) MSYS: DMEM request: [Sstar URDMA 0 RX]:0x00001000 MSYS: DMEM request alignment: [Sstar URDMA 0 RX]:0x00002000 MSYS: DMEM request: [Sstar URDMA 0 RX]:0x00002000 success, CPU phy:@0x0000000021E42000, virt:@(ptrval) 1f221000.uart0: ttyS0 at MMIO 0x0 (irq = 36, base_baud = 10750000) is a unknown MSYS: DMEM request: [Sstar URDMA 1 TX]:0x00001000 MSYS: DMEM request alignment: [Sstar URDMA 1 TX]:0x00002000 MSYS: DMEM request: [Sstar URDMA 1 TX]:0x00002000 success, CPU phy:@0x0000000021E44000, virt:@(ptrval) MSYS: DMEM request: [Sstar URDMA 1 RX]:0x00001000 MSYS: DMEM request alignment: [Sstar URDMA 1 RX]:0x00002000 MSYS: DMEM request: [Sstar URDMA 1 RX]:0x00002000 success, CPU phy:@0x0000000021E46000, virt:@(ptrval) 1f221200.uart1: ttyS1 at MMIO 0x0 (irq = 39, base_baud = 10750000) is a unknown MSYS: DMEM request: [Sstar URDMA 2 TX]:0x00001000 MSYS: DMEM request alignment: [Sstar URDMA 2 TX]:0x00002000 MSYS: DMEM request: [Sstar URDMA 2 TX]:0x00002000 success, CPU phy:@0x0000000021E48000, virt:@(ptrval) MSYS: DMEM request: [Sstar URDMA 2 RX]:0x00001000 MSYS: DMEM request alignment: [Sstar URDMA 2 RX]:0x00002000 MSYS: DMEM request: [Sstar URDMA 2 RX]:0x00002000 success, CPU phy:@0x0000000021E4A000, virt:@(ptrval) 1f220400.fuart: ttyS2 at MMIO 0x0 (irq = 42, base_baud = 10750000) is a unknown [ss_gpi_intc_domain_alloc] hw:31 -> v:79 irq: IRQ79: trimming hierarchy from :soc:ms_main_intc
[sdmmc] ms_sdmmc_probe Fail to get pad(131075) form padmux ! [sdmmc_0] Probe Platform Devices MSYS: DMEM request: [emac0_buff]:0x00000812 MSYS: DMEM request alignment: [emac0_buff]:0x00002000 MSYS: DMEM request: [emac0_buff]:0x00002000 success, CPU phy:@0x0000000021E4E000, virt:@(ptrval) libphy: mdio: probed mdio_bus mdio-bus@emac0: ethernet-phy@0 has invalid PHY address mdio_bus mdio-bus@emac0: scan phy ethernet-phy at address 0 [emac_phy_connect][3726] connected mac emac0 to PHY at mdio-bus@emac0:00 [uid=11112222, driver=SStar 10/100 Ethernet Phy] sstar,rtcpwc 1f006800.rtcpwc: registered as rtc0 sstar,rtcpwc 1f006800.rtcpwc: setting system clock to 2025-03-20T10:01:13 UTC (1742464873) MSYS: DMEM request: [AESDMA_ENG]:0x00001000 MSYS: DMEM request alignment: [AESDMA_ENG]:0x00002000 MSYS: DMEM request: [AESDMA_ENG]:0x00002000 success, CPU phy:@0x0000000021E50000, virt:@(ptrval) MSYS: DMEM request: [AESDMA_ENG1]:0x00001000 MSYS: DMEM request alignment: [AESDMA_ENG1]:0x00002000 MSYS: DMEM request: [AESDMA_ENG1]:0x00002000 success, CPU phy:@0x0000000021E52000, virt:@(ptrval) ms_cpufreq_init 484 SIDD: 0x109 OSC:0xe4 ms_cpufreq_init 485 SIDD Thres: 0x113 OSC Thres:0xf0 [ms_cpufreq_init] Current clk=801358688 read pad-ctrl failed [NOTICE]pwm-isr(70) success. If not i6e or i6b0, pls confirm it on .dtsi [MSPI] mspi 0 use dma mode [MSPI] mspi 1 use dma mode [FLASH] find u32_sni_address = 0x9000 [FLASH] Device id is 0x20 0x40 0x18 [FLASH] SNI match flash. [SPINOR] ReadData = 0x6b [SPINOR] Dummy = 0x8 [SPINOR] pageProgram = 0x2 [FLASH] BDMA mode [SPINOR] complement = 0x0 [SPINOR] top/buttom = 0x0 [SPINOR] blocks = 0x0 [SPINOR] SRP0 = 0x0 [SPINOR] SRP1 = 0x0 [FLASH] End flash init. MSYS: DMEM request: [BDMA]:0x00010000 MSYS: DMEM request: [BDMA]:0x00010000 success, CPU phy:@0x0000000021E60000, virt:@(ptrval) _serflash_alloc_bdma_buffer _BDMA_ALLOC_DMEM.bdma_vir_addr 0xc1e60000 serflash_probe: 7mtd .name = NOR_FLASH, .size = 0x01000000 (16MiB) .erasesize = 0x00001000 .numeraseregions = 0
5 cmdlinepart partitions found on MTD device NOR_FLASH Creating 5 MTD partitions on "NOR_FLASH": 0x000000000000-0x000000040000 : "boot" 0x000000040000-0x000000050000 : "env" 0x000000050000-0x000000250000 : "kernel" 0x000000250000-0x000000a50000 : "rootfs" 0x000000a50000-0x000001000000 : "rootfs_data" phy phy-soc:sstar-usb2-phy.0: Eye diagram bank: (ptrval) (ptrval) (ptrval) (ptrval) NET: Registered protocol family 17 Loading compiled-in X.509 certificates Sstar-ehci 1f284800.Sstar-ehci-1: [USB] no platform_data, device tree coming Sstar-ehci 1f284800.Sstar-ehci-1: [USB][EHC] dma coherent_mask 0xffffffff mask 0xffffffff [USB] config miu select [70] [e8] [ef] [ef] [USB] enable miu lower bound address subtraction Sstar-ehci 1f284800.Sstar-ehci-1: ehci_hcd_sstar_usbc_settings Sstar-ehci 1f284800.Sstar-ehci-1: [USB] 1f284800.Sstar-ehci-1 irq --> 76 Sstar-ehci 1f284800.Sstar-ehci-1: [USB] hcd ehc:fd284800 usbc:c0bc9a00 bc:c0bc9800 phy phy-soc:sstar-usb2-phy.0: sstar_u2phy_utmi_reset phy phy-soc:sstar-usb2-phy.0: sstar_u2phy_utmi_power_off phy phy-soc:sstar-usb2-phy.0: sstar_u2phy_utmi_power_on phy phy-soc:sstar-usb2-phy.0: squelch level 0x00000002 phy phy-soc:sstar-usb2-phy.0: DP/DM no swap phy phy-soc:sstar-usb2-phy.0: sstar_u2phy_utmi_init phy phy-soc:sstar-usb2-phy.0: Set phy mode -> host phy phy-soc:sstar-usb2-phy.0: Default UTMI eye diagram parameter setting phy phy-soc:sstar-usb2-phy.0: sstar_u2phy_utmi_power_on phy phy-soc:sstar-usb2-phy.0: Init UTMI disconnect level setting Sstar-ehci 1f284800.Sstar-ehci-1: EHCI Host Controller Sstar-ehci 1f284800.Sstar-ehci-1: new USB bus registered, assigned bus number 1 Sstar-ehci 1f284800.Sstar-ehci-1: irq 76, io mem 0x1f284800 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: EHCI Host Controller usb usb1: Manufacturer: Linux 5.10.61 ehci_hcd usb usb1: SerialNumber: sstar hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected OF: fdt: not creating '/sys/firmware/fdt': CRC check failed clk: Not disabling unused clocks VFS: Mounted root (squashfs filesystem) readonly on device 31:3. devtmpfs: mounted Kernel memory protection not selected by kernel config. Run /init as init process with arguments: /init with environment: HOME=/ TERM=linux overlayfs: upper fs does not support tmpfile. overlayfs: upper fs does not support RENAME_WHITEOUT. overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off. random: crng init done exfat: loading out-of-tree module taints kernel. [ss_gpi_intc_domain_alloc] hw:49 -> v:80 irq: IRQ80: trimming hierarchy from :soc:ms_main_intc usb usb1-port1: hub_port_connect: add adjust_async_ladr flag usb 1-1: new high-speed USB device number 2 using Sstar-ehci Sstar-ehci 1f284800.Sstar-ehci-1: [switch] reg is 0x1e4d000, 0x10001, 0xd usb 1-1: New USB device found, idVendor=0bda, idProduct=f179, bcdDevice= 0.00 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1: SerialNumber: B01921359AA8 phy phy-soc:sstar-usb2-phy.0: high-speed connect cfg80211: Loading compiled-in X.509 certificates for regulatory database cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' usbcore: registered new interface driver rtl8188fu [emac_phy_link_adjust] EMAC Link Down mi: module license 'PROPRIETARY' taints kernel. Disabling lock debugging due to kernel taint mhal module [vcodec] init [ven-m][sys] DrvVencProbe:228 vcodec prob sucess. [ven-m][jpeg] jpe driver probed mhal module [aio] init module [sys] init Jun 18 2024 15:25:30 [35mFunction = MI_SYS_Mprotect_InitGlobMiuKranges, Line = 874, Insert KProtect for LX @ MIU: 0[m [35mFunction = MI_SYS_Mprotect_InitGlobMiuKranges, Line = 886, [INIT] for LX0 kprotect: from 0x20000000 to 0x24000000, using block 0[m start:0x20000000,end:0x24000000,block_id:0,flag:1 HAL_MIU_Protect 790 start=20000000, 24000000 u8Blockx=0 function:parese_Cmdline,pCmd_Section:0x4000000 m m a _ h e a p _ n a m e 0 miu=0,sz=2000000 reserved_start=22000000 start:0x20000000,end:0x24000000,block_id:0,flag:0 HAL_MIU_Protect 790 start=20000000, 24000000 u8Blockx=0 r_front->miuBlockIndex:0,r_front->start_cpu_bus_pa:0x20000000,r_front->start_cpu_bus_pa+r_front->length:0x22000000 start:0x20000000,end:0x22000000,block_id:0,flag:1 HAL_MIU_Protect 790 start=20000000, 22000000 u8Blockx=0 mi_sys_mma_allocator_create success, heap_base_addr=22000000 length=2000000 mi_sys_mma_allocator_create success, heap_base_addr=20000000 length=3a800 Sigmastar Module version: project_commit.699b9f2 sdk_commit.7d2dfd4 mhal_commit.f76c372 build_time.20240618152514 mhal module [vif] init g_stSelSpinLock init. module [vif] init mhal module [sensor] init module [sensor] init mhal module [rgn] init module [rgn] init module [ao] init module [ai] init mhal module [isp] init [Isp_Driver_Init] [_Isp0Probe][s32CurClkIdx] = 0 [DrvIspModuleInitClk] init clock [0] ok [320000000] Hz [DrvIspModuleInitClk] init clock [1] ok [288000000] Hz [DrvIspModuleInitClk] init clock [2] ok [216000000] Hz [DrvIspModuleInitClk] init clock [3] ok [192000000] Hz [DrvIspModuleInitClk] init clock [4] ok [172000000] Hz [DrvIspModuleInitClk] init clock [5] ok [123400000] Hz [DrvIspModuleInitClk] init clock [6] ok [72000000] Hz [DrvIspModuleInitClk] init clock [7] ok [384000000] Hz enable scl clk enable dsc enc clk enable dsc dec clk [DrvIspModuleClkInit] Use Preset Idx [0] [DrvIspModuleSetClkByIndex] set clock [0] ok [320000000] Hz [DrvIspOpen] Dev ID = 0 IspSysGetRegBase = 0xFD000000 isp0_cfg base = 0xFD260400 dma_fbd0_cfg base = 0xFD26CB00 [ISP] Request IRQ: 32 [IspMid_Driver_Init] ispsclttl:0
module [isp] init
module [ipu] init
module [shadow] init
mhal module [vpe] init
[1;31m[DrvSclVpeModuleInit @ 173]
[m
module [scl] init
module [venc] init Jun 18 2024 15:25:30
mhal module [ldc] init
[1;33m[DRV_LDC_Init_KernelModule @ 128]
[m
module [ldc] init
[ispmid_fwrite] CMD : isproot
[ISP] Change isp root to /etc/firmware
[emac_phy_link_adjust] EMAC Link Up
client [652] connected, module:sys
client [652] connected, module:sensor
[ss_gpi_intc_domain_alloc] hw:88 -> v:81
irq: IRQ81: trimming hierarchy from :soc:ms_main_intc
[ss_gpi_intc_domain_alloc] hw:14 -> v:82
irq: IRQ82: trimming hierarchy from :soc:ms_main_intc