AnsweredAssumed Answered

booting in blackfin

Question asked by rjustin24 on Jun 13, 2012
Latest reply on Jun 13, 2012 by Aaronwu

hi, i tried configuring the config file of 2011 version of linux distribution for blackfin. after running make. i uploaded the vmImage file to the blackfin 0x1000000. and then i run bootm.

 

 

bfin> bootm

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

   Image Name:   bf537-0.2-3.0.8-ADI-2011R1

   Created:      2012-06-13   4:18:33 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    967084 Bytes = 944.4 KiB

   Load Address: 00001000

   Entry Point:  00197a40

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 00197a40

Linux version 3.0.8-ADI-2011R1 (root@ubuntu) (gcc version 4.5.3 (ADI-2011R1-RC4_45) ) #3 Tue Jun 12 21:18:28 PDT 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-0x00115928

  rodata    = 0x00115928-0x0016d6a4

  bss       = 0x0016e000-0x0017da94

  data      = 0x0017da94-0x00190000

    stack   = 0x0018e000-0x00190000

  init      = 0x00190000-0x001ad000

  available = 0x001ad000-0x03800000

  DMA Zone  = 0x03c00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 0

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

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: 55020k/65536k RAM, (116k init code, 1106k kernel code, 490k data, 4096k dma, 4708k 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 (35 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: 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 107

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) 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: 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-01 00:06:10 UTC (370)

dma_alloc_init: dma_page @ 0x0211c000 - 1024 pages at 0x03c00000

List of all partitions:

No filesystem could mount root, tried:

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Hardware Trace:

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

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

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

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

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

     Source : <0x00010e7c> { _vprintk + 0x198 } RTS

   3 Target : <0x00010e70> { _vprintk + 0x18c }

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

   4 Target : <0xffa00cb4> { __common_int_entry + 0x78 }

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

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

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

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

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

   7 Target : <0xffa00cae> { __common_int_entry + 0x72 }

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

   8 Target : <0xffa003a6> { _asm_do_IRQ + 0x62 }

     Source : <0x0001470e> { ___local_bh_enable + 0x36 } RTS

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

     Source : <0x00014c52> { ___do_softirq + 0xae } CALL pcrel

  10 Target : <0x00014c46> { ___do_softirq + 0xa2 }

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

  11 Target : <0x00014c2e> { ___do_softirq + 0x8a }

     Source : <0x00035fde> { _rcu_bh_qs + 0x42 } RTS

  12 Target : <0x00035fc4> { _rcu_bh_qs + 0x28 }

     Source : <0x00035fb4> { _rcu_bh_qs + 0x18 } IF CC JUMP pcrel

  13 Target : <0x00035f9c> { _rcu_bh_qs + 0x0 }

     Source : <0x00014c2a> { ___do_softirq + 0x86 } CALL pcrel

  14 Target : <0x00014c22> { ___do_softirq + 0x7e }

     Source : <0x0001865c> { _run_timer_softirq + 0xb4 } RTS

  15 Target : <0x000185ff> { _run_timer_softirq + 0x57 }

     Source : <0x00018648> { _run_timer_softirq + 0xa0 } IF !CC JUMP pcrel (BP)

Stack info:

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

FP: (0x0201bfe4)

Memory from 0x0201bf20 to 0201c000

0201bf20: 0201bf28  00000000 [00140fe0] 00115780  02051000  00140fe0  001733cf  001733cf

0201bf40: 001733cf  0201bf70  00000000  00190992  02051000  001a356c  00000000  0201bf80

0201bf60: 00008000  00141048  00000000  001a352d  0201bf80  0201bf80  000535de  0016e068

0201bf80: 6e6b6e75  2d6e776f  636f6c62  2c30286b  02002930  00190aa2  0016e068  00000000

0201bfa0: 00190c1c  0016e068  001a3578  00000000  00000000  00000000  00000000  00000000

0201bfc0: 00190688  0016e018  001a80d0  00000000  00190694  0016e018  001a80d0  00000000

0201bfe0: 00000000 (00000000)<000014f6> 00000000  00000000  00000000  ffffffff  00000006

Return addresses in stack:

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

 

this is what happens.the process stops here. and no uclinux prompt pops out. does anyone know how to resolve this problem?

Outcomes