An error about start the system! 2011-01-20

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

2011-01-20 21:58:25     a error about start the system!

zhang zhihua (CHINA)

Message: 97578   

 

U-Boot 2010.06 (ADI-2010R1-RC2) (Jan 20 2011 - 01:47:09)

 

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

Board: ADI BF518F EZ-Board board

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

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

RAM:   32 MiB

Flash: 4 MiB

MMC:  Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

SF: Detected M25P64 with page size 256, total 8 MiB

8192 KiB M25P64 at 0:2 is now current device

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

   Image Name:   bf518-2.6.34.7-ADI-2010R1

   Created:      2011-01-21   2:37:28 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    997693 Bytes = 974.3 KiB

   Load Address: 00001000

   Entry Point:  001b9900

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001b9900

Linux version 2.6.34.7-ADI-2010R1 (root@ubuntu) (gcc version 4.3.5 (ADI-2010R1-RC4) ) #14 Thu Jan 20 18:37:20 PST 2011

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0012bf28

  rodata    = 0x0012bf28-0x0018c000

  bss       = 0x0018c000-0x0019cf1c

  data      = 0x0019cf1c-0x001b0000

    stack   = 0x001ae000-0x001b0000

  init      = 0x001b0000-0x001cb000

  available = 0x001cb000-0x01f00000

  DMA Zone  = 0x01f00000-0x02000000

Hardware Trace Active and Enabled

Boot Mode: 3

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

Compiled for ADSP-BF518 Rev 0.0

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

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

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

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  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: 7874

Kernel command line: root=/dev/mtdblock4 rw rootfstype=jffs2 clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

PID hash table entries: 128 (order: -3, 512 bytes)

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

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 29620k/32768k RAM, (108k init code, 1195k kernel code, 529k data, 1024k dma, 292k reserved)

Hierarchical RCU implementation.

NR_IRQS:159

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

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

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin L1 Instruction SRAM: 32 KB (26 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

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

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc03400, dma channel@5

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

NET: Registered protocol family 2

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

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

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

JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.

msgmni has been set to 57

io scheduler noop registered (default)

bfin-otp: initialized

bfin-uart: Blackfin serial driver

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

brd: module loaded

physmap platform flash device: 00300000 at 20000000

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

NOR chip too large to fit in mapping. Attempting to cope...

Amd/Fujitsu Extended Query Table at 0x0040

number of CFI chips: 1

Reducing visibility of 4096KiB chip to 3072KiB

cmdlinepart partition parsing not available

RedBoot partition parsing not available

Using physmap partition information

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

0x000000000000-0x0000001c0000 : "file system2(nor)"

0x0000001c0000-0x000000300000 : "file system1(nor)"

m25p80 spi0.2: found m25p64, expected m25p16

m25p80 spi0.2: m25p64 (8192 Kbytes)

Creating 3 MTD partitions on "m25p80":

0x000000000000-0x000000040000 : "bootloader(spi)"

0x000000040000-0x000000200000 : "linux kernel(spi)"

0x000000200000-0x000000800000 : "file system(spi)"

bfin_mii_bus: probed

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

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

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

i2c /dev entries driver

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

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2011-01-21 10:52:59 UTC (1295607179)

dma_alloc_init: dma_page @ 0x0119c000 - 256 pages at 0x01f00000

VFS: Mounted root (jffs2 filesystem) on device 31:4.

Freeing unused kernel memory: 108k freed

JFFS2 warning: (1) jffs2_do_read_inode_internal: Truncating ino #70 to 29884 bytes failed because it only had 28872 bytes to start with!

BINFMT_FLAT: reloc outside program 0x1e800 (0 - 0x17bc0/0x55a0), killing init!

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

See Linux Documentation/init.txt for guidance.

Hardware Trace:

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

     Source : <0x0012a786> { _panic + 0x42 } CALL pcrel

   1 Target : <0x0012a786> { _panic + 0x42 }

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

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

     Source : <0x00010f06> { _vprintk + 0x16a } RTS

   3 Target : <0x00010efa> { _vprintk + 0x15e }

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

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

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

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

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

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

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

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

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

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

     Source : <0x00014522> { __local_bh_enable + 0x3a } RTS

   9 Target : <0x000144e8> { __local_bh_enable + 0x0 }

     Source : <0x00014b5c> { ___do_softirq + 0xa4 } JUMP.L

  10 Target : <0x00014b54> { ___do_softirq + 0x9c }

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

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

     Source : <0x00030bd0> { _rcu_bh_qs + 0x14 } RTS

  12 Target : <0x00030bbc> { _rcu_bh_qs + 0x0 }

     Source : <0x00014b36> { ___do_softirq + 0x7e } JUMP.L

  13 Target : <0x00014b2e> { ___do_softirq + 0x76 }

     Source : <0x00031464> { _rcu_process_callbacks + 0x30 } RTS

  14 Target : <0x00031460> { _rcu_process_callbacks + 0x2c }

     Source : <0x000312fc> { _rcu_do_batch + 0x130 } RTS

  15 Target : <0x000312f4> { _rcu_do_batch + 0x128 }

     Source : <0x000311de> { _rcu_do_batch + 0x12 } IF CC JUMP pcrel

Stack info:

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

FP: (0x0101bfe4)

Memory from 0x0101bf90 to 0101c000

0101bf90: 0101bf98  00000000 [00158864] 0012a78a  0019d948  00158864  001914be 001914be

0101bfb0: 001914be  0101bfc8  0000126a  0019d948  00000000  0101bfc8  001f0140 00000002

0101bfd0: 001b01e2  001c8690  001c8690  00000000  00000000 (00000000)<000014ae> 00000000

0101bff0: 00000000  00000000  ffffffff  00000006

Return addresses in stack:

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

TranslateQuoteReplyEditDelete

 

 

2011-01-20 22:09:49     Re: a error about start the system!

Mike Frysinger (UNITED STATES)

Message: 97579   

 

try booting a uImage with its rootfs in ram first to make sure your build/toolchain is sane

QuoteReplyEditDelete

 

 

2011-01-20 22:11:32     Re: a error about start the system!

zhang zhihua (CHINA)

Message: 97580   

 

Hi,Mike,

 

The uImage is work correctly!

TranslateQuoteReplyEditDelete

 

 

2011-01-20 22:15:27     Re: a error about start the system!

zhang zhihua (CHINA)

Message: 97581   

 

What's mean "JFFS2 warning: (1) jffs2_do_read_inode_internal: Truncating ino #70 to 29884 byt

es failed because it only had 28872 bytes to start with!"

TranslateQuoteReplyEditDelete

 

 

2011-01-20 22:17:59     Re: a error about start the system!

zhang zhihua (CHINA)

Message: 97582   

 

bfin> tftp 1000000 uImage

Using bfin_mac device

TFTP from server 192.168.0.77; our IP address is 192.168.0.15

Filename 'uImage'.

Load address: 0x1000000

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

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

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

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

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

done

Bytes transferred = 4019465 (3d5509 hex)

bfin> bootm 1000000

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

   Image Name:   bf518-2.6.34.7-ADI-2010R1

   Created:      2011-01-21   2:39:20 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4019401 Bytes = 3.8 MiB

   Load Address: 00001000

   Entry Point:  001b9900

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001b9900

Linux version 2.6.34.7-ADI-2010R1 (root@ubuntu) (gcc version 4.3.5 (ADI-2010R1-R

C4) ) #15 Thu Jan 20 18:39:07 PST 2011

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0012bf28

  rodata    = 0x0012bf28-0x0018c000

  bss       = 0x0018c000-0x0019cf1c

  data      = 0x0019cf1c-0x001b0000

    stack   = 0x001ae000-0x001b0000

  init      = 0x001b0000-0x0078a000

  available = 0x0078a000-0x01f00000

  DMA Zone  = 0x01f00000-0x02000000

Hardware Trace Active and Enabled

Boot Mode: 3

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

Compiled for ADSP-BF518 Rev 0.0

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

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

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

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  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: 7874

Kernel command line: root=/dev/mtdblock4 rw rootfstype=jffs2 clkin_hz=25000000 e

arlyprintk=serial,uart0,57600 console=ttyBF0,57600

PID hash table entries: 128 (order: -3, 512 bytes)

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

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 23736k/32768k RAM, (5992k init code, 1195k kernel code, 529k d

ata, 1024k dma, 292k reserved)

Hierarchical RCU implementation.

NR_IRQS:159

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

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

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin L1 Instruction SRAM: 32 KB (26 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezbrd_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_b

ase@ffc00500, dma channel@7

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

ase@ffc03400, dma channel@5

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

@ffc01400

NET: Registered protocol family 2

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

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

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

JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.

msgmni has been set to 46

io scheduler noop registered (default)

bfin-otp: initialized

bfin-uart: Blackfin serial driver

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

brd: module loaded

physmap platform flash device: 00300000 at 20000000

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

NOR chip too large to fit in mapping. Attempting to cope...

Amd/Fujitsu Extended Query Table at 0x0040

number of CFI chips: 1

Reducing visibility of 4096KiB chip to 3072KiB

cmdlinepart partition parsing not available

RedBoot partition parsing not available

Using physmap partition information

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

0x000000000000-0x0000001c0000 : "file system2(nor)"

0x0000001c0000-0x000000300000 : "file system1(nor)"

m25p80 spi0.2: found m25p64, expected m25p16

m25p80 spi0.2: m25p64 (8192 Kbytes)

Creating 3 MTD partitions on "m25p80":

0x000000000000-0x000000040000 : "bootloader(spi)"

0x000000040000-0x000000200000 : "linux kernel(spi)"

0x000000200000-0x000000800000 : "file system(spi)"

bfin_mii_bus: probed

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

clk=2500000Hz(mdc_div=15)@sclk=80MHz)

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

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

i2c /dev entries driver

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

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2011-01-21 11:16:33 UTC (1295608593)

dma_alloc_init: dma_page @ 0x0082d000 - 256 pages at 0x01f00000

Freeing unused kernel memory: 5992k 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.uclinuclinux.org/

/     \.___.d|    .'           -

root:/>

TranslateQuoteReplyEditDelete

 

 

2011-01-20 22:29:00     Re: a error about start the system!

Mike Frysinger (UNITED STATES)

Message: 97583   

 

show the exact steps you used to load & burn the jffs2 image into your spi flash

QuoteReplyEditDelete

 

 

2011-01-20 22:38:26     Re: a error about start the system!

zhang zhihua (CHINA)

Message: 97584   

 

>/: sf probe 2

 

>/: sf erase 200000 5F0000

 

>/: tftp 1000000 rootfs.jffs2

 

>/: sf write 1000000 200000 length

 

 

 

the env is:

 

bootargs=root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600

console=ttyBF0,57600

 

 

 

SPI is :M25P64

TranslateQuoteReplyEditDelete

 

 

2011-01-20 22:46:34     Re: a error about start the system!

Aaron Wu (CHINA)

Message: 97585   

 

"sf write 1000000 200000 length" or "sf write 0x1000000 0x200000 length"?  Also better to read it back and make a comparation for verification after flashing the jffs2

QuoteReplyEditDelete

 

 

2011-01-20 23:12:05     Re: a error about start the system!

zhang zhihua (CHINA)

Message: 97586   

 

sf write 0x1000000 0x200000 length

TranslateQuoteReplyEditDelete

 

 

2011-01-20 23:21:15     Re: a error about start the system!

zhang zhihua (CHINA)

Message: 97587   

 

The env is:

 

bootargs=root=/dev/mtdblock4 rw rootfstype=jffs2 clkin_hz=25000000 earlyprintk=s

erial,uart0,57600 console=ttyBF0,57600

Attachments

    Outcomes