[#3873] In BF537-STAMP, boot from UART and start kernel, it will stop sometimes

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

[#3873] In BF537-STAMP, boot from UART and start kernel, it will stop sometimes

Submitted By: Vivi Li

Open Date

2008-01-30 03:58:20     Close Date

2008-02-27 09:12:41

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

N/A     Status:

Closed

Board:

STAMP     Processor:

BF537

Silicon Revision:

toolchain 08r1-6     Resolution:

N/A

Is the bug repeatable?:

N/A     

Summary: In BF537-STAMP, boot from UART and start kernel, it will stop sometimes

Details:

 

In BF537-STAMP, first set boot mode to 0(paralle flash boot) and boot up to uboot.

Second, plug off power cable and set boot mode to 7(UART boot).

Then boot from UART and start linux kernel, it will stop and can't get kernel prompt.

Don't change boot mode and boot from UART again, it can boot up successfully.

This problem happens both in trunk and 2008r1 branch.

 

Blow is the log:

----

test@Linux165-ViviLi:~/checkouts/u-boot-08r1rc2/u-boot-1.1.6> bfin-uclinux-ldr -l ./u-boot.ldr /dev/ttyS0 && kermit -l /dev/ttyS0 -b 57600 -C connect

Loading LDR ./u-boot.ldr ... auto detected LDR as 'BF537'

OK!

Opening /dev/ttyS0 ... 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 ... [board said: 怘�怘�ff������`^F���^F�x�����~��^F��x��^F^F`]

OK!

You may want to run minicom or kermit now

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

Connecting to /dev/ttyS0, 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.

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

�^BB"�ѕ�ѕ��Rev: 0.2)

Board: ADI BF537 stamp board

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

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

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:22:FE:47:D4

I2C:   ready

bfin> tftp 0x1000000 uImage

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

Loading: T #################################################################

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

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

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

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

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

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

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

done

Bytes transferred = 2454059 (25722b hex)

bfin> bootm

## Booting image at 01000000 ...

   Image Name:   uClinux Kernel and ext2

   Created:      2007-03-27   0:24:27 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    2453995 Bytes =  2.3 MB

   Load Address: 00001000

   Entry Point:  00001000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 1000

Linux version 2.6.19.3-ADI-2007R1-pre-svn2931 (test@linux) (gcc version 4.1.1 (ADI 07R1)) #5 Mon Mar 26 17:24:09 MST 2007

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

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

Compiled for ADSP-BF537 Rev. 0.2

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

Processor Speed: 500 MHz core clock and 100 Mhz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x00111978

  init      = 0x00112000-0x00120a14

  data      = 0x00122b38-0x00159d1c

  stack     = 0x00124000-0x00126000

  bss       = 0x00159d20-0x00167dc0

  available = 0x00167dc0-0x03700000

  rootfs    = 0x03700000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Instruction Cache Enabled

Data Cache Enabled (write-through)

Hardware Trace Enabled

Built 1 zonelists.  Total pages: 13970

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

bfin-rtc: invalid date; resetting

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

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

Physical pages: 3700

Memory available: 54272k/64373k RAM, (58k init code, 1090k kernel code, 56k data, 1024k dma)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin DATA_A SRAM: 16 KB

Blackfin DATA_B SRAM: 16 KB

Blackfin Instruction SRAM: 48 KB

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

stamp_init(): registering device resources

NET: Registered protocol family 2

IP route cache hash table entries: 512 (order: -1, 2048 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

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

pfx: pfbits driver for bf5xx

Dynamic Power Management Controller Driver v0.1: major=10, minor = 254

Serial: Blackfin serial driver

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

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

Blackfin mac net device registered

uclinux[mtd]: RAM probe address=0x3700000 size=0x800000

Creating 1 MTD partitions on "RAM":

0x00000000-0x00800000 : "ROMfs"

uclinux[mtd]: set ROMfs:EXT2  to be root filesystem

rtc-bfin rtc-bfin: rtc intf: sysfs

rtc-bfin rtc-bfin: rtc intf: proc

rtc-bfin rtc-bfin: rtc intf: dev (254:0)

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 2058-04-08 05:02:42 (2785467762)

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 56k freed (0x112000 - 0x11f000)

dma_alloc_init: dma_page @ 0x0011a000 - 256 pages at 0x03f00000

 

Welcome to:

       ____ _  _

      /  __| ||_|             _  _

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

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

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

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

|_|

 

For further information see:

http://www.uclinux.org/

http://blackfin.uclinux.org/

 

 

 

 

 

 

 

 

 

Follow-ups

 

--- Mike Frysinger                                           2008-02-05 20:23:17

i cant really reproduce ... what i do is:

- set board to BMODE7 and reset

- load the 2008R1 u-boot image for booting over the UART

- connect to the board and do "run bootcmd"

- <current trunk uImage loads up and boots>

- type "reboot" into the shell

- repeat

 

i did this four times in a row without a problem

 

can you try telneting into the board ?

 

--- Vivi Li                                                  2008-02-27 09:12:40

It's OK after I change to a latest uImage. So close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes