[#7331] buildroot built into shared flat with new version uClibc fails to boot up

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

[#7331] buildroot built into shared flat with new version uClibc fails to boot up

Submitted By: Mingquan Pan

Open Date

2012-09-13 05:26:21     Close Date

2012-10-23 06:12:34

Priority:

Medium High     Assignee:

Mingquan Pan

Sonic Zhang

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Fixed     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

N/A

Is this bug repeatable?:

N/A     

Summary: buildroot built into shared flat with new version uClibc fails to boot up

Details:

 

uclinux-dist kernel built into shared flat fails to boot up.

 

## Booting kernel from Legacy Image at 02000000 ...

   Image Name:   bf537-0.2-3.5.0-ADI-2012R1-pre-0

   Created:      2012-09-12  14:29:17 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3780635 Bytes = 3.6 MiB

   Load Address: 00001000

   Entry Point:  001cfd0c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001cfd0c

Linux version 3.5.0-ADI-2012R1-pre-00840-g7e08f87 (test@uclinux50-bf537-9960-1836) (gcc version 4.3.5 (ADI-trunk/svn-5865) ) #6 Wed Sep 12 22:29:13 CST 2012

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0013a590

  rodata    = 0x0013a590-0x0019cdcc

  bss       = 0x0019d000-0x001ad5a0

  data      = 0x001ad5a0-0x001c8000

    stack   = 0x001c6000-0x001c8000

  init      = 0x001c8000-0x00785000

  available = 0x00785000-0x03800000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 0

Reset caused by Software reset

Blackfin support (C) 2004-2010 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

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

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

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off

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

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

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

Memory available: 49036k/65536k RAM, (5876k init code, 1253k kernel code, 567k data, 1024k dma, 7780k reserved)

NR_IRQS:146

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: master is unqueued, this is deprecated

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7

Switching to clocksource bfin_cs_cycles

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

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 95

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

bfin_mii_bus: probed

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

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

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

bfin_wdt: initialized: timeout=20 sec (nowayout=0)

TCP: cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-09-01 08:08:50 UTC (21024530)

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174

     host=bf537-stamp, domain=, nis-domain=(none)

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

dma_alloc_init: dma_page @ 0x027d8000 - 256 pages at 0x03f00000ýFreeing unused kernel memory: 5876k freed

Undefined instruction

<5> - May be used to emulate instructions that are not defined for

<5>   a particular processor implementation.

Deferred Exception context

CURRENT PROCESS:

COMM=sh PID=143  CPU=0

TEXT = 0x02880040-0x028bf620        DATA = 0x02860020-0x02874920

BSS = 0x02874920-0x02874ed0  USER-STACK = 0x02878fa4

 

return address: [0x0286d95c]; contents of:

0x0286d930:  6e69  6176  696c  2064  6974  656d  756f  0074

0x0286d940:  6e69  6176  696c  2064  6966  656c  6420  7365

0x0286d950:  7263  7069  6f74  0072  6966  656c [7320] 7a69

0x0286d960:  2065  6228  6f6c  6b63  2973  0000  7063  2075

 

ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)

Linux version 3.5.0-ADI-2012R1-pre-00840-g7e08f87 (test@uclinux50-bf537-9960-1836) (gcc version 4.3.5 (ADI-trunk/svn-5865) ) #6 Wed Sep 12 22:29:13 CST 2012

 

SEQUENCER STATUS:        Not tainted

SEQSTAT: 00002021  IPEND: 0008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x21

  physical IVG3 asserted : <0xffa007a0> { _trap + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x02852000> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x02828206> [ /lib/lib1.so + 0x28206 ]

PC  : <0x0286d95c> [ sh + 0xd95c ]

DCPLB_FAULT_ADDR: <0x02860bc8> [ sh + 0xbc8 ]

ICPLB_FAULT_ADDR: <0x0286d95c> [ sh + 0xd95c ]

PROCESSOR STATE:

R0 : 02878e6c    R1 : 0286d6f0    R2 : 0286c798    R3 : 0000003d

R4 : 027db4d0    R5 : 00000001    R6 : 0000000c    R7 : 0286c798

P0 : 027db500    P1 : 02878ff4    P2 : 0286cf04    P3 : 027db4b4

P4 : 027db4e8    P5 : 02860020    FP : 02878e7c    SP : 02851f24

LB0: 02816901    LT0: 02816900    LC0: 00000000

LB1: 00000001    LT1: 00000000    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 0286d6a2

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000000

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 02878e5c  ASTAT: 02003024

 

Hardware Trace:

   0 Target : <0x00004004> { _trap_c + 0x0 }

     Source : <0xffa00734> { _exception_to_level5 + 0xa4 } JUMP.L

   1 Target : <0xffa00690> { _exception_to_level5 + 0x0 }

     Source : <0xffa00548> { _bfin_return_from_exception + 0x20 } RTX

   2 Target : <0xffa00528> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa005ea> { _ex_trap_c + 0x72 } JUMP.S

   3 Target : <0xffa00578> { _ex_trap_c + 0x0 }

     Source : <0xffa00808> { _trap + 0x68 } JUMP (P4)

   4 Target : <0xffa007be> { _trap + 0x1e }

     Source : <0xffa007ba> { _trap + 0x1a } IF CC JUMP pcrel

   5 Target : <0xffa007a0> { _trap + 0x0 }

      FAULT : <0x0286d95c> [ sh + 0xd95c ] 0x7320

     Source : <0x0286cf48> [ sh + 0xcf48 ] JUMP.S

   6 Target : <0x0286cf44> [ sh + 0xcf44 ]

     Source : <0x0286cf04> [ sh + 0xcf04 ] JUMP.S

   7 Target : <0x0286cf04> [ sh + 0xcf04 ]

     Source : <0x02828204> [ /lib/lib1.so + 0x28204 ] CALL (P2)

   8 Target : <0x028281ee> [ /lib/lib1.so + 0x281ee ]

     Source : <0x02816dcc> [ /lib/lib1.so + 0x16dcc ] RTS

   9 Target : <0x02816dc6> [ /lib/lib1.so + 0x16dc6 ]

     Source : <0x02816d86> [ /lib/lib1.so + 0x16d86 ] IF CC JUMP pcrel

  10 Target : <0x02816d63> [ /lib/lib1.so + 0x16d63 ]

     Source : <0x02816d7a> [ /lib/lib1.so + 0x16d7a ] IF CC JUMP pcrel (BP)

  11 Target : <0x02816d44> [ /lib/lib1.so + 0x16d44 ]

     Source : <0x02816dd0> [ /lib/lib1.so + 0x16dd0 ] JUMP.S

  12 Target : <0x02816dce> [ /lib/lib1.so + 0x16dce ]

     Source : <0x02816d1a> [ /lib/lib1.so + 0x16d1a ] IF CC JUMP pcrel

  13 Target : <0x02816d0c> [ /lib/lib1.so + 0x16d0c ]

     Source : <0x028281ea> [ /lib/lib1.so + 0x281ea ] CALL pcrel

  14 Target : <0x028281dc> [ /lib/lib1.so + 0x281dc ]

     Source : <0x02828404> [ /lib/lib1.so + 0x28404 ] JUMP.L

  15 Target : <0x028283fa> [ /lib/lib1.so + 0x283fa ]

     Source : <0x02816cfa> [ /lib/lib1.so + 0x16cfa ] RTS

Userspace Stack

Stack info:

SP: [0x02878e5c] <0x02878e5c> [ sh + 0x18e5c ]

FP: (0x02878efc)

Memory from 0x02878e50 to 02879000

02878e50: 027db4d0  00000001  00000001 [02878fb8] 00000018  00000018  02878e6c  02882bcc

02878e70: 0000001c <028283ce> 028c0020  02878eac  02828408  02860020  027db4e8  027db4b4

02878e90: 027db4d0  00000001  0282c0c0  02882bcc  02860020  00000000  027db4b4  027db4e8

02878eb0:<02892184> 02860020  027db4b4  0000005b  0286394e  01000415  1a131100  0000005a

02878ed0:<02882a64> 02860020  02816938  02878fac  00000002 <02863b00> 0282c0c0  02882bcc

02878ef0: 00000002  02878fac  02878fc6 (02878f68)<02882a8c> 02860020  028749f4  02878fac

02878f10: 02878fc6  028c7a20 <02882c50> 02860020  02878fc1 <02882c26> 02860020  028749f4

02878f30: 02878fac  02878fc1  028c7a20  0282c0c0  02878f68 <0282c076> 028c0020 <0282c0ae>

02878f50: 028c0020  00000002  02878fac  00000000  00000000  00000000 (00000000) 0288005a

02878f70: 02860020  02826e7c  027e0af0  00000000  00000001  027f2fc8  027dcda8  00000000

02878f90: 00000000  00000000  0282c0c0  0282c13c  00000000  028c4d68  00000002  02878fc1

02878fb0: 02878fc9  00000000  02878fd1  00000000  69622f00  68732f6e  74652f00  63722f63

02878fd0: 54415000  622f3d48  2f3a6e69  2f727375  3a6e6962  6962732f  752f3a6e  732f7273

02878ff0: 006e6962  6e69622f  0068732f  00000000

Return addresses in stack:

    address : <0x028283ce> [ /lib/lib1.so + 0x283ce ]

    address : <0x02892184> [ /bin/busybox + 0x12144 ]

    address : <0x02882a64> [ /bin/busybox + 0x2a24 ]

    address : <0x02863b00> [ sh + 0x3b00 ]

   frame  1 : <0x02882a8c> [ /bin/busybox + 0x2a4c ]

    address : <0x02882c50> [ /bin/busybox + 0x2c10 ]

    address : <0x02882c26> [ /bin/busybox + 0x2be6 ]

    address : <0x0282c076> [ /lib/lib1.so + 0x2c076 ]

    address : <0x0282c0ae> [ /lib/lib1.so + 0x2c0ae ]

Undefined instruction

<5> - May be used to emulate instructions that are not defined for

<5>   a particular processor implementation.

Deferred Exception context

CURRENT PROCESS:

COMM=sh PID=144  CPU=0

TEXT = 0x02880040-0x028bf620        DATA = 0x02860020-0x02874920

BSS = 0x02874920-0x02874ed0  USER-STACK = 0x02878fa0

 

return address: [0x0286d95c]; contents of:

0x0286d930:  6e69  6176  696c  2064  6974  656d  756f  0074

0x0286d940:  6e69  6176  696c  2064  6966  656c  6420  7365

0x0286d950:  7263  7069  6f74  0072  6966  656c [7320] 7a69

0x0286d960:  2065  6228  6f6c  6b63  2973  0000  7063  2075

 

Follow-ups

 

--- Mingquan Pan                                             2012-09-25 02:24:33

Built with trunk head toolchain, kernel still fails to boot up.

 

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   bf537-0.2-3.5.0-ADI-2012R1-pre-0

   Created:      2012-09-25   6:13:55 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4387367 Bytes = 4.2 MiB

   Load Address: 00001000

   Entry Point:  001d7d28

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001d7d28

Linux version 3.5.0-ADI-2012R1-pre-00842-g0de3a1e-dirty (test@adsl) (gcc

version 4.3.5 (ADI-trunk/svn-5865) ) #2 Tue Sep 25 14:13:51 CST 2012

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0013dd70

  rodata    = 0x0013dd70-0x001a46d0

  bss       = 0x001a5000-0x001b55ac

  data      = 0x001b55c0-0x001d0000

    stack   = 0x001ce000-0x001d0000

  init      = 0x001d0000-0x00514000

  available = 0x00514000-0x03800000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 0

Reset caused by Software reset

Blackfin support (C) 2004-2010 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

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ip=10.100.4.50:10.100.4.174:10.99.24.1:255.255.255.0:bf537-stamp:eth0:off

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

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

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

Memory available: 51536k/65536k RAM, (3344k init code, 1267k kernel code, 585k

data, 1024k dma, 7780k reserved)

NR_IRQS:146

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

devtmpfs: initialized

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: master is unqueued, this is deprecated

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,

regs@ffc00500, dma channel@7

Switching to clocksource bfin_cs_cycles

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

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 100

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY]

(mii_bus:phy_addr=bfin_mii_bus-0:01, irq=-1,

mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)

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

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

bfin_wdt: initialized: timeout=20 sec (nowayout=0)

TCP: cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-04 05:09:58 UTC (277798)

IP-Config: Gateway not on directly connected network

dma_alloc_init: dma_page @ 0x028f3000 - 256 pages at 0x03f00000�Freeing

unused kernel memory: 3344k freed

Undefined instruction

<5> - May be used to emulate instructions that are not defined for

<5>   a particular processor implementation.

Deferred Exception context

CURRENT PROCESS:

COMM=init PID=1  CPU=0

TEXT = 0x00400040-0x0044ca60        DATA = 0x001e0020-0x001fb0e8

BSS = 0x001fb0e8-0x001fb6f0  USER-STACK = 0x001fffa0

 

return address: [0x006f6000]; contents of:

0x006f5fe0:  0000  0000  0000  0000  0000  0000  0000  0000

0x006f5ff0:  0000  0000  0000  0000  0000  0000  0000  0000

0x006f6000: [4662] 544c  0000  0400  0000  4400  0000  200f

0x006f6010:  0000  8017  0000  a017  0000  0010  0000  8017

 

ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)

Linux version 3.5.0-ADI-2012R1-pre-00842-g0de3a1e-dirty (test@adsl) (gcc

version 4.3.5 (ADI-trunk/svn-5865) ) #2 Tue Sep 25 14:13:51 CST 2012

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00002021  IPEND: 0008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x21

  physical IVG3 asserted : <0xffa007a0> { _trap + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x02020000> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x001f0c72> [ init + 0x10c72 ]

PC  : <0x006f6000> /* kernel dynamic memory */

DCPLB_FAULT_ADDR: <0x001e0bc8> { _ip_rt_init + 0xbc }

ICPLB_FAULT_ADDR: <0x006f6000> /* kernel dynamic memory */

PROCESSOR STATE:

R0 : 001ffe64    R1 : 001f117c    R2 : 0040ba30    R3 : 0000003d

R4 : 005047da    R5 : 00000001    R6 : 0000000c    R7 : ffffffed

P0 : 00504814    P1 : 001ffff8    P2 : 001f0c6c    P3 : 00504790

P4 : 005047fc    P5 : 001e0020    FP : 001ffe74    SP : 0201ff24

LB0: 00496901    LT0: 00496900    LC0: 00000000

LB1: 00000001    LT1: 00000000    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 001f34e2

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000000

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 001ffe54  ASTAT: 02002020

 

Hardware Trace:

   0 Target : <0x00004004> { _trap_c + 0x0 }

     Source : <0xffa00734> { _exception_to_level5 + 0xa4 } JUMP.L

   1 Target : <0xffa00690> { _exception_to_level5 + 0x0 }

     Source : <0xffa00548> { _bfin_return_from_exception + 0x20 } RTX

   2 Target : <0xffa00528> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa005ea> { _ex_trap_c + 0x72 } JUMP.S

   3 Target : <0xffa00578> { _ex_trap_c + 0x0 }

     Source : <0xffa00808> { _trap + 0x68 } JUMP (P4)

   4 Target : <0xffa007be> { _trap + 0x1e }

     Source : <0xffa007ba> { _trap + 0x1a } IF CC JUMP pcrel

   5 Target : <0xffa007a0> { _trap + 0x0 }

      FAULT : <0x006f6000> /* kernel dynamic memory */ 0x4662

     Source : <0x006f5ffe> /* kernel dynamic memory */ NOP

   6 Target : <0x006f546c> /* kernel dynamic memory */

     Source : <0x001f0c70> [ init + 0x10c70 ] CALL (PC + P4)

   7 Target : <0x001f0c6c> [ init + 0x10c6c ]

     Source : <0x004a8204> [ /lib/lib1.so + 0x28204 ] CALL (P2)

   8 Target : <0x004a81ee> [ /lib/lib1.so + 0x281ee ]

     Source : <0x00496dcc> [ /lib/lib1.so + 0x16dcc ] RTS

   9 Target : <0x00496dc6> [ /lib/lib1.so + 0x16dc6 ]

     Source : <0x00496d86> [ /lib/lib1.so + 0x16d86 ] IF CC JUMP pcrel

  10 Target : <0x00496d63> [ /lib/lib1.so + 0x16d63 ]

     Source : <0x00496d7a> [ /lib/lib1.so + 0x16d7a ] IF CC JUMP pcrel

(BP)

  11 Target : <0x00496d44> [ /lib/lib1.so + 0x16d44 ]

     Source : <0x00496dd0> [ /lib/lib1.so + 0x16dd0 ] JUMP.S

  12 Target : <0x00496dce> [ /lib/lib1.so + 0x16dce ]

     Source : <0x00496d1a> [ /lib/lib1.so + 0x16d1a ] IF CC JUMP pcrel

  13 Target : <0x00496d0c> [ /lib/lib1.so + 0x16d0c ]

     Source : <0x004a81ea> [ /lib/lib1.so + 0x281ea ] CALL pcrel

  14 Target : <0x004a81dc> [ /lib/lib1.so + 0x281dc ]

     Source : <0x004a8404> [ /lib/lib1.so + 0x28404 ] JUMP.L

  15 Target : <0x004a83fa> [ /lib/lib1.so + 0x283fa ]

     Source : <0x00496cfa> [ /lib/lib1.so + 0x16cfa ] RTS

Userspace Stack

Stack info:

SP: [0x001ffe54] <0x001ffe54> [ init + 0x1fe54 ]

FP: (0x001ffef4)

Memory from 0x001ffe50 to 00200000

001ffe50: 00000001 [001fffbc] 00000018  00000018  001ffe64  00403568  0000001c

<004a83ce>

001ffe70: 00500020  001ffea4  004a8408  001e0020  005047fc  00504790  005047ac

00000001

001ffe90: 000002d7  00403568  001e0020  00000000  005047e0  005047fc

<0041e4ea> 001e0020

001ffeb0: 00504790  00000073  00000075  001e46d0  01000415  00000074

<00403400> 001e0020

001ffed0: 001fb108  001fffa8  001e4933  00000002  000002d7  00403568  00000002

001fffa8

001ffef0: 00403568 (001fff64)<00403428> 001e0020  001fb204  001fffa8

001fffc9  00507a20

001fff10: 004ac0c0 <00403670> 001e0020  001fffc4 <004035d0>

001e0020  001fb204  001fffa8

001fff30: 001fffc4  00507a20  004ac0c0  001fff64 <004ac076> 00500020

<004ac0ae> 00500020

001fff50: 00000002  001fffa8  00000000  00000000  00000000 (00000000) 0040005a

001e0020

001fff70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

001fff90: 00000000  004ac0c0  004ac13c  00000000  00504d68  00000002  001fffc4

001fffcc

001fffb0: 00000000 <001fffd2> 001fffd9  001fffe4  00000000  6e69622f

0068732f  696e692f

001fffd0: 4f480074  2f3d454d  52455400  696c3d4d  0078756e  696b6c63  7a685f6e

3035323d

001ffff0: 30303030  692f0030  0074696e  00000000

Return addresses in stack:

    address : <0x004a83ce> [ /lib/lib1.so + 0x283ce ]

    address : <0x0041e4ea> [ /bin/busybox + 0x1e4aa ]

    address : <0x00403400> [ /bin/busybox + 0x33c0 ]

   frame  1 : <0x00403428> [ /bin/busybox + 0x33e8 ]

    address : <0x00403670> [ /bin/busybox + 0x3630 ]

    address : <0x004035d0> [ /bin/busybox + 0x3590 ]

    address : <0x004ac076> [ /lib/lib1.so + 0x2c076 ]

    address : <0x004ac0ae> [ /lib/lib1.so + 0x2c0ae ]

    address : <0x001fffd2> [ init + 0x1ffd2 ]

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

 

Hardware Trace:

   0 Target : <0x0013daec> { _dump_stack + 0x0 }

     Source : <0x0013db8c> { _panic + 0x68 } CALL pcrel

   1 Target : <0x0013db7a> { _panic + 0x56 }

     Source : <0x0000c39e> { _test_taint + 0x22 } RTS

   2 Target : <0x0000c37c> { _test_taint + 0x0 }

     Source : <0x0013db76> { _panic + 0x52 } JUMP.L

   3 Target : <0x0013db74> { _panic + 0x50 }

     Source : <0x0013dd3a> { _printk + 0x26 } RTS

   4 Target : <0x0013dd36> { _printk + 0x22 }

     Source : <0x0000e414> { _vprintk_emit + 0x12c } RTS

   5 Target : <0x0000e40a> { _vprintk_emit + 0x122 }

     Source : <0xffa00d06> { __common_int_entry + 0xda } RTI

   6 Target : <0xffa00ca4> { __common_int_entry + 0x78 }

     Source : <0xffa00adc> { _return_from_int + 0x58 } RTS

   7 Target : <0xffa00adc> { _return_from_int + 0x58 }

     Source : <0xffa00ab2> { _return_from_int + 0x2e } IF !CC JUMP pcrel

 

   8 Target : <0xffa00a84> { _return_from_int + 0x0 }

     Source : <0xffa00ca0> { __common_int_entry + 0x74 } JUMP.L

   9 Target : <0xffa00c9e> { __common_int_entry + 0x72 }

     Source : <0xffa00386> { _asm_do_IRQ + 0x6a } RTS

  10 Target : <0xffa0037e> { _asm_do_IRQ + 0x62 }

     Source : <0x0003c4e4> { _rcu_irq_exit + 0x54 } RTS

  11 Target : <0x0003c4de> { _rcu_irq_exit + 0x4e }

     Source : <0x0003c4d0> { _rcu_irq_exit + 0x40 } IF CC JUMP pcrel

(BP)

  12 Target : <0x0003c4ca> { _rcu_irq_exit + 0x3a }

     Source : <0x0003c436> { _rcu_idle_enter_common + 0x3e } RTS

  13 Target : <0x0003c430> { _rcu_idle_enter_common + 0x38 }

     Source : <0x0003c40e> { _rcu_idle_enter_common + 0x16 } IF !CC JUMP

pcrel

  14 Target : <0x0003c3f8> { _rcu_idle_enter_common + 0x0 }

     Source : <0x0003c4c6> { _rcu_irq_exit + 0x36 } CALL pcrel

  15 Target : <0x0003c490> { _rcu_irq_exit + 0x0 }

     Source : <0x00012640> { _irq_exit + 0x44 } CALL pcrel

Stack info:

SP: [0x0201fc7c] <0x0201fc7c> /* kernel dynamic memory (maybe

user-space) */

FP: (0x0201ffac)

Memory from 0x0201fc70 to 02020000

0201fc70: 00000000  0201fc7c  0201cd60 [00000000] 0013db90  0201fce4  00173d00

001aa370

0201fc90: 001aa370  001aa370  0201fcc4  0201cd60  00010c34  0201fce4  0201e000

0201cd60

0201fcb0: 00000004  0201e000  0122d5a0  0201fce4  0201cd60  00000004  00000001

00000004

0201fcd0: 0201fcdc  001bcbcc  00000001  0201fcdc  0201fcdc  0201ce80  02021d60

00010dc8

0201fcf0: 0201e000  0201e000  0201fe50  00000004  0201e000  0122d5a0  0201e000

0201fe50

0201fd10: 00000004  0201e000  000195d4  00000004  00000004  00000004  00000000

ffe02104

0201fd30: 000393a6  0201e000  0000100f  0201fee4  00002900  0201e000  005047fc

0201ff24

0201fd50: 00000000  0000000c  00000001  0000fffe  0002eaa6  0201fed0  0201ff24

00000000

0201fd70: 005047fc  0201e000  0000000a  0201ff24  00000001  005047da  00000001

0003c4ca

0201fd90: 001c6000  00000000  001bf860  00029d4e  0205c5ac  0201cd60  0201cd8c

00000000

0201fdb0: 00029d5a  001bf860  00029d76  001bf860  0205c5ac  0205c580  0201fdf8

<00027592>

0201fdd0: 0201cd60  0205c580  001bf860  0000003f  00200200  001bee94  00000000

0001caf0

0201fdf0: 0000003f  00039e96  0201fe18  00029242  0205c580  0119f124  0001caf0

0003a47c

0201fe10: 02009200  001c0a14  0201fe38  0001c906  00598300  0000ffff  0000ffff

0201fe3c

0201fe30: 00000100  00000000  0201e000 <00016014> 001af5e8  0201fe84

0001caf0  00000100

0201fe50: 00000004  00000000  00030001  006f6000  00000000  02854000  001e3bac

00000000

0201fe70: 0201d114  00000024  0201e000  00000000  00000024  0003c234  0201fe84

0000000a

0201fe90: 00029fd6  0205c5ac  001bf894  0205c5b4  0201fef4  0002a058  0201fef4

0002a1fe

0201feb0: 001bf860  0201ceb4  0201e000  0201ceb4  00000000  0201cd60  0201fef4

ffa02a8e

0201fed0: 0201e000  0201ceb4  0201cd60  0003c4ca  001c6000  001ffe74  000035d4

0201e000

0201fef0: 005047fc  00504790  00000002  0000000c  00000001  0000fffe  00000006

0000000c

0201ff10: 00000001  ffa0098c  00000003  04000021  006f6000  006f6000  006f6000

00062021

0201ff30: 00000000  02020000  00000480  006f6000 <001f0c72> ffa00bc6

02002020  00000001

0201ff50: 00496901  00000000  00496900  00000000  00000000  00000000  00000000

00000000

0201ff70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

0201ff90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

(00000000)

0201ffb0:<001f34e2> 001ffe54  001ffe74  001e0020  005047fc  00504790

<001f0c6c> 001ffff8

0201ffd0: 00504814  ffffffed  0000000c  00000001  005047da  0000003d  0040ba30

001f117c

0201fff0: 001ffe64  001ffe64  00504814  00000006

Return addresses in stack:

    address : <0x00027592> { _check_preempt_curr + 0x62 }

    address : <0x00016014> { _run_timer_softirq + 0xf0 }

    address : <0x001f0c72> /* kernel dynamic memory (maybe user-space)

*/

   frame  1 : <0x001f34e2> /* kernel dynamic memory (maybe user-space)

*/

    address : <0x001f0c6c> /* kernel dynamic memory (maybe user-space)

*/

 

--- Sonic Zhang                                              2012-09-28 00:44:48

kernel crash when run script 'exec echo "buildroot"' in shell.

 

--- Sonic Zhang                                              2012-09-28 05:04:19

This is still a shared flat library relocation bug in latest uClibc.

 

This can be reproduced by following steps:

1) Configure buildroot into FLAT binary mode and select buildroot configuraton

