FAQ: [#6452] Fail to run kernel xip test for shared-flat mode in latest trunk after kernel upgrade(2011)

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

[#6452] Fail to run kernel xip test for shared-flat mode in latest trunk after kernel upgrade

Submitted By: Vivi Li

Open Date

2011-01-17 05:46:57    

Priority:

Low     Assignee:

steven miao

Status:

Open     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF561     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Under Debugging

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2010_Dec_09

App binary format:

N/A     

Summary: Fail to run kernel xip test for shared-flat mode in latest trunk after kernel upgrade

Details:

 

Fail to run kernel xip test in latest trunk after kernel upgrade in latest trunk.

It happened after kernel was upgraded to 2.6.37 on Jan 6, 2011.

 

--

bfin> tftpboot 0x1000000 vmImage

SMC91111: MAC 00:e0:22:fe:b1:3c

Using SMC91111-0 device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'vmImage'.

Load address: 0x1000000

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

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

         ########

done

Bytes transferred = 2022384 (1edbf0 hex)

bfin> protect off 20040000 203fffff

Un-Protected 60 sectors

bfin> erase 20040000 203fffff

 

............................................................ done

Erased 60 sectors

bfin> cp.b 0x1000000 20040000 0x1edbf0

Copy to Flash... done

bfin> set bootargs root=/dev/nfs rw nfsroot=$(serverip):/tftpboot/romfs console=ttyBF0,57600

bfin> run addip

bfin> bootm 20040000

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

   Image Name:   bf561-0.5-2.6.37-ADI-2011R1-pre-

   Image Type:   Blackfin Linux Kernel Image (uncompressed)

   Data Size:    2022320 Bytes = 1.9 MiB

   Load Address: 20040040

   Entry Point:  20191a20

   Verifying Checksum ... OK

   Loading Kernel Image ... OK

OK

Starting Kernel at = 20191a20

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 1183.74 BogoMIPS (lpj=2367488)

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: 16 KB (3 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

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

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 124

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>

eth0: SMC91C11xFD (rev 1) at 2c010300 IRQ 82 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:b1:3c

TCP cubic registered

NET: Registered protocol family 17

eth0: link down

IP-Config: Complete:

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

     host=bf561-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

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

eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

VFS: Mounted root (nfs filesystem) on device 0:11.

Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

Hardware Trace:

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

     Source : <0x2018b49a> { _panic + 0x6a } CALL (P2)

   1 Target : <0x2018b492> { _panic + 0x62 }

     Source : <0x2018b5fe> { _printk + 0x1a } RTS

   2 Target : <0x2018b5fa> { _printk + 0x16 }

     Source : <0x200511c6> { _vprintk + 0x162 } RTS

   3 Target : <0x200511ba> { _vprintk + 0x156 }

     Source : <0xffa00e16> { __common_int_entry + 0xe6 } RTI

   4 Target : <0xffa00db4> { __common_int_entry + 0x84 }

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

   5 Target : <0xffa00bdc> { _return_from_int + 0x58 }

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

   6 Target : <0xffa00b84> { _return_from_int + 0x0 }

     Source : <0xffa00db2> { __common_int_entry + 0x82 } CALL (P2)

   7 Target : <0xffa00da8> { __common_int_entry + 0x78 }

     Source : <0xffa0044a> { _asm_do_IRQ + 0x82 } RTS

   8 Target : <0xffa00442> { _asm_do_IRQ + 0x7a }

     Source : <0x20054bf4> { ___local_bh_enable + 0x38 } RTS

   9 Target : <0x20054bbc> { ___local_bh_enable + 0x0 }

     Source : <0x200552f2> { ___do_softirq + 0xc6 } JUMP (P2)

  10 Target : <0x200552de> { ___do_softirq + 0xb2 }

     Source : <0x200552c2> { ___do_softirq + 0x96 } IF CC JUMP pcrel

  11 Target : <0x200552b4> { ___do_softirq + 0x88 }

     Source : <0x2007664a> { _rcu_bh_qs + 0x1e } RTS

  12 Target : <0x20076642> { _rcu_bh_qs + 0x16 }

     Source : <0x2007649e> { _rcu_qsctr_help + 0x4a } RTS

  13 Target : <0x20076488> { _rcu_qsctr_help + 0x34 }

     Source : <0x20076460> { _rcu_qsctr_help + 0xc } IF CC JUMP pcrel

  14 Target : <0x20076454> { _rcu_qsctr_help + 0x0 }

     Source : <0x20076640> { _rcu_bh_qs + 0x14 } CALL (P2)

  15 Target : <0x2007662c> { _rcu_bh_qs + 0x0 }

     Source : <0x200552b2> { ___do_softirq + 0x86 } CALL (P1)

Stack info:

SP: [0x0201bf78] <0x0201bf78> /* kernel dynamic memory (maybe user-space) */

FP: (0x0201bf98)

Memory from 0x0201bf70 to 0201c000

0201bf70: 0201bf78  00000000 [201cb980]<2018b49c> 200fb4cc  201cb980  000064bf  000064bf

0201bf90: 000064bf  0201bfc0 (00000000)<200402d8> 2009034c  000153f8  00001014  00000000

0201bfb0: 00000000  00000000  00000000  00002000  000720c0  00000001 <2018b8c4> 20096200

0201bfd0: 200400e8  0002d574  00000000  00000000  00000000 <20040636> 00000000  00000000

0201bff0: 00000000  00000000  ffffffff  00000006

Return addresses in stack:

    address : <0x2018b49c> { _panic + 0x6c }

   frame  1 : <0x200402d8> { _init_post + 0xe8 }

    address : <0x2018b8c4> { _kernel_init + 0xec }

    address : <0x20040636> { _kernel_thread_helper + 0x6 }

--

 

Follow-ups

 

--- Mike Frysinger                                           2011-01-17 13:44:43

that output indicates your romfs is broken:

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

See Linux Documentation/init.txt for guidance.

 

are you sure it boots with an older kernel ?

 

--- Vivi Li                                                  2011-01-17 21:59:43

Yes, I'm sure it can boot with an old kernel on Jan 5th.

 

--- Vivi Li                                                  2011-01-20 22:21:16

Mkie, your observation is right. In my previous log, error happened with broken

romfs. Now I don't see the same error message.

 

For kernel_xip test in fdpic mode, crash log is the same as bug 6458. Need to

recheck after 6458 is fixed.

 

For shared-flat mode, crash log is different. Bellow is the example:

--

IP-Config: Complete:

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

     host=bf548-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

VFS: Mounted root (nfs filesystem) on device 0:12.

Data access misaligned address violation

<5> - Attempted misaligned data memory or data cache access.

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=sh PID=1  CPU=0

TEXT = 0x02240040-0x0226afc0        DATA = 0x022a0020-0x022aeda0

BSS = 0x022aeda0-0x022af3d0  USER-STACK = 0x022b3fbc

 

return address: [0x20080b30]; contents of:

0x20080b10:  e120  4111  0062  6cc6  0127  0010  3208  3046

0x20080b20:  4d68  4f68  3200  0578  303a  0167  600a  b142

0x20080b30: [b189] 9142  6fa6  e512  002d  0c42  1805  e410

0x20080b40:  001c  e608  0026  3046  4d68  4f68  3208  3200

 

ADSP-BF548-0.2 525(MHz CCLK) 131(MHz SCLK) (mpu off)

Linux version 2.6.37-ADI-2011R1-pre-svn9570 (test@uclinux61-bf548-std) (gcc

version 4.3.5 (ADI-trunk/svn-5013) ) #42 Wed Jan 19 19:06:56 CST 2011

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00002024  IPEND: 8008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x24

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

  physical IVG15 asserted : <0xffa01074> { _evt_system_call + 0x0 }

  logical irq   6 mapped  : <0xffa0041c> { _bfin_coretmr_interrupt + 0x0

}

  logical irq  48 mapped  : <0x2017af84> { _bfin_serial_dma_rx_int + 0x0

}

  logical irq  49 mapped  : <0x2017acdc> { _bfin_serial_dma_tx_int + 0x0

}

  logical irq  52 mapped  : <0x201b7adc> { _bfin_twi_interrupt_entry +

0x0 }

  logical irq  53 mapped  : <0x201b7adc> { _bfin_twi_interrupt_entry +

0x0 }

  logical irq  68 mapped  : <0x201a3504> { _bfin_ata_interrupt + 0x0 }

  logical irq  74 mapped  : <0x201c018c> { _sdh_dma_irq + 0x0 }

  logical irq  79 mapped  : <0x201c06b4> { _sdh_stat_irq + 0x0 }

  logical irq 175 mapped  : <0x201b48ac> { _smsc911x_irqhandler + 0x0 }

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

RETN: <0x0201be9c> /* kernel dynamic memory (maybe user-space) */

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

RETS: <0x200f8e2a> { _load_flat_binary + 0x222 }

PC  : <0x20080b30> { _start_thread + 0x14 }

DCPLB_FAULT_ADDR: <0x0201a000> /* kernel dynamic memory (maybe

user-space) */

ICPLB_FAULT_ADDR: <0x20080b30> { _start_thread + 0x14 }

PROCESSOR STATE:

R0 : 0201a000    R1 : 02300044    R2 : 00000001    R3 : 0001ffd9

R4 : 00000000    R5 : 02300044    R6 : fffffffe    R7 : 022b3fbc

P0 : 0201a000    P1 : 202357e6    P2 : 20080b1c    P3 : 0201bed4

P4 : 0201bed4    P5 : 022b3fda    FP : ffa00160    SP : 0201bdc0

LB0: 200f8cb6    LT0: 200f8c88    LC0: 00000000

LB1: 200f8cb4    LT1: 200f8c98    LC1: 00000000

B0 : 0000036c    L0 : 00000000    M0 : 0000002c    I0 : 0000cde8

B1 : 0002ca5c    L1 : 00000000    M1 : 00000000    I1 : 022f0e5c

B2 : 0002095c    L2 : 00000000    M2 : 00000000    I2 : 00000001

B3 : 000000ae    L3 : 00000000    M3 : 00000000    I3 : 000000b0

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

USP : 00000000  ASTAT: 02003024

--

 

--- Vivi Li                                                  2011-01-30 22:45:27

After bug 6458 is fixed, kernel_xip test in fdpic mode is pass now.

But for shared-flat mode, it still crash with error message in my previous

comment.

 

--- Bob Liu                                                  2011-03-01 04:25:36

In my test, the log is a little different.

IP-Config: Complete:

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

     host=bf548-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

VFS: Mounted root (nfs filesystem) on device 0:11.

Freeing unused kernel memory: 124k freed

BINFMT_FLAT: reloc outside program 0x1012b4c (0 - 0x3a370/0x2afc0), killing

sh!

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

See Linux Documentation/init.txt for guidance.

Hardware Trace:

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

     Source : <0x00188390> { _panic + 0x50 } CALL pcrel

   1 Target : <0x00188390> { _panic + 0x50 }

     Source : <0x001884dc> { _printk + 0x14 } RTS

   2 Target : <0x001884d8> { _printk + 0x10 }

     Source : <0x00011742> { _vprintk + 0x166 } RTS

   3 Target : <0x00011736> { _vprintk + 0x15a }

     Source : <0xffa00ce4> { __common_int_entry + 0xcc } RTI

   4 Target : <0xffa00c82> { __common_int_entry + 0x6a }

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

   5 Target : <0xffa00acc> { _return_from_int + 0x58 }

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

 

   6 Target : <0xffa00a74> { _return_from_int + 0x0 }

     Source : <0xffa00c7e> { __common_int_entry + 0x66 } JUMP.L

   7 Target : <0xffa00c7c> { __common_int_entry + 0x64 }

     Source : <0xffa00380> { _asm_do_IRQ + 0x60 } RTS

   8 Target : <0xffa00378> { _asm_do_IRQ + 0x58 }

     Source : <0x00014da4> { ___local_bh_enable + 0x38 } RTS

   9 Target : <0x00014d6c> { ___local_bh_enable + 0x0 }

     Source : <0x0001544c> { ___do_softirq + 0xb8 } JUMP.L

  10 Target : <0x00015440> { ___do_softirq + 0xac }

     Source : <0x00015424> { ___do_softirq + 0x90 } IF CC JUMP pcrel

  11 Target : <0x00015416> { ___do_softirq + 0x82 }

     Source : <0x00034e94> { _rcu_bh_qs + 0x18 } RTS

  12 Target : <0x00034e8c> { _rcu_bh_qs + 0x10 }

     Source : <0x00034d18> { _rcu_qsctr_help + 0x50 } RTS

  13 Target : <0x00034d02> { _rcu_qsctr_help + 0x3a }

     Source : <0x00034cd4> { _rcu_qsctr_help + 0xc } IF CC JUMP pcrel

  14 Target : <0x00034cc8> { _rcu_qsctr_help + 0x0 }

     Source : <0x00034e88> { _rcu_bh_qs + 0xc } CALL pcrel

  15 Target : <0x00034e7c> { _rcu_bh_qs + 0x0 }

     Source : <0x00015412> { ___do_softirq + 0x7e } CALL pcrel

Stack info:

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

user-space) */

FP: (0x0201bfe4)

Memory from 0x0201bf80 to 0201c000

0201bf80:[001c5444] 00188394  0022142c  001c5444  0020e70f  0020e70f  0020e70f

0201bfc8

0201bfa0: 00000000  00001262  0022142c  00209014  00000000  00000000  00000000

00000000

0201bfc0: 00000000  0201bfc8  0029ec00  00000000  0023a1ea  00256774  00256774

00000000

0201bfe0: 00000000 (00000000)<00001576> 00000000  00000000  00000000

ffffffff  00000006

Return addresses in stack:

   frame  1 : <0x00001576> { _kernel_thread_helper + 0x6 }

 

--- Bob Liu                                                  2011-03-01 04:36:29

After added flat support into kernel, I can't reproduce this problem.

 

================

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

   Image Name:   bf548-0.2-2.6.37-ADI-2011R1-pre-

   Created:      2011-03-01   9:40:58 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1299208 Bytes = 1.2 MiB

   Load Address: 00001000

   Entry Point:  00244b14

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 00244b14

console [ttyBF1] enabled, bootconsole disabled

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

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 (41 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

spi spi0.2: Warning: SPI CPHA not set: Slave Select not under software

control!

See Documentation/blackfin/bfin-spi-notes.txt

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

regs_base@ffc00500, dma channel@4

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

regs_base@ffc02300, dma channel@5

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

regs_base@ffc00700

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

regs_base@ffc02200

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

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 118

io scheduler noop registered (default)

bf54x-lq043: FrameBuffer initializing...

dma_alloc_init: dma_page @ 0x021bc000 - 512 pages at 0x03e00000

Console: switching to colour frame buffer device 80x24

bfin-otp: initialized

bfin-uart: Blackfin serial driver

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART

brd: module loaded

smsc911x: Driver version 2008-10-21.

smsc911x-mdio: probed

eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)

net eth0: MAC Address: 00:e0:22:fe:bd:b8

input: bf54x-keys as /devices/platform/bf54x-keys/input/input0

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

i2c /dev entries driver

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-09-30 19:29:21 UTC (23570961)

net eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

IP-Config: Complete:

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

     host=bf548-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

VFS: Mounted root (nfs filesystem) on device 0:11.

Freeing unused kernel memory: 124k freed

 

 

BusyBox v1.18.3 (2011-02-27 10:01:23 CST) hush - the humble shell

 

/ #

/ # ls

bin   etc   home  lib   mnt   proc  root  sbin  sys   tmp   usr   var

/ #

 

--- Bob Liu                                                  2011-03-10 04:10:26

Can't reproduce on bf561 on svn trunk.

=========

U-Boot 2010.06 (ADI-2010R1-RC1) (Sep 29 2010 - 17:50:45)

 

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

Board: ADI BF561 EZ-Kit Lite board

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

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

RAM:   64 MiB

Flash: 8 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   SMC91111-0

Hit any key to stop autoboot:  0

bfin>

bfin> setenv ramargs set bootargs root=/dev/nfs rw

nfsroot=$(serverip):/tftpboot/romfs console=ttyBF0,57600

bfin> run bootcmd

SMC91111: MAC 00:e0:22:fe:ba:2a

Using SMC91111-0 device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

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

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

done

Bytes transferred = 1163775 (11c1ff hex)

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

   Image Name:   bf561-0.3-2.6.37.3-ADI-2011R1-pr

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1163711 Bytes = 1.1 MiB

   Load Address: 00001000

   Entry Point:  001fff34

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001fff34

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 1196.03 BogoMIPS (lpj=2392064)

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: 16 KB (3 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

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

regs_base@ffc00500, dma channel@16

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

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 106

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>

eth0: SMC91C11xFD (rev 2) at 2c010300 IRQ 82 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:ba:2a

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

TCP cubic registered

NET: Registered protocol family 17

Registering the dns_resolver key type

eth0: link down

IP-Config: Complete:

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

     host=bf561-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

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

eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

VFS: Mounted root (nfs filesystem) on device 0:11.

Freeing unused kernel memory: 112k freed

 

 

BusyBox v1.16.2 (2010-12-10 16:05:07 GMT) hush - the humble shell

 

/ # ls

bin   dev   etc   home  lib   mnt   proc  root  sbin  sys   tmp   usr   var

/ #

 

--- Bob Liu                                                  2011-03-10 04:35:22

I am sorry, I compiled the kernel with a wrong config file.

Now I can reproduce the problem.

 

--- steven miao                                              2011-03-31 08:22:30

it's ok in current trunk after commit r9808. the .data.percpu* sections in xip

kernel's init data section is broken, and maybe the nfs or rcu use some percpu

optimizations caused the crash, but i am not very sure.

 

log is below:

bfin> protect off 20040000 203fffff

Un-Protected 60 sectors

bfin> erase 20040000 203fffff

 

............................................................ done

Erased 60 sectors

bfin> cp.b $(loadaddr) 20040000 $(filesize)

Copy to Flash... done

bfin> run nfsboot

SMC91111: MAC 00:e0:22:fe:b1:f2

Using SMC91111-0 device

TFTP from server 10.99.29.111; our IP address is 10.99.29.104

Filename 'vmImage'.

Load address: 0x1000000

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

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

done

Bytes transferred = 1137474 (115b42 hex)

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

   Image Name:   bf561-0.3-2.6.37.4-ADI-2011R1-pr

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1137410 Bytes = 1.1 MiB

   Load Address: 00001000

   Entry Point:  001f5f34

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001f5f34

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 1196.03 BogoMIPS (lpj=2392064)

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: 16 KB (4 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

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

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 106

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>

eth0: SMC91C11xFD (rev 1) at 2c010300 IRQ 82 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:b1:f2

TCP cubic registered

NET: Registered protocol family 17

Registering the dns_resolver key type

eth0: link down

IP-Config: Complete:

     device=eth0, addr=10.99.29.104, mask=255.255.255.0, gw=10.99.29.1,

     host=bf561-ezkit, domain=, nis-domain=(none),

     bootserver=10.99.29.111, rootserver=10.99.29.111, rootpath=

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

eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

VFS: Mounted root (nfs filesystem) on device 0:11.

Freeing unused kernel memory: 104k 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.16.2 (2010-11-12 10:31:22 CST) hush - the humble shell

 

root:/>

root:/>

 

--- Vivi Li                                                  2011-06-01 06:16:12

Latest updates:

On bf537-stamp/bf527-ezkit, kernel xip in fdpic mode is OK, but still crash

with shared-flat mode. And from the error message, it seems broken again with

romfs.

 

Bellow is the log on bf537-stamp:

--

U-Boot 2010.06 (ADI-2010R1-RC1) (Sep 29 2010 - 17:49:40)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)

Board: ADI BF537 stamp board

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

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

RAM:   64 MiB

Flash: 4 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  5 ^H^H^H 0

bfin>

bfin> tftpboot 0x1000000 vmImage

Using bfin_mac device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'vmImage'.

Load address: 0x1000000

Loading: *^H#################################################################

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

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

done

Bytes transferred = 2139800 (20a698 hex)

bfin> protect off 20040000 203effff

........................................................... done

Un-Protected 59 sectors

bfin> erase 20040000 203effff

 

........................................................... done

Erased 59 sectors

bfin> cp.b 0x1000000 20040000 0x20a698

Copy to Flash... done

bfin> set bootargs root=/dev/nfs rw nfsroot=$(serverip):/tftpboot/romfs

console=ttyBF0,57600

bfin> run addip

bfin>

bfin> bootm 20040000

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

   Image Name:   bf537-0.2-2.6.39-ADI-2011R1-pre-

   Created:      2011-05-29  20:46:01 UTC

   Image Type:   Blackfin Linux Kernel Image (uncompressed)

   Data Size:    2139736 Bytes = 2 MiB

   Load Address: 20040040

   Entry Point:  201a8774

   Verifying Checksum ... OK

   Loading Kernel Image ... OK

OK

Starting Kernel at = 201a8774

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

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

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 110

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 [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1,

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

bfin_mac bfin_mac.0: eth0: Features changed: 0x00004800 -> 0x00004000

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

TCP cubic registered

NET: Registered protocol family 17

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 @ 0x02133000 - 256 pages at 0x03f00000

PHY: 0:01 - Link is Up - 100/Full

VFS: Mounted root (nfs filesystem) on device 0:11.

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

See Linux Documentation/init.txt for guidance.

Hardware Trace:

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

     Source : <0x201a10ee> { _panic + 0x6a } CALL (P2)

   1 Target : <0x201a10e6> { _panic + 0x62 }

     Source : <0x201a1252> { _printk + 0x1a } RTS

   2 Target : <0x201a124e> { _printk + 0x16 }

     Source : <0x200524aa> { _vprintk + 0x17e } RTS

   3 Target : <0x2005249e> { _vprintk + 0x172 }

     Source : <0xffa00da2> { __common_int_entry + 0xe6 } RTI

   4 Target : <0xffa00d40> { __common_int_entry + 0x84 }

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

   5 Target : <0xffa00b68> { _return_from_int + 0x58 }

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

   6 Target : <0xffa00b10> { _return_from_int + 0x0 }

     Source : <0xffa00d3e> { __common_int_entry + 0x82 } CALL (P2)

   7 Target : <0xffa00d34> { __common_int_entry + 0x78 }

     Source : <0xffa003ca> { _asm_do_IRQ + 0x82 } RTS

   8 Target : <0xffa003c2> { _asm_do_IRQ + 0x7a }

     Source : <0x20055f8c> { ___local_bh_enable + 0x38 } RTS

   9 Target : <0x20055f54> { ___local_bh_enable + 0x0 }

     Source : <0x200566bc> { ___do_softirq + 0xd4 } JUMP (P2)

  10 Target : <0x200566a8> { ___do_softirq + 0xc0 }

     Source : <0x2005668c> { ___do_softirq + 0xa4 } IF CC JUMP pcrel

  11 Target : <0x20056676> { ___do_softirq + 0x8e }

     Source : <0x2007b1e2> { _rcu_bh_qs + 0x1e } RTS

  12 Target : <0x2007b1da> { _rcu_bh_qs + 0x16 }

     Source : <0x2007af04> { _rcu_qsctr_help + 0x50 } RTS

  13 Target : <0x2007aeee> { _rcu_qsctr_help + 0x3a }

     Source : <0x2007aec0> { _rcu_qsctr_help + 0xc } IF CC JUMP pcrel

  14 Target : <0x2007aeb4> { _rcu_qsctr_help + 0x0 }

     Source : <0x2007b1d8> { _rcu_bh_qs + 0x14 } CALL (P2)

  15 Target : <0x2007b1c4> { _rcu_bh_qs + 0x0 }

     Source : <0x20056674> { ___do_softirq + 0x8c } CALL (P1)

Stack info:

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

user-space) */

FP: (0x0201bfe0)

Memory from 0x0201bf70 to 0201c000

0201bf70: 00000000 [201e4c44]<201a10f0> 20105174  201e4c44  000063cb

000063cb  000063cb

0201bf90: 0201bfbc  0002d5c0 <200402bc> 20096418  0001559c  00001018

00000000  00000000

0201bfb0: 00000000  00000000  00002000  00072800  00000001 <201a14f4>

2009d028  20040040

0201bfd0: 0002d7c8  00000000  00000000  00000000 (00000000)<2004062e>

00000000  00000000

0201bff0: 00000000  00000000  ffffffff  00000006

Return addresses in stack:

    address : <0x201a10f0> { _panic + 0x6c }

    address : <0x200402bc> { _init_post + 0xe8 }

    address : <0x201a14f4> { _kernel_init + 0x148 }

   frame  1 : <0x2004062e> { _kernel_thread_helper + 0x6 }

--

 

--- steven miao                                              2011-10-20 02:47:35

change the privilege of nfs root dir can bootup, but there is still a

unalignment issue in kernel_execve()

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.config.kernel_xip.shared-flat    application/octet-stream    48066    Vivi Li

config.linux.kernel_xip.shared-flat    application/octet-stream    27361    Vivi Li

Outcomes