[#4871] kernel fails to boot from kernel image "linux" in bf518f-ezbrd

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

[#4871] kernel fails to boot from kernel image "linux" in bf518f-ezbrd

Submitted By: Vivi Li

Open Date

2009-02-09 05:31:06     Close Date

2009-02-12 05:45:18

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Closed

Board:

N/A     Processor:

N/A

Silicon Revision:

    Resolution:

N/A

Is the bug repeatable?:

N/A     

Summary: kernel fails to boot from kernel image "linux" in bf518f-ezbrd

Details:

 

For u-boot 2008.10, it fails to boot bf518f-ezbrd from kernel image "linux".

Boot from uImage is ok.

 

Bellow is the log:

--

U-Boot 2008.10-svn1657 (ADI-2009R1-pre) (Feb  9 2009 - 16:48:40)

 

CPU:   ADSP bf518-0.0 (Detected Rev: 0.0) (spi flash boot)

Board: ADI BF518F EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash: ## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB

0 kB

SF: Got idcode 20 20 15

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:FE:FE:DD:02

Hit any key to stop autoboot:  0

bfin>

bfin> tftp 0x1000000 linux

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'linux'.

Load address: 0x1000000

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

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

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

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

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

         ###########

done

Bytes transferred = 4922145 (4b1b21 hex)

bfin> bootelf

Loading phdr 0 to 0x00001000 (1430248 bytes)

Loading phdr 1 to 0x0016e714 (2867044 bytes)

Loading phdr 2 to 0x0042a678 (5152 bytes)

Loading phdr 3 to 0x0042ba98 (192 bytes)

## Starting application at 0x0018e644 ...

--

 

Follow-ups

 

--- Mike Frysinger                                           2009-02-09 11:07:25

so use the post mortem page to look at the kernel log buffer

 

--- Vivi Li                                                  2009-02-09 23:20:09

It seems like kernel problem as it can boot from an old 518 linux image, but

fails with the latest linux image.

 

Bellow is the log:

--

U-Boot 2008.10-svn1651 (ADI-2009R1-pre) (Feb  6 2009 - 17:16:33)

 

CPU:   ADSP bf518-0.0 (Detected Rev: 0.0) (spi flash boot)

Board: ADI BF518F EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash: ## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB

0 kB

SF: Got idcode 20 20 15

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   0A:39:0E:5C:AC:8E

Hit any key to stop autoboot:  0

bfin>

bfin> tftp 0x1000000 linux.ok

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'linux.ok'.

Load address: 0x1000000

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

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

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

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

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

done

Bytes transferred = 4700433 (47b911 hex)

bfin> bootelf

Loading phdr 0 to 0x00001000 (1383768 bytes)

Loading phdr 1 to 0x0016161c (2704748 bytes)

Loading phdr 2 to 0x003f5b88 (5152 bytes)

Loading phdr 3 to 0x003f6fa8 (192 bytes)

## Starting application at 0x0017e624 ...

Linux version 2.6.28-ADI-2009R1-pre-svn6059 (test@51x) (gcc version 4.1.2 (ADI

svn)) #2 Wed Feb 4 29

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x000ff040

  rodata    = 0x000ff040-0x00152d58

  bss       = 0x00152d60-0x0016161c

  data      = 0x0016161c-0x00172000

    stack   = 0x00170000-0x00172000

  init      = 0x00172000-0x003f8000

  available = 0x003f8000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 3

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

Compiled for ADSP-BF518 Rev 0.0

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

Processor Speed: 400 MHz core clock and 80 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-through)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16001

Kernel command line:

Configuring Blackfin Priority Driven Interrupts

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

console [ttyBF0] enabled

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

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

Memory available: 59864k/65536k RAM, (2584k init code, 1016k kernel code, 460k

data, 1024k dma, 584)

Calibrating delay loop... 794.62 BogoMIPS (lpj=1589248)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (15 KB free)

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

Blackfin L1 Instruction SRAM: 48 KB (42 KB free)

PDA for CPU0 reserved at 00153c0c

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

ezbrd_init(): registering device resources

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

NET: Registered protocol family 1

msgmni has been set to 116

io scheduler noop registered (default)

Serial: Blackfin serial driver

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

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1,

mdc_clk=2500000Hz(mdc_d)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

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

i2c /dev entries driver

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller,

regs_base@ffc01400

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2035-06-08 22:06:41 UTC

(2064953201)

Freeing unused kernel memory: 2584k freed

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

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.13.2 (2009-02-04 20:33:23 CST) built-in shell (msh)

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

 

root:/>

 

U-Boot 2008.10-svn1651 (ADI-2009R1-pre) (Feb  6 2009 - 17:16:33)

 

CPU:   ADSP bf518-0.0 (Detected Rev: 0.0) (spi flash boot)

Board: ADI BF518F EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash: ## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB

0 kB

SF: Got idcode 20 20 15

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   0A:39:0E:5C:AC:8E

Hit any key to stop autoboot:  0

bfin> tftp 0x1000000 linux

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'linux'.

Load address: 0x1000000

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

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

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

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

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

         #

done

Bytes transferred = 4774689 (48db21 hex)

bfin> bootelf

Loading phdr 0 to 0x00001000 (1430232 bytes)

Loading phdr 1 to 0x0016e704 (2718708 bytes)

Loading phdr 2 to 0x004062f8 (5152 bytes)

Loading phdr 3 to 0x00407718 (192 bytes)

## Starting application at 0x0018e644 ...

--

 

Bellow is the kernel log buffer:

--

test@51x:~/work/cruise/checkouts/uclinux-dist> grep __log_buf

./linux-2.6.x/System.map

00161144 b ___log_buf

 

U-Boot 2008.10-svn1651 (ADI-2009R1-pre) (Feb  6 2009 - 17:16:33)

 

CPU:   ADSP bf518-0.0 (Detected Rev: 0.0) (spi flash boot)

Board: ADI BF518F EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash: ## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB

0 kB

SF: Got idcode 20 20 15

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   0A:39:0E:5C:AC:8E

Hit any key to stop autoboot:  0

bfin>

bfin> md 00161144

00161144: 4c3e353c 78756e69 72657620 6e6f6973    <5>Linux version

00161154: 362e3220 2e38322e 44412d33 30322d49     2.6.28.3-ADI-20

00161164: 31523930 6572702d 6e76732d 33383036    09R1-pre-svn6083

00161174: 65742820 35407473 20297831 63636728     (test@51x) (gcc

00161184: 72657620 6e6f6973 312e3420 2820322e     version 4.1.2 (

00161194: 20494441 296e7673 32232029 65755420    ADI svn)) #2 Tue

001611a4: 62654620 20303120 303a3231 30303a37     Feb 10 12:07:00

001611b4: 54534320 30303220 363c0a39 616f423e     CST 2009.<6>Boa

001611c4: 4d206472 726f6d65 36203a79 0a424d34    rd Memory: 64MB.

001611d4: 4b3e363c 656e7265 614d206c 6567616e    <6>Kernel Manage

001611e4: 654d2064 79726f6d 3436203a 3c0a424d    d Memory: 64MB.<

001611f4: 654d3e36 79726f6d 70616d20 363c0a3a    6>Memory map:.<6

00161204: 6620203e 64657869 65646f63 30203d20    >  fixedcode = 0

00161214: 30303078 30343030 78302d30 30303030    x00000400-0x0000

00161224: 30393430 3e363c0a 65742020 20207478    0490.<6>  text

00161234: 20202020 7830203d 30303030 30303031        = 0x00001000

bfin> strings 00161144

<5>Linux version 2.6.28.3-ADI-2009R1-pre-svn6083 (test@51x) (gcc version

4.1.2 (ADI svn)) #2 Tue Fe9

<6>Board Memory: 64MB

<6>Kernel Managed Memory: 64MB

<6>Memory map:

<6>  fixedcode = 0x00000400-0x00000490

<6>  text      = 0x00001000-0x00108b70

<6>  rodata    = 0x00108b70-0x0015e2d8

<6>  bss       = 0x0015e2e0-0x0016e704

<6>  data      = 0x0016e704-0x00182000

<6>    stack   = 0x00180000-0x00182000

<6>  init      = 0x00182000-0x00408000

<6>  available = 0x00408000-0x03eff000

<6>  DMA Zone  = 0x03f00000-0x04000000

<6>Hardware Trace Active and Enabled

<6>Boot Mode: 3

<6>Blackfin support (C) 2004-2009 Analog Devices, Inc.

<6>Compiled for ADSP-BF518 Rev 0.0

<6>Blackfin Linux support by http://blackfin.uclinux.org/

<6>Processor Speed: 400 MHz core clock and 80 MHz System Clock

<7> boot memmap: 0000000000408000 - 0000000003eff000 (usable)

<7>On node 0 totalpages: 16127

<7>free_area_init_node: node 0, pgdat 0017e134, node_mem_map 0040d000

<7>  DMA zone: 126 pages used for memmap

<7>  DMA zone: 0 pages reserved

<7>  DMA zone: 16001 pages, LIFO batch:3

<7>  Normal zone: 0 pages used for memmap

<7>  Movable zone: 0 pages used for memmap

<6>NOMPU: setting up cplb tables

<6>Instruction Cache Enabled for CPU0

<6>Data Cache Enabled for CPU0 (write-back)

<4>Built 1 zonelists in Zone order, mobility grouping off.  Total pages:

16001

<5>Kernel command line:

<6>Configuring Blackfin Priority Driven Interrupts

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

<4>Console: colour dummy device 80x25

<6>console [tty0] enabled

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

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

<7>Kernel managed physical pages: 16127

<6>Memory available: 59796k/65536k RAM, (2584k init code, 1054k kernel

code, 486k data, 1024k dma, )

<6>Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)

