ЗАО «ЗЭО»

Пожалуйста, войдите или зарегистрируйтесь.

Расширенный поиск  

Новости:

Автор Тема: Не проходит проверка контрольной суммы.[Решено]  (Прочитано 6314 раз)

0 Пользователей и 3 Гостей просматривают эту тему.

QwerTech

  • Jr. Member
  • **
  • Оффлайн Оффлайн
  • Сообщений: 78
  • МГТУ им. Баумана ИУ4

Вот лог Printenv:
$ printenv
bootdelay=1
baudrate=57600
bootfile="uImage"
mtdparts=mtdparts=flash:512k(u-boot)ro,2560k(kernel)ro,-(fs)
partition=nor0,2
rd_file=uramdisk_bb1.8.2_opie.gz
rd_addr=800000
kern_flash=tftpboot ${fileaddr} ${kern_file}; erase ${kern_fladdr} +${filesize}; cp.b ${fileaddr} ${kern_fladdr} ${filesize}
rd_flash=tftpboot ${fileaddr} ${rd_file}; erase ${rd_fladdr} +${filesize}; cp.b ${fileaddr} ${rd_fladdr} ${filesize}; setenv rd_size ${filesize}
bootcmd=echo Copy ramdisk to RAM...; cp.b ${rd_fladdr} ${rd_addr} ${rd_size}; bootm ${kern_fladdr} ${rd_addr}
reflash=echo Re-flashing...; protect off all; run kern_flash; run rd_flash; imls; saveenv; echo Re-flash done
kern_file=uImage-2.6.20.4_tion-pro2
rd_fladdr=60300000
kern_fladdr=60080000
bootargs=console=ttyAM0,57600n8 root=/dev/ram0
filesize=142B40
fileaddr=0
gatewayip=10.42.42.1
netmask=255.255.255.0
ipaddr=192.168.1.200
serverip=192.168.1.2
rd_size=142B40
ethaddr=00:12:34:56:78:90
verify=yes

Environment size: 948/262140 bytes
Вот лог  перезаписи:
$ run reflash
Re-flashing...
Un-Protect Flash Bank # 1
... done
TFTP from server 192.168.1.2; our IP address is 192.168.1.200
Filename 'uImage-2.6.20.4_tion-pro2'
Load address: 0x0
Loading: /
done
Bytes transferred = 1807052 (1b92cc hex)

....... done
Erased 7 sectors
Copy to Flash... done
TFTP from server 192.168.1.2; our IP address is 192.168.1.200
Filename 'uramdisk_bb1.8.2_opie.gz'
Load address: 0x0
Loading: -
done
Bytes transferred = 1321792 (142b40 hex)

...... done
Erased 6 sectors
Copy to Flash... done
Legacy Image at 60080000:
   Image Name:   Linux-2.6.20.4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1806988 Bytes =  1.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
Legacy Image at 60300000:
   Image Name:   Ramdisk with OPIE
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    10564689 Bytes = 10.1 MB
   Load Address: 00800000
   Entry Point:  00800000
   Verifying Checksum ... Bad Data CRC
Saving Environment to Flash...
. done
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... done
. done
Protected 1 sectors
Re-flash done
А вот лог загрузки:
reset

U-Boot 1.3.3-svn894 (Mar  5 2010 - 12:14:38)

CPU:   Cirrus Logic EP9315 rev. E2
DRAM:  64 MB
Flash: 64 MB
Hit any key to stop autoboot:  0
Copy ramdisk to RAM...
## Booting kernel from Legacy Image at 60080000 ...
   Image Name:   Linux-2.6.20.4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1806988 Bytes =  1.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
## Loading init Ramdisk from Legacy Image at 00800000 ...
   Image Name:   Ramdisk with OPIE
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    10564689 Bytes = 10.1 MB
   Load Address: 00800000
   Entry Point:  00800000
   Verifying Checksum ... Bad Data CRC

U-Boot 1.3.3-svn894 (Mar  5 2010 - 12:14:38)

CPU:   Cirrus Logic EP9315 rev. E2
DRAM:  64 MB
Flash: 64 MB
Hit any key to stop autoboot:  0

 Не понятно что такое Bad Data CRC. И вчем проблема. Если verify приравнивать no, то ядро начинает грузиться так:
reset

U-Boot 1.3.3-svn894 (Mar  5 2010 - 12:14:38)

