OpenIPC / device-mjsxj02hl

OpenIPC for Xiaomi MJSXJ02HL
https://openipc.org
MIT License
62 stars 11 forks source link

NO wifi driver #26

Closed michlalp closed 7 months ago

michlalp commented 7 months ago

Hi, I have flashed the camera but it wont connect to wifi, here is some info from UART, can anyone help me with that? It seems like the wlan card is not detected

root@openipc-hi3518ev300:/mnt/mmcblk0p1/autoconfig/lib/modules/4.9.37/external# iwconfig lo no wireless extensions.

WITHOUT SD CARD

System startup

Uncompress Ok!

U-Boot 2016.11-g6d2ed0c-dirty (Mar 20 2023 - 13:54:51 +0300)hi3518ev300

Relocation Offset is: 0374a000 Relocating to 43f4a000, new gd at 43b39ef0, sp at 43b39ed0 SPI Nor: hifmc_ip_ver_check(44): Check Flash Memory Controller v100 ...hifmc_ip _ver_check(50): Found hifmc_spi_nor_probe(1802): SPI Nor ID Table Version 1.0 hifmc_spi_nor_probe(1827): SPI Nor(cs 0) ID: 0x1c 0x70 0x18 hifmc_spi_nor_probe(1892): Block:64KB hifmc_spi_nor_probe(1893): Chip:16MB hifmc _spi_nor_probe(1894): Name:"EN25QH128A" hifmc100_spi_nor_probe(147): SPI Nor total size: 16MB NAND: 0 MiB MMC: Card did not respond to voltage select! No SD device found ! hisi-sdhci: 0 In: serial Out: serial Err: serial RAM size: 64MB Net: eth0 Warning: eth0 (eth0) using random MAC address - 1a:10:e6:2c:f0:58

Press Ctrl-c to stop autoboot... 1 device 0 offset 0x50000, size 0x300000

SF: 3145728 bytes @ 0x50000 Read: OK

Booting kernel from Legacy Image at 42000000 ...

Image Name: Linux-4.9.37-hi3518ev300 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1929024 Bytes = 1.8 MiB Load Address: 40008000 Entry Point: 40008000 Loading Kernel Image ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0 Linux version 4.9.37 (runner@fv-az736-376) (buildroot-gcc-12.3.0) #1 Tue Feb 20 14:43:27 UTC 2024 CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d CPU: div instructions available: patching division code CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache OF: fdt:Machine model: Hisilicon HI3518EV300 DEMO Board cmz zone is not set! Memory policy: Data cache writeback CPU: All CPU(s) started in SVC mode. Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8890 Kernel command line: mem=35M console=ttyAMA0,115200 panic=20 rootfstype=squashfs root=/dev/mtdblock3 init=/init mtdparts=hi_sfc:256k(boot),64k(env),2048k(kernel ),5120k(rootfs),-(rootfs_data) mmz_allocator=hisi PID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 29852K/35840K available (4045K kernel code, 149K rwdata, 936K rodata, 19 6K init, 182K bss, 5988K reserved, 0K cma-reserved) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xc2800000 - 0xff800000 ( 976 MB) lowmem : 0xc0000000 - 0xc2300000 ( 35 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc03fb808 (4047 kB) .init : 0xc04e7000 - 0xc0518000 ( 196 kB) .data : 0xc0518000 - 0xc053d5e0 ( 150 kB) .bss : 0xc053f000 - 0xc056c878 ( 183 kB) SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:16 nr_irqs:16 16 Gic dist init... arm_arch_timer: Architected cp15 timer(s) running at 50.00MHz (phys). clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, m ax_idle_ns: 440795202655 ns sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns Switching to timer-based delay loop, resolution 20ns clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 63 7086815595 ns Console: colour dummy device 80x30 Calibrating delay loop (skipped), value calculated using timer frequency.. 100.0 0 BogoMIPS (lpj=500000) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok Setting up static identity map for 0x40008200 - 0x40008258 devtmpfs: initialized VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911 2604462750000 ns futex hash table entries: 256 (order: -1, 3072 bytes) pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations Serial: AMBA PL011 UART driver 12040000.uart: ttyAMA0 at MMIO 0x12040000 (irq = 21, base_baud = 0) is a PL011 r ev2 console [ttyAMA0] enabled 12041000.uart: ttyAMA1 at MMIO 0x12041000 (irq = 22, base_baud = 0) is a PL011 r ev2 ssp-pl022 12070000.spi: ARM PL022 driver, device ID: 0x00800022 ssp-pl022 12070000.spi: mapped registers from 0x12070000 to c286b000 ssp-pl022 12071000.spi: ARM PL022 driver, device ID: 0x00800022 ssp-pl022 12071000.spi: mapped registers from 0x12071000 to c286f000 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 TCP established hash table entries: 1024 (order: 0, 4096 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. workingset: timestamp_bits=30 max_order=13 bucket_order=0 squashfs: version 4.0 (2009/01/31) Phillip Lougher jffs2: version 2.2 (NAND) (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc. Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) io scheduler noop registered io scheduler deadline registered (default) pl061_gpio 120b0000.gpio_chip: PL061 GPIO chip @0x120b0000 registered pl061_gpio 120b1000.gpio_chip: PL061 GPIO chip @0x120b1000 registered pl061_gpio 120b2000.gpio_chip: PL061 GPIO chip @0x120b2000 registered pl061_gpio 120b4000.gpio_chip: PL061 GPIO chip @0x120b4000 registered pl061_gpio 120b5000.gpio_chip: PL061 GPIO chip @0x120b5000 registered pl061_gpio 120b6000.gpio_chip: PL061 GPIO chip @0x120b6000 registered pl061_gpio 120b7000.gpio_chip: PL061 GPIO chip @0x120b7000 registered pl061_gpio 120b8000.gpio_chip: PL061 GPIO chip @0x120b8000 registered brd: module loaded loop: module loaded hisi-sfc hisi_spi_nor.0: SPI Nor ID Table Version 1.2 hisi-sfc hisi_spi_nor.0: Force global unlock hisi-sfc hisi_spi_nor.0: SR1:[02]->[00] hisi-sfc hisi_spi_nor.0: all blocks are unlocked. @spi_nor_scan(), no "m25p,fast-read". @spi_nor_scan(), modes->rd_modes:0xd. hisi-sfc hisi_spi_nor.0: SR1 [00], SR2 [00], SR3 [00] hisi-sfc hisi_spi_nor.0: nor->read_opcode[3: Read; 0B: Fast Read; 3B: Dual; BB: Dual IO; 6B: Quad; EB: Quad IO]: 0x3. hisi-sfc hisi_spi_nor.0: en25qh128 (Chipsize 16 Mbytes, Blocksize 64KiB) 5 cmdlinepart partitions found on MTD device hi_sfc 5 cmdlinepart partitions found on MTD device hi_sfc Creating 5 MTD partitions on "hi_sfc": 0x000000000000-0x000000040000 : "boot" 0x000000040000-0x000000050000 : "env" 0x000000050000-0x000000250000 : "kernel" 0x000000250000-0x000000750000 : "rootfs" 0x000000750000-0x000001000000 : "rootfs_data" SPI Nand ID Table Version 2.7 Cannot found a valid SPI Nand Device hisi_spi_nand_probe(175): Error: driver probe, result: -19 No OTP data, festa PHY use default ATE parameters! festa PHY wait autotrim done timeout! libphy: hisi_femac_mii_bus: probed libphy: Fixed MDIO Bus: probed hisi-femac 10040000.ethernet: connect to PHY failed! xhci-hcd xhci-hcd.0.auto: xHCI Host Controller xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x20010 010 xhci-hcd xhci-hcd.0.auto: irq 116, io mem 0x10030000 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected xhci-hcd xhci-hcd.0.auto: xHCI Host Controller xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. hub 2-0:1.0: USB hub found hub 2-0:1.0: hub can't support USB3.0 hibvt_rtc 120e0000.rtc: rtc core: registered 120e0000.rtc as rtc0 hibvt_rtc 120e0000.rtc: RTC driver for hibvt enabled i2c /dev entries driver hibvt-i2c 12060000.i2c: hibvt-i2c0@100000hz registered hibvt-i2c 12061000.i2c: hibvt-i2c1@100000hz registered hibvt-i2c 12062000.i2c: hibvt-i2c2@100000hz registered sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper mmc0: SDHCI controller on 10010000.sdhci [10010000.sdhci] using ADMA in legacy m ode mmc1: SDHCI controller on 10020000.sdhci [10020000.sdhci] using ADMA in legacy m ode ip_tables: (C) 2000-2006 Netfilter Core Team NET: Registered protocol family 10 NET: Registered protocol family 17 bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. hibvt_rtc 120e0000.rtc: hctosys: unable to read the hardware clock VFS: Mounted root (squashfs filesystem) readonly on device 31:3. devtmpfs: mounted Freeing unused kernel memory: 196K (c04e7000 - c0518000) This architecture does not have kernel memory protection. Timezone env variable not found, using system default. Tue Feb 20 14:47:15 GMT 2024 Seeding 2048 bits without crediting random: seedrng: uninitialized urandom read (256 bytes read) Saving 2048 bits of non-creditable seed for next boot Starting syslogd: OK Starting klogd: OK Running sysctl: OK Loading modules:modprobe: module exfat not found in modules.dep Starting rngd: OK Customizer script not present... Starting mdev... Starting network... ip: SIOCGIFINDEX: No such device Starting ntpd: OK Starting dropbear sshd: OK Production mode Starting httpd: OK Starting mini-snmpd: DISABLED, OK Starting telnetd: DISABLED, OK Starting crond: OK

