2008-01-22 12:45:28     BF561-EZLITE and USB-LAN EZ-EXTENDER problem

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

2008-01-22 12:45:28     BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Jan Fristedt (SWEDEN)

Message: 49961    Hi all,

I can't get the combination to run. BF537-EZLITE worked right out of the box :*)

 

I get:

Bad page state in process 'swapper'

page:00166e00 flags:0x00000000 mapping:00000000 mapcount:-16384 count:0

Trying to fix it up, but a reboot is needed

 

When I run mtest in U-boot I get:

Mem error @ 0x00000000: found FFFF3FFF, expected FFFFFFFF

Mem error @ 0x00000020: found FFFF1FF7, expected FFFFFFF7

Mem error @ 0x00000040: found FFFF1FEF, expected FFFFFFEF

etc

 

My EZLITE boards are REV 2.0 (silkscreen) REV 2.3 (label) and REV 2.1 (silkscreen) REV 2.7 (label).

My LAN boards are both REV 2.0 (silkscreen) REV 1.6 (label).

Any combination give the same results.

 

U-boot start with:

U-Boot 1.1.6-svn737 (ADI-2007R1) (Apr  4 2007 - 12:04:56)

 

CPU:   ADSP BF561

Board: ADI BF561 EZ-Kit Lite board

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

Clock: VCO: 600 MHz, Core: 600 MHz, System: 120 MHz

SDRAM: 64 MB

FLASH:   8 MB

 

I read something about a power problem for REV 2.3 (is that the revision on the label?)

Anyone out there with a sucess story? Or the same problem?

TIA,

/Janne

boot.cap

mtest.cap

QuoteReplyEditDelete

 

 

2008-01-22 17:37:24     Re: BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Mike Frysinger (UNITED STATES)

Message: 49972    i'm guessing your first line where you said BF537-EZKIT was a typo ...

 

unfortunately, the newer boards have a different set of problems ... you need to run u-boot at an SCLK of 100MHz to workaround the issue

QuoteReplyEditDelete

 

 

2008-01-23 00:21:38     Re: BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Jan Fristedt (SWEDEN)

Message: 49982    No it wasn't. It was just me expressing myself in an unclear way. I tried the BF537 first to get a feeling for Blackfin and uClinux and it just worked :*)

 

The problem is with BF561.

 

So my problem is probably a clock related hardware problem. That's nice in a way for someone like me with a background in hardware.

 

I have tried to change the clock settings in u-boot-1.1.6/include/configs/bf561-ezkit.h (one change per test)

CONFIG_SCLK_DIV from 5 to 6 (change SCLK from 120MHz to 100MHz)

CONFIG_VCO_MULT from 20 to 16 (change VCO from 600MHz to 480MHz)

CONFIG_CLKIN_HALF from 0 to 1 (change CLKIN from 30MHz to 15MHz)

 

In all tests I changed the prompt (in bf561-ezkit.h) and the prompt displayed by u-boot changed as expected.

In all cases u-boot reported "Clock: VCO: 600 MHz, Core: 600 MHz, System: 120 MHz

In all cases I got memory errors when I ran mtest.

 

When I run make bf561-ezkit_config I get "Configuring for bf561-ezkit board..."

When I run make I get a lot of "cc1: warning: bf561 support is incomplete yet."

 

My conclusion is that this is either the wrong way to change the clocks or that I lack the required competence or that this is an error in u-boot for BF561.

 

Any suggestions?

/Janne

QuoteReplyEditDelete

 

 

2008-01-23 00:37:09     Re: BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Mike Frysinger (UNITED STATES)

Message: 49983    ignore that warning bf561 warning, it isnt applicable when building u-boot

 

since our last release did not default to 100mhz, ive posted an intermediate file for people:

http://blackfin.uclinux.org/gf/download/frsrelease/357/3951/u-boot-bf561-ezkit-bypass-100mhz.bin

 

i just tested it on a BF561-0.5 with the extender card and mtest runs fine for me

QuoteReplyEditDelete

 

 

2008-01-23 03:25:45     Re: BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Jan Fristedt (SWEDEN)

Message: 49991    Thank you, but I get the same symptoms...

 

/Janne

 

go 0x1000000

## Starting application at 0x01000000 ...

 

 

U-Boot 1.1.6-svn1112 (ADI-2008R1) (Jan 22 2008 - 20:31:14)

 

CPU:   ADSP bf561-0.3 (Detected Rev: 0.5)

Board: ADI BF561 EZ-Kit Lite board

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

Clock: VCO: 600 MHz, Core: 600 MHz, System: 120 MHz

RAM:   64 MB

Flash:  8 MB

In:    serial

Out:   serial

Err:   serial

Net:   SMC91111 at 0x2C010300

MAC:   00:E0:22:FE:B5:7B

Hit any key to stop autoboot:  5     4     3     2     1     0

bfin> mtest

Pattern 00000000  Writing...                      Reading...Pattern FFFFFFFF  Writing...                      Reading...

Mem error @ 0x00000000: found FFFF1FFF, expected FFFFFFFF

 

Mem error @ 0x00400000: found FFEF1FFF, expected FFEFFFFF

 

Mem error @ 0x00800000: found FFDF1FFF, expected FFDFFFFF

 

Mem error @ 0x00C00000: found FFCFDFFF, expected FFCFFFFF

Pattern 00000001  Writing...                      Reading...Pattern FFFFFFFE  Writing...                      Reading...

Mem error @ 0x00000000: found FFFF1FFE, expected FFFFFFFE

 

Mem error @ 0x00400000: found FFEF1FFE, expected FFEFFFFE

 

Mem error @ 0x00800000: found FFDF3FFE, expected FFDFFFFE

Pattern 00000002  Writing...                      Reading...Pattern FFFFFFFD  Writing...                      Reading...

Mem error @ 0x00000000: found FFFF1FFD, expected FFFFFFFD

 

Mem error @ 0x00400000: found FFEF9FFD, expected FFEFFFFD

 

Mem error @ 0x00800000: found FFDF1FFD, expected FFDFFFFD

 

Mem error @ 0x00C00000: found FFCFDFFD, expected FFCFFFFD

Pattern 00000003  Writing...                      Reading...Pattern FFFFFFFC  Writing...                      Reading...

Mem error @ 0x00000000: found FFFF1FFC, expected FFFFFFFC

 

Mem error @ 0x00400000: found FFEF1FFC, expected FFEFFFFC

 

Mem error @ 0x00800000: found FFDF1FFC, expected FFDFFFFC

Pattern 00000004  Writing...                      Reading...

bfin>

QuoteReplyEditDelete

 

 

2008-01-23 03:50:34     Re: BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Mike Frysinger (UNITED STATES)

Message: 49992    you cannot use "go" ... you have to burn the image into your flash and reset the board

 

otherwise your system clocks do not get reprogrammed

QuoteReplyEditDelete

 

 

2008-01-23 04:45:04     Re: BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Jan Fristedt (SWEDEN)

Message: 49994    Ohh, I didn't realize that.

I thought of it but since I got the prompt changed I thought it was all right.

Maybe we have some light in the tunnel now...

 

/Janne

QuoteReplyEditDelete

 

 

2008-01-23 05:15:47     Re: BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Jan Fristedt (SWEDEN)

Message: 49995    YES, YES, YES!

 

Thank you VERY MUCH for your help!

 

Linux blackfin 2.6.19.3-ADI-2007R1.1-svn #1 Sat Jan 5 06:44:32 CET 2008 blackfin unknown

 

/Janne

QuoteReplyEditDelete

 

 

2008-01-23 07:23:25     Re: BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Mike Frysinger (UNITED STATES)

Message: 50024    we'll be looking at making the clocks reprogram themselves even when using "go", but it wont be done for the 2008R1 release

QuoteReplyEditDelete

 

 

2008-01-24 04:35:50     Re: BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Jan Fristedt (SWEDEN)

Message: 50075    First I thought it was a bit strange that the clocks didn't change but then I realized that it could possibly be a problem with executing from SDRAM if you change the clocks.

 

/Janne

QuoteReplyEditDelete

 

 

2008-02-07 10:01:02     Re: BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Henrik Holm (UNITED STATES)

Message: 50822    I have been seeing similar problems with the BF561 EZ-KIT and USB-LAN EZ-EXTENDER. Downloading the u-boot you posted (u-boot-bf561-ezkit-bypass-100mhz.bin) seems to have *partially* fixed the problem. I no longer see the mtest errors, which is of course a good thing. However, I am still unable to start linux successfully; and this time it doesn't even matter if I have the USB-LAN daughter card attached. THe symptoms are very different though -- essentially the boot process seems to hang after : : Verifying Checksum ... OK Uncompressing Kernel Image ... OK Starting Kernel at = 1000 . This is with the distributed uImage-bf561-ezkit-2007R1.1-RC3, I have similar symptoms with uImage-bf561-ezkit-2008R1-RC1. Booting from SRAM (bootm 0x1000000) or flash (bootm 0x20040000) does not make a difference. I have yet to try building an image myself. Is there a way I can debug this better, and dig deeper into what the problem may be? Is it possible that there is an incompatibility with the 100MHz u-boot and the slightly older linux images? FWIW, My EZ-KIT is labeled 2.7. Thanks for all help, Henrik

QuoteReplyEditDelete

 

 

2008-02-07 11:27:26     Re: BF561-EZLITE and USB-LAN EZ-EXTENDER problem

Mike Frysinger (UNITED STATES)

Message: 50829    you can try:

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

 

but chances are you're just going to get a random panic

Attachments

Outcomes