<6>Security Framework initialized

<4>Mount-cache hash table entries: 512

<6>Blackfin Scratchpad data SRAM: 4 KB

<6>Blackfin L1 Data A SRAM: 16 KB (15 KB free)

<6>Blackfin L1 Data B SRAM: 16 KB (16 KB free)

<6>Blackfin L1 Instruction SRAM: 48 KB (42 KB free)

<6>PDA for CPU0 reserved at 0015f18c

<6>net_namespace: 288 bytes

<6>NET: Registered protocol family 16

<6>Blackfin GPIO Controller

<6>Blackfin DMA Controller

<6>ezbrd_init(): registering device resources

<6>NET: Registered protocol family 2

<6>IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

<6>TCP established hash table entries: 2048 (order: 2, 16384 bytes)

<6>TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

<6>TCP: Hash tables configured (established 2048 bind 2048)

<6>TCP reno registered

<6>NET: Registered protocol family 1

<7>Setting up Blackfin MMR debugfs

<6>msgmni has been set to 116

<6>io scheduler noop registered (default)

<6>Serial: Blackfin serial driver

<6>bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART

<6>brd: module loaded

<6>bfin_mii_bus: probed

<6>bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03,

irq=-1, mdc_clk=2500000Hz(md)

<6>bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version

1.1

<6>rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

<6>i2c /dev entries driver

<6>i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller,

regs_base@ffc01400

<6>bfin-wdt: initialized: timeout=20 sec (nowayout=0)

<6>TCP cubic registered

<6>NET: Registered protocol family 17

<6>rtc-bfin rtc-bfin: setting system clock to 2035-06-08 22:07:00 UTC

(2064953220)

<6>Freeing unused kernel memory: 2584k freed

 

bfin>

--

 

--- Mike Frysinger                                           2009-02-09 23:23:41

your kernel command line is set to nothing in either case.  if you want to boot

an ELF image, make sure you compile the proper command line in.

 

--- Vivi Li                                                  2009-02-12 05:45:18

Ok, I have config the linux kernel with CONFIG_CMDLINE.

So close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes