Article [#4729] run otp test make kernel panic

[#4729] run otp test make kernel panic

Submitted By: Mingquan Pan

Open Date

2008-12-18 04:16:10     Close Date

2008-12-21 21:38:24

Priority:

Medium     Assignee:

Mike Frysinger

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

Nov 11

App binary format:

N/A     

Summary: run otp test make kernel panic

Details:

run otp test make kernel panic on bf548 from Dec 14.

U-Boot 1.1.6-svn1273 (ADI-2008R1.5) (Jul 21 2008 - 00:35:28)

CPU:   ADSP bf548-0.0 (Detected Rev: 0.1)

Board: ADI BF548 EZ-Kit board

       Support:   blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131 MHz

RAM:   64 MB

Flash:

RAM size is 64 MB.

16 MB

NAND:  256 MiB

In:    serial

Out:   serial

Err:   serial

Net:   LAN9x18 (0x118a0000) detected at 0x24000000

MAC:   00:E0:22:FE:B8:54

Hit any key to stop autoboot:  0

bfin> set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

bfin> set serverip 10.100.4.174

bfin> set ipaddr 10.100.4.50

bfin> save

Saving Environment to EEPROM...

..done

bfin> tftpboot 0x2000000 linux

start Auto negotiation... (take ~2sec)

Auto negotiation complete, 100BaseTX, full duplex

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'linux'.

Load address: 0x2000000

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

done

Bytes transferred = 6753674 (670d8a hex)

Image size is 670d8a

bfin> run addip

bfin> bootelf

Loading .text @ 0x00001000 (1747600 bytes)

Loading .rodata @ 0x001aba90 (491628 bytes)

Loading .init.rodata @ 0x00223afc (156 bytes)

Loading __ksymtab @ 0x00223b98 (18304 bytes)

Loading __ksymtab_gpl @ 0x00228318 (7520 bytes)

Loading __ksymtab_strings @ 0x0022a078 (59451 bytes)

Loading __init_rodata @ 0x002388b4 (172 bytes)

Loading __param @ 0x00238960 (1500 bytes)

Clearing .bss @ 0x00238f40 (74024 bytes)

Loading .data @ 0x0024b068 (94104 bytes)

Loading .init.text @ 0x00262000 (140852 bytes)

Loading .init.data @ 0x00284634 (28964 bytes)

Loading .init.setup @ 0x0028b758 (632 bytes)

Loading .initcall.init @ 0x0028b9d0 (772 bytes)

Loading .con_initcall.init @ 0x0028bcd4 (4 bytes)

Loading .init.ramfs @ 0x0028bcd8 (3348064 bytes)

Loading .text_l1 @ 0xffa00000 (5308 bytes)

sh_addr: FFA00000, p_paddr: 005BD338

Loading from: 025AC000 to 005BD338, size: 5308

Loading .data_l1 @ 0xff800000 (192 bytes)

sh_addr: FF800000, p_paddr: 005BE7F4

Loading from: 025AE000 to 005BE7F4, size: 192

## Starting application at 0x00277670 ...

Linux version 2.6.28-rc2-ADI-2009R1-pre-svn5863 (test@uclinux61-bf548-std) (gcc version 4.1.2 (ADI svn)) #29 Sun Dec 14 22:00:11 GMT 2008

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x001aba90

  rodata    = 0x001aba90-0x00238f3c

  bss       = 0x00238f40-0x0024b068

  data      = 0x0024b068-0x00262000

    stack   = 0x00260000-0x00262000

  init      = 0x00262000-0x005bf000

  available = 0x005bf000-0x03dff000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace Active and Enabled

Reset caused by Software reset

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

Compiled for ADSP-BF548 Rev 0.0

Warning: Compiled for Rev 0, but running on Rev 1

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 525 MHz core clock and 131 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: 15747

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf548-ezkit:eth0:off

Configuring Blackfin Priority Driven Interrupts

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

console handover: boot [early_BFuart0] -> real [ttyBF0]

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

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

Memory available: 57020k/65536k RAM, (3444k init code, 1706k kernel code, 730k data, 2048k dma, 584k reserved)

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

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)

Blackfin L2 SRAM: 128 KB (128 KB free)

PDA for CPU0 reserved at 0023a800

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

ezkit_init(): registering device resources

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

musb_hdrc: version 6.0, musb-dma, host, debug=0

musb_hdrc: USB Host mode controller at ffc03c00 using DMA, IRQ 82

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

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

hub 1-0:1.0: 1 port detected

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 111

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bf54x-lq043: FrameBuffer initializing...

bfin-otp: initialized

Serial: Blackfin serial driver

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

brd: module loaded

smsc911x: Driver version 2007-07-13.

eth0: SMSC911x MAC Address: 00:e0:22:fe:b8:54

Driver 'sd' needs updating - please use bus_type methods

Driver 'sr' needs updating - please use bus_type methods

register bfin atapi driver

scsi0 : pata-bf54x

ata1: PATA max UDMA/66 irq 68

usb 1-1: new high speed USB device using musb_hdrc and address 2

usb 1-1: configuration #1 chosen from 1 choice

ata1.00: ATA-6: TOSHIBA MK4032GAX, AD101A, max UDMA/100

ata1.00: 78140160 sectors, multi 16: LBA48

ata1.00: configured for UDMA/66

blk_queue_max_hw_segments: set to minimum 1

scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MK4032GA AD10 PQ: 0 ANSI: 5

sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors: (40.0 GB/37.2 GiB)

sd 0:0:0:0: [sda] Write Protect is off

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

sda: sda1 sda2

sd 0:0:0:0: [sda] Attached SCSI disk

physmap platform flash device: 02000000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Using buffer write method

Using auto-unlock on power-up/resume

cfi_cmdset_0001: Erase suspend on write enabled

RedBoot partition parsing not available

Using physmap partition information

Creating 3 MTD partitions on "physmap-flash.0":

0x00000000-0x00040000 : "bootloader(nor)"

0x00040000-0x00440000 : "linux kernel(nor)"

0x00440000-0x01000000 : "file system(nor)"

BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.

bf5xx-nand bf5xx-nand.0: page_size=256, data_width=8, wr_dly=3, rd_dly=3

NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit)

Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x00000000-0x00400000 : "linux kernel(nand)"

0x00400000-0x10000000 : "file system(nand)"

m25p80 spi0.1: m25p16 (2048 Kbytes)

Creating 2 MTD partitions on "m25p80":

0x00000000-0x00040000 : "bootloader(spi)"

0x00040000-0x00200000 : "linux kernel(spi)"

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

input: bf54x-keys as /class/input/input0

bf54x-keys: Blackfin BF54x Keypad registered IRQ 76

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@ffc00700

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

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

hid_tmff: Unknown symbol _input_ff_create_memless

usbcore: registered new interface driver usbhid

usbhid: v2.6:USB HID core driver

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).

ASoC version 0.13.2

ALSA device list:

  No soundcards found.

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2004-05-31 13:17:39 UTC (1086009459)

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

eth0: link down

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=

Freeing unused kernel memory: 3444k freed

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

                           _____________________________________

        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|            -   blackfin.uclinux.org/

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

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

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

Have a lot of fun...

BusyBox v1.13.1 (2008-12-14 20:40:11 GMT) built-in shell (msh)

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

root:/>

************** STEP 3: Starting test

dd if=/dev/bfin-otp of=otp_out.bin0 bs=8 count=440

Instruction fetch CPLB miss

- CPLB miss on an instruction fetch.

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=dd PID=300

CPU = 0

TEXT = 0x00400040-0x0044b160        DATA = 0x0044b164-0x0045eb84

BSS = 0x0045eb84-0x004604f4  USER-STACK = 0x00469f4c

return address: [0xef00001a]; contents of:

0xeefffff0:  ????  ????  ????  ????  ????  ????  ????  ????

0xef000000: <0>

Double Fault

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=dd PID=300

CPU = 0

TEXT = 0x00400040-0x0044b160        DATA = 0x0044b164-0x0045eb84

BSS = 0x0045eb84-0x004604f4  USER-STACK = 0x00469f4c

return address: [0x000041b0]; contents of:

0x00004190:  6412  0a11  105b  e120  03ff  0a01  1c10  e14a

0x000041a0:  0023  e10a  9814  9110  0a02  1409  3211  6c66

0x000041b0: [9550] 3213  9710  0127  6008  0010  63f8  e140

0x000041c0:  feaf  0a01  1447  63f8  e140  eeff  0a01  1447

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00062026  IPEND: 0480  SYSCFG: 0006

  EXCAUSE   : 0x26

  physical IVG7 asserted : <0xffa00c54> { _evt_evt7 + 0x0 }

  physical IVG10 asserted : <0xffa00c78> { _evt_evt10 + 0x0 }

  logical irq   6 mapped  : <0xffa0036c> { _timer_interrupt + 0x0 }

  logical irq   9 mapped  : <0x000d12ac> { _bfin_bf54x_irq_error + 0x0 }

  logical irq  14 mapped  : <0x0012f3cc> { _bfin_rtc_interrupt + 0x0 }

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

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

  logical irq  52 mapped  : <0x001322ec> { _bfin_twi_interrupt_entry + 0x0 }

  logical irq  53 mapped  : <0x001322ec> { _bfin_twi_interrupt_entry + 0x0 }

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

  logical irq  74 mapped  : <0x00116e54> { _bf5xx_nand_dma_irq + 0x0 }

  logical irq  76 mapped  : <0x0012d95c> { _bfin_kpad_isr + 0x0 }

  logical irq  82 mapped  : <0x001284a0> { _blackfin_interrupt + 0x0 }

  logical irq  85 mapped  : <0x0012b060> { _dma_controller_irq + 0x0 }

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

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

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

RETX: <0x000041b0> { _get_instruction + 0x2c }

RETS: <0x00004360> { _dump_bfin_mem + 0x8c }

PC  : <0x000041b0> { _get_instruction + 0x2c }

DCPLB_FAULT_ADDR: <0x03201ef4> /* kernel dynamic memory */

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

PROCESSOR STATE:

R0 : ef001000    R1 : ef000000    R2 : ef000002    R3 : 03201cd0

R4 : ef000030    R5 : 0000100d    R6 : ef00001a    R7 : ef000000

P0 : 00240c42    P1 : 0024e160    P2 : ef000000    P3 : 03201da4

P4 : 00000000    P5 : 03201cd0    FP : 00000008    SP : 03201bdc

LB0: 0040d05f    LT0: 0040d04c    LC0: ffffffff

LB1: 000c760e    LT1: 000c7602    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 0000000f

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

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 001b9a48

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 0000001b

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

USP : 00469dbc  ASTAT: 02002022

Kernel panic - not syncing: Double Fault - unrecoverable event

Case 1 ...FAIL

Case 1 ...FAIL

OTPMEM TEST FAIL

Follow-ups

--- Mike Frysinger                                           2008-12-18 09:37:46

the new no-mpu implementation does not include bootrom region

--- Mike Frysinger                                           2008-12-18 13:50:19

should be fixed now

--- Mingquan Pan                                             2008-12-21 21:38:24

Yes,close.

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.