gd102 发表于 2011-7-5 11:33:46

s3c-nand: ECC uncorrectable error detected

进入linux系统(2.6.36)以后发现:一大片s3c-nand: ECC uncorrectable error detected 提示。
请问:原因是什么? 如何解决?

谢谢!!
【注】该内核镜像是采用飞凌发布的最新的2.6.36源代码编译生成的。

下面是打印消息:
Hit any key to stop autoboot:0

NAND read: device 0 offset 0x100000, size 0x700000
7340032 bytes read: OK
Boot with zImage
Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.36.2 (root@ubuntu) (gcc version 4.5.1 (ctng-1.8.1-FA) ) #399 S
at Jul 2 18:33:03 PDT 2011
CPU: ARMv6-compatible processor revision 6 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: SMDK6410
Memory policy: ECC disabled, Data cache writeback
CPU S3C6410 (id 0x36410101)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
camera: no parent clock specified
S3C64XX: PLL settings, A=532000000, M=532000000, E=24000000
S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
mout_apll: source is fout_apll (1), rate is 532000000
mout_epll: source is epll (1), rate is 24000000
..........................
S3C NAND Driver is using hardware ECC.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)

Creating 4 MTD partitions on "NAND 1GiB 3,3V 8-bit":
0x000000000000-0x000000100000 : "Bootloader"
0x000000100000-0x000000600000 : "Kernel"
0x000000600000-0x000007e00000 : "User"
0x000007e00000-0x000040000000 : "File System"
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
dm9000 Ethernet Driver, V1.31
eth0: dm9000a at c8826000,c8c00004 IRQ 108 MAC: 08:90:00:a0:90:90 (platform data)
...........................
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.0: clock source 1: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.0: clock source 2: mmc_bus (24000000 Hz)
mmc0: SDHCI controller on samsung-hsmmc using ADMA
s3c-sdhci s3c-sdhci.1: clock source 0: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.1: clock source 1: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.1: clock source 2: mmc_bus (24000000 Hz)
s3c6400_setup_sdhci_cfg_card: CTRL 2=c0004120, 3=80808080
enter s3c64xx_setup_sdhci1_cfg_gpio
mmc1: SDHCI controller on samsung-hsmmc using ADMA
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
asoc: AC97 HiFi <-> s3c-ac97 mapping ok
s3c6400_setup_sdhci_cfg_card: CTRL 2=c0004100, 3=00008080
mmc0: new high speed SD card at address 0007
mmcblk0: mmc0:0007 SD02G 1.86 GiB
mmcblk0: p1
s3c6400_setup_sdhci_cfg_card: CTRL 2=c0004120, 3=80808080
ALSA device list:
#0: SMDK (WM9713)
TCP cubic registered
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
s3c-rtc s3c64xx-rtc: hctosys: invalid date/time
Freeing init memory: 5704K
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 8
Buffer I/O error on device mtdblock0, logical block 1
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 16
Buffer I/O error on device mtdblock0, logical block 2
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 24
Buffer I/O error on device mtdblock0, logical block 3
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 0
...........................................
eth0: link down
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 0
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 8
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 16
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 24
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 0
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 0
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
end_request: I/O error, dev mtdblock0, sector 0
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
s3c-nand: ECC uncorrectable error detected
.................................................
# usb 1-2: new full speed USB device using s3c2410-ohci and address 2
usb 1-2: device descriptor read/64, error -62
usb 1-2: device descriptor read/64, error -62
usb 1-2: new full speed USB device using s3c2410-ohci and address 3
usb 1-2: device descriptor read/64, error -62
usb 1-2: device descriptor read/64, error -62
usb 1-2: new full speed USB device using s3c2410-ohci and address 4
usb 1-2: device not accepting address 4, error -62
usb 1-2: new full speed USB device using s3c2410-ohci and address 5
usb 1-2: device not accepting address 5, error -62
hub 1-0:1.0: unable to enumerate USB device on port 2

# ls
bin      etc      lib      mnt      sbin   usr
dev      init   linuxrcproc   sys      var
#

飞凌-fatfish 发表于 2011-7-5 11:46:14

是从网站上下载的么?需要同时更换mmc.bin uboot.bin zImage和使用手册

gd102 发表于 2011-7-5 11:56:56

是的。只是我自己编译了的uboot和内核。

飞凌-fatfish 发表于 2011-7-5 17:39:27

直接用飞凌提供的映像

gd102 发表于 2011-7-6 09:17:58

fatfish,不能够这样回答吧。
我们需要自己动手编译uboot和kernel,或者修改一下非关键性的东西进行编译。而不可能天天使用飞凌提供的映像来做实验。
况且论坛本来就是用来学习交流的,你这样说简直是阻碍前进,而不符合论坛的宗旨。

飞凌-fatfish 发表于 2011-7-6 11:36:13

呵呵 楼主你也没说你想要干什么呀,如果只是解决烧写的问题,自然是用飞凌提供的。
如果你是在学习,那就要说明编译环境、编译器、源码来源等信息,这样会更容易交流。

gd102 发表于 2011-7-6 13:20:58

本帖最后由 gd102 于 2011-7-6 13:55 编辑

ok,我补充:
编译环境: ubuntu 10.10
编译器 :    arm-linux-gcc 4.5.1   (4.3.2 也用过,同样问题)
源码:全部来自:http://bbs.witech.com.cn/thread-3809-1-1.html
修改之处:kernel 未修改什么内容,只是添加了initramfs文件路径。uboot的环境变量修改为:
setenv bootcmd nand write c0008000 100000 700000\;bootm c0008000(因为内核加入了initramfs,所以要加大)

问题:进入linux系统(2.6.36)以后发现:s3c-nand: ECC uncorrectable error detected 提示。
要求解决:
1)原因是什么?
2)如何去解决?

谢谢!!

飞凌-fatfish 发表于 2011-7-6 16:47:31

现象是mmc.bin、uboot 和zimage不匹配。
错误时ecc校验产生的。

gd102 发表于 2011-7-7 10:22:34

不过我烧写 uboot和zIamge都是通过tft下载到内存上,然后再烧写到flash上的。所以整个过程都没有用到一键烧写。 莫非是之前使用了mmc.bin进行一键烧写会保留信息到flash上??

但是我都把nand flash都 nand scrub和nand erase了啊。

请再给点指点。

谢谢!!

飞凌-fatfish 发表于 2011-7-7 11:44:10

先试试飞凌的吧,用好了飞凌提供的映像在用自己的方法

wujiaheng 发表于 2011-10-6 09:36:26

ajc1116 发表于 2011-10-24 16:27:20

wangjie 发表于 2011-10-25 22:50:06

飞凌-chongzi 发表于 2011-10-26 08:13:33

烧写过程中出现ecc校验不能纠正的错误,重新烧写吧

c07212 发表于 2012-4-18 10:13:13

Acanoe 发表于 2012-4-20 00:31:32

页: [1]
查看完整版本: s3c-nand: ECC uncorrectable error detected