2024-08-26 18:07:51 read - data: 2024-08-26 18:07:56 read - data:  0 [milesight]:run NANDFLASH id:0 normal update firmware ... MileSight uboot update ... Curr Dev: NANDFLASH[0]:256MB Mem:256MB 2024-08-26 18:07:56 send - data: len:1 2024-08-26 18:07:57 read - data: milesight board context[1] is valid,use it milesight board context is valid ==========Milesight Board Context========== chipinfo:MSC41H1111Dn106E0251NF0A2000001D mem_size:256M flash_size:256M os_mem:0M mmz_mem:106M product:0x0 project:0x101 major_ver:8 minor_ver:0 patch_ver:4 suffix_str:a5 pack time:24-08-12 10:25:37 mac:ff:ff:ff:ff:ff:ff wifiap_mac:1c:c3:16:43:aa:10 get chipinfo: MSC41H1111Dn106E0251NF0A2000001D hwdesc get valid hw desc ==>bootargs:WBWA ubi.mtd=rootfs root=ubi0:rootfs rw rootfstype=ubifs init=/linuxrc LX_MEM=0x10000000 mma_heap=mma_heap_name0,miu=0,sz=0x6a00000 mma_memblock_remove=1 cma=2M ==>mtdparts:mtdparts=nand0:3M(uboot),512K(env1),512K(msenv),4M(kernel),60M(rootfs),10M(cfg),15M(oem),50M(ai),100M(update),6M(log),-(storage) update part: start:0x8f00000 size:6400000 2024-08-26 18:07:57 read - data: ==========Milesight firmware Header========== image: cmd being:0x 800 len:0x f000 version:0x 10001 date:0x 7e8080c image: bld being:0x f800 len:0x 240000 version:0x34030203 date:0x 7e8080c image: ker being:0x 24f800 len:0x 23b000 version:0x34030001 date:0x 7e8080c image: fs being:0x 48a800 len:0x 2bc0000 version:0x34080004 date:0x 7e8080c image: tool being:0x 0 len:0x 0 version:0x 100 date:0x 0 image: being:0x 0 len:0x 0 version:0x 0 date:0x 0 image: ai being:0x 304a800 len:0x 7c0000 version:0x 10002 date:0x 7e8080c os_mem:0M mmz_mem:106M product:0x0 project:0x101 major_ver:8 minor_ver:0 patch_ver:4 suffix_str:a5 pack time:24-08-12 10:25:37 firmware ver is equal. not need upgrade 2024-08-26 18:07:57 read - data: NAND read: device 0 offset 0x400000, size 0x400000 2024-08-26 18:07:57 read - data: Time:417164 us, speed:10054 KB/s 4194304 bytes read: OK verify format ## Booting kernel from Legacy Image at 23000000 ... Image Name: MVX4##I6C#g50c4aa770KL_LX510##[B Image Type: ARM Linux Kernel Image (lzma compressed) Data Size: 2336848 Bytes = 2.2 MiB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... 2024-08-26 18:07:57 send - data: reboot len:7 2024-08-26 18:08:00 send - data: len:1 2024-08-26 18:08:00 read - data: OK Uncompressing Kernel Image ... [XZ] !!!reserved 0x22000000 length=0x 1000000 for xz!! 2024-08-26 18:08:02 read - data: 2024-08-26 18:08:02 send - data: len:2 2024-08-26 18:08:04 read - data: 2024-08-26 18:08:04 send - data: len:1 2024-08-26 18:08:04 read - data: IPL g3b959f6 D-0a HW Reset 2024-08-26 18:08:04 read - data: miupll_266MHz 2024-08-26 18:08:04 read - data: 256MB BIST0_0001 2024-08-26 18:08:04 read - data: -OK 2024-08-26 18:08:05 read - data: RDQS cali 2024-08-26 18:08:05 read - data: WDQS cali SPI 54M [SPINAND] Program with command 0x32. [SPINAND] Random with command 0x34. [SPINAND] RFC use command 0x6b [SPINAND] dummy clock 0x08 [FLASH] BDMA mode. [PARTS] Found table in 0x01 2024-08-26 18:08:05 read - data: [BBT] Found table @ 0x00020000 [SPINAND] RFC use command 0x6b [SPINAND] dummy clock 0x08 [FLASH] BDMA mode. [PARTS] load part: IPL_CUST00, part_offset = 0x001a0000, part_size = 0x00060000, load bytes = 0x00000010 @ 0x2340f000 [FLASH] (cost 0x00000125 us) [PARTS] load part: IPL_CUST00, part_offset = 0x001a0000, part_size = 0x00060000, load bytes = 0x00006a90 @ 0x23400000 2024-08-26 18:08:05 read - data: [FLASH] (cost 0x00000b7e us) Load BL from flash 2024-08-26 18:08:05 read - data: IPL_CUST g3b959f6 [SPINAND] Program with command 0x32. [SPINAND] Random with command 0x34. [SPINAND] RFC use command 0x6b [SPINAND] dummy clock 0x08 [FLASH] BDMA mode. [PARTS] load part: UBOOT00, part_offset = 0x00200000, part_size = 0x00100000, load bytes = 0x00000040 @ 0x2340f000 2024-08-26 18:08:05 read - data: [FLASH] (cost 0x00000103 us) [PARTS] load part: UBOOT00, part_offset = 0x00200000, part_size = 0x00100000, load bytes = 0x00020190 @ 0x27d00000 2024-08-26 18:08:05 read - data: [FLASH] (cost 0x0000340e us) Load BL from flash 2024-08-26 18:08:05 read - data: U-Boot 2015.01 (Aug 07 2024 - 16:45:42)52.3.2.3 Version: I6C#g9027b02 I2C: Error, wrong i2c adapter 0 max 0 possible ready DRAM: 2024-08-26 18:08:05 send - data: reboot len:7 2024-08-26 18:08:07 send - data: len:1 2024-08-26 18:08:07 read - data: WARNING: Caches not enabled SPINAND_I: [SPINAND] Program with command 0x2. [SPINAND] Random with command 0x34. [SPINAND] RFC use command 0x6b [SPINAND] dummy clock 0x8 [FLASH] BDMA mode. [PARTS] Found table in 0x1 [BBT] Found table @ 0x20000 [FLASH] dev_id = 0xee [FLASH] mfr_id = 0xc8, dev_id= 0x92 id_len = 0x2 256 MiB Bad block found at 047e0000 Bad block found at 09b60000 Bad block found at 0ab40000 Bad block found at 0b620000 Bad block found at 0c0a0000 Bad block found at 0c380000 Bad block found at 0d860000 Bad block found at 0e520000 Total bad blocks: 8 Flash bad blocks percentage: 0.3% UBOOT partition bad blocks: 0 env1: offset = 0x300000 size = 0x80000 CONFIG_ENV_OFFSET: 0x300000 CONFIG_ENV_RANGE;0x80000 Error, wrong i2c adapter 0 max 0 possible Error, wrong i2c adapter 0 max 0 possible In: serial Out: serial Err: serial Net: MAC Address 1C:C3:16:64:30:1E Auto-Negotiation... Link Status Speed:100 Full-duplex:1 sstar_emac Hit any key to stop autoboot: 3  0 MiIPC # eboot Unknown command 'eboot' - try 'help' MiIPC # MiIPC # 2024-08-26 18:08:07 send - data: 1111 len:5 2024-08-26 18:08:07 read - data: 1111 Unknown command '1111' - try 'help' MiIPC # 2024-08-26 18:08:07 send - data: setenv bootdelay 3; len:20 2024-08-26 18:08:12 read - data: setenv bootdelay 3; MiIPC # 2024-08-26 18:08:12 send - data: printenv; len:10 2024-08-26 18:08:17 read - data: 2024-08-26 18:08:17 send - data: nand erase.part msenv len:22 2024-08-26 18:08:19 send - data: setenv wifiap_mac 1C:C3:16:43:AA:10; len:37 2024-08-26 18:08:19 read - data: printenv; ai_name=ai.bin baudrate=115200 bootargs=WBWA ubi.mtd=rootfs root=ubi0:rootfs rw rootfstype=ubifs init=/linuxrc LX_MEM=0x10000000 mma_heap=mma_heap_name0,miu=0,sz=0x6a00000 mma_memblock_remove=1 cma=2M bootcmd=ms_update 1 0 0;dcache on; nand read.e 0x23000000 kernel; bootm 0x23000000 bootdelay=3 bootfile=MSFImage ethact=sstar_emac ethaddr=1C:C3:16:64:30:1E fs_name=rootfs.bin ker_name=uImage ms_update_enable=1 mtddevname=uboot mtddevnum=0 mtdids=nand0=nand0 mtdparts=mtdparts=nand0:3M(uboot),512K(env1),512K(msenv),4M(kernel),60M(rootfs),10M(cfg),15M(oem),50M(ai),100M(update),6M(log),-(storage) partition=nand0,0 stderr=serial stdin=serial stdout=serial uboot_name=uboot_256M update_uboot=tftp 0x21000000 ${uboot_name};nand erase.part uboot;nand write.e 0x21000000 uboot $(filesize) wifiap_mac=1C:C3:16:43:AA:10 Environment size: 865/524284 bytes MiIPC # nand erase.part msenv NAND erase.part: device 0 offset 0x380000, size 0x80000 Erasing at 0x380000 -- 25% complete. Erasing at 0x3a0000 -- 50% complete. Erasing at 0x3c0000 -- 75% complete. Erasing at 0x3e0000 -- 100% complete. Time:26307 us, speed:19929 KB/s OK MiIPC # setenv wifiap_mac 1C:C3:16:43:AA:10; MiIPC # 2024-08-26 18:08:19 send - data: len:1 2024-08-26 18:08:19 send - data: setenv sncode SM89V112427000035; len:33 2024-08-26 18:08:19 read - data: MiIPC # setenv sncode SM89V112427000035; MiIPC # 2024-08-26 18:08:19 send - data: setenv chipinfo MSC41H1111Dn106E0251NF0A2000001D; len:50 2024-08-26 18:08:19 read - data: setenv chipinfo MSC41H1111Dn106E0251NF0A2000001D; MiIPC # 2024-08-26 18:08:19 send - data: setenv secretkey pj+EhsWu; len:27 2024-08-26 18:08:19 read - data: setenv secretkey pj+EhsWu; MiIPC # 2024-08-26 18:08:19 send - data: saveenv; len:9 2024-08-26 18:08:19 read - data: saveenv; Saving Environment to NAND... env1: off = 0x300000, size = 0x80000 nand_saveenv: get env from mtdpart successful! nand_saveenv: env_offset = 300000 2024-08-26 18:08:19 read - data: Erasing NAND... 2024-08-26 18:08:19 read - data: Erasing at 0x300000 -- 25% complete. Erasing at 0x320000 -- 50% complete. Erasing at 0x340000 -- 75% complete. Erasing at 0x360000 -- 100% complete. Writing to NAND... OK MiIPC # 2024-08-26 18:08:19 send - data: setenv mskey 1CC334A0C8C8746C407D4E79AA4E5127 len:46 2024-08-26 18:08:19 read - data: setenv mskey 1CC334A0C8C8746C407D4E79AA4E5127 MiIPC # 2024-08-26 18:08:19 send - data: setenv msran 0F030E080B0E0109090B0E0B03000C0F len:46 2024-08-26 18:08:19 read - data: setenv msran 0F030E080B0E0109090B0E0B03000C0F MiIPC # 2024-08-26 18:08:19 send - data: setenv serverip 192.168.192.131; len:33 2024-08-26 18:08:19 read - data: setenv serverip 192.168.192.131; MiIPC # 2024-08-26 18:08:19 send - data: printenv serverip; len:19 2024-08-26 18:08:19 read - data: printenv serverip; serverip=192.168.192.131 MiIPC # 2024-08-26 18:08:19 send - data: setenv netmask 255.255.254.0; len:30 2024-08-26 18:08:19 read - data: setenv netmask 255.255.254.0; MiIPC # 2024-08-26 18:08:19 send - data: setenv ipaddr 192.168.192.122; len:31 2024-08-26 18:08:19 read - data: setenv ipaddr 192.168.192.122; MiIPC # 2024-08-26 18:08:19 send - data: setenv gatewayip 192.168.192.1; len:32 2024-08-26 18:08:19 read - data: setenv gatewayip 192.168.192.1; MiIPC # 2024-08-26 18:08:19 send - data: len:2 2024-08-26 18:08:19 read - data: MiIPC # 2024-08-26 18:08:19 send - data: nand erase.part cfg; len:21 2024-08-26 18:08:19 read - data: nand erase.part cfg; NAND erase.part: device 0 offset 0x4400000, size 0xa00000 2024-08-26 18:08:19 read - data: Erasing at 0x4400000 -- 1% complete. 2024-08-26 18:08:20 send - data: nand erase.part oem; len:21 2024-08-26 18:08:20 read - data: Erasing at 0x4420000 -- 2% complete. Erasing at 0x4440000 -- 3% complete. Erasing at 0x4460000 -- 5% complete. Erasing at 0x4480000 -- 6% complete. Erasing at 0x44a0000 -- 7% complete. Erasing at 0x44c0000 -- 8% complete. Erasing at 0x44e0000 -- 10% complete. Erasing at 0x4500000 -- 11% complete. Erasing at 0x4520000 -- 12% complete. Erasing at 0x4540000 -- 13% complete. Erasing at 0x4560000 -- 15% complete. Erasing at 0x4580000 -- 16% complete. Erasing at 0x45a0000 -- 17% complete. Erasing at 0x45c0000 -- 18% complete. Erasing at 0x45e0000 -- 20% complete. Erasing at 0x4600000 -- 21% complete. Erasing at 0x4620000 -- 22% complete. Erasing at 0x4640000 -- 23% complete. Erasing at 0x4660000 -- 25% complete. Erasing at 0x4680000 -- 26% complete. Erasing at 0x46a0000 -- 27% complete. Erasing at 0x46c0000 -- 28% complete. Erasing at 0x46e0000 -- 30% complete. Erasing at 0x4700000 -- 31% complete. Erasing at 0x4720000 -- 32% complete. Erasing at 0x4740000 -- 33% complete. Erasing at 0x4760000 -- 35% complete. Erasing at 0x4780000 -- 36% complete. Erasing at 0x47a0000 -- 37% complete. Erasing at 0x47c0000 -- 38% complete. Skipping bad block at 0x047e0000 Erasing at 0x4800000 -- 41% complete. Erasing at 0x4820000 -- 42% complete. Erasing at 0x4840000 -- 43% complete. Erasing at 0x4860000 -- 45% complete. Erasing at 0x4880000 -- 46% complete. Erasing at 0x48a0000 -- 47% complete. Erasing at 0x48c0000 -- 48% complete. Erasing at 0x48e0000 -- 50% complete. Erasing at 0x4900000 -- 51% complete. Erasing at 0x4920000 -- 52% complete. Erasing at 0x4940000 -- 53% complete. Erasing at 0x4960000 -- 55% complete. Erasing at 0x4980000 -- 56% complete. Erasing at 0x49a0000 -- 57% complete. Erasing at 0x49c0000 -- 58% complete. Erasing at 0x49e0000 -- 60% complete. Erasing at 0x4a00000 -- 61% complete. Erasing at 0x4a20000 -- 62% complete. Erasing at 0x4a40000 -- 63% complete. Erasing at 0x4a60000 -- 65% complete. Erasing at 0x4a80000 -- 66% complete. Erasing at 0x4aa0000 -- 67% complete. Erasing at 0x4ac0000 -- 68% complete. Erasing at 0x4ae0000 -- 70% complete. Erasing at 0x4b00000 -- 71% complete. Erasing at 0x4b20000 -- 72% complete. Erasing at 0x4b40000 -- 73% complete. Erasing at 0x4b60000 -- 75% complete. Erasing at 0x4b80000 -- 76% complete. Erasing at 0x4ba0000 -- 77% complete. Erasing at 0x4bc0000 -- 78% complete. Erasing at 0x4be0000 -- 80% complete. Erasing at 0x4c00000 -- 81% complete. Erasing at 0x4c20000 -- 82% complete. Erasing at 0x4c40000 -- 83% complete. Erasing at 0x4c60000 -- 85% complete. Erasing at 0x4c80000 -- 86% complete. Erasing at 0x4ca0000 -- 87% complete. Erasing at 0x4cc0000 -- 88% complete. Erasing at 0x4ce0000 -- 90% complete. Erasing at 0x4d00000 -- 91% complete. Erasing at 0x4d20000 -- 92% complete. Erasing at 0x4d40000 -- 93% complete. Erasing at 0x4d60000 -- 95% complete. Erasing at 0x4d80000 -- 96% complete. Erasing at 0x4da0000 -- 97% complete. Erasing at 0x4dc0000 -- 98% complete. Erasing at 0x4de0000 -- 100% complete. Time:529924 us, speed:19787 KB/s OK MiIPC # nand erase.part oem; NAND erase.part: device 0 offset 0x4e00000, size 0xf00000 2024-08-26 18:08:22 send - data: setenv bootfile CCTV_burn/1.CCTV_image/MSFImage_52.8.0.4-a5; len:61 2024-08-26 18:08:22 read - data: Erasing at 0x4e00000 -- 0% complete. Erasing at 0x4e20000 -- 1% complete. Erasing at 0x4e40000 -- 2% complete. Erasing at 0x4e60000 -- 3% complete. Erasing at 0x4e80000 -- 4% complete. Erasing at 0x4ea0000 -- 5% complete. Erasing at 0x4ee0000 -- 6% complete. Erasing at 0x4f00000 -- 7% complete. Erasing at 0x4f20000 -- 8% complete. Erasing at 0x4f40000 -- 9% complete. Erasing at 0x4f60000 -- 10% complete. Erasing at 0x4fa0000 -- 11% complete. Erasing at 0x4fc0000 -- 12% complete. Erasing at 0x4fe0000 -- 13% complete. Erasing at 0x5000000 -- 14% complete. Erasing at 0x5020000 -- 15% complete. Erasing at 0x5060000 -- 16% complete. Erasing at 0x5080000 -- 17% complete. Erasing at 0x50a0000 -- 18% complete. Erasing at 0x50c0000 -- 19% complete. Erasing at 0x50e0000 -- 20% complete. Erasing at 0x5120000 -- 21% complete. Erasing at 0x5140000 -- 22% complete. Erasing at 0x5160000 -- 23% complete. Erasing at 0x5180000 -- 24% complete. Erasing at 0x51a0000 -- 25% complete. Erasing at 0x51e0000 -- 26% complete. Erasing at 0x5200000 -- 27% complete. Erasing at 0x5220000 -- 28% complete. Erasing at 0x5240000 -- 29% complete. Erasing at 0x5260000 -- 30% complete. Erasing at 0x52a0000 -- 31% complete. Erasing at 0x52c0000 -- 32% complete. Erasing at 0x52e0000 -- 33% complete. Erasing at 0x5300000 -- 34% complete. Erasing at 0x5320000 -- 35% complete. Erasing at 0x5360000 -- 36% complete. Erasing at 0x5380000 -- 37% complete. Erasing at 0x53a0000 -- 38% complete. Erasing at 0x53c0000 -- 39% complete. Erasing at 0x53e0000 -- 40% complete. Erasing at 0x5420000 -- 41% complete. Erasing at 0x5440000 -- 42% complete. Erasing at 0x5460000 -- 43% complete. Erasing at 0x5480000 -- 44% complete. Erasing at 0x54a0000 -- 45% complete. Erasing at 0x54e0000 -- 46% complete. Erasing at 0x5500000 -- 47% complete. Erasing at 0x5520000 -- 48% complete. Erasing at 0x5540000 -- 49% complete. Erasing at 0x5560000 -- 50% complete. Erasing at 0x55a0000 -- 51% complete. Erasing at 0x55c0000 -- 52% complete. Erasing at 0x55e0000 -- 53% complete. Erasing at 0x5600000 -- 54% complete. Erasing at 0x5620000 -- 55% complete. Erasing at 0x5660000 -- 56% complete. Erasing at 0x5680000 -- 57% complete. Erasing at 0x56a0000 -- 58% complete. Erasing at 0x56c0000 -- 59% complete. Erasing at 0x56e0000 -- 60% complete. Erasing at 0x5720000 -- 61% complete. Erasing at 0x5740000 -- 62% complete. Erasing at 0x5760000 -- 63% complete. Erasing at 0x5780000 -- 64% complete. Erasing at 0x57a0000 -- 65% complete. Erasing at 0x57e0000 -- 66% complete. Erasing at 0x5800000 -- 67% complete. Erasing at 0x5820000 -- 68% complete. Erasing at 0x5840000 -- 69% complete. Erasing at 0x5860000 -- 70% complete. Erasing at 0x58a0000 -- 71% complete. Erasing at 0x58c0000 -- 72% complete. Erasing at 0x58e0000 -- 73% complete. Erasing at 0x5900000 -- 74% complete. Erasing at 0x5920000 -- 75% complete. Erasing at 0x5960000 -- 76% complete. Erasing at 0x5980000 -- 77% complete. Erasing at 0x59a0000 -- 78% complete. Erasing at 0x59c0000 -- 79% complete. Erasing at 0x59e0000 -- 80% complete. Erasing at 0x5a20000 -- 81% complete. Erasing at 0x5a40000 -- 82% complete. Erasing at 0x5a60000 -- 83% complete. Erasing at 0x5a80000 -- 84% complete. Erasing at 0x5aa0000 -- 85% complete. Erasing at 0x5ae0000 -- 86% complete. Erasing at 0x5b00000 -- 87% complete. Erasing at 0x5b20000 -- 88% complete. Erasing at 0x5b40000 -- 89% complete. Erasing at 0x5b60000 -- 90% complete. Erasing at 0x5ba0000 -- 91% complete. Erasing at 0x5bc0000 -- 92% complete. Erasing at 0x5be0000 -- 93% complete. Erasing at 0x5c00000 -- 94% complete. Erasing at 0x5c20000 -- 95% complete. Erasing at 0x5c60000 -- 96% complete. Erasing at 0x5c80000 -- 97% complete. Erasing at 0x5ca0000 -- 98% complete. Erasing at 0x5cc0000 -- 99% complete. Erasing at 0x5ce0000 -- 100% complete. Time:732614 us, speed:21469 KB/s OK MiIPC # setenv bootfile CCTV_burn/1.CCTV_image/MSFImage_52.8.0.4-a5; MiIPC # 2024-08-26 18:08:22 send - data: download; len:10 2024-08-26 18:08:22 read - data: download; Using sstar_emac device TFTP from server 192.168.192.131; our IP address is 192.168.192.122 Filename 'CCTV_burn/1.CCTV_image/MSFImage_52.8.0.4-a5'. Load address: 0x21000000 Loading: * 2024-08-26 18:08:22 send - data: len:2 2024-08-26 18:08:22 read - data: TFTP error: 'File not found' (1) Not retrying... tftp fw image cost:23 ms >>>>>Verify CCTV_burn/1.CCTV_image/MSFImage_52.8.0.4-a5 begin<<<<< firmware verify err download - Auto download firmware image from network to flash, then auto boot Usage: download MiIPC #