OpenIPC / firmware

Alternative IP Camera firmware from an open community
https://openipc.org
MIT License
1.15k stars 223 forks source link

hi3516ev100 lite 16m no match sensor driver cause mejestic wrong #1418

Open catulacnpoly opened 2 months ago

catulacnpoly commented 2 months ago

sensor is sc2235_i2c

"majestic[854]: Majestic Lite for HiSilicon, version master+e066cc6, built on 2024-04-22 majestic[854]: Detected Hisilicon Watchdog majestic[854]: Watchdog timeout set to 300 seconds majestic[854]: Set server path: /var/www majestic[854]: HTTP server started on 0.0.0.0:80 majestic[854]: Loading main configuration: /etc/majestic.yaml majestic[854]: Autodetected sensor as 'sc2235_i2c' majestic[854]: No matches for 'sc2235_i2c' in /etc/sensors directory majestic[854]: Cannot start SDK"

list in etc/sensors:

"root@openipc-hi3516ev100:/etc/sensors# ls ar0237_i2c_dc_1080p_line.ini imx385_i2c_1080p.ini imx290_i2c_lvds_1080p_line.ini iq imx291_i2c_lvds_1080p_line.ini jxf22_i2c_dc_1080p_line.ini imx307_i2c_lvds_1080p_line.ini ov2718_i2c_1080p.ini imx307_i2c_mipi_1080p_line.ini ov2735_i2c_1080p.ini imx323_i2c_dc_1080p_line.ini sc2235p_i2c_dc_1080p_line.ini imx323_spi_dc_1080p_line.ini sc2310_i2c_dc_1080p.ini imx327_i2c_lvds_1080p_line.ini"

"sc2235p_i2c_dc_1080p_line.ini" did not match "sc2235_i2c"

after I reboot the cam ,it shows:

"majestic[682]: Majestic Lite for HiSilicon, version master+e066cc6, built on 2024-04-22 majestic[682]: Watchdog device (/dev/watchdog) not found majestic[682]: Set server path: /var/www majestic[682]: HTTP server started on 0.0.0.0:80 majestic[682]: Loading main configuration: /etc/majestic.yaml majestic[682]: Cannot get chip id majestic[682]: Unknown error code 2 majestic[682]: Cannot start SDK"

catulacnpoly commented 2 months ago

I curl the sc2235_i2c_dc_1080p.ini libsns_sc2235.so from hi3561cv200 pakage,and then the follow::

majestic[802]: Majestic Lite for HiSilicon, version master+e066cc6, built on 2024-04-22 majestic[802]: Detected Hisilicon Watchdog majestic[802]: Watchdog timeout set to 300 seconds majestic[802]: Set server path: /var/www majestic[802]: HTTP server started on 0.0.0.0:80 majestic[802]: Loading main configuration: /etc/majestic.yaml majestic[802]: SENSOR=sc2235 majestic[802]: matched sensor config: sc2235_i2c_dc_1080p.ini majestic[802]: Using /etc/sensors/sc2235_i2c_dc_1080p.ini sensor configuration file majestic[802]: App was built with MPP version: Hi3516CV300_MPP_V1.0.4.0.B050 Release majestic[802]: Current MPP version: HI_VERSION=Hi3516CV300_MPP_V1.0.4.0 B050 Release majestic[802]: sensor sc2235 majestic[802]: input_mode CMOS, WDR NONE majestic[802]: dev [1920x1080]@0x0 30fps, BGGR majestic[802]: trying to load /usr/lib/sensors/libsns_sc2235.so majestic[802]: Free MMZ mem before allocation: 32292KB majestic[802]: VB configuration: majestic[802]: [0]: 3110400 x 3 majestic[802]: [1]: 4147200 x 1 majestic[802]: Free MMZ mem after allocation: 19116KB majestic[802]: Sensor driver loaded majestic[802]: open vi(0,0) err, ret:-1 majestic[802]: Cannot set VI dev 0 attr majestic[802]: ERR_VI_SYS_NOTREADY: The VI system is not initialized majestic[802]: Cannot init VI majestic[802]: Cannot start SDK

widgetii commented 2 months ago

hi3516cv300 and hi3516cv200 are different platforms, their sensor drivers are incompatible

catulacnpoly commented 2 months ago

hi3516cv300 and hi3516cv200 are different platforms, their sensor drivers are incompatible

what's the diffrence between sc2235 and sc2235p,I use the sc2235p driver of cv300 got the same error log。

majestic[805]: Majestic Lite for HiSilicon, version master+e066cc6, built on 2024-04-22 majestic[805]: Detected Hisilicon Watchdog majestic[805]: Watchdog timeout set to 300 seconds majestic[805]: Set server path: /var/www majestic[805]: HTTP server started on 0.0.0.0:80 majestic[805]: Loading main configuration: /etc/majestic.yaml majestic[805]: SENSOR=sc2235 majestic[805]: matched sensor config: sc2235p_i2c_dc_1080p_line.ini majestic[805]: Using /etc/sensors/sc2235p_i2c_dc_1080p_line.ini sensor configuration file majestic[805]: App was built with MPP version: Hi3516CV300_MPP_V1.0.4.0.B050 Release majestic[805]: Current MPP version: HI_VERSION=Hi3516CV300_MPP_V1.0.4.0 B050 Release majestic[805]: sensor sc2235p majestic[805]: input_mode CMOS, WDR NONE majestic[805]: dev [1920x1080]@0x0 25fps, BGGR majestic[805]: trying to load /usr/lib/sensors/libsns_sc2235p_i2c_dc.so majestic[805]: Free MMZ mem before allocation: 32292KB majestic[805]: VB configuration: majestic[805]: [0]: 3110400 x 3 majestic[805]: [1]: 4147200 x 1 majestic[805]: Free MMZ mem after allocation: 19116KB majestic[805]: Sensor driver loaded majestic[805]: open vi(0,0) err, ret:-1 majestic[805]: Cannot set VI dev 0 attr majestic[805]: ERR_VI_SYS_NOTREADY: The VI system is not initialized majestic[805]: Cannot init VI majestic[805]: Cannot start SDK

catulacnpoly commented 2 months ago

root@openipc-hi3516ev100:~# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.18.20 (runner@fv-az651-175) (buildroot-gcc-13.2.0 ) #2 Thu Apr 25 02:10:11 UTC 2024 [ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine model: Hisilicon Hi3516CV300 DEMO Board [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 8192 [ 0.000000] free_area_init_node: node 0, pgdat c045a388, node_mem_map c1fba00 0 [ 0.000000] Normal zone: 64 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 8192 pages, LIFO batch:0 [ 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 on. Total pag es: 8128 [ 0.000000] Kernel command line: mem=32M console=ttyAMA0,115200 panic=20 root =/dev/mtdblock3 rootfstype=squashfs init=/init mtdparts=hi_sfc:256k(boot),64k(en v),3072k(kernel),10240k(rootfs),-(rootfs_data) [ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes) [ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Memory: 27668K/32768K available (3129K kernel code, 171K rwdata, 976K rodata, 148K init, 239K bss, 5100K reserved, 0K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB) [ 0.000000] vmalloc : 0xc2800000 - 0xff000000 ( 968 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc2000000 ( 32 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc040aa74 (4107 kB) [ 0.000000] .init : 0xc040b000 - 0xc0430000 ( 148 kB) [ 0.000000] .data : 0xc0430000 - 0xc045ae20 ( 172 kB) [ 0.000000] .bss : 0xc045ae20 - 0xc0496d60 ( 240 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] VIC @c2800000: id 0x00641190, vendor 0x41 [ 0.000035] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 14 31655765682ns [ 0.000808] Console: colour dummy device 80x30 [ 0.000866] Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656) [ 0.050024] pid_max: default: 32768 minimum: 301 [ 0.050194] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.050214] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.051425] Initializing cgroup subsys devices [ 0.051471] Initializing cgroup subsys freezer [ 0.051497] Initializing cgroup subsys blkio [ 0.051556] CPU: Testing write buffer coherency: ok [ 0.052248] Setting up static identity map for 0x802fa6f0 - 0x802fa748 [ 0.054324] devtmpfs: initialized [ 0.056036] VFP support v0.3: not present [ 0.056896] pinctrl core: initialized pinctrl subsystem [ 0.065214] NET: Registered protocol family 16 [ 0.066676] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.083274] Serial: AMBA PL011 UART driver [ 0.083649] 12100000.uart: ttyAMA0 at MMIO 0x12100000 (irq = 21, base_baud = 0) is a PL011 rev2 [ 0.356906] console [ttyAMA0] enabled [ 0.388120] SCSI subsystem initialized [ 0.392135] ssp-pl022 12120000.spi: ARM PL022 driver, device ID: 0x00800022 [ 0.399210] ssp-pl022 12120000.spi: mapped registers from 0x12120000 to c286c 000 [ 0.431798] usbcore: registered new interface driver usbfs [ 0.437463] usbcore: registered new interface driver hub [ 0.442979] usbcore: registered new device driver usb [ 0.450321] Switched to clocksource arm,sp804 [ 0.478437] NET: Registered protocol family 2 [ 0.484687] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.491794] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.498210] TCP: Hash tables configured (established 1024 bind 1024) [ 0.504760] TCP: reno registered [ 0.508007] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.513937] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.520642] NET: Registered protocol family 1 [ 0.526063] RPC: Registered named UNIX socket transport module. [ 0.532075] RPC: Registered udp transport module. [ 0.536786] RPC: Registered tcp transport module. [ 0.541517] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.554854] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.583033] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.592419] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc. [ 0.600169] msgmni has been set to 54 [ 0.608256] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2 54) [ 0.615783] io scheduler noop registered [ 0.619731] io scheduler deadline registered (default) [ 0.625373] io scheduler cfq registered [ 0.639733] pinctrl-single 12040000.pinmux: 66 pins at pa c28ca000 size 264 [ 0.647410] pinctrl-single 12040800.pinconf: 76 pins at pa c28cc800 size 304 [ 0.655464] pl061_gpio 12140000.gpio: PL061 GPIO chip @0x12140000 registered [ 0.663201] pl061_gpio 12141000.gpio: PL061 GPIO chip @0x12141000 registered [ 0.670964] pl061_gpio 12142000.gpio: PL061 GPIO chip @0x12142000 registered [ 0.678659] pl061_gpio 12143000.gpio: PL061 GPIO chip @0x12143000 registered [ 0.686400] pl061_gpio 12144000.gpio: PL061 GPIO chip @0x12144000 registered [ 0.694129] pl061_gpio 12145000.gpio: PL061 GPIO chip @0x12145000 registered [ 0.701953] pl061_gpio 12146000.gpio: PL061 GPIO chip @0x12146000 registered [ 0.709594] pl061_gpio 12147000.gpio: PL061 GPIO chip @0x12147000 registered [ 0.717352] pl061_gpio 12148000.gpio: PL061 GPIO chip @0x12148000 registered [ 0.740959] brd: module loaded [ 0.753304] loop: module loaded [ 0.759472] hisi-sfc hisi_spi_nor.0: The ID: 0x20 isn't in the BP table, Curr ent device can't not protect [ 0.769153] hisi-sfc hisi_spi_nor.0: xm25qh128a (16384 Kbytes) [ 0.775052] 5 cmdlinepart partitions found on MTD device hi_sfc [ 0.781007] 5 cmdlinepart partitions found on MTD device hi_sfc [ 0.786928] Creating 5 MTD partitions on "hi_sfc": [ 0.791754] 0x000000000000-0x000000040000 : "boot" [ 0.798599] 0x000000040000-0x000000050000 : "env" [ 0.806681] 0x000000050000-0x000000350000 : "kernel" [ 0.814817] 0x000000350000-0x000000d50000 : "rootfs" [ 0.823070] 0x000000d50000-0x000001000000 : "rootfs_data" [ 0.832371] SPI Nand ID Table Version 2.4 [ 0.837410] Cannot found a valid SPI Nand Device [ 0.845710] libphy: hisi_femac_mii_bus: probed [ 0.850187] mdio_bus 10051100.mdio: /soc/mdio@10051100/phy@1 has invalid PHY address [ 0.858029] mdio_bus 10051100.mdio: scan phy phy at address 0 [ 0.880502] mdio_bus 10051100.mdio: scan phy phy at address 1 [ 0.909126] mdio_bus 10051100.mdio: scan phy phy at address 2 [ 0.930369] mdio_bus 10051100.mdio: scan phy phy at address 3 [ 0.950354] mdio_bus 10051100.mdio: scan phy phy at address 4 [ 0.970348] mdio_bus 10051100.mdio: scan phy phy at address 5 [ 0.990347] mdio_bus 10051100.mdio: scan phy phy at address 6 [ 1.010348] mdio_bus 10051100.mdio: scan phy phy at address 7 [ 1.030348] mdio_bus 10051100.mdio: scan phy phy at address 8 [ 1.050348] mdio_bus 10051100.mdio: scan phy phy at address 9 [ 1.070351] mdio_bus 10051100.mdio: scan phy phy at address 10 [ 1.090348] mdio_bus 10051100.mdio: scan phy phy at address 11 [ 1.110347] mdio_bus 10051100.mdio: scan phy phy at address 12 [ 1.130349] mdio_bus 10051100.mdio: scan phy phy at address 13 [ 1.150350] mdio_bus 10051100.mdio: scan phy phy at address 14 [ 1.170346] mdio_bus 10051100.mdio: scan phy phy at address 15 [ 1.190348] mdio_bus 10051100.mdio: scan phy phy at address 16 [ 1.210348] mdio_bus 10051100.mdio: scan phy phy at address 17 [ 1.230349] mdio_bus 10051100.mdio: scan phy phy at address 18 [ 1.250349] mdio_bus 10051100.mdio: scan phy phy at address 19 [ 1.270347] mdio_bus 10051100.mdio: scan phy phy at address 20 [ 1.290348] mdio_bus 10051100.mdio: scan phy phy at address 21 [ 1.310348] mdio_bus 10051100.mdio: scan phy phy at address 22 [ 1.330348] mdio_bus 10051100.mdio: scan phy phy at address 23 [ 1.350350] mdio_bus 10051100.mdio: scan phy phy at address 24 [ 1.370348] mdio_bus 10051100.mdio: scan phy phy at address 25 [ 1.390346] mdio_bus 10051100.mdio: scan phy phy at address 26 [ 1.410348] mdio_bus 10051100.mdio: scan phy phy at address 27 [ 1.430348] mdio_bus 10051100.mdio: scan phy phy at address 28 [ 1.450347] mdio_bus 10051100.mdio: scan phy phy at address 29 [ 1.470350] mdio_bus 10051100.mdio: scan phy phy at address 30 [ 1.490348] mdio_bus 10051100.mdio: scan phy phy at address 31 [ 1.840372] hisi-femac 10050000.ethernet: phy_id=0x02430c54, phyaddr=1, phy mode=rmii [ 1.848358] hisi-femac 10050000.ethernet: using random MAC address be:d4:3e:c e:54:5c [ 1.857985] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.864634] ehci-platform: EHCI generic platform driver [ 1.870195] ehci-platform 10120000.ehci: EHCI Host Controller [ 1.876116] ehci-platform 10120000.ehci: new USB bus registered, assigned bus number 1 [ 1.884498] ehci-platform 10120000.ehci: irq 31, io mem 0x10120000 [ 1.910420] ehci-platform 10120000.ehci: USB 2.0 started, EHCI 1.00 [ 1.918418] hub 1-0:1.0: USB hub found [ 1.922352] hub 1-0:1.0: 1 port detected [ 1.927643] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.933974] ohci-platform: OHCI generic platform driver [ 1.939518] ohci-platform 10110000.ohci: Generic Platform OHCI controller [ 1.946478] ohci-platform 10110000.ohci: new USB bus registered, assigned bus number 2 [ 1.954689] ohci-platform 10110000.ohci: irq 32, io mem 0x10110000 [ 2.026157] hub 2-0:1.0: USB hub found [ 2.030018] hub 2-0:1.0: 1 port detected [ 2.035374] i2c /dev entries driver [ 2.039993] hibvt-i2c 12110000.i2c: hibvt-i2c0@100000hz registered [ 2.047258] hibvt-i2c 12112000.i2c: hibvt-i2c1@100000hz registered [ 2.054667] himci: mmc host probe [ 2.220478] himci: mmc host probe [ 2.390479] himci: mmc host probe [ 2.561006] hidraw: raw HID events driver (C) Jiri Kosina [ 2.568038] usbcore: registered new interface driver usbhid [ 2.573686] usbhid: USB HID core driver [ 2.578771] TCP: cubic registered [ 2.582211] NET: Registered protocol family 17 [ 2.586840] bridge: automatic filtering via arp/ip/ip6tables has been depreca ted. Update your scripts to load br_netfilter if you need this. [ 2.614828] VFS: Mounted root (squashfs filesystem) readonly on device 31:3. [ 2.629788] devtmpfs: mounted [ 2.634995] Freeing unused kernel memory: 148K (c040b000 - c0430000) [ 4.455964] devpts: called with bogus options [ 4.727914] random: seedrng urandom read with 7 bits of entropy available [ 9.050441] hisi-femac 10050000.ethernet eth0: Link is Up - 100Mbps/Full - fl ow control rx/tx [ 12.020744] Module himedia: init ok [ 12.020772] Hisilicon Media Memory Zone Manager [ 12.020785] The module param setup_allocator is hisi [ 12.021296] hi_osal 1.0 init success! [ 12.100930] hi3516cv300_base: module license 'Proprietary' taints kernel. [ 12.100963] Disabling lock debugging due to kernel taint [ 12.206342] load sys.ko...OK! [ 12.298541] load region.ko...OK! [ 12.422592] load vgs.ko...OK! [ 12.608061] hi3516cv300_viu: ' invalid for parameterviu_clk_frequency' [ 12.633330] hi3516cv300_viu: ' invalid for parameterviu_clk_frequency' [ 12.699917] hi3516cv300_isp: Unknown symbol g_psViuAllReg (err 0) [ 12.711328] hi3516cv300_isp: Unknown symbol g_psViuAllReg (err 0) [ 12.879151] hi3516cv300_vpss: Unknown symbol VIU_DRV_GetChnIntStatus (err 0) [ 12.879392] hi3516cv300_vpss: Unknown symbol VIU_DRV_ClearChnIntMask (err 0) [ 12.879430] hi3516cv300_vpss: Unknown symbol VIU_DRV_GetGlobalIntIndicator (e rr 0) [ 12.879560] hi3516cv300_vpss: Unknown symbol VIU_DRV_GetGlobalChnIntMask (err 0) [ 12.879669] hi3516cv300_vpss: Unknown symbol VIU_DRV_ClearChnIntStatus (err 0 ) [ 12.879705] hi3516cv300_vpss: Unknown symbol VIU_DRV_IsFrameFlashed (err 0) [ 12.880186] hi3516cv300_vpss: Unknown symbol VIU_DRV_GetPrivateData (err 0) [ 12.901002] hi3516cv300_vpss: Unknown symbol VIU_DRV_GetChnIntStatus (err 0) [ 12.901255] hi3516cv300_vpss: Unknown symbol VIU_DRV_ClearChnIntMask (err 0) [ 12.901294] hi3516cv300_vpss: Unknown symbol VIU_DRV_GetGlobalIntIndicator (e rr 0) [ 12.901425] hi3516cv300_vpss: Unknown symbol VIU_DRV_GetGlobalChnIntMask (err 0) [ 12.901537] hi3516cv300_vpss: Unknown symbol VIU_DRV_ClearChnIntStatus (err 0 ) [ 12.901571] hi3516cv300_vpss: Unknown symbol VIU_DRV_IsFrameFlashed (err 0) [ 12.902076] hi3516cv300_vpss: Unknown symbol VIU_DRV_GetPrivateData (err 0) [ 13.002477] load vou.ko...OK! [ 13.110922] load rc.ko ...OK! [ 13.262375] load venc.ko ...OK! [ 13.330304] load chnl.ko...OK! [ 13.387071] load vedu.ko ...OK! [ 13.507275] load h264e.ko ...OK! [ 13.629071] load h265e.ko ...OK! [ 13.697739] load jpege.ko ...OK! [ 13.847035] load ive.ko...OK! [ 13.924437] register senor_callback to isp failed! [ 13.924565] sensor init failed! [ 13.924797] hi35xx_sensor: probe of media:sensor_device0 failed with error -1 [ 13.971149] load pwm.ko OK! [ 14.044826] register piris_gpio_write_callback to isp failed, hi_piris init i s failed! [ 14.044864] load hi_piris.ko OK! [ 14.112653] load aio.ko ...OK! [ 14.186753] load ai.ko OK! [ 14.236019] load ao.ko OK! [ 14.266422] load aenc.ko OK! [ 14.309659] load adec.ko OK! [ 14.370561] load acodec.ko...OK! [ 14.413191] load hi_mipi driver successful! [ 14.469801] Hisilicon Watchdog Timer: 0.01 initialized. default_margin=60 sec (nodeamon= 0) [ 14.469831] hiwtdg init ok. ver=Jun 3 2018, 21:43:46. [ 52.001074] hisi-femac 10050000.ethernet eth0: Link is Down [ 55.130939] hisi-femac 10050000.ethernet eth0: Link is Up - 100Mbps/Full - fl ow control rx/tx [ 83.728130] hisi-femac 10050000.ethernet eth0: Link is Down [ 84.778028] hisi-femac 10050000.ethernet eth0: Link is Up - 100Mbps/Full - fl ow control rx/tx [ 90.897546] hisi-femac 10050000.ethernet eth0: Link is Down [ 91.947511] hisi-femac 10050000.ethernet eth0: Link is Up - 100Mbps/Full - fl ow control rx/tx [ 126.150871] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.152060] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.152264] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.154561] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.154754] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.154946] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.155137] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.155332] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.155524] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.155713] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.155902] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.156098] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.156292] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.159527] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.172810] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.173992] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.174192] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.177642] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.177872] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.178068] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.178258] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.178451] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.178638] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.178826] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.179014] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.179208] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.179398] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 126.179587] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611

