免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4448 | 回复: 1
打印 上一主题 下一主题

[操作系统] 请教一个系统启动时rfs解压缩crc错误的问题(怪异) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-07-21 17:41 |只看该作者 |倒序浏览
各位:
      最近遇到一个怪异的问题,设备插着网线启动时(网络上有通讯数据),在解压缩RFS时总报CRC错误,有时会导致文件系统加载失败
      具体描述如下:
      只有设备网线与公司外网连接、或者与电脑直连且网络有数据通信时(如ping命令测试),才会出现故障;
      如果重新刷新较小的RFS文件系统,没有该故障;
      启动时,在板子的debug口进行监控,故障现象都是RFS解压提示crc error;
      怀疑是设备网络的内存地址与内存中rfs的存储区交叠导致数据被改写了,但检查网络驱动,在rfs加载前接收中断是被关闭的,也就是说应该没有任何数据被写入内存;
      但如果去掉网络模块中的TCP/IP协议栈,重新编译内核并更新后进行测试,可以正常启动。

      查了好久没有什么头绪,望各位能给些建议,多谢了!

以下是系统的启动信息:
Linux version 2.6.22 (zengshengwei@localhost.localdomain) (gcc version 3.4.1 20040714 (TimeSys 3.4.1-7)) #64 Mon Jul 18 16:29:19 CST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: Atmel AT91SAM9260-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists.  Total pages: 16256
Kernel command line: root=/dev/ram0 initrd=0x21100000,12582912 console=ttyS4,115200 ethaddr=20:00:00:00:00:00 ipaddr=192.168.6.44
AT91: 96 gpio irqs in 3 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 49792KB available (2444K code, 248K data, 112K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Generic PHY: Registered new driver
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 204
TCP reno registered
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 12288K
NetWinder Floating Point Emulator V0.97 (double precision)
yaffs Jul 18 2011 16:27:52 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
uc1698u_lcdfb_init
uc1698u_lcdfb_probe
uc1698u_lcdfb uc1698u_lcdfb: uc1698u_lcdfb_probe BEGIN
uc1698u_lcdfb uc1698u_lcdfb: 25KiB frame buffer at c03e0000
uc1698u_lcdfb uc1698u_lcdfb: fb0: uc1698u LCDC at 0x30100000 (mapped at c4a00000)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL
atmel_usart.3: ttyS3 at MMIO 0xfffb8000 (irq = is a ATMEL_SERIAL
atmel_usart.4: ttyS4 at MMIO 0xfffd0000 (irq = 23) is a ATMEL_SERIAL
atmel_usart.5: ttyS5 at MMIO 0xfffd4000 (irq = 24) is a ATMEL_SERIAL
atmel_usart.6: ttyS6 at MMIO 0xfffd8000 (irq = 25) is a ATMEL_SERIAL
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: module loaded
nbd: registered device at major 43
Davicom DM9161E: Registered new driver
Davicom DM9161A: Registered new driver
Davicom DM9131: Registered new driver
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
macb macb: detected PHY at address 1 (ID 0181:b8a0)
eth0: Atmel MACB at 0xfffc4000 irq 21 (20:00:00:00:00:00)
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00100000-0x00300000 : "AT91 NAND partition 1, kernel"
0x00300000-0x00f00000 : "AT91 NAND partition 2, filesystem"
0x00f00000-0x07d00000 : "AT91 NAND partition 3, storage"
0x07d00000-0x07f00000 : "AT91 NAND partition 4, tools"
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffc8000 (irq 12)
atmel_spi atmel_spi.0: registered master spi0
spi spi0.0: setup: 14189714 Hz bpw 8 mode 0x0 -> csr0 0a0a0702
atmel_spi atmel_spi.0: new message c0373c84 submitted for spi0.0
atmel_spi atmel_spi.0:   xfer c0373c3c: len 1 tx c039dfe0/2039dfe0 rx 00000000/ffffffff
atmel_spi atmel_spi.0:   xfer c0373c60: len 1 tx 00000000/ffffffff rx c039dfe1/2039dfe1
mtd_dataflash spi0.0: activate 35
mtd_dataflash spi0.0:   start xfer c0373c3c: len 1 tx c039dfe0/2039dfe0 rx 00000000/ffffffff imr 018
mtd_dataflash spi0.0:   start xfer c0373c60: len 1 tx 00000000/ffffffff rx c039dfe1/2039dfe1 imr 018
mtd_dataflash spi0.0: DEactivate 35
atmel_spi atmel_spi.0: xfer complete: 2 bytes transferred
mtd_dataflash spi0.0: AT45DB161x (2112 KBytes)
Creating 2 MTD partitions on "AT45DB161x":
0x00000000-0x00108000 : "BOOT"
0x00108000-0x00210000 : "USER PART"
atmel_spi atmel_spi.0: registered child spi0.0
usbmon: debugfs is not available
at91_ohci at91_ohci: start
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: supports USB remote wakeup
at91_ohci at91_ohci: irq 20, io mem 0x00500000
at91_ohci at91_ohci: created debug files
at91_ohci at91_ohci: OHCI controller state
at91_ohci at91_ohci: OHCI 1.0, NO legacy support registers
at91_ohci at91_ohci: control 0x083 HCFS=operational CBSR=3
at91_ohci at91_ohci: cmdstatus 0x00000 SOC=0
at91_ohci at91_ohci: intrstatus 0x00000004 SF
at91_ohci at91_ohci: intrenable 0x8000005a MIE RHSC UE RD WDH
at91_ohci at91_ohci: hcca frame #0020
at91_ohci at91_ohci: roothub.a 02001202 POTPGT=2 NOCP NPS NDP=2(2)
at91_ohci at91_ohci: roothub.b 00000000 PPCM=0000 DR=0000
at91_ohci at91_ohci: roothub.status 00008000 DRWE
at91_ohci at91_ohci: roothub.portstatus [0] 0x00000100 PPS
at91_ohci at91_ohci: roothub.portstatus [1] 0x00000100 PPS
usb usb1: default language 0x0409
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: AT91 OHCI
usb usb1: Manufacturer: Linux 2.6.22 ohci_hcd
usb usb1: SerialNumber: at91
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: no power switching (usb 1.0)
hub 1-0:1.0: no over-current protection
hub 1-0:1.0: power on to power good time: 4ms
hub 1-0:1.0: local power source is good
hub 1-0:1.0: trying to enable port power on non-switchable hub
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0000
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
i2c-adapter i2c-0: adapter [AT91] registered
i2c-adapter i2c-0: found normal entry for adapter 0, addr 0x32
i2c-adapter i2c-0: master_xfer[0] W, addr=0x32, len=0
i2c-adapter i2c-0: at91_xfer: processing 1 messages:
i2c-adapter i2c-0:  #0: writing 0 byte to 0x32
i2c-adapter i2c-0: transfer complete
i2c-adapter i2c-0: rs5c372_probe
i2c-adapter i2c-0: client [rtc-rs5c372] registered with bus id 0-0032
i2c-adapter i2c-0: master_xfer[0] R, addr=0x32, len=17
i2c-adapter i2c-0: at91_xfer: processing 1 messages:
i2c-adapter i2c-0:  #0: reading 17 bytes from 0x32
i2c-adapter i2c-0: transfer complete
rtc-rs5c372 0-0032: 36 41 02 (04) 05 02 22 (00), 7f 3f 7f, 7f 3f 00; 23 40
rtc-rs5c372 0-0032: assuming rx8025sa
i2c-adapter i2c-0: master_xfer[0] R, addr=0x32, len=17
i2c-adapter i2c-0: at91_xfer: processing 1 messages:
i2c-adapter i2c-0:  #0: reading 17 bytes from 0x32
i2c-adapter i2c-0: transfer complete
rtc-rs5c372 0-0032: 36 41 02 (04) 05 02 22 (00), 7f 3f 7f, 7f 3f 00; 23 40
rtc-rs5c372 0-0032: rs5c372_get_datetime: tm is secs=36, mins=41, hours=2, mday=5, mon=1, year=122, wday=4
rtc-rs5c372 0-0032: rx8025sa found, 24hr, driver version 0.4
rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
at91_i2c at91_i2c: AT91 i2c bus driver.
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
i2c-adapter i2c-0: master_xfer[0] R, addr=0x32, len=17
i2c-adapter i2c-0: at91_xfer: processing 1 messages:
i2c-adapter i2c-0:  #0: reading 17 bytes from 0x32
i2c-adapter i2c-0: transfer complete
rtc-rs5c372 0-0032: 36 41 02 (04) 05 02 22 (00), 7f 3f 7f, 7f 3f 00; 23 40
rtc-rs5c372 0-0032: rs5c372_get_datetime: tm is secs=36, mins=41, hours=2, mday=5, mon=1, year=122, wday=4
rtc-rs5c372 0-0032: rs5c372_set_datetime: tm is secs=37, mins=41, hours=2 mday=5, mon=1, year=122, wday=-1073608604
i2c-adapter i2c-0: master_xfer[0] W, addr=0x32, len=8
i2c-adapter i2c-0: at91_xfer: processing 1 messages:
i2c-adapter i2c-0:  #0: writing 8 bytes to 0x32
i2c-adapter i2c-0: transfer complete
rtc-rs5c372 0-0032: setting the system clock to 2022-02-05 02:41:36 (1644028896)
RAMDISK: Compressed image found at block 0
crc error

论坛徽章:
0
2 [报告]
发表于 2011-07-22 13:21 |只看该作者
火烧眉毛
还望各位给点思路
再次感谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP