2009-02-10 20:22:04     u-boot custom BF537

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

2009-02-10 20:22:04     u-boot custom BF537

damien OLLIVE (UNITED STATES)

Message: 69226   

 

Hi,

 

I have a custom BF537 which is very similar to the BF537-Stamp board.

 

I want to boot by uart with the same u-boot that I am using for the stamp board (2008R1.5).

 

I manage to load it by UART :

 

cmd-ubuntu@dell-desktop:~/Documents$ bfin-elf-ldr -l ./u-boot-bf537-stamp-uart-2008R1.5.ldr /dev/ttyUSB0

Loading LDR ./u-boot-bf537-stamp-uart-2008R1.5.ldr ... OK!

Opening /dev/ttyUSB0 ... OK!

Configuring terminal I/O ... OK!

Trying to send autobaud ... OK!

Trying to read autobaud ... OK!

Checking autobaud ... OK!

Autobaud result: 115200bps 49.766mhz (header:0xBF DLL:0x1B DLH:0x00 fin:0x00)

Sending blocks of DXE 1 ... OK!       

You may want to run minicom or kermit now

Quick tip: run 'ldr <ldr> <tty> && minicom'

 

 

but when i launch kermit...

 

cmd-ubuntu@dell-desktop:~/Documents$ kermit -l /dev/ttyUSB0 -b 57600 -C connect

Connecting to /dev/ttyUSB0, speed 57600

Escape character: Ctrl-\ (ASCII 28, FS): enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

?Carrier required but not detected.

***********************************

Hint: To CONNECT to a serial device that

is not presenting the Carrier Detect signal,

first tell C-Kermit to:

 

   SET CARRIER-WATCH OFF

 

***********************************

 

C-Kermit 8.0.211, 10 Apr 2004, for Linux

Copyright (C) 1985, 2004,

  Trustees of Columbia University in the City of New York.

Type ? or HELP for help.

(/home/cmd-ubuntu/Documents/) C-Kermit>set carrier-watch off

(/home/cmd-ubuntu/Documents/) C-Kermit>connect

Connecting to /dev/ttyUSB0, speed 57600

Escape character: Ctrl-\ (ASCII 28, FS): enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

----------------------------------------------------

 

 

I don't get any error, but i don't get ant answer from the board either( i.e i don't see bfin> when i hit "enter")

 

At this point, the only dfference i see that could matter, between my custom board and the BF537-stamp is the RAM. i use a single chip x16, Analog devices use two chips x8 (same characteristics, same vendors though). Could that be a problem? If so, what should I change in the u-boot to port it into my custom board ?

 

When i start u-boot on the stamp it responds ([board said: ��怘�ff� �����` �� �  �x�]), my board doesn't. How can i know if the uboot started?

 

The UART lines seem fine. Can anybody point me in the right direction ?

 

 

 

Thanks a lot.

 

Damien

QuoteReplyEditDelete

 

 

2009-02-10 20:25:57     Re: u-boot custom BF537

Mike Frysinger (UNITED STATES)

Message: 69227   

 

please read the documentation:

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:porting

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:loading

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:debugging

QuoteReplyEditDelete

 

 

2009-02-13 11:07:23     Re: u-boot custom BF537

damien OLLIVE (UNITED STATES)

Message: 69419   

 

hy,

 

i have a mistake in my hardware, the SRAM is a 48LC16M16 whitch is an 32 MB (16bits data bus) instead of 64MB with two 32MB of 8bits data bus.

 

But that should work its the same hardware but with just 32MB

 

I need your advice about it :

 

1- Do you know if 32MB of RAM is enouth to running uClinux and QT4

 

2- when i use the bfin-elf-ldr to load the uboot the initcode.c runnning but after start.S should running but nothing hapend.

 

I think that's because the first instruction of it is about the RAM and mine isn't well configure.

 

 

 

i have change it

 

#define CONFIG_MEM_SIZE        32

 

 

 

and i have this in the post config file

 

#ifndef CFG_SDRAM_BASE

# define CFG_SDRAM_BASE 0

#endif

#ifndef CFG_MAX_RAM_SIZE

# define CFG_MAX_RAM_SIZE (CONFIG_MEM_SIZE * 1024 * 1024)

#endif

#ifndef CFG_MONITOR_BASE

# define CFG_MONITOR_BASE (CFG_MAX_RAM_SIZE - CFG_MONITOR_LEN)

#endif

 

do you know if there is other value to change?

 

 

 

 

 

 

 

 

 

 

QuoteReplyEditDelete

 

 

2009-02-13 11:25:00     Re: u-boot custom BF537

damien OLLIVE (UNITED STATES)

Message: 69420   

 

and #define CONFIG_MEM_ADD_WDTH    9

QuoteReplyEditDelete

 

 

2009-02-13 12:16:43     Re: u-boot custom BF537

Mike Frysinger (UNITED STATES)

Message: 69422   

 

32megs of RAM is probably going to be pretty tight running QT.  booting Linux will run fine as will other apps.  but we've never done any memory analysis on QT.

QuoteReplyEditDelete

 

 

2009-02-20 19:01:53     Re: u-boot custom BF537

damien OLLIVE (UNITED STATES)

Message: 69706   

 

Hy

 

I have an other question about the 32MB RAM my kernel don't boot if the size is bigger than 6MB

 

 

 

when i try to boot a kernel of 7MB load at the 0x1000000adresse that give it

 

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

Memory available: 13684k/32768k RAM, (16148k init code, 1122k kernel code, 481k data, 1024k dma, 308k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 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

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

Generic PHY: Registered new driver

NET: Registered protocol family 2q

                                  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

 

 

and stop here without any kernel panic or something

 

 

 

32MB is to small to run a kernel of 7MB?

QuoteReplyEditDelete

 

 

2009-02-20 19:05:00     Re: u-boot custom BF537

Mike Frysinger (UNITED STATES)

Message: 69707   

 

you cannot load a kernel at higher than 16meg

Attachments

    Outcomes