catulacnpoly commented 2 months ago

dmesg after first boot

root@openipc-hi3516ev100:~# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.18.20 (runner@fv-az651-175) (buildroot-gcc-13.2.0 ) #2 Thu Apr 25 02:10:11 UTC 2024 [ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine model: Hisilicon Hi3516CV300 DEMO Board [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 8192 [ 0.000000] free_area_init_node: node 0, pgdat c045a388, node_mem_map c1fba00 0 [ 0.000000] Normal zone: 64 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 8192 pages, LIFO batch:0 [ 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 on. Total pag es: 8128 [ 0.000000] Kernel command line: mem=32M console=ttyAMA0,115200 panic=20 root =/dev/mtdblock3 rootfstype=squashfs init=/init mtdparts=hi_sfc:256k(boot),64k(en v),3072k(kernel),10240k(rootfs),-(rootfs_data) [ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes) [ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Memory: 27668K/32768K available (3129K kernel code, 171K rwdata, 976K rodata, 148K init, 239K bss, 5100K reserved, 0K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB) [ 0.000000] vmalloc : 0xc2800000 - 0xff000000 ( 968 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc2000000 ( 32 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc040aa74 (4107 kB) [ 0.000000] .init : 0xc040b000 - 0xc0430000 ( 148 kB) [ 0.000000] .data : 0xc0430000 - 0xc045ae20 ( 172 kB) [ 0.000000] .bss : 0xc045ae20 - 0xc0496d60 ( 240 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] VIC @c2800000: id 0x00641190, vendor 0x41 [ 0.000034] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 14 31655765682ns [ 0.000806] Console: colour dummy device 80x30 [ 0.000864] Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656) [ 0.050024] pid_max: default: 32768 minimum: 301 [ 0.050194] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.050214] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.051425] Initializing cgroup subsys devices [ 0.051471] Initializing cgroup subsys freezer [ 0.051497] Initializing cgroup subsys blkio [ 0.051557] CPU: Testing write buffer coherency: ok [ 0.052248] Setting up static identity map for 0x802fa6f0 - 0x802fa748 [ 0.054325] devtmpfs: initialized [ 0.056036] VFP support v0.3: not present [ 0.056896] pinctrl core: initialized pinctrl subsystem [ 0.065214] NET: Registered protocol family 16 [ 0.066676] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.083251] Serial: AMBA PL011 UART driver [ 0.083626] 12100000.uart: ttyAMA0 at MMIO 0x12100000 (irq = 21, base_baud = 0) is a PL011 rev2 [ 0.356880] console [ttyAMA0] enabled [ 0.388090] SCSI subsystem initialized [ 0.392109] ssp-pl022 12120000.spi: ARM PL022 driver, device ID: 0x00800022 [ 0.399184] ssp-pl022 12120000.spi: mapped registers from 0x12120000 to c286c 000 [ 0.431737] usbcore: registered new interface driver usbfs [ 0.437407] usbcore: registered new interface driver hub [ 0.442923] usbcore: registered new device driver usb [ 0.450260] Switched to clocksource arm,sp804 [ 0.478336] NET: Registered protocol family 2 [ 0.484581] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.491690] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.498104] TCP: Hash tables configured (established 1024 bind 1024) [ 0.504658] TCP: reno registered [ 0.507905] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.513838] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.520555] NET: Registered protocol family 1 [ 0.525967] RPC: Registered named UNIX socket transport module. [ 0.531978] RPC: Registered udp transport module. [ 0.536687] RPC: Registered tcp transport module. [ 0.541418] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.554732] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.582943] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.592321] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc. [ 0.600069] msgmni has been set to 54 [ 0.608156] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2 54) [ 0.615687] io scheduler noop registered [ 0.619636] io scheduler deadline registered (default) [ 0.625279] io scheduler cfq registered [ 0.639654] pinctrl-single 12040000.pinmux: 66 pins at pa c28ca000 size 264 [ 0.647327] pinctrl-single 12040800.pinconf: 76 pins at pa c28cc800 size 304 [ 0.655379] pl061_gpio 12140000.gpio: PL061 GPIO chip @0x12140000 registered [ 0.663116] pl061_gpio 12141000.gpio: PL061 GPIO chip @0x12141000 registered [ 0.670873] pl061_gpio 12142000.gpio: PL061 GPIO chip @0x12142000 registered [ 0.678562] pl061_gpio 12143000.gpio: PL061 GPIO chip @0x12143000 registered [ 0.686300] pl061_gpio 12144000.gpio: PL061 GPIO chip @0x12144000 registered [ 0.694029] pl061_gpio 12145000.gpio: PL061 GPIO chip @0x12145000 registered [ 0.701856] pl061_gpio 12146000.gpio: PL061 GPIO chip @0x12146000 registered [ 0.709494] pl061_gpio 12147000.gpio: PL061 GPIO chip @0x12147000 registered [ 0.717254] pl061_gpio 12148000.gpio: PL061 GPIO chip @0x12148000 registered [ 0.740835] brd: module loaded [ 0.753040] loop: module loaded [ 0.759203] hisi-sfc hisi_spi_nor.0: The ID: 0x20 isn't in the BP table, Curr ent device can't not protect [ 0.768883] hisi-sfc hisi_spi_nor.0: xm25qh128a (16384 Kbytes) [ 0.774782] 5 cmdlinepart partitions found on MTD device hi_sfc [ 0.780737] 5 cmdlinepart partitions found on MTD device hi_sfc [ 0.786658] Creating 5 MTD partitions on "hi_sfc": [ 0.791483] 0x000000000000-0x000000040000 : "boot" [ 0.798336] 0x000000040000-0x000000050000 : "env" [ 0.806391] 0x000000050000-0x000000350000 : "kernel" [ 0.814512] 0x000000350000-0x000000d50000 : "rootfs" [ 0.822757] 0x000000d50000-0x000001000000 : "rootfs_data" [ 0.832418] SPI Nand ID Table Version 2.4 [ 0.837459] Cannot found a valid SPI Nand Device [ 0.845706] libphy: hisi_femac_mii_bus: probed [ 0.850181] mdio_bus 10051100.mdio: /soc/mdio@10051100/phy@1 has invalid PHY address [ 0.858024] mdio_bus 10051100.mdio: scan phy phy at address 0 [ 0.880412] mdio_bus 10051100.mdio: scan phy phy at address 1 [ 0.908481] mdio_bus 10051100.mdio: scan phy phy at address 2 [ 0.930309] mdio_bus 10051100.mdio: scan phy phy at address 3 [ 0.950294] mdio_bus 10051100.mdio: scan phy phy at address 4 [ 0.970291] mdio_bus 10051100.mdio: scan phy phy at address 5 [ 0.990288] mdio_bus 10051100.mdio: scan phy phy at address 6 [ 1.010287] mdio_bus 10051100.mdio: scan phy phy at address 7 [ 1.030288] mdio_bus 10051100.mdio: scan phy phy at address 8 [ 1.050290] mdio_bus 10051100.mdio: scan phy phy at address 9 [ 1.070290] mdio_bus 10051100.mdio: scan phy phy at address 10 [ 1.090290] mdio_bus 10051100.mdio: scan phy phy at address 11 [ 1.110290] mdio_bus 10051100.mdio: scan phy phy at address 12 [ 1.130287] mdio_bus 10051100.mdio: scan phy phy at address 13 [ 1.150290] mdio_bus 10051100.mdio: scan phy phy at address 14 [ 1.170289] mdio_bus 10051100.mdio: scan phy phy at address 15 [ 1.190290] mdio_bus 10051100.mdio: scan phy phy at address 16 [ 1.210288] mdio_bus 10051100.mdio: scan phy phy at address 17 [ 1.230289] mdio_bus 10051100.mdio: scan phy phy at address 18 [ 1.250287] mdio_bus 10051100.mdio: scan phy phy at address 19 [ 1.270286] mdio_bus 10051100.mdio: scan phy phy at address 20 [ 1.290290] mdio_bus 10051100.mdio: scan phy phy at address 21 [ 1.310287] mdio_bus 10051100.mdio: scan phy phy at address 22 [ 1.330287] mdio_bus 10051100.mdio: scan phy phy at address 23 [ 1.350288] mdio_bus 10051100.mdio: scan phy phy at address 24 [ 1.370287] mdio_bus 10051100.mdio: scan phy phy at address 25 [ 1.390288] mdio_bus 10051100.mdio: scan phy phy at address 26 [ 1.410289] mdio_bus 10051100.mdio: scan phy phy at address 27 [ 1.430290] mdio_bus 10051100.mdio: scan phy phy at address 28 [ 1.450288] mdio_bus 10051100.mdio: scan phy phy at address 29 [ 1.470288] mdio_bus 10051100.mdio: scan phy phy at address 30 [ 1.490290] mdio_bus 10051100.mdio: scan phy phy at address 31 [ 1.840313] hisi-femac 10050000.ethernet: phy_id=0x02430c54, phyaddr=1, phy mode=rmii [ 1.848299] hisi-femac 10050000.ethernet: using random MAC address 66:cb:38:b 1:6e:28 [ 1.857929] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.864575] ehci-platform: EHCI generic platform driver [ 1.870134] ehci-platform 10120000.ehci: EHCI Host Controller [ 1.876053] ehci-platform 10120000.ehci: new USB bus registered, assigned bus number 1 [ 1.884433] ehci-platform 10120000.ehci: irq 31, io mem 0x10120000 [ 1.910360] ehci-platform 10120000.ehci: USB 2.0 started, EHCI 1.00 [ 1.918375] hub 1-0:1.0: USB hub found [ 1.922308] hub 1-0:1.0: 1 port detected [ 1.927584] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.933909] ohci-platform: OHCI generic platform driver [ 1.939455] ohci-platform 10110000.ohci: Generic Platform OHCI controller [ 1.946413] ohci-platform 10110000.ohci: new USB bus registered, assigned bus number 2 [ 1.954627] ohci-platform 10110000.ohci: irq 32, io mem 0x10110000 [ 2.026104] hub 2-0:1.0: USB hub found [ 2.029966] hub 2-0:1.0: 1 port detected [ 2.035327] i2c /dev entries driver [ 2.039950] hibvt-i2c 12110000.i2c: hibvt-i2c0@100000hz registered [ 2.047221] hibvt-i2c 12112000.i2c: hibvt-i2c1@100000hz registered [ 2.054633] himci: mmc host probe [ 2.220422] himci: mmc host probe [ 2.390421] himci: mmc host probe [ 2.560953] hidraw: raw HID events driver (C) Jiri Kosina [ 2.567997] usbcore: registered new interface driver usbhid [ 2.573645] usbhid: USB HID core driver [ 2.578726] TCP: cubic registered [ 2.582164] NET: Registered protocol family 17 [ 2.586792] bridge: automatic filtering via arp/ip/ip6tables has been depreca ted. Update your scripts to load br_netfilter if you need this. [ 2.614792] VFS: Mounted root (squashfs filesystem) readonly on device 31:3. [ 2.629711] devtmpfs: mounted [ 2.634915] Freeing unused kernel memory: 148K (c040b000 - c0430000) [ 4.396690] devpts: called with bogus options [ 4.821544] random: seedrng urandom read with 7 bits of entropy available [ 9.080315] hisi-femac 10050000.ethernet eth0: Link is Up - 100Mbps/Full - fl ow control rx/tx [ 87.822639] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.823825] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.824027] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.826320] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.826512] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.826701] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.826888] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.827079] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.827266] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.827454] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.827642] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.827835] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.828025] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.828214] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.843407] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.844584] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.844783] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.847060] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.847250] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.847437] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.847624] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.847811] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.847997] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.848182] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.848367] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.848557] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.848745] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 87.848931] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.103981] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.105161] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.105359] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.107641] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.107832] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.108020] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.108209] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.108399] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.108586] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.108774] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.108961] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.109153] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.109342] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.109530] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.124750] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.125938] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.126140] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.128433] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.128626] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.128817] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.129007] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.129201] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.129392] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.129583] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.129772] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.129968] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.130160] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611 [ 100.130351] hibvt-i2c 12110000.i2c: wait idle abort!, RIS: 0x611

catulacnpoly commented 2 months ago

root@openipc-hi3516ev100:~# ipctool The ipctool installed as remote GitHub plugin

chip: vendor: HiSilicon model: 3516EV100 board: vendor: OpenIPC version: 2.4.04.25 ethernet: mac: "32:10:81:4b:6a:cb" u-mdio-phyaddr: 1 phy-id: 0x02430c54 d-mdio-phyaddr: 0 rom: