2008-09-23 11:27:28     Problems CRC verifying

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-09-23 11:27:28     Problems CRC verifying

Miquel Soler i Mir (SPAIN)

Message: 62561   

 

Hello

 

I'm workinf with TCM-BF537, u-boot-1.1.6 (from truck) and ICEbear JTAG.

 

I had a working compiled kernel (uImage.ext2) and a u-boot.bin working.

 

I modified the file /include/config/tcm-bf537.h and /include/bfin_adi_common to ajust the IP and bootargs

 

In bfin_adi_common I modified this

 

#define CONFIG_BOOTCOMMAND    "bootm 0x20040000"

 

#define CONFIG_VERIFY "no"

 

#define CONFIG_BOOTARGS     "root=/dev/mtdblock0 rw console=ttyBF0,115200"

 

 

 

To store in Flash mem I'm using JTAG.

 

1.- flashload --eraseall

 

2.-flashload --program=u-boot.bin

 

3.-flashload --offset=0x40000 --program=uImage.ext2

 

 

 

When I boot the system answer me this:

 

 

 

U-Boot 1.1.6-svn1340 (ADI-2009R1-pre) (Sep 23 2008 - 17:06:00)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2)

Board: Bluetechnix TCM-BF537 board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   32 MB

Flash: Device ID of the Flash is 898820

Flash Memory Start 0x20000000

Memory Map for the Flash

0x20000000 - 0x207FFFFF Single Flash Chip (8MB)

Using PF4 and PF5 as a 2M bank switch

Please type command flinfo for information on Sectors

8 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   02:80:AD:20:31:E8

Hit any key to stop autoboot:  1     0

## Booting image at 20040000 ...

   Image Name:   uClinux Kernel and ext2

   Created:      2008-09-16  13:56:00 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    2999147 Bytes =  2.9 MB

   Load Address: 00001000

   Entry Point:  00162000

   Verifying Checksum ... Bad Data CRC

bfin>

 

 

 

Can somebody help me to solve this problem. I don't know how disable the checksum verify.

 

 

 

Thanks.

 

Miquel Soler i Mir

 

 

 

TranslateQuoteReplyEditDelete

 

 

2008-09-23 11:40:19     Re: Problems CRC verifying

Mike Frysinger (UNITED STATES)

Message: 62562   

 

disabling crc checks when you dont understand the system is an awful idea

 

i dont know how the icebear works, so you would have to ask section5 for support there

 

search the forums and you'll see that you cannot do a straight bootm out of flash memory on the tinyboards because of the GPIO flash.  you need to copy things piece by piece into memory first.

QuoteReplyEditDelete

 

 

2008-09-25 08:02:43     Re: Problems CRC verifying

Miquel Soler i Mir (SPAIN)

Message: 62704   

 

Thanks Mike.

 

I made some test and I think the problem is in u-boot.

 

I'm using a Host with ubuntu with: toolchain and kernel from 2008R1.5 and u-boot from SVN.

 

I make two test with the same kernel.

 

1.- with u-boot from bluetechnix 2006R2

 

2.- with u-boot from SVN 2009R1

 

I add the reports in files

 

The only diference is that the u-boot 2006R2 can boot the kernel but the 2009R1 not.

 

Can you help me.

 

Thanks

 

Miquel Soler i Mir

 

u-boot-2006R2-mod.txt

u-boot-2009R1-mod.txt

TranslateQuoteReplyEditDelete

 

 

2008-09-25 08:07:12     Re: Problems CRC verifying

Miquel Soler i Mir (SPAIN)

Message: 62705   

 

Thanks Mike.

 

I made some test and I think the problem is in u-boot.

 

I'm using a Host with ubuntu with: toolchain and kernel from 2008R1.5 and u-boot from SVN.

 

I make two test with the same kernel.

 

1.- with u-boot from bluetechnix 2006R2

 

2.- with u-boot from SVN 2009R1

 

I add the reports in files

 

The only diference is that the u-boot 2006R2 can boot the kernel but the 2009R1 not.

 

Can you help me.

 

Thanks

 

Miquel Soler i Mir

 

---

 

u-boot-2006R2-mod.txt

u-boot-2009R1-mod.txt

TranslateQuoteReplyEditDelete

 

 

2008-09-25 08:09:49     Re: Problems CRC verifying

Miquel Soler i Mir (SPAIN)

Message: 62706   

 

I can't add correctly the file i Print it:

 

2006R2--------------------------------------------------------------------------------------------------------------

 

version U-Boot-1.1.3-ADI-R06R2 (Jan 21 2008 - 18:30:22)

 

TCM-BF537> erase 0x20040000 0x207FFFFF 

Erasing Flash locations, Please Wait

Sector 2 erased.

........................

Sector 63 erased.

Erased 62 sectors

 

TCM-BF537> tftp 0x1000000 uImage

Using MAC Address 02:80:AD:20:31:B8

TFTP from server 192.168.0.25; our IP address is 192.168.0.32

Filename 'uImage'.

Load address: 0x1000000

Loading: #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     ##########################################################

done

Bytes transferred = 1959175 (1de507 hex)

 

TCM-BF537> cp.b 0x1000000 0x20040000 0x1de508

Copy to Flash... Bytes for programming: 1959176

First sector: 2

Sectors needed:15

Checking sector 2 ... sector empty

Checking sector 3 ... sector empty

Checking sector 4 ... sector empty

Checking sector 5 ... sector empty

Checking sector 6 ... sector empty

Checking sector 7 ... sector empty

Checking sector 8 ... sector empty

Checking sector 9 ... sector empty

Checking sector 10 ... sector empty

Checking sector 11 ... sector empty

Checking sector 12 ... sector empty

Checking sector 13 ... sector empty

Checking sector 14 ... sector empty

Checking sector 15 ... sector empty

Checking sector 16 ... sector empty

[                     ]

[.....................]

done

 

TCM-BF537> iminfo 0x1000000 

## Checking Image at 01000000 ...

   Image Name:   uClinux Kernel and ext2

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1959111 Bytes =  1.9 MB

   Load Address: 00001000

   Entry Point:  0013c000

   Verifying Checksum ... OK

 

TCM-BF537> iminfo 0x20040000 

 

## Checking Image at 20040000 ...

   Image Name:   uClinux Kernel and ext2

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1959111 Bytes =  1.9 MB

   Load Address: 00001000

   Entry Point:  0013c000

   Verifying Checksum ...    Bad Data CRC

 

TCM-BF537> bootm 0x1000000        working fine

TCM-BF537> bootm 0x20040000        working fine

 

 

2009R1------------------------------------------------------------------------------------------------------

 

version U-Boot 1.1.6-svn1346 (ADI-2009R1-pre) (Sep 25 2008 - 12:30:08)

 

bfin> ersase 0x20040000 0x207FFFFF

Erasing Flash locations, Please Wait

Sector 2 erased.

.......

Sector 63 erased.

Erased 62 sectors

 

bfin> tftp 0x1000000 uImage

Using Blackfin EMAC device

TFTP from server 192.168.0.25; our IP address is 192.168.0.32

Filename 'uImage'.

Load address: 0x1000000

Loading: #################################################################

     #################################################################

     #################################################################

     #################################################################

     #################################################################

     ##########################################################

done

Bytes transferred = 1959175 (1de507 hex)

 

bfin> cp.b 0x1000000 0x20040000 0x1de508

Copy to Flash... Bytes for programming: 1959176

First sector: 2

Sectors needed:15

Checking sector 2

memIndex 1  20040000 crossed4 0

 

memIndex 1  20040000 crossed5 0

 

memIndex 2  20040000 crossed4 0

 

memIndex 2  20040000 crossed5 0

... sector empty

.......

Checking sector 16

memIndex 1  20200000 crossed4 0

 

memIndex 1  20200000 crossed5 0

 

memIndex 2  20000000 crossed4 1

 

memIndex 2  20000000 crossed5 0

... sector empty

[                     ]

[.....................]

done

bfin> iminfo 0x1000000

 

## Checking Image at 01000000 ...

   Image Name:   uClinux Kernel and ext2

   Created:      2008-09-24  16:45:22 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1959111 Bytes =  1.9 MB

   Load Address: 00001000

   Entry Point:  0013c000

   Verifying Checksum ... OK

bfin> iminfo 0x20040000

 

## Checking Image at 20040000 ...

   Image Name:   uClinux Kernel and ext2

   Created:      2008-09-24  16:45:22 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1959111 Bytes =  1.9 MB

   Load Address: 00001000

   Entry Point:  0013c000

   Verifying Checksum ...    Bad Data CRC

 

 

bfin> bootm 0x1000000

## Booting image at 01000000 ...

   Image Name:   uClinux Kernel and ext2

   Created:      2008-09-24  16:45:22 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1959111 Bytes =  1.9 MB

   Load Address: 00001000

   Entry Point:  0013c000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 13c000

Linux version 2.6.22.19-ADI-2008R1.5-svn (mikimonster@mikimonster-DELL) (gcc version 4.1.2 (ADI svn)) #8 Wed Sep 24 18:44:42 CEST 2008

Hardware Trace Active and Enabled

Warning: limiting memory to 26MB due to hardware anomaly 05000263

Reset caused by Software reset

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 125 MHz System Clock

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  text      = 0x00001000-0x000ee1b0

  rodata    = 0x000ef000-0x0012db8c

  data      = 0x0012e000-0x0013c000

    stack   = 0x0012e000-0x00130000

  init      = 0x0013c000-0x0014d000

  bss       = 0x0014d000-0x0015b420

  available = 0x0015b420-0x01a00000

  rootfs    = 0x01a00000-0x01f00000

  DMA Zone  = 0x01f00000-0x02000000

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled

Data Cache Enabled (write-back)

Built 1 zonelists.  Total pages: 6604

Kernel command line: root=/dev/mtdblock0 rw console=ttyBF0,115200

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 128 (order: 7, 512 bytes)

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 24936k/32768k RAM, (68k init code, 948k kernel code, 369k data, 1024k dma, 5424k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (9 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (40 KB free)

Security Framework v1.0.0 initialized

Capability LSM initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

cm_bf537_init(): registering device resources

Generic PHY: Registered new driver

NET: Registered protocol family 2}RüIP route cache hash table entries: 1024 (order: 0, 4096 bytes)

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

io scheduler noop registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

uclinux[mtd]: RAM probe address=0x1a00000 size=0x500000

Creating 1 MTD partitions on "RAM":

0x00000000-0x00500000 : "ROMfs"

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 68k freed

dma_alloc_init: dma_page @ 0x0014a000 - 256 pages at 0x01f00000

 

Welcome to:

       ____ _  _                   

      /  __| ||_|             _  _ 

_   _| |  | | _ ____  _   _ \ \/ /

| | | | |  | || |  _ \| | | | \  /

| |_| | |__| || | | | | |_| | /  \

|  ___\____|_||_|_| |_|\____|/_/\_\

|_|                                   

 

For further information see:

http://www.uclinux.org/

http://blackfin.uclinux.org/

 

http://www.bluetechnix.at

 

 

BusyBox v1.4.1 (2008-09-24 18:44:52 CEST) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> 

 

U-Boot 1.1.6-svn1346 (ADI-2009R1-pre) (Sep 25 2008 - 12:30:08)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2)

Board: Bluetechnix TCM-BF537 board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   32 MB

Flash: Device ID of the Flash is 898820

Flash Memory Start 0x20000000

Memory Map for the Flash

0x20000000 - 0x207FFFFF Single Flash Chip (8MB)

Using PF4 and PF5 as a 2M bank switch

Please type command flinfo for information on Sectors 

8 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   02:80:AD:20:31:E8

Hit any key to stop autoboot:  5     0 

bfin> bootm 0x20040000

## Booting image at 20040000 ...

   Image Name:   uClinux Kernel and ext2

   Created:      2008-09-24  16:45:22 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1959111 Bytes =  1.9 MB

   Load Address: 00001000

   Entry Point:  0013c000

   Verifying Checksum ... Bad Data CRC

bfin>

TranslateQuoteReplyEditDelete

 

 

2008-09-25 14:50:18     Re: Problems CRC verifying

Mike Frysinger (UNITED STATES)

Message: 62723   

 

your test is not valid.  older ports to the tinyboards were not done by ADI and contain lots of hacks.  if you want to use those, then you're on your own.  ive told you the problem you're hitting and why it is occurring ... comparing to older hacks is irrelevant.

QuoteReplyEditDelete

 

 

2008-09-26 07:38:13     Re: Problems CRC verifying

Miquel Soler i Mir (SPAIN)

Message: 62791   

 

Thanks Mike.

 

I will wait for the final release of 2009R1. I don't have enogh knowledge for help to develop the TCM-BF537 u-boot.

 

To continuing with my project I'm using the u-boot 1.1.3 from 2006R2 and the patch from bluetechnix.

 

I removed the new toolchain and installed the toolchain from 2006R2. All is working !

 

I have two questions.

 

1.- Can I have any problem to use a u-boot from 2006 with a kernel from 2008 ?

 

Actually is working, but I don't know If I should look for specific problems. Any advice?

 

2.- Set the silent boot :

 

Following the manual for silent boot I modified the tcm-bf537.h file and add this lines

 

#define CONFIG_SILENT_CONSOLE

#define CONFIG_SILENT 1

#define CFG_DEVICE_NULLDEV

 

The result is that the systema is booting OK but no in silent mode. The system shows me the u-boot sdtout.

 

Checking the variables I found that the silent variable is no set.

 

I set manuality set silent 1; save; saveenv; And now the silent boot is working.

 

I think I'm making something wrong in definitions, but what?

 

Thanks for you help.

 

Miquel Soler i Mir

 

 

 

 

TranslateQuoteReplyEditDelete

 

 

2008-09-26 14:04:17     Re: Problems CRC verifying

Mike Frysinger (UNITED STATES)

Message: 62812   

 

we do not make any guarantees about older u-boot/newer kernel.  it may work, it may not ... you're on your own.

 

silent booting is documented here:

http://docs.blackfin.uclinux.org/doku.php?id=silent_booting

Attachments

    Outcomes