CPU:   Cirrus Logic EP9315 rev. E2
DRAM:  64 MB
Flash: 64 MB
Hit any key to stop autoboot:  0
Copy ramdisk to RAM...
## Booting kernel from Legacy Image at 60080000 ...
   Image Name:   Linux-2.6.20.4
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1806988 Bytes =  1.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Loading Kernel Image ... OK
OK
## Loading init Ramdisk from Legacy Image at 00800000 ...
   Image Name:   Ramdisk with OPIE
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    10564689 Bytes = 10.1 MB
   Load Address: 00800000
   Entry Point:  00800000

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.20.4 (asv@asv) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #3 PREEMPT Mon Apr 27 17:20:07 MSD 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: Tion-Pro2 Board
Ignoring unrecognised tag 0x54410008
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists.  Total pages: 16192
Kernel command line: console=ttyAM0,57600n8 root=/dev/ram0
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: 32MB 32MB = 64MB total
Memory: 50764KB available (3328K code, 338K data, 120K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
ep93xx: PLL1 running at 399 MHz, PLL2 at 192 MHz
ep93xx: FCLK 199 MHz, HCLK 99 MHz, PCLK 49 MHz
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: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 10317K
NetWinder Floating Point Emulator V0.97 (extended precision)
audit: initializing netlink socket (disabled)
audit(3.250:1): initialized
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
io scheduler anticipatory registered
ep93xxfb_get_par: VGA 640x480
Console: switching to colour frame buffer device 80x30
fb0: EP93xx frame buffer at 640x480x16bpp
ep93xx_wdt: EP93XX watchdog, driver version 0.3
Serial: AMBA driver $Revision: 1.41 $
RS485 hardware flow control on 3rd serial port
apb:uart1: ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
apb:uart2: ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
apb:uart3: ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
RAMDISK: wrong blocksize 8096, reverting to defaults
RAMDISK driver initialized: 2 RAM disks of 32768K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
Cirrus Logic EP93XX IDE initialization.
physmap platform flash device: 02000000 at 60000000
physmap-flash.0: Found 2 x16 devices at 0x0 in 32-bit bank
NOR chip too large to fit in mapping. Attempting to cope...
 Intel/Sharp Extended Query Table at 0x010A
 Intel/Sharp Extended Query Table at 0x010A
 Intel/Sharp Extended Query Table at 0x010A
 Intel/Sharp Extended Query Table at 0x010A
 Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Reducing visibility of 65536KiB chip to 32768KiB
cmdlinepart partition parsing not available
RedBoot partition parsing not available
edb93xxflash: probe of edb93xxflash.0 failed with error -16
ep93xx-spi ep93xx-spi.1: SPI Controller initialized
ep93xx-usb ep93xx-usb: EP93xx OHCI
ep93xx-usb ep93xx-usb: new USB bus registered, assigned bus number 1
ep93xx-usb ep93xx-usb: irq 56, io mem 0x80020000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
Initializing USB Mass Storage driver...
usb 1-2: new low speed USB device using ep93xx-usb and address 2
usb 1-2: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver hiddev
input: MLK Defender 2.4GHz Nano mouse as /class/input/input0
input,hiddev96: USB HID v1.10 Mouse [MLK Defender 2.4GHz Nano mouse] on usb-ep93xx-2
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
m41t00 0-0068: rtc core: registered m41t00 as rtc0
mmc_spi spi1.1: ASSUMING 3.2-3.4 V slot power
mmc_spi spi1.1: SD/MMC host mmc0, no DMA, no WP, no poweroff
mmc_spi spi1.1: setup unsupported mode bits 4
mmc_spi spi1.1: can't change chip-select polarity
mmc0: error -22 whilst initialising SDIO card
Registered led device: ep93xx:green
Registered led device: ep93xx:red
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
m41t00 0-0068: setting the system clock to 2010-06-08 11:01:43 (1275994903)
RAMDISK: Compressed image found at block 0
invalid compressed format (err=1)
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 120K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

 Но понятное дело до конца не прогружается, на плате мигает 2 раза короткими красный светодиод, на экране замирает пингвинчик.

Что я делаю не так?
« Последнее редактирование: 18 Июля, 2010, 20:43:02 от QwerTech »
Записан

asv

  • Hero Member
  • *****
  • Оффлайн Оффлайн
  • Сообщений: 1405
Re: Не проходит проверка контрольной суммы.
« Ответ #1 : 18 Июля, 2010, 13:24:58 »

Размер файла на сервере 2923726 байт
Bytes transferred = 1321792 (142b40 hex)
Записан

QwerTech

  • Jr. Member
  • **
  • Оффлайн Оффлайн
  • Сообщений: 78
  • МГТУ им. Баумана ИУ4

Проблема оказалась проста, файл с КФС не был скачан до конца.
Записан