Всем привет. Отвалилась камера CS-CV210-A0-52WFR после отключения света и не выходит на связь. Подключил по UART видна загрузка
Код
U-Boot 3.1.6-27151 (Dec 7 2017-10:57:50) boards:10459 Boot From: NAND 2048 RC SYS_CONFIG: 0x3006005B POC: 101 Cortex freq: 600000000 iDSP freq: 216000000 Dram freq: 528000000 Core freq: 216000000 AHB freq: 108000000 APB freq: 54000000 UART freq: 24000000 SD freq: 50000000 SDIO freq: 50000000 SDXC freq: 60000000 Hit Ctrl+u to stop autoboot: 0 cmd 'null' is not supported. nand booting ... kernel update_flag=aa app update_flag=aa booting from pri part... load kernel... cmdline: console=ttyS0 KRN_PRT=pri APP_PRT=pri cpux_jump: 0x00000000 initrd2_start: 0x00000000 initrd2_size: 0x00000000 kernelp: 0x00200000 kernels: 0x07E00000 idspp: 0x08000000 idsps: 0x08000000 Booting Linux on physical CPU 0x0 Linux version 3.10.73+ (chenfuming@Cpl-Civil-Camera) (gcc ?? 4.8.2 20130902 (prerelease) (crosstool-NG - Ambarella Linaro Multilib GCC [CortexA9 & ARMv6k] 2013.09) ) #3 PREEMPT Mon Jul 11 16:28:30 CST 2016 CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: Ambarella S2L (Flattened Device Tree), model: Ambarella S2LM Kiwi Board memory scan node memory, reg size 8, data: 2000 e007 2000000 1000000, - 200000 , 7d00000 Memory policy: ECC disabled, Data cache writeback Ambarella: AHB = 0xe0000000[0xe0000000],0x01000000 0 Ambarella: APB = 0xe8000000[0xe8000000],0x01000000 0 Ambarella: PPM = 0x00000000[0xdfe00000],0x00200000 9 Ambarella: AXI = 0xf0000000[0xf0000000],0x00030000 0 Ambarella: DRAMC = 0xdffe0000[0xef000000],0x00020000 0 Ambarella: DBGBUS = 0xec000000[0xec000000],0x00200000 0 Ambarella: DBGFMEM = 0xee000000[0xee000000],0x01000000 0 Ambarella: IAVMEM = 0x08000000[ ],0x08000000 CPU: All CPU(s) started in SVC mode. Built 1 zonelists in Zone order, mobility grouping on. Total pages: 31750 Kernel command line: console=ttyS0 KRN_PRT=pri APP_PRT=pri PID hash table entries: 512 (order: -1, 2048 bytes) Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 125MB = 125MB total Memory: 118292k/118292k available, 9708k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) vmalloc : 0x88000000 - 0xff000000 (1904 MB) lowmem : 0x80000000 - 0x87d00000 ( 125 MB) modules : 0x7f000000 - 0x80000000 ( 16 MB) .text : 0x80008000 - 0x805474a0 (5374 kB) .init : 0x80548000 - 0x807eddbc (2712 kB) .data : 0x807ee000 - 0x8082ca98 ( 251 kB) .bss : 0x8082ca98 - 0x8084cb1c ( 129 kB) SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:240 sched_clock: 32 bits at 54MHz, resolution 18ns, wraps every 79536ms console [ttyS0] enabled Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok Setting up static identity map for 0x803e4638 - 0x803e4674 devtmpfs: initialized pinctrl core: initialized pinctrl subsystem NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations L310 cache controller enabled l2x0: 8 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x32020000, Cache size: 131072 B ambarella-pinctrl e8009000.pinctrl: Ambarella pinctrl driver registered ambarella-gpio gpio.0: Ambarella GPIO driver registered bio: create slab <bio-0> at 0 ambarella-dma e0005000.dma: Ambarella DMA Engine SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb ambarella-i2c e8003000.i2c: Ambarella I2C adapter[0] probed! Advanced Linux Sound Architecture Driver Initialized. register_netdev: name = lo Switching to clocksource ambarella-cs-timer cfg80211: Calling CRDA to update world regulatory domain NET: Registered protocol family 2 TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP: reno registered 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. NFS: Registering the id_resolver key type Key type id_resolver registered Key type id_legacy registered msgmni has been set to 231 alg: No test for stdrng (krng) io scheduler noop registered (default) e8005000.uart: ttyS0 at MMIO 0xe8005000 (irq = 9) is a ambuart ambarella-nand e0001000.nand: in ecc-[1]bit mode ambarella_nand: Use On Flash BBT NAND device: Manufacturer ID: 0x98, Chip ID: 0xd1 (Toshiba NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64 Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 18 ofpart partitions found on MTD device amba_nand Creating 18 MTD partitions on "amba_nand": 0x000000000000-0x000000020000 : "bst" 0x000000020000-0x000000120000 : "bld" 0x000000120000-0x000000200000 : "ptb" 0x000000200000-0x000000280000 : "env" 0x000000280000-0x000000380000 : "dpt" 0x000000380000-0x000000400000 : "param" 0x000000400000-0x000000500000 : "sysflg" 0x000000500000-0x000000f00000 : "rcvy" 0x000000f00000-0x000001700000 : "krn_pri" 0x000001700000-0x000001f00000 : "krn_sec" 0x000001f00000-0x000004100000 : "app_pri" 0x000004100000-0x000006300000 : "app_sec" 0x000006300000-0x000006900000 : "cfg_pri" 0x000006900000-0x000006f00000 : "cfg_sec" 0x000006f00000-0x000007700000 : "dsp" 0x000007700000-0x000007d00000 : "syslog" 0x000007d00000-0x000007e00000 : "adc" 0x000007e00000-0x000007f00000 : "res" libphy: Ambarella MII Bus: probed ambarella-eth e000e000.ethernet: Ethernet PHY[0]: 0x001cc816! register_netdev: name = eth%d ambarella-eth e000e000.ethernet: MAC Address[64:db:8b:d8:15:50]. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ambarella-ehci e0018000.ehci: EHCI Host Controller ambarella-ehci e0018000.ehci: new USB bus registered, assigned bus number 1 ambarella-ehci e0018000.ehci: irq 39, io mem 0xe0018000 ambarella-ehci e0018000.ehci: USB 2.0 started, EHCI 1.00 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: EHCI Host Controller usb usb1: Manufacturer: Linux 3.10.73+ ehci_hcd usb usb1: SerialNumber: AmbUSB hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ambarella-udc e0006000.udc: ambarella_udc: version 2 August 2011 ambarella-rtc e8015000.rtc: rtc core: registered rtc-ambarella as rtc0 i2c /dev entries driver ambarella-wdt e800c000.wdt: Ambarella Watchdog Timer Probed. TCP: cubic registered NET: Registered protocol family 10 sit: IPv6 over IPv4 tunneling driver register_netdev: name = sit0 NET: Registered protocol family 17 Key type dns_resolver registered VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 ThumbEE CPU extension supported. ambarella-rtc e8015000.rtc: setting system clock to 2024-11-01 16:13:40 UTC (1730477620) ALSA device list: No soundcards found. Freeing unused kernel memory: 2708K (80548000 - 807ed000) init started: BusyBox v1.22.1 (2016-04-01 18:38:14 CST) exec /usr/sbin/mount_ubifs_prt.sh 10 1 /dav UBI: attaching mtd10 to ubi1 UBI: scanning is finished UBI: attached mtd10 (name "app_pri", size 34 MiB) to ubi1 UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 UBI: good PEBs: 272, bad PEBs: 0, corrupted PEBs: 0 UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 UBI: max/mean erase counter: 474/232, WL threshold: 4096, image sequence number: 1248276509 UBI: available PEBs: 0, total reserved PEBs: 272, PEBs reserved for bad PEB handling: 10 UBI: background thread "ubi_bgt1d" started, PID 63 UBI device number 1, total 272 LEBs (34537472 bytes, 32.9 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB) waiting for /dev/ubi1_0. mount /dev/ubi1_UBIFS: background thread "ubifs_bgt1_0" started, PID 67 0 in /dav UBIFS: recovery needed UBIFS: recovery completed UBIFS: mounted UBI device 1, volume 0, name "app_pri" UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS: FS size: 31490048 bytes (30 MiB, 248 LEBs), journal size 1523712 bytes (1 MiB, 12 LEBs) UBIFS: reserved for root: 1487352 bytes (1452 KiB) UBIFS: media format: w4/r0 (latest is w4/r0), UUID 434569FE-05EC-4801-B0E7-52BA93A0DA23, small LPT model exec /usr/sbin/mount_ubifs_prt.sh 11 2 /dav_sec UBI: attaching mtd11 to ubi2 UBI: scanning is finished UBI: attached mtd11 (name "app_sec", size 34 MiB) to ubi2 UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 UBI: good PEBs: 272, bad PEBs: 0, corrupted PEBs: 0 UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 UBI: max/mean erase counter: 97/58, WL threshold: 4096, image sequence number: 1532831103 UBI: available PEBs: 0, total reserved PEBs: 272, PEBs reserved for bad PEB handling: 10 UBI: background thread "ubi_bgt2d" started, PID 76 UBI device number 2, total 272 LEBs (34537472 bytes, 32.9 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB) waiting for /dev/ubi2_0. mount /dev/ubi2_UBIFS: background thread "ubifs_bgt2_0" started, PID 80 0 in /dav_sec UBIFS: recovery needed UBIFS: recovery completed UBIFS: mounted UBI device 2, volume 0, name "app_sec" UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS: FS size: 31490048 bytes (30 MiB, 248 LEBs), journal size 1523712 bytes (1 MiB, 12 LEBs) UBIFS: reserved for root: 1487352 bytes (1452 KiB) UBIFS: media format: w4/r0 (latest is w4/r0), UUID F289530A-40DE-47F6-A349-47D53AD4ED50, small LPT model UBI: attaching mtd12 to ubi3 UBI: scanning is finished UBI: attached mtd12 (name "cfg_pri", size 6 MiB) to ubi3 UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 UBI: good PEBs: 48, bad PEBs: 0, corrupted PEBs: 0 UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 UBI: max/mean erase counter: 12585/10625, WL threshold: 4096, image sequence number: 361133478 UBI: available PEBs: 0, total reserved PEBs: 48, PEBs reserved for bad PEB handling: 10 UBI: background thread "ubi_bgt3d" started, PID 87 UBI device number 3, total 48 LEBs (6094848 bytes, 5.8 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB) waiting for /dev/ubi3_0. mount /dev/ubi3_0 inUBIFS: background thread "ubifs_bgt3_0" started, PID 91 /davinci UBIFS: recovery needed UBIFS: recovery completed UBIFS: mounted UBI device 3, volume 0, name "cfg_pri" UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes UBIFS: FS size: 3047424 bytes (2 MiB, 24 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs) UBIFS: reserved for root: 143937 bytes (140 KiB) UBIFS: media format: w4/r0 (latest is w4/r0), UUID 50417557-5C2B-443D-8068-E97AC4663724, small LPT model Check dir /davinci ok! (0) UBI: attaching mtd13 to ubi4 UBI: scanning is finished UBI: attached mtd13 (name "cfg_sec", size 6 MiB) to ubi4 UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 UBI: good PEBs: 48, bad PEBs: 0, corrupted PEBs: 0 UBI: user volume: 1, internal volumes: 1, max. volumes count: 128 UBI: max/mean erase counter: 5216/4059, WL threshold: 4096, image sequence number: 132466126 UBI: available PEBs: 0, total reserved PEBs: 48, PEBs reserved for bad PEB handling: 10 UBI: background thread "ubi_bgt4d" started, PID 99 UBI device number 4, total 48 LEBs (6094848 bytes, 5.8 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB) waiting for /dev/ubi4_0. mount /dev/ubi4_0 inUBIFS: background thread "ubifs_bgt4_0" started, PID 103 /config ambarella-nand e0001000.nand: nand_amb_request: cmd=0xe timeout 0x00000007 ambarella-nand e0001000.nand: nand_amb_request: cmd=0xe timeout 0x00000005 ambarella-nand e0001000.nand: nand_amb_request: cmd=0xe timeout 0x00000002 ambarella-nand e0001000.nand: nand_amb_request: cmd=0xe timeout 0x00000003 ambarella-nand e0001000.nand: nand_amb_request: cmd=0xe timeout 0x00000003 ambarella-nand e0001000.nand: nand_amb_request: cmd=0xe timeout 0x00000002
Как я понял проблема в битых блоках нанда. Пытается смонтировать раздел /dev/ubi4_0, но не выходит. Бесконечно спамит ambarella-nand e0001000.nand: nand_amb_request: cmd=0xe timeout. На нее есть прошивка в формате dav,попробовал прошить, но она не принимает digicap.dav командой update. Разобрал прошивку, подкинул himage, прошилась, но результат тот же... Команда upf требует файл mImage_s2l, которого у меня нет. Кто то может сталкивался с этим? Есть идеи? Заранее спасибо.