Loading of kernel modules... mmz_start: 0x42300000, mmz_size: 29M hisilicon: Get data from environment and set SENSOR as jxf22 insert audio Starting telegram-bot.sh: OK hisilicon: Loading video system has started... Starting majestic: OK

Welcome to OpenIPC

WITH SD CARD + reset btn U-Boot 2016.11-g6d2ed0c-dirty (Mar 20 2023 - 13:54:51 +0300)hi3518ev300

Relocation Offset is: 0374a000 Relocating to 43f4a000, new gd at 43b39ef0, sp at 43b39ed0 SPI Nor: hifmc_ip_ver_check(44): Check Flash Memory Controller v100 ...hifmc_ip_ver_check(50): Found hifmc_spi_nor_probe(1802): SPI Nor ID Table Version 1.0 hifmc_spi_nor_probe(1827): SPI Nor(cs 0) ID: 0x1c 0x70 0x18 hifmc_spi_nor_probe(1892): Block:64KB hifmc_spi_nor_probe(1893): Chip:16MB hifmc_spi_nor_probe(1894): Name:"EN25QH128A" hifmc100_spi_nor_probe(147): SPI Nor total size: 16MB NAND: 0 MiB MMC: hisi-sdhci: 0 (SD) In: serial Out: serial Err: serial RAM size: 64MB Net: eth0 Warning: eth0 (eth0) using random MAC address - ea:3e:18:2e:9e:38

Press Ctrl-c to stop autoboot... 1 device 0 offset 0x50000, size 0x300000

SF: 3145728 bytes @ 0x50000 Read: OK

Booting kernel from Legacy Image at 42000000 ...

