最近在TI DM368 做相关项目,系统启动之后老是包 ubi ecc err,请各位大神指点一下
我的文件系统为ubi 文件系统
flash采用硬件ecc 4bit 校验
遇到的这个问题感觉好奇怪啊,当我把sd 卡拔了之后,启动正常,不报ubi ecc err .但是当我插上sd卡时就出现问题了,一下为报错时的打印信息。求大神指点,
DM36x initialization passed!
TI UBL Version: 1.50
Booting Catalog Boot Loader
BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000008.
DONE
Jumping to entry point at 0x81080000.
U-Boot 1.3.4-dirty (Sep 3 2019 - 11:18:04) DM368-IPNC-5.1.0
I2C: ready
DRAM: 128 MB
NAND: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron NAND 512MiB 3,3V 8-bit)
Bad block table not found for chip 0
Bad block table not found for chip 0
loop oob 81021dd8 Bad block table written to 0x1ffe0000, version 0x01
loop oob 81021dd8 Bad block table written to 0x1ffc0000, version 0x01
512 MiB
*** Warning - bad CRC or NAND, using default environment
In: serial
Out: serial
Err: serial
ARM Clock :- 486MHz
DDR Clock :- 360MHz
Ethernet PHY: GENERIC @ 0x01
Hit any key to stop autoboot: 0
Loading from NAND 512MiB 3,3V 8-bit, offset 0x500000
Image Name: Linux-2.6.37_IPNC_DM368_5.1.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4198848 Bytes = 4 MB
Load Address: 80008000
Entry Point: 80008000
## Booting kernel from Legacy Image at 80700000 ...
Image Name: Linux-2.6.37_IPNC_DM368_5.1.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4198848 Bytes = 4 MB
Load Address: 80008000
Entry Point: 80008000
Loading Kernel Image ... OK
OK
Starting kernel ...
[ 0.000000] Linux version 2.6.37_IPNC_DM368_5.1.0 (cuiyunpeng@esw-develop) (gcc version 4.3.3 (GCC) ) #1 PREEMPT Tue Sep 3 11:19:34 CST 2019
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: DaVinci DM36x IPNC
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] DaVinci dm36x_rev1.2 variant 0x8
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 12192
[ 0.000000] Kernel command line: console=ttyS1,115200n8 noinitrd ip=192.168.1.2:192.168.1.200:192.168.1.1:255.255.255.0 eth=00:0c:0c:A0:02:b4 mem=48M cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1x28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 nohz=off highres=off clocksource=acpi_pm lpj=1077248 rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs
[ 0.000000] TI DaVinci EMAC: kernel boot params Ethernet address: 00:0c:0c:A0:02:b4
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 48MB = 48MB total
[ 0.000000] Memory: 44424k/44424k available, 4728k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xff000000 - 0xffe00000 ( 14 MB)
[ 0.000000] vmalloc : 0xc3800000 - 0xfea00000 ( 946 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3000000 ( 48 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc002b000 ( 140 kB)
[ 0.000000] .text : 0xc002b000 - 0xc03e0000 (3796 kB)
[ 0.000000] .data : 0xc03e0000 - 0xc04091c0 ( 165 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptable hierarchical RCU implementation.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:245
[ 0.000000] Console: colour dummy device 80x30
[ 0.000276] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)
[ 0.000329] pid_max: default: 32768 minimum: 301
[ 0.000528] Security Framework initialized
[ 0.000668] Mount-cache hash table entries: 512
[ 0.001441] CPU: Testing write buffer coherency: ok
[ 0.003054] devtmpfs: initialized
[ 0.005845] DaVinci: 8 gpio irqs
[ 0.006433] NET: Registered protocol family 16
[ 0.119833] bio: create slab <bio-0> at 0
[ 0.126120] usbcore: registered new interface driver usbfs
[ 0.127438] usbcore: registered new interface driver hub
[ 0.128303] usbcore: registered new device driver usb
[ 0.134066] vpss vpss: dm365_vpss vpss probed
[ 0.134126] vpss vpss: dm365_vpss vpss probe success
[ 0.137916] Advanced Linux Sound Architecture Driver Version 1.0.23.
[ 0.139862] Switching to clocksource timer0_1
[ 0.216629] musb-hdrc: version 6.0, peripheral, debug=0
[ 0.216815] musb-hdrc musb-hdrc: dma type: dma-cppi3
[ 0.231233] musb-hdrc musb-hdrc: USB Peripheral mode controller at fec64000 using DMA, IRQ 12
[ 0.231945] NET: Registered protocol family 2
[ 0.232251] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.232965] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.233093] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.233173] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.233201] TCP reno registered
[ 0.233236] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.233292] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.233785] NET: Registered protocol family 1
[ 0.234543] RPC: Registered udp transport module.
[ 0.234584] RPC: Registered tcp transport module.
[ 0.234610] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.302473] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.302543] JFFS2 version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
[ 0.305946] msgmni has been set to 86
[ 0.311107] io scheduler noop registered (default)
[ 0.312744] CSL: Module install successful, device major num = 253
[ 0.312788] CSL: Module version 0.10.00, built on Sep 3 2019 11:18:21
[ 0.312835] I2C: Module install successful, device major num = 252
[ 0.312874] DMA: Module install successful, device major num = 251
[ 0.312900] DRV: Module install successful
[ 0.312922] DRV: Module built on Sep 3 2019 11:18:22
[ 0.312948] DRV: EDMACC.QUEPRI = 00002777
[ 0.312968] DRV: SYSTEM.MSTPRI0 = 00440011
[ 0.312988] DRV: SYSTEM.MSTPRI1 = 00000444
[ 0.313008] DRV: ISP.BCR = 00000002
[ 0.313027] DRV: SYSTEM.MISC = 00000399
[ 0.313048] EDMAK module: built on Sep 3 2019 at 11:18:13
[ 0.313075] Reference Linux version 2.6.37
[ 0.313097] File /home/cuiyunpeng/rh-project/kba8w20190318/src/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
[ 0.314668] IRQK module: built on Sep 3 2019 at 11:18:13
[ 0.314715] Reference Linux version 2.6.37
[ 0.314740] File /home/cuiyunpeng/rh-project/kba8w20190318/src/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
[ 0.316343] irqk initialized
[ 0.317893] CMEMK module: built on Sep 3 2019 at 11:18:14
[ 0.317942] Reference Linux version 2.6.37
[ 0.317967] File /home/cuiyunpeng/rh-project/kba8w20190318/src/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
[ 0.322756] allocated heap buffer 0xc4000000 of size 0x5000000
[ 0.322796] heap fallback enabled - will try heap if pool buffer is not available
[ 0.322835] CMEM Range Overlaps Kernel Physical - allowing overlap
[ 0.322866] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
[ 0.323024] cmemk initialized
[ 0.323076] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.419067] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
[ 0.478945] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
[ 1.050484] console [ttyS1] enabled
[ 1.092757] brd: module loaded
[ 1.113143] loop: module loaded
[ 1.122986] ONFI flash detected
[ 1.126280] ONFI param page 0 valid
[ 1.129809] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron NAND 512MiB 3,3V 8-bit)
[ 1.140363] Bad block table not found for chip 0
[ 1.146289] Bad block table not found for chip 0
[ 1.151070] Scanning device for bad blocks
[ 1.476251] Creating 7 MTD partitions on "davinci_nand.0":
[ 1.481900] 0x000000000000-0x000000300000 : "bootloader"
[ 1.491667] 0x000000300000-0x000000500000 : "params"
[ 1.501321] 0x000000500000-0x000000a00000 : "kernel"
[ 1.511023] 0x000000a00000-0x000002200000 : "filesystem1"
[ 1.521266] 0x000002200000-0x000002a00000 : "data1"
[ 1.530985] 0x000002a00000-0x000004200000 : "filesystem2"
[ 1.541320] 0x000004200000-0x000020000000 : "reserve"
[ 1.552240] davinci_nand davinci_nand.0: controller rev. 2.3
[ 1.561210] UBI: attaching mtd3 to ubi0
[ 1.565094] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.571711] UBI: logical eraseblock size: 126976 bytes
[ 1.577158] UBI: smallest flash I/O unit: 2048
[ 1.582019] UBI: sub-page size: 512
[ 1.586676] UBI: VID header offset: 2048 (aligned 2048)
[ 1.592821] UBI: data offset: 4096
[ 1.739711] UBI: max. sequence number: 0
[ 1.768289] UBI: volume 0 ("rootfs") re-sized from 166 to 186 LEBs
[ 1.776918] UBI: attached mtd3 to ubi0
[ 1.780820] UBI: MTD device name: "filesystem1"
[ 1.786350] UBI: MTD device size: 24 MiB
[ 1.791365] UBI: number of good PEBs: 192
[ 1.796017] UBI: number of bad PEBs: 0
[ 1.800539] UBI: number of corrupted PEBs: 0
[ 1.805011] UBI: max. allowed volumes: 128
[ 1.809653] UBI: wear-leveling threshold: 4096
[ 1.814439] UBI: number of internal volumes: 1
[ 1.818912] UBI: number of user volumes: 1
[ 1.823422] UBI: available PEBs: 0
[ 1.827895] UBI: total number of reserved PEBs: 192
[ 1.832844] UBI: number of PEBs reserved for bad PEB handling: 2
[ 1.838890] UBI: max/mean erase counter: 1/0
[ 1.843222] UBI: image sequence number: 1645193325
[ 1.848174] UBI: background thread "ubi_bgt0d" started, PID 453
[ 1.861025] spi_davinci spi_davinci.0: Controller at 0xfec66000
[ 1.940118] davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
[ 1.946362] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
[ 1.954159] davinci_mdio.0: probed
[ 1.957622] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[ 1.969255] rtc_davinci rtc_davinci.0: rtc core: registered rtc_davinci as rtc0
[ 1.977994] i2c /dev entries driver
[ 1.983938] Linux media interface: v0.10
[ 1.988578] Linux video capture interface: v2.00
[ 1.995444] vpbe-osd vpbe-osd: OSD sub device probe success
[ 2.002039] vpbe-venc vpbe-venc: VENC sub device probe success
[ 2.008879] vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered
[ 2.014924] Setting default output to Composite
[ 2.019502] Setting default mode to ntsc
[ 2.023711] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
[ 2.030546] vpbe-v4l2 vpbe-v4l2: layer=c2831800,layer->video_dev=c28318e8
[ 2.038321] vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device.
[ 2.045301] vpbe-v4l2 vpbe-v4l2: layer=c2954800,layer->video_dev=c29548e8
[ 2.054049] watchdog watchdog: heartbeat 60 sec
[ 2.062046] davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
[ 2.074227] Error: Driver 'davinci-mcbsp' is already registered, aborting...
[ 2.084323] asoc: cq93vc-hifi <-> davinci-vcif mapping ok
[ 2.094011] ALSA device list:
[ 2.097024] #0: DaVinci DM365 EVM
[ 2.111364] nf_conntrack version 0.5.0 (694 buckets, 2776 max)
[ 2.131279] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.136891] TCP cubic registered
[ 2.142721] NET: Registered protocol family 17
[ 2.147381] Registering the dns_resolver key type
[ 2.172228] rtc_davinci rtc_davinci.0: setting system clock to 2000-01-01 00:40:29 UTC (946687229)
[ 2.185468] mmc0: new high speed SDHC card at address 0001
[ 2.192490] mmcblk0: mmc0:0001 SD32G 28.9 GiB
[ 2.200288] mmcblk0: p1 p2
[ 2.251723] net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=181b8b0)
[ 2.320556] IP-Config: Complete:
[ 2.323653] device=eth0, addr=192.168.1.2, mask=255.255.255.0, gw=192.168.1.1,
[ 2.331381] host=192.168.1.2, domain=, nis-domain=(none),
[ 2.337261] bootserver=192.168.1.200, rootserver=192.168.1.200, rootpath=
[ 2.449825] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 2.455982] UBIFS: file system size: 22347776 bytes (21824 KiB, 21 MiB, 176 LEBs)
[ 2.463750] UBIFS: journal size: 3301376 bytes (3224 KiB, 3 MiB, 26 LEBs)
[ 2.471153] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 2.477025] UBIFS: default compressor: lzo
[ 2.481189] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 2.488545] VFS: Mounted root (ubifs filesystem) on device 0:13.
[ 2.496109] devtmpfs: mounted
[ 2.499254] Freeing init memory: 140K
INIT: version 2.86 booting
mount datafs...
Starting mounting local filesystems: mount mount: according to /proc/mounts, ubi0:rootfs is already mounted on /
mount: mounting none on /dev/shm failed: No such file or directory
failed (1: ).
Starting internet superserver: inetd.
[ 3.551501] tun: Universal TUN/TAP device driver, 1.6
[ 3.556607] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 4.250403] PHY: 0:01 - Link is Up - 100/Full
INIT: Entering runlevel: 5
Starting telnet daemon.
Starting syslogd/klogd: done
umount: can't umount /mnt/mmc: Invalid argument
ls: /mnt/mmc/kba12w-sw-firmware-r*.bin: No such file or directory
Upgrade file does not exist
system server 1[ 5.339696] g_file_storage gadget: No serial-number string provided!
system server 2
system server 3[ 5.359502] g_file_storage gadget: File-backed Storage Gadget, version: 1 September 2010
FileMngThread created
system server 4
system server 5
AlramThread created
system server 6
Share memory init[ 5.389094] g_file_storage gadget: Number of LUNs=1
success
IPNC_DM368_5.1.0 (cuiyunpeng@esw-develop) (gcc version[ 5.400215] g_file_storage gadget-lun0: ro=0, nofua=0, file: /dev/mmcblk0p2
4.3.3 (GCC) ) #1 PREEMP
systemInit entersystemInit enter1systemInit enter2can't open sys file: /mnt/nand/sysenv.cfg
unlink old config file faild. Error: No such file or directory
save_sys_file OK!
Warning: Bad CRC, using default environment
## Error: "SN" not defined
FileMng: Error run serch SN cmd error
systemInit enter3net_search_gateway:eth0, 1A8C0, 0, 1
net_search_gateway:eth0, 0, 101A8C0, 3
CPU is DM368
systemInit enter4systemInit enter5systemInit enter6
*****************************************************************
IPNC BUILD VERSION: DM368 IPNC RDK V5.10.00.04
*****************************************************************
./av_server.out DM368 PAL AUDIO 8000 G711 64000 TI2A AEWB 720P H264 4000000 CBR AUTO MENUOFF &
systemInit enter7systemInit enter8changeTimeZone not run
[ 5.680755] usb connect
ApproDrvInit: 7
DM365MM Init Successful
AVSERVER UI: Initializing.
[ 5.834740] g_file_storage gadget: high speed config #1
CLK Hz,
ARM Hz = 486000000
DDR Hz = 360000000
VPSS Hz = 360000000
IMCOP Hz = 360000000
DRV LDC: GetConfig 0004 0x0
[ 5.962782] UBI error: ubi_io_read: error -74 (ECC error) while reading 188 bytes from PEB 128:17344, read 188 bytes
[ 5.993261] UBIFS error (pid 618): ubifs_read_node: bad node type (40 but expected 9)
[ 6.017227] UBIFS error (pid 618): ubifs_read_node: bad node at LEB 126:13248, LEB mapping status 1
[ 6.035360] UBIFS error (pid 618): do_readpage: cannot read page 36 of inode 1182, error -22
[OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... ERROR
IMAGE TUNE: Paramset File is not available..... Setting DEFAULT parameter
[ 6.146272] UBI error: ubi_io_read: error -74 (ECC error) while reading 2533 bytes from PEB 87:9376, read 2533 bytes
[ 6.158347] UBIFS error (pid 618): try_read_node: cannot read node type 1 from LEB 85:5280, error -74
[ 6.169943] UBIFS error (pid 618): ubifs_read_node: bad node type (86 but expected 1)
[ 6.179248] UBIFS error (pid 618): ubifs_read_node: bad node at LEB 85:5280, LEB mapping status 1
[ 6.189277] UBIFS error (pid 618): do_readpage: cannot read page 71 of inode 1182, error -22
[ 6.227656] UBI error: ubi_io_read: error -74 (ECC error) while reading 667 bytes from PEB 97:109384, read 667 bytes
[ 6.239705] UBIFS error (pid 618): try_read_node: cannot read node type 1 from LEB 95:105288, error -74
[ 6.265028] UBI error: ubi_io_read: error -74 (ECC error) while reading 188 bytes from PEB 128:32512, read 188 bytes
[ 6.303112] UBI error: ubi_io_read: error -74 (ECC error) while reading 2587 bytes from PEB 90:79272, read 2587 bytes
[ 6.315139] UBIFS error (pid 618): try_read_node: cannot read node type 1 from LEB 88:75176, error -74
[ 6.346080] UBI error: ubi_io_read: error -74 (ECC error) while reading 2991 bytes from PEB 91:57208, read 2991 bytes
[ 6.358360] UBIFS error (pid 618): try_read_node: cannot read node type 1 from LEB 89:53112, error -74
[ 6.392422] UBI error: ubi_io_read: error -74 (ECC error) while reading 2793 bytes from PEB 91:65296, read 2793 bytes
[ 6.404441] UBIFS error (pid 618): try_read_node: cannot read node type 1 from LEB 89:61200, error -74
[ 6.428194] UBI error: ubi_io_read: error -74 (ECC error) while reading 2572 bytes from PEB 94:83920, read 2572 bytes
[ 6.440678] UBIFS error (pid 618): try_read_node: cannot read node type 1 from LEB 92:79824, error -74
[ 6.453703] UBIFS error (pid 618): ubifs_read_node: bad node type (56 but expected 1)
[ 6.463098] UBIFS error (pid 618): ubifs_read_node: bad node at LEB 92:79824, LEB mapping status 1
[ 6.473308] UBIFS error (pid 618): do_readpage: cannot read page 446 of inode 1182, error -22
[ 6.521427] UBI error: ubi_io_read: error -74 (ECC error) while reading 188 bytes from PEB 128:21376, read 188 bytes
[ 6.559567] UBI error: ubi_io_read: error -74 (ECC error) while reading 1750 bytes from PEB 92:97904, read 1750 bytes
[ 6.595402] UBIFS error (pid 618): try_read_node: cannot read node type 1 from LEB 90:93808, error -74
[ 6.687958] UBI error: ubi_io_read: error -74 (ECC error) while reading 3090 bytes from PEB 85:120560, read 3090 bytes
[ 6.700037] UBIFS error (pid 618): try_read_node: cannot read node type 1 from LEB 83:116464, error -74
[ 6.712219] UBIFS error (pid 618): ubifs_read_node: bad node type (38 but expected 1)
[ 6.721628] UBIFS error (pid 618): ubifs_read_node: bad node at LEB 83:116464, LEB mapping status 1
[ 6.731859] UBIFS error (pid 618): do_readpage: cannot read page 20 of inode 1182, error -22
[ 6.781842] UBI error: ubi_io_read: error -74 (ECC error) while reading 3038 bytes from PEB 85:123656, read 3038 bytes
[ 6.793772] UBIFS error (pid 618): try_read_node: cannot read node type 1 from LEB 83:119560, error -74
[ 6.819652] UBI error: ubi_io_read: error -74 (ECC error) while reading 2828 bytes from PEB 85:92152, read 2828 bytes
[ 6.832037] UBIFS error (pid 618): try_read_node: cannot read node type 1 from LEB 83:88056, error -74
[ 6.844003] UBIFS error (pid 618): ubifs_check_node: bad magic 0x195d490a, expected 0x6101831
[ 6.853746] UBIFS error (pid 618): ubifs_check_node: bad node at LEB 83:88056
[ 6.862006] UBIFS error (pid 618): ubifs_read_node: expected node type 1
[ 6.868922] UBIFS error (pid 618): do_readpage: cannot read page 9 of inode 1182, error -117
DM365MM Init SuccessfulSYSTEM.MSTPRI0 value changed to 00440011