to install shared flat library into target image as well.

2) Build buildroot uImage with latest toolchain and uClibc

3) boot buildroot Linux to console

4) Change buildroot to FDPIC binary mode.

5) rm output/build/busybox- folder

6) run make again to rebuild busybox into share flat binary

7) rcp busybox root@bf609-ezkit.ip:/bin/sh

8) run sh in Linux console.

 

 

--- Sonic Zhang                                              2012-09-28 05:06:49

Then you get the error:

 

root:/> sh

BINFMT_FLAT: reloc outside program 0x3cbb4 (0 - 0x3bbe0/0x340e0), killing sh!

SEGV

 

--- Sonic Zhang                                              2012-09-28 06:37:10

Ignore my last comments. Correct the steps to replicate as following:

 

1) Configure buildroot into FLAT binary mode and select buildroot configuraton

to install shared flat library into target image as well.

2) Build buildroot uImage with latest toolchain and uClibc

3) boot buildroot Linux to console

4) Change buildroot to FDPIC binary mode.

5) rm output/build/busybox- folder

6) run make again to rebuild busybox into share flat binary

7) rcp busybox root@bf609-ezkit.ip:/bin/sh

8) run sh in Linux console.

 

Then you get back trace log, in which shared flat c runtime library

"/lib/lib1.so" jumps to the wrong address in busybox binary.

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00000021  IPEND: 0008  IMASK: ffff  SYSCFG: 2806

  EXCAUSE   : 0x21

  physical IVG3 asserted : <0xffa0081c> { _trap + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x04900000> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x05ba51d6> [ /lib/lib1.so + 0x251d6 ]

PC  : <0x054d0c28> [ sh + 0x10c28 ]

DCPLB_FAULT_ADDR: <0x054c0b90> [ sh + 0xb90 ]

ICPLB_FAULT_ADDR: <0x054d0c28> [ sh + 0x10c28 ]

PROCESSOR STATE:

R0 : 054dfe04    R1 : 054d10cc    R2 : 054c41c0    R3 : 0000003d

R4 : 040d461c    R5 : 00000001    R6 : 0000000c    R7 : 054c41c0

P0 : 047004d0    P1 : 054dffe0    P2 : 054d0c28    P3 : 040d4600

P4 : 047004b8    P5 : 054c0020    FP : 054dfe14    SP : 048fff24

LB0: 05b94929    LT0: 05b94928    LC0: 00000000

LB1: 0580f1df    LT1: 0580f19c    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 054d34e2

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000000

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 054dfdf4  ASTAT: 02003024

 

Hardware Trace:

   0 Target : <0x00003e3c> { _trap_c + 0x0 }

     Source : <0xffa007b0> { _exception_to_level5 + 0xa0 } CALL pcrel

   1 Target : <0xffa00710> { _exception_to_level5 + 0x0 }

     Source : <0xffa005ca> { _bfin_return_from_exception + 0x6 } RTX

   2 Target : <0xffa005c4> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa00668> { _ex_trap_c + 0x70 } JUMP.S

   3 Target : <0xffa005f8> { _ex_trap_c + 0x0 }

     Source : <0xffa00846> { _trap + 0x2a } JUMP (P4)

   4 Target : <0xffa0081c> { _trap + 0x0 }

      FAULT : <0x054d0c28> [ sh + 0x10c28 ] 0xfdffff01

     Source : <0x05ba51d4> [ /lib/lib1.so + 0x251d4 ] CALL (P2)

   5 Target : <0x05ba51be> [ /lib/lib1.so + 0x251be ]

     Source : <0x05b94df4> [ /lib/lib1.so + 0x14df4 ] RTS

   6 Target : <0x05b94dee> [ /lib/lib1.so + 0x14dee ]

     Source : <0x05b94dae> [ /lib/lib1.so + 0x14dae ] IF CC JUMP pcrel

   7 Target : <0x05b94d8b> [ /lib/lib1.so + 0x14d8b ]

     Source : <0x05b94da2> [ /lib/lib1.so + 0x14da2 ] IF CC JUMP pcrel

(BP)

   8 Target : <0x05b94d6c> [ /lib/lib1.so + 0x14d6c ]

     Source : <0x05b94df8> [ /lib/lib1.so + 0x14df8 ] JUMP.S

 

--- Stuart Henderson                                         2012-09-28 13:24:42

should step 4:

4) Change buildroot to FDPIC binary mode.

not be shared flat mode?

 

Could you test again anyway, I think it should be fixed.

 

--- Mingquan Pan                                             2012-10-10 01:14:09

I have updated the toolchain and rebuild it with shared flat config item, but

the built kernel still fails to be booted, and panic like:

 

## Booting kernel from Legacy Image at 02000000 ...

   Image Name:   bf537-0.2-3.5.0-ADI-2012R1-pre-0

   Created:      2012-10-10   3:47:15 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3465762 Bytes = 3.3 MiB

   Load Address: 00001000

   Entry Point:  001d7d28

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001d7d28

Linux version 3.5.0-ADI-2012R1-pre-00844-g997e845-dirty

(test@linux84-bf537-stamp) (gcc version 4.3.5 (ADI-trunk/svn-5865) ) #2 Wed Oct

10 11:47:13 CST 2012

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0013dd70

  rodata    = 0x0013dd70-0x001a5d40

  bss       = 0x001a6000-0x001b65ac

  data      = 0x001b65c0-0x001d0000

    stack   = 0x001ce000-0x001d0000

  init      = 0x001d0000-0x00434000

  available = 0x00434000-0x03800000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 0

Reset caused by Software reset

Blackfin support (C) 2004-2010 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

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

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

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50

earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off

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

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

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

Memory available: 52432k/65536k RAM, (2448k init code, 1267k kernel code, 585k

data, 1024k dma, 7780k reserved)