Image Name: Linux-4.9.37-hi3518ev300 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1929024 Bytes = 1.8 MiB Load Address: 40008000 Entry Point: 40008000 Loading Kernel Image ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0 Linux version 4.9.37 (runner@fv-az736-376) (buildroot-gcc-12.3.0) #1 Tue Feb 20 14:43:27 UTC 2024 CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d CPU: div instructions available: patching division code CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache OF: fdt:Machine model: Hisilicon HI3518EV300 DEMO Board cmz zone is not set! Memory policy: Data cache writeback CPU: All CPU(s) started in SVC mode. Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8890 Kernel command line: mem=35M console=ttyAMA0,115200 panic=20 rootfstype=squashfs root=/dev/mtdblock3 init=/init mtdparts=hi_sfc:256k(boot),64k(env),2048k(kernel),5120k(rootfs),-(rootfs_data) mmz_allocator=hisi PID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 29852K/35840K available (4045K kernel code, 149K rwdata, 936K rodata, 196K init, 182K bss, 5988K reserved, 0K cma-reserved) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xc2800000 - 0xff800000 ( 976 MB) lowmem : 0xc0000000 - 0xc2300000 ( 35 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc03fb808 (4047 kB) .init : 0xc04e7000 - 0xc0518000 ( 196 kB) .data : 0xc0518000 - 0xc053d5e0 ( 150 kB) .bss : 0xc053f000 - 0xc056c878 ( 183 kB) SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:16 nr_irqs:16 16 Gic dist init... arm_arch_timer: Architected cp15 timer(s) running at 50.00MHz (phys). clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns Switching to timer-based delay loop, resolution 20ns clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns Console: colour dummy device 80x30 Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=500000) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok Setting up static identity map for 0x40008200 - 0x40008258 devtmpfs: initialized VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns futex hash table entries: 256 (order: -1, 3072 bytes) pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations Serial: AMBA PL011 UART driver 12040000.uart: ttyAMA0 at MMIO 0x12040000 (irq = 21, base_baud = 0) is a PL011 rev2 console [ttyAMA0] enabled 12041000.uart: ttyAMA1 at MMIO 0x12041000 (irq = 22, base_baud = 0) is a PL011 rev2 ssp-pl022 12070000.spi: ARM PL022 driver, device ID: 0x00800022 ssp-pl022 12070000.spi: mapped registers from 0x12070000 to c286b000 ssp-pl022 12071000.spi: ARM PL022 driver, device ID: 0x00800022 ssp-pl022 12071000.spi: mapped registers from 0x12071000 to c286f000 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 TCP established hash table entries: 1024 (order: 0, 4096 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. workingset: timestamp_bits=30 max_order=13 bucket_order=0 squashfs: version 4.0 (2009/01/31) Phillip Lougher jffs2: version 2.2 (NAND) (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc. Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) io scheduler noop registered io scheduler deadline registered (default) pl061_gpio 120b0000.gpio_chip: PL061 GPIO chip @0x120b0000 registered pl061_gpio 120b1000.gpio_chip: PL061 GPIO chip @0x120b1000 registered pl061_gpio 120b2000.gpio_chip: PL061 GPIO chip @0x120b2000 registered pl061_gpio 120b4000.gpio_chip: PL061 GPIO chip @0x120b4000 registered pl061_gpio 120b5000.gpio_chip: PL061 GPIO chip @0x120b5000 registered pl061_gpio 120b6000.gpio_chip: PL061 GPIO chip @0x120b6000 registered pl061_gpio 120b7000.gpio_chip: PL061 GPIO chip @0x120b7000 registered pl061_gpio 120b8000.gpio_chip: PL061 GPIO chip @0x120b8000 registered brd: module loaded loop: module loaded hisi-sfc hisi_spi_nor.0: SPI Nor ID Table Version 1.2 hisi-sfc hisi_spi_nor.0: Force global unlock hisi-sfc hisi_spi_nor.0: SR1:[02]->[00] hisi-sfc hisi_spi_nor.0: all blocks are unlocked. @spi_nor_scan(), no "m25p,fast-read". @spi_nor_scan(), modes->rd_modes:0xd. hisi-sfc hisi_spi_nor.0: SR1 [00], SR2 [00], SR3 [00] hisi-sfc hisi_spi_nor.0: nor->read_opcode[3: Read; 0B: Fast Read; 3B: Dual; BB: Dual IO; 6B: Quad; EB: Quad IO]: 0x3. hisi-sfc hisi_spi_nor.0: en25qh128 (Chipsize 16 Mbytes, Blocksize 64KiB) 5 cmdlinepart partitions found on MTD device hi_sfc 5 cmdlinepart partitions found on MTD device hi_sfc Creating 5 MTD partitions on "hi_sfc": 0x000000000000-0x000000040000 : "boot" 0x000000040000-0x000000050000 : "env" 0x000000050000-0x000000250000 : "kernel" 0x000000250000-0x000000750000 : "rootfs" 0x000000750000-0x000001000000 : "rootfs_data" SPI Nand ID Table Version 2.7 Cannot found a valid SPI Nand Device hisi_spi_nand_probe(175): Error: driver probe, result: -19 No OTP data, festa PHY use default ATE parameters! festa PHY wait autotrim done timeout! libphy: hisi_femac_mii_bus: probed libphy: Fixed MDIO Bus: probed hisi-femac 10040000.ethernet: connect to PHY failed! xhci-hcd xhci-hcd.0.auto: xHCI Host Controller xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1 xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x20010010 xhci-hcd xhci-hcd.0.auto: irq 116, io mem 0x10030000 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected xhci-hcd xhci-hcd.0.auto: xHCI Host Controller xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2 usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. hub 2-0:1.0: USB hub found hub 2-0:1.0: hub can't support USB3.0 hibvt_rtc 120e0000.rtc: rtc core: registered 120e0000.rtc as rtc0 hibvt_rtc 120e0000.rtc: RTC driver for hibvt enabled i2c /dev entries driver hibvt-i2c 12060000.i2c: hibvt-i2c0@100000hz registered hibvt-i2c 12061000.i2c: hibvt-i2c1@100000hz registered hibvt-i2c 12062000.i2c: hibvt-i2c2@100000hz registered sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper mmc0: SDHCI controller on 10010000.sdhci [10010000.sdhci] using ADMA in legacy mode mmc1: SDHCI controller on 10020000.sdhci [10020000.sdhci] using ADMA in legacy mode ip_tables: (C) 2000-2006 Netfilter Core Team NET: Registered protocol family 10 NET: Registered protocol family 17 bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. hibvt_rtc 120e0000.rtc: hctosys: unable to read the hardware clock mmc0: new high speed SD card at address 0001 mmcblk0: mmc0:0001 00000 1.83 GiB mmcblk0: p1 p2 VFS: Mounted root (squashfs filesystem) readonly on device 31:3. devtmpfs: mounted Freeing unused kernel memory: 196K (c04e7000 - c0518000) This architecture does not have kernel memory protection. Timezone env variable not found, using system default. Tue Feb 20 14:47:15 GMT 2024 Seeding 2048 bits without crediting random: seedrng: uninitialized urandom read (256 bytes read) Saving 2048 bits of non-creditable seed for next boot Starting syslogd: OK Starting klogd: OK Running sysctl: OK Loading modules:modprobe: module exfat not found in modules.dep Starting rngd: OK Customizer script not present... Starting mdev... autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/init.d/S00autoled' -> '/etc/init.d/S00autoled' autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/init.d/S00resetbtn' -> '/etc/init.d/S00resetbtn' autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/init.d/S96autonight' -> '/etc/init.d/S96autonight' autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/init.d' -> '/etc/init.d' autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/network/interfaces.d/wlan0' -> '/etc/network/interfaces.d/wlan0' autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/network/interfaces.d' -> '/etc/network/interfaces.d' autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/network/interfaces' -> '/etc/network/interfaces' autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/network' -> '/etc/network' autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/majestic.yaml' -> '/etc/majestic.yaml' autoconfig: '/mnt/mmcblk0p1/autoconfig/etc' -> '/etc' autoconfig: '/mnt/mmcblk0p1/autoconfig/lib/modules/4.9.37/external/8189fs.ko' -> '/lib/modules/4.9.37/external/8189fs.ko' autoconfig: '/mnt/mmcblk0p1/autoconfig/lib/modules/4.9.37/external' -> '/lib/modules/4.9.37/external' autoconfig: '/mnt/mmcblk0p1/autoconfig/lib/modules/4.9.37' -> '/lib/modules/4.9.37' autoconfig: '/mnt/mmcblk0p1/autoconfig/lib/modules' -> '/lib/modules' autoconfig: '/mnt/mmcblk0p1/autoconfig/lib' -> '/lib' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/bin/jsonfilter' -> '/usr/bin/jsonfilter' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/bin/mosquitto_pub' -> '/usr/bin/mosquitto_pub' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/bin/mosquitto_sub' -> '/usr/bin/mosquitto_sub' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/bin' -> '/usr/bin' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libhive_ANR.so' -> '/usr/lib/libhive_ANR.so' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libhive_common.so' -> '/usr/lib/libhive_common.so' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libhive_HPF.so' -> '/usr/lib/libhive_HPF.so' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libhive_RES.so' -> '/usr/lib/libhive_RES.so' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libmosquitto.so.1' -> '/usr/lib/libmosquitto.so.1' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libubox.so' -> '/usr/lib/libubox.so' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib' -> '/usr/lib' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/sbin/autoled.sh' -> '/usr/sbin/autoled.sh' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/sbin/autonight.sh' -> '/usr/sbin/autonight.sh' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/sbin/led_control.sh' -> '/usr/sbin/led_control.sh' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/sbin' -> '/usr/sbin' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/share/fonts/truetype/UbuntuMono-Regular.ttf' -> '/usr/share/fonts/truetype/UbuntuMono-Regular.ttf' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/share/fonts/truetype' -> '/usr/share/fonts/truetype' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/share/fonts' -> '/usr/share/fonts' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/share' -> '/usr/share' autoconfig: '/mnt/mmcblk0p1/autoconfig/usr' -> '/usr' autoconfig: Switching LED with GPIO52 to state 1 autoconfig: Switching LED with GPIO53 to state 1 Erasing 64 Kibyte @ d0000 - 9% complete. Cleanmarker written at c0000. Erasing 64 Kibyte @ 1b0000 - 19% complete. Cleanmarker written at 1a0000. Erasing 64 Kibyte @ 290000 - 29% complete. Cleanmarker written at 280000. Erasing 64 Kibyte @ 370000 - 38% complete. Cleanmarker written at 360000.n at 2a0000. Erasing 64 Kibyte @ 440000 - 48% complete. Cleanmarker written at 440000. Erasing 64 Kibyte @ 520000 - 58% complete. Cleanmarker written at 520000. Erasing 64 Kibyte @ 600000 - 69% complete. Cleanmarker written at 5f0000. Erasing 64 Kibyte @ 6e0000 - 79% complete. Cleanmarker written at 6d0000. Erasing 64 Kibyte @ 7c0000 - 89% complete. Cleanmarker written at 7b0000.00. Erasing 64 Kibyte @ 8a0000 - 98% complete. Cleanmarker written at 890000. autoconfig: itten at 8a------------[ cut here ]------------ kernel BUG at fs/yaffs2/yaffs_getblockinfo.h:31! Internal error: Oops - BUG: 0 [#1] ARM Modules linked in: vfat fat CPU: 0 PID: 680 Comm: mount Tainted: G W 4.9.37 #1 Hardware name: Generic DT based system task: c150e000 task.stack: c152e000 PC is at yaffs_rd_chunk_tags_nand+0xa4/0xf0 LR is at wake_up_klogd+0x3c/0x48 pc : [] lr : [] psr: 40000013 sp : c152fbc8 ip : 00000007 fp : c152fc34 r10: 00000000 r9 : 000c0000 r8 : 00000000 r7 : 00000000 r6 : 00210000 r5 : c152fc60 r4 : c1570000 r3 : 00000000 r2 : 00000000 r1 : c05223a8 r0 : 00000037 Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user Control: 10c53c7d Table: 415b8059 DAC: 00000055 Process mount (pid: 680, stack limit = 0xc152e208) Stack: (0xc152fbc8 to 0xc1530000) fbc0: c0166ae0 00000021 0000000c 00000000 c152fbf4 c152fbe8 fbe0: c0082a70 c006ef70 c152fc1c c152fbf8 c009b788 c0082a58 c1570000 c1fc2900 fc00: 00000020 c1fc28f8 00000021 0000000c c152fc34 4e35c179 c1570000 c1fc2900 fc20: 00000020 c1fc28f8 c152fcdc c152fc38 c0173398 c016da84 00210000 ffffffe1 fc40: c1700000 c1700000 00010000 ffffffe1 00000000 00000000 c054169e 00000020 fc60: 00000000 60000013 00000000 00000000 c0166ae0 c1570000 c1fc2900 00000020 fc80: c05286c0 00000021 00000008 c1fc2700 c152fcdc c152fca0 c01ba8b8 c01ba760 fca0: c04923b2 c1fc27b0 c1fc2708 4e35c179 c0065e30 c1570000 c1fc2900 00000000 fcc0: 00000000 00000021 c1fc28f8 00000000 c152fda4 c152fce0 c01721cc c01732cc fce0: 00000000 c1c01f00 02400040 60000013 000000fc c1fc2800 0000001f 00000001 fd00: 00000000 0000001f c016fb04 c1fc2700 65d4bb90 00000020 00000002 c0166ae0 fd20: c152fd20 c152fd20 c1570000 c15a3300 c15a3300 c15a3388 c15a3300 c15a3388 fd40: c1570000 00000000 c152fd74 c152fd58 c15a3300 c15a3388 00000001 00000000 fd60: 000000fc 0000000a c152fd8c c152fd78 c01675e4 4e35c179 c1570000 c1570000 fd80: 00000000 00000001 00000000 000000fc 0000000a 02400040 c152fdd4 c152fda8 fda0: c016c538 c0171e5c f0000010 c1570000 c15aec00 c05286bc c159f800 00000000 fdc0: c1f90000 00000002 c152fe6c c152fdd8 c0166010 c016bfb4 c152fdfc c152fde8 fde0: c004b3e0 00000001 c15aee9c 00000000 00000000 00000000 00000000 00000000 fe00: 00000000 00000000 00000000 00000000 00000000 00000000 6d0a5f5c 6c62636d fe20: 3270306b ffffff00 ffff0a00 4e35c179 c152fe6c c15aec00 c1803a80 4e35c179 fe40: 00000083 c15aec00 c1803a80 00008010 00000083 00000000 c1803ae8 00000000 fe60: c152fe7c c152fe70 c0166294 c0165b4c c152feac c152fe80 c00a61f8 c0166284 fe80: c1803a80 c007f408 c0162ea8 c05287e0 c05287e0 c15c8a80 00000000 c15c8a40 fea0: c152fec4 c152feb0 c0162ec4 c00a60bc c0166278 c007f394 c152feec c152fec8 fec0: c00a6ba0 c0162eb4 c05287e0 c05287e0 00008010 c152ccc0 c05287e0 00008010 fee0: c152ff14 c152fef0 c00bf434 c00a6b90 c05287e0 00000020 00008010 c15c8a80 ff00: 00008010 c15c8a40 c152ff74 c152ff18 c00c1bb4 c00bf3ec 00000000 00000000 ff20: 0000000f c007f5b8 0000000f c14ed550 c191d000 00000015 c152ff64 c152ff48 ff40: c007f6b4 4e35c179 beba5f3f beba5f3f c15c8a40 c15c8a80 00000000 00008010 ff60: c152e000 00000000 c152ffa4 c152ff78 c00c2070 c00c1400 00000000 00000000 ff80: c000f164 00000000 beba5d4c 00000000 00000015 c000f164 00000000 c152ffa8 ffa0: c000efc0 c00c2000 00000000 beba5d4c beba5f30 beba5f3f 7f68cee0 00008010 ffc0: 00000000 beba5d4c 00000000 00000015 00000000 7f68c5c0 00000000 ffffffff ffe0: b6fe0470 beba5be4 7f6243d3 b6f9530c 20000030 beba5f30 00000000 00000000 Backtrace: [] (yaffs_rd_chunk_tags_nand) from [] (yaffs_summary_read+0xd8/0x28c) r7:c1fc28f8 r6:00000020 r5:c1fc2900 r4:c1570000 [] (yaffs_summary_read) from [] (yaffs2_scan_backwards+0x37c/0xdc0) r10:00000000 r9:c1fc28f8 r8:00000021 r7:00000000 r6:00000000 r5:c1fc2900 r4:c1570000 [] (yaffs2_scan_backwards) from [] (yaffs_guts_initialise+0x590/0x74c) r10:02400040 r9:0000000a r8:000000fc r7:00000000 r6:00000001 r5:00000000 r4:c1570000 [] (yaffs_guts_initialise) from [] (yaffs_internal_read_super.constprop.0+0x4d0/0x70c) r10:00000002 r9:c1f90000 r8:00000000 r7:c159f800 r6:c05286bc r5:c15aec00 r4:c1570000 r3:f0000010 [] (yaffs_internal_read_super.constprop.0) from [] (yaffs2_internal_read_super_mtd+0x1c/0x2c) r10:00000000 r9:c1803ae8 r8:00000000 r7:00000083 r6:00008010 r5:c1803a80 r4:c15aec00 [] (yaffs2_internal_read_super_mtd) from [] (mount_bdev+0x148/0x180) [] (mount_bdev) from [] (yaffs2_mount+0x1c/0x28) r9:c15c8a40 r8:00000000 r7:c15c8a80 r6:c05287e0 r5:c05287e0 r4:c0162ea8 [] (yaffs2_mount) from [] (mount_fs+0x1c/0x9c) [] (mount_fs) from [] (vfs_kern_mount+0x54/0xd8) r6:00008010 r5:c05287e0 r4:c152ccc0 [] (vfs_kern_mount) from [] (do_mount+0x7c0/0xa34) r9:c15c8a40 r8:00008010 r7:c15c8a80 r6:00008010 r5:00000020 r4:c05287e0 [] (do_mount) from [] (SyS_mount+0x7c/0xa4) r10:00000000 r9:c152e000 r8:00008010 r7:00000000 r6:c15c8a80 r5:c15c8a40 r4:beba5f3f [] (SyS_mount) from [] (ret_fast_syscall+0x0/0x34) r8:c000f164 r7:00000015 r6:00000000 r5:beba5d4c r4:00000000 Code: e3130101 0a000001 e59f0048 ebfbe0b5 (e7f001f2) ---[ end trace 8ef6351c1d11e45c ]--- Erasing 64 Kibyte @ 8b0000 - 100% complete. Segmentation fault Starting network... ip: SIOCGIFINDEX: No such device Starting ntpd: OK Starting dropbear sshd: OK Production mode jffs2: notice: (713) jffs2_get_inode_nodes: Node header CRC failed at 0x890f70. {ffff,ffff,ffffffff,ffffffff} jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000090) jffs2: warning: (713) jffs2_do_read_inode_internal: no data nodes found for ino #15 jffs2: iget() failed for ino #15 sed: /etc/httpd.conf: I/O error Starting httpd: OK jffs2: warning: (716) jffs2_get_inode_nodes: Eep. No valid nodes for ino #15. jffs2: warning: (716) jffs2_do_read_inode_internal: no data nodes found for ino #15 jffs2: iget() failed for ino #15 Starting mini-snmpd: DISABLED, OK Starting telnetd: DISABLED, OK Starting crond: OK jffs2: notice: (728) jffs2_get_inode_nodes: Node header CRC failed at 0x890b80. {ffff,ffff,ffffffff,ffffffff} jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044) jffs2: warning: (728) jffs2_do_read_inode_internal: no data nodes found for ino #12 jffs2: iget() failed for ino #12

Loading of kernel modules... mmz_start: 0x42300000, mmz_size: 29M hisilicon: Get data from environment and set SENSOR as jxf22 insert audio Starting telegram-bot.sh: OK hisilicon: Loading video system has started... Starting majestic: OK Stopping automatic night mode changer: FAIL Stopping majestic: OK Stopping telegram-bot.sh: start-stop-daemon: warning: killing process 871: No such process FAIL Stopping crond: OK Stopping telnetd: DISABLED, FAIL Stopping mini-snmpd: DISABLED, start-stop-daemon: warning: killing process 720: No such process FAILro Production mode sed: /etc/httpd.conf: I/O error Stopping httpd: start-stop-daemon: warning: killing process 716: No such process FAIL Stopping dropbear sshd: OK Stopping ntpd: OK Stopping network... ifdown: interface eth0 not configured Usage: /etc/init.d/S40mdev {start} Usage: /etc/init.d/S30customizer {start} Stopping rngd: FAIL Stopping klogd: OK Stopping syslogd: OK Seeding 2048 bits without crediting Saving 2048 bits of creditable seed for next boot Stopping automatic LED control: FAIL umount: can't unmount /: Resource busy umount: can't unmount /dev: Resource busy The system is going down NOW! Sent SIGTERM to all processes

michlalp commented 7 months ago

Working solution for me was: flashing https://github.com/OpenIPC/builder/releases/download/latest/hi3518ev300_lite_xiaomi-mjsxj02hl-nor.tgz and then via uart following commands to uboot setenv wlandev rtl8189fs-mjsxj02hl setenv wlanssid Router setenv wlanpass 12345678 saveenv

michlalp commented 7 months ago

Closing...

GieBek commented 7 months ago

Working solution for me was: flashing https://github.com/OpenIPC/builder/releases/download/latest/hi3518ev300_lite_xiaomi-mjsxj02hl-nor.tgz and then via uart following commands to uboot setenv wlandev rtl8189fs-mjsxj02hl setenv wlanssid Router setenv wlanpass 12345678 saveenv

how to connect via uart and send commands to uboot? thanks for the answer.

michlalp commented 7 months ago

the process of removing cover and uart pads is basically the same like here https://github.com/OpenIPC/device-mjsxj03hl/blob/master/Manual_en.md then use this tutorial https://kasito.ru/proshivka-zagruzchika-ip-kamery-mjsxj02hl-s-pomoshhyu-usb/ you can use putty to send commands to uboot

GieBek commented 7 months ago

20240303_003724

I don't know where RX TX and GND are :P

GieBek commented 7 months ago

I connected but I can't type commands into putty :(

and stops there

SF: 9109504 bytes @ 0x750000 Erased: OK
resetting ...

System startup

Uncompress Ok!

U-Boot 2016.11-g6d2ed0c-dirty (Mar 20 2023 - 13:54:51 +0300)hi3518ev300

Relocation Offset is: 0374a000
Relocating to 43f4a000, new gd at 43b39ef0, sp at 43b39ed0
SPI Nor:  hifmc_ip_ver_check(44): Check Flash Memory Controller v100 ...hifmc_ip                                                                                    _ver_check(50):  Found
hifmc_spi_nor_probe(1802): SPI Nor ID Table Version 1.0
hifmc_spi_nor_probe(1827): SPI Nor(cs 0) ID: 0x1c 0x70 0x18
hifmc_spi_nor_probe(1892): Block:64KB hifmc_spi_nor_probe(1893): Chip:16MB hifmc                                                                                    _spi_nor_probe(1894): Name:"EN25QH128A"
hifmc100_spi_nor_probe(147): SPI Nor total size: 16MB
NAND:  0 MiB
MMC:   hisi-sdhci: 0 (SD)
*** Warning - bad CRC, using default environment

Erasing SPI flash...Writing to SPI flash...done
Saving default environment...
Erasing SPI flash...Writing to SPI flash...done
In:    serial
Out:   serial
Err:   serial
RAM size: 64MB
Net:   eth0
Warning: eth0 (eth0) using random MAC address - 82:f9:c4:6a:0a:7c

Press Ctrl-c to stop autoboot... 1
device 0 offset 0x50000, size 0x300000

SF: 3145728 bytes @ 0x50000 Read: OK
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   Linux-4.9.37-hi3518ev300
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1929144 Bytes = 1.8 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Loading Kernel Image ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.9.37 (runner@fv-az525-618) (buildroot-gcc-12.3.0) #1 Sat Mar 2 0                                                                                    3:21:00 UTC 2024
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Hisilicon HI3518EV300 DEMO Board
cmz zone is not set!
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: mem=32M console=ttyAMA0,115200 panic=20 root=/dev/mtdblock3                                                                                     rootfstype=squashfs init=/init mtdparts=hi_sfc:256k(boot),64k(env),2048k(kernel                                                                                    ),5120k(rootfs),-(rootfs_data)
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 26836K/32768K available (4045K kernel code, 149K rwdata, 936K rodata, 19                                                                                    6K init, 182K bss, 5932K reserved, 0K cma-reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xc2800000 - 0xff800000   ( 976 MB)
    lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc03fb808   (4047 kB)
      .init : 0xc04e7000 - 0xc0518000   ( 196 kB)
      .data : 0xc0518000 - 0xc053d5e0   ( 150 kB)
       .bss : 0xc053f000 - 0xc056c878   ( 183 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:16 nr_irqs:16 16
Gic dist init...
arm_arch_timer: Architected cp15 timer(s) running at 50.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, m                                                                                    ax_idle_ns: 440795202655 ns
sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns
Switching to timer-based delay loop, resolution 20ns
clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 63                                                                                    7086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 100.0                                                                                    0 BogoMIPS (lpj=500000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x40008200 - 0x40008258
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911                                                                                    2604462750000 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Serial: AMBA PL011 UART driver
12040000.uart: ttyAMA0 at MMIO 0x12040000 (irq = 21, base_baud = 0) is a PL011 r                                                                                    ev2
console [ttyAMA0] enabled
12041000.uart: ttyAMA1 at MMIO 0x12041000 (irq = 22, base_baud = 0) is a PL011 r                                                                                    ev2
ssp-pl022 12070000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 12070000.spi: mapped registers from 0x12070000 to c286b000
ssp-pl022 12071000.spi: ARM PL022 driver, device ID: 0x00800022
ssp-pl022 12071000.spi: mapped registers from 0x12071000 to c286f000
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
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
workingset: timestamp_bits=30 max_order=13 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2 (NAND) (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered (default)
pl061_gpio 120b0000.gpio_chip: PL061 GPIO chip @0x120b0000 registered
pl061_gpio 120b1000.gpio_chip: PL061 GPIO chip @0x120b1000 registered
pl061_gpio 120b2000.gpio_chip: PL061 GPIO chip @0x120b2000 registered
pl061_gpio 120b4000.gpio_chip: PL061 GPIO chip @0x120b4000 registered
pl061_gpio 120b5000.gpio_chip: PL061 GPIO chip @0x120b5000 registered
pl061_gpio 120b6000.gpio_chip: PL061 GPIO chip @0x120b6000 registered
pl061_gpio 120b7000.gpio_chip: PL061 GPIO chip @0x120b7000 registered
pl061_gpio 120b8000.gpio_chip: PL061 GPIO chip @0x120b8000 registered
brd: module loaded
loop: module loaded
hisi-sfc hisi_spi_nor.0: SPI Nor ID Table Version 1.2
hisi-sfc hisi_spi_nor.0: Force global unlock
hisi-sfc hisi_spi_nor.0: SR1:[02]->[00]
hisi-sfc hisi_spi_nor.0: all blocks are unlocked.
@spi_nor_scan(), no "m25p,fast-read".
@spi_nor_scan(), modes->rd_modes:0xd.
hisi-sfc hisi_spi_nor.0: SR1 [00], SR2 [00], SR3 [00]
hisi-sfc hisi_spi_nor.0: nor->read_opcode[3: Read; 0B: Fast Read; 3B: Dual; BB:                                                                                     Dual IO; 6B: Quad; EB: Quad IO]: 0x3.
hisi-sfc hisi_spi_nor.0: en25qh128 (Chipsize 16 Mbytes, Blocksize 64KiB)
5 cmdlinepart partitions found on MTD device hi_sfc
5 cmdlinepart partitions found on MTD device hi_sfc
Creating 5 MTD partitions on "hi_sfc":
0x000000000000-0x000000040000 : "boot"
0x000000040000-0x000000050000 : "env"
0x000000050000-0x000000250000 : "kernel"
0x000000250000-0x000000750000 : "rootfs"
0x000000750000-0x000001000000 : "rootfs_data"
SPI Nand ID Table Version 2.7
Cannot found a valid SPI Nand Device
hisi_spi_nand_probe(175): Error: driver probe, result: -19
No OTP data, festa PHY use default ATE parameters!
festa PHY wait autotrim done timeout!
libphy: hisi_femac_mii_bus: probed
libphy: Fixed MDIO Bus: probed
hisi-femac 10040000.ethernet: connect to PHY failed!
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x20010                                                                                    010
xhci-hcd xhci-hcd.0.auto: irq 116, io mem 0x10030000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
hub 2-0:1.0: USB hub found
hub 2-0:1.0: hub can't support USB3.0
hibvt_rtc 120e0000.rtc: rtc core: registered 120e0000.rtc as rtc0
hibvt_rtc 120e0000.rtc: RTC driver for hibvt enabled
i2c /dev entries driver
hibvt-i2c 12060000.i2c: hibvt-i2c0@100000hz registered
hibvt-i2c 12061000.i2c: hibvt-i2c1@100000hz registered
hibvt-i2c 12062000.i2c: hibvt-i2c2@100000hz registered
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on 10010000.sdhci [10010000.sdhci] using ADMA in legacy m                                                                                    ode
mmc1: SDHCI controller on 10020000.sdhci [10020000.sdhci] using ADMA in legacy m                                                                                    ode
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 10
NET: Registered protocol family 17
bridge: filtering via arp/ip/ip6tables is no longer available by default. Update                                                                                     your scripts to load br_netfilter if you need this.
mmc0: new high speed SDXC card at address 0001
mmcblk0: mmc0:0001 00000 58.2 GiB
 mmcblk0: p1 p2
hibvt_rtc 120e0000.rtc: hctosys: unable to read the hardware clock
VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
devtmpfs: mounted
Freeing unused kernel memory: 196K (c04e7000 - c0518000)
This architecture does not have kernel memory protection.
Timezone env variable not found, using system default.
Sat Mar  2 03:25:34 GMT 2024
Starting automatic LED control: OK
Checking the reset button: NOT PRESSED
random: seedrng: uninitialized urandom read (256 bytes read)
Saving 2048 bits of non-creditable seed for next boot
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Loading modules:modprobe: module exfat not found in modules.dep
Starting rngd: OK
Run customizer script...
Starting mdev...
autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/majestic.yaml' -> '/etc/majestic.yaml                                                                                    '
autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/init.d/S00autoled' -> '/etc/init.d/S0                                                                                    0autoled'
autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/init.d/S00resetbtn' -> '/etc/init.d/S                                                                                    00resetbtn'
autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/init.d/S96autonight' -> '/etc/init.d/                                                                                    S96autonight'
autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/init.d' -> '/etc/init.d'
autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/network/interfaces' -> '/etc/network/                                                                                    interfaces'
autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/network/interfaces.d/wlan0' -> '/etc/                                                                                    network/interfaces.d/wlan0'
autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/network/interfaces.d' -> '/etc/networ                                                                                    k/interfaces.d'
autoconfig: '/mnt/mmcblk0p1/autoconfig/etc/network' -> '/etc/network'
autoconfig: '/mnt/mmcblk0p1/autoconfig/etc' -> '/etc'
autoconfig: '/mnt/mmcblk0p1/autoconfig/lib/modules/4.9.37/external/8189fs.ko' ->                                                                                     '/lib/modules/4.9.37/external/8189fs.ko'
autoconfig: '/mnt/mmcblk0p1/autoconfig/lib/modules/4.9.37/external' -> '/lib/mod                                                                                    ules/4.9.37/external'
autoconfig: '/mnt/mmcblk0p1/autoconfig/lib/modules/4.9.37' -> '/lib/modules/4.9.                                                                                    37'
autoconfig: '/mnt/mmcblk0p1/autoconfig/lib/modules' -> '/lib/modules'
autoconfig: '/mnt/mmcblk0p1/autoconfig/lib' -> '/lib'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/bin/jsonfilter' -> '/usr/bin/jsonfilt                                                                                    er'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/bin/mosquitto_pub' -> '/usr/bin/mosqu                                                                                    itto_pub'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/bin/mosquitto_sub' -> '/usr/bin/mosqu                                                                                    itto_sub'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/bin' -> '/usr/bin'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libhive_ANR.so' -> '/usr/lib/libh                                                                                    ive_ANR.so'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libhive_common.so' -> '/usr/lib/l                                                                                    ibhive_common.so'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libhive_HPF.so' -> '/usr/lib/libh                                                                                    ive_HPF.so'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libhive_RES.so' -> '/usr/lib/libh                                                                                    ive_RES.so'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libmosquitto.so.1' -> '/usr/lib/l                                                                                    ibmosquitto.so.1'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib/libubox.so' -> '/usr/lib/libubox.                                                                                    so'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/lib' -> '/usr/lib'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/sbin/autoled.sh' -> '/usr/sbin/autole                                                                                    d.sh'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/sbin/autonight.sh' -> '/usr/sbin/auto                                                                                    night.sh'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/sbin/led_control.sh' -> '/usr/sbin/le                                                                                    d_control.sh'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/sbin' -> '/usr/sbin'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/share/fonts/truetype/UbuntuMono-Regul                                                                                    ar.ttf' -> '/usr/share/fonts/truetype/UbuntuMono-Regular.ttf'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/share/fonts/truetype' -> '/usr/share/                                                                                    fonts/truetype'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/share/fonts' -> '/usr/share/fonts'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr/share' -> '/usr/share'
autoconfig: '/mnt/mmcblk0p1/autoconfig/usr' -> '/usr'
autoconfig: Switching LED with GPIO52 to state 1
autoconfig: Switching LED with GPIO53 to state 1
Erasing 64 Kibyte @ d0000 -  9% complete. Cleanmarker written at c0000.
Erasing 64 Kibyte @ 1b0000 - 19% complete. Cleanmarker written at 1a0000.
Erasing 64 Kibyte @ 290000 - 29% complete. Cleanmarker written at 280000.
Erasing 64 Kibyte @ 370000 - 38% complete. Cleanmarker written at 360000.n at 2a0000.
Erasing 64 Kibyte @ 440000 - 48% complete. Cleanmarker written at 440000.
Erasing 64 Kibyte @ 520000 - 58% complete. Cleanmarker written at 520000.
Erasing 64 Kibyte @ 600000 - 69% complete. Cleanmarker written at 5f0000.
Erasing 64 Kibyte @ 6e0000 - 79% complete. Cleanmarker written at 6d0000.
Erasing 64 Kibyte @ 7c0000 - 89% complete. Cleanmarker written at 7b0000.00.
Erasing 64 Kibyte @ 8a0000 - 98% complete. Cleanmarker written at 890000.
Erasing 64 Kibyte @ 8b0000 - 100% complete.
------------[ cut here ]------------
kernel BUG at fs/yaffs2/yaffs_getblockinfo.h:31!
Internal error: Oops - BUG: 0 [#1] ARM
Modules linked in: vfat fat
CPU: 0 PID: 843 Comm: mount Tainted: G        W       4.9.37 #1
Hardware name: Generic DT based system
task: c10fa3c0 task.stack: c117e000
PC is at yaffs_rd_chunk_tags_nand+0xa4/0xf0
LR is at wake_up_klogd+0x3c/0x48
pc : [<c016db1c>]    lr : [<c0043110>]    psr: 40000013
sp : c117fbc8  ip : 00000007  fp : c117fc34
r10: 00000000  r9 : 000c0000  r8 : 00000000
r7 : 00000000  r6 : 00210000  r5 : c117fc60  r4 : c1101000
r3 : 00000000  r2 : 00000000  r1 : c05223a8  r0 : 00000037
Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c53c7d  Table: 41158059  DAC: 00000055
Process mount (pid: 843, stack limit = 0xc117e208)
Stack: (0xc117fbc8 to 0xc1180000)
fbc0:                   c0166ae0 00000021 0000000c 00000000 c117fbf4 c117fbe8
fbe0: c0082a70 c006ef70 c117fc1c c117fbf8 c009b788 c0082a58 c1101000 c1bc2900
fc00: 00000020 c1bc28f8 00000021 0000000c c117fc34 c023b179 c1101000 c1bc2900
fc20: 00000020 c1bc28f8 c117fcdc c117fc38 c0173398 c016da84 00210000 ffffffe1
fc40: c1300000 c1300000 00010000 ffffffe1 00000000 00000000 c054169e 00000020
fc60: 00000000 60000013 00000000 00000000 c0166ae0 c1101000 c1bc2900 00000020
fc80: c05286c0 00000021 00000008 c1bc2700 c117fcdc c117fca0 c01ba8b8 c01ba760
fca0: c04923b2 c1bc27b0 c1bc2708 c023b179 c0065e30 c1101000 c1bc2900 00000000
fcc0: 00000000 00000021 c1bc28f8 00000000 c117fda4 c117fce0 c01721cc c01732cc
fce0: 00000000 c023b179 00000000 c11d1bc0 c1101000 c1bc2800 0000001f 00000001
fd00: 00000000 0000001f c016fb04 c1bc2700 65e29c55 00000020 00000002 c0166ae0
fd20: c117fd20 c117fd20 c1101000 c11b7300 c11b7300 c11b7388 c11b7300 c11b7388
fd40: c1101000 00000000 c117fd74 c117fd58 c11b7300 c11b7388 00000001 00000000
fd60: 000000fc 0000000a c117fd8c c117fd78 c01675e4 c023b179 c1101000 c1101000
fd80: 00000000 00000001 00000000 000000fc 0000000a 02400040 c117fdd4 c117fda8
fda0: c016c538 c0171e5c f0000010 c1101000 c1174c00 c05286bc c107dc00 00000000
fdc0: c1ba8000 00000002 c117fe6c c117fdd8 c0166010 c016bfb4 c117fdfc c117fde8
fde0: c004b3e0 00000001 c1174e9c 00000000 00000000 00000000 00000000 00000000
fe00: 00000000 00000000 00000000 00000000 00000000 00000000 6d0a5f5c 6c62636d
fe20: 3270306b ffffff00 ffff0a00 c023b179 c117fe6c c1174c00 c14ef1c0 c023b179
fe40: 00000083 c1174c00 c14ef1c0 00008010 00000083 00000000 c14ef228 00000000
fe60: c117fe7c c117fe70 c0166294 c0165b4c c117feac c117fe80 c00a61f8 c0166284
fe80: c14ef1c0 c007f408 c0162ea8 c05287e0 c05287e0 c11d1680 00000000 c11d15c0
fea0: c117fec4 c117feb0 c0162ec4 c00a60bc c0166278 c007f394 c117feec c117fec8
fec0: c00a6ba0 c0162eb4 c05287e0 c05287e0 00008010 c11d7a80 c05287e0 00008010
fee0: c117ff14 c117fef0 c00bf434 c00a6b90 c05287e0 00000020 00008010 c11d1680
ff00: 00008010 c11d15c0 c117ff74 c117ff18 c00c1bb4 c00bf3ec 00000000 00000000
ff20: 0000000f c007f5b8 0000000f c10f0cd0 c15265d8 00000015 c117ff64 c117ff48
ff40: c007f6b4 c023b179 beed1f52 beed1f52 c11d15c0 c11d1680 00000000 00008010
ff60: c117e000 00000000 c117ffa4 c117ff78 c00c2070 c00c1400 00000000 00000000
ff80: c000f164 00000000 beed1d6c 00000000 00000015 c000f164 00000000 c117ffa8
ffa0: c000efc0 c00c2000 00000000 beed1d6c beed1f43 beed1f52 7f66eee0 00008010
ffc0: 00000000 beed1d6c 00000000 00000015 00000000 7f66e5c0 00000000 ffffffff
ffe0: b6f40470 beed1c04 7f6063d3 b6ef530c 20000030 beed1f43 41ffd861 41ffdc61
Backtrace:
[<c016da78>] (yaffs_rd_chunk_tags_nand) from [<c0173398>] (yaffs_summary_read+0xd8/0x28c)
 r7:c1bc28f8 r6:00000020 r5:c1bc2900 r4:c1101000
[<c01732c0>] (yaffs_summary_read) from [<c01721cc>] (yaffs2_scan_backwards+0x37c/0xdc0)
 r10:00000000 r9:c1bc28f8 r8:00000021 r7:00000000 r6:00000000 r5:c1bc2900
 r4:c1101000
[<c0171e50>] (yaffs2_scan_backwards) from [<c016c538>] (yaffs_guts_initialise+0x590/0x74c)
 r10:02400040 r9:0000000a r8:000000fc r7:00000000 r6:00000001 r5:00000000
 r4:c1101000
[<c016bfa8>] (yaffs_guts_initialise) from [<c0166010>] (yaffs_internal_read_super.constprop.0+0x4d0/0x70c)
 r10:00000002 r9:c1ba8000 r8:00000000 r7:c107dc00 r6:c05286bc r5:c1174c00
 r4:c1101000 r3:f0000010
[<c0165b40>] (yaffs_internal_read_super.constprop.0) from [<c0166294>] (yaffs2_internal_read_super_mtd+0x1c/0x2c)
 r10:00000000 r9:c14ef228 r8:00000000 r7:00000083 r6:00008010 r5:c14ef1c0
 r4:c1174c00
[<c0166278>] (yaffs2_internal_read_super_mtd) from [<c00a61f8>] (mount_bdev+0x148/0x180)
[<c00a60b0>] (mount_bdev) from [<c0162ec4>] (yaffs2_mount+0x1c/0x28)
 r9:c11d15c0 r8:00000000 r7:c11d1680 r6:c05287e0 r5:c05287e0 r4:c0162ea8
[<c0162ea8>] (yaffs2_mount) from [<c00a6ba0>] (mount_fs+0x1c/0x9c)
[<c00a6b84>] (mount_fs) from [<c00bf434>] (vfs_kern_mount+0x54/0xd8)
 r6:00008010 r5:c05287e0 r4:c11d7a80
[<c00bf3e0>] (vfs_kern_mount) from [<c00c1bb4>] (do_mount+0x7c0/0xa34)
 r9:c11d15c0 r8:00008010 r7:c11d1680 r6:00008010 r5:00000020 r4:c05287e0
[<c00c13f4>] (do_mount) from [<c00c2070>] (SyS_mount+0x7c/0xa4)
 r10:00000000 r9:c117e000 r8:00008010 r7:00000000 r6:c11d1680 r5:c11d15c0
 r4:beed1f52
[<c00c1ff4>] (SyS_mount) from [<c000efc0>] (ret_fast_syscall+0x0/0x34)
 r8:c000f164 r7:00000015 r6:00000000 r5:beed1d6c r4:00000000
Code: e3130101 0a000001 e59f0048 ebfbe0b5 (e7f001f2)
---[ end trace c84a39f06198b90a ]---
Segmentation fault
Starting network...
sdhci-hisi 10020000.sdhci: card claims to support voltages below defined range
mmc1: new high speed SDIO card at address 0001
8189fs: loading out-of-tree module taints kernel.
insmod: can't insert '/lib/modules/4.9.37/external/8189fs.ko': File exists
Starting ntpd: OK
Starting dropbear sshd: OK
Production mode
Starting httpd: OK
Starting mini-snmpd: DISABLED, OK
Starting telnetd: DISABLED, OK
Starting crond: OK

Loading of kernel modules...
mmz_start: 0x42300000, mmz_size: 29M
Allocator selected as hisi...
mem=35M console=ttyAMA0,115200 panic=20 rootfstype=squashfs root=/dev/mtdblock3 init=/init mtdparts=${mtdparts} mmz_allocator=hisi
hisilicon: Get data from ipcinfo and set SENSOR as jxf22
hisilicon: Write detected jxf22 to U-Boot ENV
Allocator selected as hisi...
mem=35M console=ttyAMA0,115200 panic=20 rootfstype=squashfs root=/dev/mtdblock3 init=/init mtdparts=${mtdparts} mmz_allocator=hisi
insert audio
Starting telegram-bot.sh: OK
hisilicon: Loading video system has started...
Starting majestic: OK
/etc/init.d/rcS: line 28: /etc/init.d/S96autonight: I/O error
/etc/init.d/rcK: line 23: /etc/init.d/S96autonight: I/O error
Stopping majestic: OK
Stopping telegram-bot.sh: start-stop-daemon: warning: killing process 1182: No such process
FAIL
Stopping crond: OK
Stopping telnetd: DISABLED, FAIL
Stopping mini-snmpd: DISABLED, start-stop-daemon: warning: killing process 920: No such process
FAIL
Production mode
Stopping httpd: OK
Stopping dropbear sshd: OK
Stopping ntpd: OK
Stopping network...
Usage: /etc/init.d/S40mdev {start}
Usage: /etc/init.d/S30customizer {start}
Stopping rngd: FAIL
Stopping klogd: OK
Stopping syslogd: OK
seedrng: can't read 'seed.no-credit': I/O error
/etc/init.d/rcK: line 23: /etc/init.d/S00resetbtn: I/O error
/etc/init.d/rcK: line 23: /etc/init.d/S00autoled: I/O error
umount: can't unmount /: Resource busy
umount: can't unmount /dev: Resource busy
The system is going down NOW!
Sent SIGTERM to all processes
GieBek commented 7 months ago

I think there's a problem here

image
michlalp commented 7 months ago

...probably you have some data on your sd card, it should be empty fat32

tomaszduda23 commented 7 months ago

@michlalp would you mind to put content of your cat /etc/os-release here?

flashing https://github.com/OpenIPC/builder/releases/download/latest/hi3518ev300_lite_xiaomi-mjsxj02hl-nor.tgz

There is no versioning for those build so it always refer master branch. After flashing newest fw camera seems to not boot correctly.

michlalp commented 7 months ago

NAME=Buildroot VERSION=-g1a39728-dirty ID=buildroot VERSION_ID=2023.02.7 PRETTY_NAME="Buildroot 2023.02.7" OPENIPC_VERSION=2.4.02.26 GITHUB_VERSION="master+1bb0852, 2024-02-26" BUILD_OPTION=lite TIME_STAMP=1708917948