NR_IRQS:146

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

devtmpfs: initialized

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: master is unqueued, this is deprecated

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,

regs@ffc00500, dma channel@7

Switching to clocksource bfin_cs_cycles

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

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 102

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY]

(mii_bus:phy_addr=bfin_mii_bus-0:01, irq=-1,

mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)

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

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

bfin_wdt: initialized: timeout=20 sec (nowayout=0)

TCP: cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-13 02:09:08 UTC (1044548)

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174

     host=bf537-stamp, domain=, nis-domain=(none)

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

dma_alloc_init: dma_page @ 0x026fb000 - 256 pages at 0x03f00000ýFreeing unused

kernel memory: 2448k freed

Undefined instruction

<5> - May be used to emulate instructions that are not defined for

<5>   a particular processor implementation.

Deferred Exception context

CURRENT PROCESS:

COMM=init PID=1  CPU=0

TEXT = 0x00200040-0x0024ca60        DATA = 0x00400020-0x0041b0e8

BSS = 0x0041b0e8-0x0041b6f0  USER-STACK = 0x0041ffb4

 

return address: [0x00410d36]; contents of:

0x00410d10:  6472  7876  3a74  3a69  3a6d  3a70  3a71  3a73

0x00410d20:  3a77  3a7a  3a66  0034  4f53  535f  444e  5542

0x00410d30:  0046  0000  6573 [7374] 636f  6f6b  7470  7420

0x00410d40:  736f  2520  0064  0000  7274  6361  7265  756f

 

ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)

Linux version 3.5.0-ADI-2012R1-pre-00844-g997e845-dirty

(test@linux84-bf537-stamp) (gcc version 4.3.5 (ADI-trunk/svn-5865) ) #2 Wed Oct

10 11:47:13 CST 2012

 

SEQUENCER STATUS:        Not tainted

SEQSTAT: 00002021  IPEND: 0008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x21

  physical IVG3 asserted : <0xffa007a0> { _trap + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x02020000> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x002a94a6> [ /lib/lib1.so + 0x294a6 ]

PC  : <0x00410d36> [ init + 0x10d36 ]

DCPLB_FAULT_ADDR: <0x00400bf0> [ init + 0xbf0 ]

ICPLB_FAULT_ADDR: <0x00410d36> [ init + 0x10d36 ]

PROCESSOR STATE:

R0 : 0041fe78    R1 : 0041147d    R2 : 004103c8    R3 : 0000006b

R4 : 001d4840    R5 : 00000001    R6 : 0000000c    R7 : 004103c8

P0 : 001d488c    P1 : 0041fff8    P2 : 00410d34    P3 : 001d4824

P4 : 001d4874    P5 : 00400020    FP : 0041fe88    SP : 0201ff24

LB0: 00297ba1    LT0: 00297ba0    LC0: 00000000

LB1: 00000001    LT1: 00000000    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 004134e2

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000000

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 0041fe68  ASTAT: 02002020

 

Hardware Trace:

   0 Target : <0x00004004> { _trap_c + 0x0 }

     Source : <0xffa00734> { _exception_to_level5 + 0xa4 } JUMP.L

   1 Target : <0xffa00690> { _exception_to_level5 + 0x0 }

     Source : <0xffa00548> { _bfin_return_from_exception + 0x20 } RTX

   2 Target : <0xffa00528> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa005ea> { _ex_trap_c + 0x72 } JUMP.S

   3 Target : <0xffa00578> { _ex_trap_c + 0x0 }

     Source : <0xffa00808> { _trap + 0x68 } JUMP (P4)

   4 Target : <0xffa007be> { _trap + 0x1e }

     Source : <0xffa007ba> { _trap + 0x1a } IF CC JUMP pcrel

   5 Target : <0xffa007a0> { _trap + 0x0 }

      FAULT : <0x00410d36> [ init + 0x10d36 ] 0x7374

     Source : <0x00410d34> [ init + 0x10d34 ] 0x6573

   6 Target : <0x00410d34> [ init + 0x10d34 ]

     Source : <0x002a94a4> [ /lib/lib1.so + 0x294a4 ] CALL (P2)

   7 Target : <0x002a948e> [ /lib/lib1.so + 0x2948e ]

     Source : <0x0029806c> [ /lib/lib1.so + 0x1806c ] RTS

   8 Target : <0x00298066> [ /lib/lib1.so + 0x18066 ]

     Source : <0x00298026> [ /lib/lib1.so + 0x18026 ] IF CC JUMP pcrel

   9 Target : <0x00298003> [ /lib/lib1.so + 0x18003 ]

     Source : <0x0029801a> [ /lib/lib1.so + 0x1801a ] IF CC JUMP pcrel

(BP)

  10 Target : <0x00297fe4> [ /lib/lib1.so + 0x17fe4 ]

     Source : <0x00298070> [ /lib/lib1.so + 0x18070 ] JUMP.S

  11 Target : <0x0029806e> [ /lib/lib1.so + 0x1806e ]

     Source : <0x00297fba> [ /lib/lib1.so + 0x17fba ] IF CC JUMP pcrel

  12 Target : <0x00297fac> [ /lib/lib1.so + 0x17fac ]

     Source : <0x002a948a> [ /lib/lib1.so + 0x2948a ] CALL pcrel

  13 Target : <0x002a947c> [ /lib/lib1.so + 0x2947c ]

     Source : <0x002a96a4> [ /lib/lib1.so + 0x296a4 ] JUMP.L

  14 Target : <0x002a969a> [ /lib/lib1.so + 0x2969a ]

     Source : <0x00297f9a> [ /lib/lib1.so + 0x17f9a ] RTS

  15 Target : <0x00297f94> [ /lib/lib1.so + 0x17f94 ]

     Source : <0x00297f56> [ /lib/lib1.so + 0x17f56 ] IF CC JUMP pcrel

Userspace Stack

Stack info:

SP: [0x0041fe68] <0x0041fe68> [ init + 0x1fe68 ]

FP: (0x0041ff08)

Memory from 0x0041fe60 to 00420000

0041fe60: 00000001  00000001 [0041ffcc] 00000018  00000018  0041fe78  00203568

0000001c

0041fe80:<002a966e> 001d0020  0041feb8  002a96a8  00400020  001d4874

001d4824  001d4840

0041fea0: 00000001  000002d7  00203568  00400020  00000000  001d4858  001d4874

<0021e4ea>

0041fec0: 00400020  001d4824  00000073  00000075  004046d0  01000415  00000074

<00203400>

0041fee0: 00400020  0041b108  0041ffbc  00404933  00000002  000002d7  00203568

00000002

0041ff00: 0041ffbc  00203568 (0041ff78)<00203428> 00400020  0041b204

0041ffbc  0041ffdb

0041ff20: 001d7ab4  002ad360 <00203670> 00400020  0041ffd6

<002035d0> 00400020  0041b204

0041ff40: 0041ffbc  0041ffd6  001d7ab4  002ad360  0041ff78 <002ad316>

001d0020 <002ad34e>

0041ff60: 001d0020  00000002  0041ffbc  00000000  00000000  00000000 (00000000)

0020005a

0041ff80: 00400020  00000000  00000000  00000000  00000000  00000000  00000000

00000000

0041ffa0: 00000000  00000000  002ad360  002ad3dc  00000000  001d4dfc  00000002

0041ffd6

0041ffc0: 0041ffde  00000000 <0041ffe4> 0041ffeb  00000000  622f0000

732f6e69  692f0068

0041ffe0: 0074696e  454d4f48  54002f3d  3d4d5245  756e696c  692f0078  0074696e

00000000

Return addresses in stack:

    address : <0x002a966e> [ /lib/lib1.so + 0x2966e ]

    address : <0x0021e4ea> [ /bin/busybox + 0x1e4aa ]

    address : <0x00203400> [ /bin/busybox + 0x33c0 ]

   frame  1 : <0x00203428> [ /bin/busybox + 0x33e8 ]

    address : <0x00203670> [ /bin/busybox + 0x3630 ]

    address : <0x002035d0> [ /bin/busybox + 0x3590 ]

    address : <0x002ad316> [ /lib/lib1.so + 0x2d316 ]

    address : <0x002ad34e> [ /lib/lib1.so + 0x2d34e ]

    address : <0x0041ffe4> [ init + 0x1ffe4 ]

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

 

Hardware Trace:

   0 Target : <0x0013daec> { _dump_stack + 0x0 }

     Source : <0x0013db8c> { _panic + 0x68 } CALL pcrel

   1 Target : <0x0013db7a> { _panic + 0x56 }

     Source : <0x0000c39e> { _test_taint + 0x22 } RTS

   2 Target : <0x0000c37c> { _test_taint + 0x0 }

     Source : <0x0013db76> { _panic + 0x52 } JUMP.L

   3 Target : <0x0013db74> { _panic + 0x50 }

     Source : <0x0013dd3a> { _printk + 0x26 } RTS

   4 Target : <0x0013dd36> { _printk + 0x22 }

     Source : <0x0000e414> { _vprintk_emit + 0x12c } RTS

   5 Target : <0x0000e40a> { _vprintk_emit + 0x122 }

     Source : <0xffa00d06> { __common_int_entry + 0xda } RTI

   6 Target : <0xffa00ca4> { __common_int_entry + 0x78 }

     Source : <0xffa00adc> { _return_from_int + 0x58 } RTS

   7 Target : <0xffa00adc> { _return_from_int + 0x58 }

     Source : <0xffa00ab2> { _return_from_int + 0x2e } IF !CC JUMP pcrel

 

   8 Target : <0xffa00a84> { _return_from_int + 0x0 }

     Source : <0xffa00ca0> { __common_int_entry + 0x74 } JUMP.L

   9 Target : <0xffa00c9e> { __common_int_entry + 0x72 }

     Source : <0xffa00386> { _asm_do_IRQ + 0x6a } RTS

  10 Target : <0xffa0037e> { _asm_do_IRQ + 0x62 }

     Source : <0x0003c4e4> { _rcu_irq_exit + 0x54 } RTS

  11 Target : <0x0003c4de> { _rcu_irq_exit + 0x4e }

     Source : <0x0003c4d0> { _rcu_irq_exit + 0x40 } IF CC JUMP pcrel

(BP)

  12 Target : <0x0003c4ca> { _rcu_irq_exit + 0x3a }

     Source : <0x0003c436> { _rcu_idle_enter_common + 0x3e } RTS

  13 Target : <0x0003c430> { _rcu_idle_enter_common + 0x38 }

     Source : <0x0003c40e> { _rcu_idle_enter_common + 0x16 } IF !CC JUMP

pcrel

  14 Target : <0x0003c3f8> { _rcu_idle_enter_common + 0x0 }

     Source : <0x0003c4c6> { _rcu_irq_exit + 0x36 } CALL pcrel

  15 Target : <0x0003c490> { _rcu_irq_exit + 0x0 }

     Source : <0x00012640> { _irq_exit + 0x44 } CALL pcrel

Stack info:

SP: [0x0201fc7c] <0x0201fc7c> /* kernel dynamic memory (maybe

user-space) */

FP: (0x0201ffac)

Memory from 0x0201fc70 to 02020000

0201fc70: 00000000  0201fc7c  0201cd60 [00000000] 0013db90  0201fce4  00173f30

001ab370

0201fc90: 001ab370  001ab370  0201fcc4  0201cd60  00010c34  0201fce4  0201e000

0201cd60

0201fcb0: 00000004  0201e000  02fcc5a0  0201fce4  0201cd60  00000004  00000001

00000004

0201fcd0: 0201fcdc  001bdbcc  00000001  0201fcdc  0201fcdc  0201ce80  02021d60

00010dc8

0201fcf0: 0201e000  0201e000  0201fe50  00000004  0201e000  02fcc5a0  0201e000

0201fe50

0201fd10: 00000004  0201e000  000195d4  00000004  00000004  00000004  00000000

ffe02104

0201fd30: 000393a6  0201e000  0000100f  0201fee4  00002900  0201e000  001d4874

0201ff24

0201fd50: 00000000  0000000c  00000001  0000fffe  0002eaa6  0201fed0  0201ff24

00000000

0201fd70: 001d4874  0201e000  0000000a  0201ff24  00000001  001d4840  00000001

0003c4ca

0201fd90: 001c7000  00000000  001c0860  00029d4e  0205c5ac  0201cd60  0201cd8c

00000000

0201fdb0: 00029d5a  001c0860  00029d76  001c0860  0205c5ac  0205c580  0201fdf8

<00027592>

0201fdd0: 0201cd60  0205c580  001c0860  0000003f  00200200  001bfe94  00000000

0001caf0

0201fdf0: 0000003f  00039e96  0201fe18  00029242  0205c580  001c5d78  0001caf0

0003a47c

0201fe10: 02009200  001c1a14  0201fe38  0001c906  004b8300  0000ffff  0000ffff

0201fe3c

0201fe30: 00000100  00000000  0201e000  020092cc  020092cc  0001604e  001b05e8

0201fe84

0201fe50: 00000004  00000000  00030001  00410d36  00000000  026cf000  001e3bac

00000000

0201fe70: 0201d114  00000024  0201e000  00000000  00000024  0003c234  0201fe84

0000000a

0201fe90: 00029fd6  0205c5ac  001c0894  0205c5b4  0201fef4  0002a058  0201fef4

0002a1fe

0201feb0: 001c0860  0201ceb4  0201e000  0201ceb4  00000000  0201cd60  0201fef4

ffa02a8e

0201fed0: 0201e000  0201ceb4  0201cd60  0003c4ca  001c7000  0041fe88  000035d4

0201e000

0201fef0: 001d4874  001d4824  00000002  0000000c  00000001  0000fffe  00000006

0000000c

0201ff10: 00000001  ffa0098c  00000003  04000021  00410d36  00410d36  00410d36

00062021

0201ff30: 00000000  02020000  00000480  00410d36 <002a94a6> ffa00bc6

02002020  00000001

0201ff50: 00297ba1  00000000  00297ba0  00000000  00000000  00000000  00000000

00000000

0201ff70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00000000

0201ff90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

(00000000)

0201ffb0:<004134e2> 0041fe68  0041fe88  00400020  001d4874  001d4824

00410d34  0041fff8

0201ffd0: 001d488c  004103c8  0000000c  00000001  001d4840  0000006b  004103c8

0041147d

0201fff0: 0041fe78  0041fe78  001d488c  00000006

Return addresses in stack:

    address : <0x00027592> { _check_preempt_curr + 0x62 }

    address : <0x002a94a6> /* kernel dynamic memory (maybe user-space)

*/

   frame  1 : <0x004134e2> /* kernel dynamic memory (maybe user-space)

*/

 

--- Stuart Henderson                                         2012-10-22 13:57:20

this should be fixed on trunk now.

 

--- Mingquan Pan                                             2012-10-23 07:14:25

Yes, kernel built into shared-flat can be booted up now.

 

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   bf537-0.2-3.5.0-ADI-2012R1-pre-0

   Created:      2012-10-23  11:37:20 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3798897 Bytes = 3.6 MiB

   Load Address: 00001000

   Entry Point:  001cfd0c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001cfd0c

Linux version 3.5.0-ADI-2012R1-pre-00849-ga6c4e9d (test@linux73-bf537-wt-adxl)

(gcc version 4.3.5 (ADI-trunk/svn-5865) ) #33 Tue Oct 23 19:37:15 CST 2012

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0013a168

  rodata    = 0x0013a168-0x0019c944

  bss       = 0x0019d000-0x001ad5a0

  data      = 0x001ad5a0-0x001c8000

    stack   = 0x001c6000-0x001c8000

  init      = 0x001c8000-0x00774000

  available = 0x00774000-0x03800000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 0

Reset caused by Software reset

Blackfin support (C) 2004-2010 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

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-through) in data cache

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ip=10.100.4.50:10.100.4.174:192.168.0.1:255.255.255.0:bf537-stamp:eth0:off

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

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

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

Memory available: 49104k/65536k RAM, (5808k init code, 1252k kernel code, 568k

data, 1024k dma, 7780k reserved)

NR_IRQS:146

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: master is unqueued, this is deprecated

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,

regs@ffc00500, dma channel@7

Switching to clocksource bfin_cs_cycles

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

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 95

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY]

(mii_bus:phy_addr=bfin_mii_bus-0:01, irq=-1,

mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)

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

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

bfin_wdt: initialized: timeout=20 sec (nowayout=0)

TCP: cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-15 16:09:12 UTC (1267752)

IP-Config: Gateway not on directly connected network

dma_alloc_init: dma_page @ 0x027c7000 - 256 pages at 0x03f00000�Freeing

unused kernel memory: 5808k freed

                           _____________________________________

        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.18.4 (2012-10-23 19:35:20 CST) hush - the humble shell

 

root:/> ls PHY: bfin_mii_bus-0:01 - Link is Up - 100/Full

root:/> ls -l /bin/busybox

-rwxr-xr-x    1 root     root        345456 Oct 23  2012 /bin/busybox

root:/>

 

Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes