[#5425] reboot for the first time on bf548 ezkit with jffs fs as rootfs need wait 1 min

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

[#5425] reboot for the first time on bf548 ezkit with jffs fs as rootfs need wait 1 min

Submitted By: Mingquan Pan

Open Date

2009-08-07 01:08:48    

Priority:

Very Low     Assignee:

Nobody

Status:

Open     Fixed In Release:

N/A

Found In Release:

2009R1-RC6     Release:

Category:

N/A     Board:

N/A

Processor:

BF548     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

N/A

Uboot version or rev.:

    Toolchain version or rev.:

09r1-rc9

App binary format:

N/A     

Summary: reboot for the first time on bf548 ezkit with jffs fs as rootfs need wait 1 min

Details:

 

reboot for the first time after vmImag and rootfs.jffs2 are flased onto bf548 ezkit (with jffs fs as rootfs) would be slow and need wait for about 1 minute for uboot to showup.

 

U-Boot 2008.10-svn1905 (ADI-2009R1-rc2) (Jun  8 2009 - 04:44:14)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (parallel flash boot)

Board: ADI BF548 EZ-Kit board

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

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

RAM:   64 MB

Flash: 16 MB

NAND:  256 MiB

In:    serial

Out:   serial

Err:   serial

Net:   Hit any key to stop autoboot:  0

bfin> set bootargs root=/dev/mtdblock2 rw rootfstype=jffs2 earlyprintk=serial,uart0,57600

bfin> save

Saving Environment to Flash...

. done

Un-Protected 1 sectors

Erasing Flash...

. done

Erased 1 sectors

Writing to Flash... done

. done

Protected 1 sectors

bfin>

************** STEP 3: Flash images.

 

 

bfin> tftp 0x1000000 vmImage

smc911x: initializing

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:bf:4e

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename \'vmImage\'.

Load address: 0x1000000

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

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

done

Bytes transferred = 1224779 (12b04b hex)

bfin> Image size is 12b04b

protect off 20040000 2043ffff

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

Un-Protected 32 sectors

bfin> erase 20040000 2043ffff

 

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

Erased 32 sectors

bfin> erase success

cp.b 0x1000000 20040000  0x12b04b

Copy to Flash... done

bfin>  cp success

 

Case 1 ...PASS

 

Case 1 ...PASS

tftp 0x1000000 rootfs.jffs2

smc911x: initializing

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:bf:4e

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename \'rootfs.jffs2\'.

Load address: 0x1000000

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

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

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

done

Bytes transferred = 2097152 (200000 hex)

Image size is 200000

bfin> protect off 20440000 20ffffff

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

Un-Protected 97 sectors

bfin> erase 20440000 20ffffff

 

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

Erased 97 sectors

bfin>  erase success

cp.b 0x1000000 20440000 0x200000

Copy to Flash... done

bfin>  cp success

 

Case 1 ...PASS

 

Case 1 ...PASS

reset

 

U-Boot 2008.10-svn1905 (ADI-2009R1-rc2) (Jun  8 2009 - 04:44:14)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (parallel flash boot)

Board: ADI BF548 EZ-Kit board

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

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

RAM:   64 MB

Flash: 16 MB

NAND:  256 MiB

In:    serial

Out:   serial

Err:   serial

Net:   Hit any key to stop autoboot:  0

bfin> successful reset attempt

 

Starting ./jffs2_test.exp

 

************** STEP 1: Start kermit.

 

C-Kermit 8.0.211, 10 Apr 2004, for Linux

Copyright (C) 1985, 2004,

  Trustees of Columbia University in the City of New York.

Type ? or HELP for help.

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>set line /dev/ttyS0

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>set speed 57600

/dev/ttyS0, 57600 bps

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>set carrier-watch off

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>set handshake none

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>set flow-control none

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>robust

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>set file type bin

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>set file name lit

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>set rec pack 1000

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>set send pack 1000

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>set window 5

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>set escape 129

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/jffs2/) C-Kermit>connect

Connecting to /dev/ttyS0, speed 57600

Escape character: Code 129: enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

 

************** STEP 2: Reset the uboot.

 

Try to figure out if we are in u-boot or the kernel----------------------------------------------------

 

bfin> version

 

U-Boot 2008.10-svn1905 (ADI-2009R1-rc2) (Jun  8 2009 - 04:44:14)

bfin> We are in u-boot

sending reset

reset

 

U-Boot 2008.10-svn1905 (ADI-2009R1-rc2) (Jun  8 2009 - 04:44:14)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (parallel flash boot)

Board: ADI BF548 EZ-Kit board

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

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

RAM:   64 MB

Flash: 16 MB

NAND:  256 MiB

In:    serial

Out:   serial

Err:   serial

Net:   Hit any key to stop autoboot:  0

reset**********************************

 

U-Boot 2008.10-svn1905 (ADI-2009R1-rc2) (Jun  8 2009 - 04:44:14)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (parallel flash boot)

Board: ADI BF548 EZ-Kit board

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

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

RAM:   64 MB

Flash: 16 MB

NAND:  256 MiB

In:    serial

Out:   serial

Err:   serial

Net:   Hit any key to stop autoboot:  0

bfin>

bfin> bootm 20040000

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

   Image Name:   Linux-2.6.28.10-ADI-2009R1-svn71

   Created:      2009-08-06   8:35:43 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1224715 Bytes =  1.2 MB

   Load Address: 00001000

   Entry Point:  0022d14c

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 0022d14c

Linux version 2.6.28.10-ADI-2009R1-svn7106 (test@uclinux61-bf548-std) (gcc version 4.1.2 (ADI svn)) #107 Thu Aug 6 08:35:30 GMT 2009

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0016f4f0

  rodata    = 0x0016f4f0-0x001ecf38

  bss       = 0x001ed000-0x0020116c

  data      = 0x0020116c-0x0021a000

    stack   = 0x00218000-0x0021a000

  init      = 0x0021a000-0x00240000

  available = 0x00240000-0x03dff000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

Reset caused by Software reset

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

Compiled for ADSP-BF548 Rev 0.2

Blackfin Linux support by http://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-back)

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

Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 earlyprintk=serial,uart0,57600

Configuring Blackfin Priority Driven Interrupts

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

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

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

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

Memory available: 60612k/65536k RAM, (152k init code, 1465k kernel code, 683k data, 2048k dma, 572k 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)

net_namespace: 288 bytes

NET: Registered protocol family 16

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 @ 0x03d11000 - 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

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

msgmni has been set to 118

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

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:bf:4e

Driver \'sd\' needs updating - please use bus_type methods

register bfin atapi driver

scsi0 : pata-bf54x

ata1: PATA max UDMA/66 irq 68

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)\"

0x004000

The two address are equal.

kernel_start_addr 20040000, rootfs_start_addr 20440000

00-0x10000000 : \"file system(nand)\"

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

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-sdh bfin-sdh.0: unable to request DMA channel

bfin-sdh: probe of bfin-sdh.0 failed with error -16

TCP cubic registered

NET: Registered protocol family 17

Empty flash at 0x0000fffc ends at 0x00010000

CLEANMARKER node found at 0x00010000, not first node in block (0x00000000)

Empty flash at 0x0002fffc ends at 0x00030000

CLEANMARKER node found at 0x00030000, not first node in block (0x00020000)

Empty flash at 0x0004fffc ends at 0x00050000

CLEANMARKER node found at 0x00050000, not first node in block (0x00040000)

Empty flash at 0x0006fffc ends at 0x00070000

CLEANMARKER node found at 0x00070000, not first node in block (0x00060000)

Empty flash at 0x0008fffc ends at 0x00090000

CLEANMARKER node found at 0x00090000, not first node in block (0x00080000)

Empty flash at 0x000afffc ends at 0x000b0000

CLEANMARKER node found at 0x000b0000, not first node in block (0x000a0000)

Empty flash at 0x000cfffc ends at 0x000d0000

CLEANMARKER node found at 0x000d0000, not first node in block (0x000c0000)

Empty flash at 0x000efffc ends at 0x000f0000

CLEANMARKER node found at 0x000f0000, not first node in block (0x000e0000)

Empty flash at 0x0010fffc ends at 0x00110000

CLEANMARKER node found at 0x00110000, not first node in block (0x00100000)

Empty flash at 0x0012fffc ends at 0x00130000

CLEANMARKER node found at 0x00130000, not first node in block (0x00120000)

Empty flash at 0x0014fffc ends at 0x00150000

CLEANMARKER node found at 0x00150000, not first node in block (0x00140000)

Empty flash at 0x0016fffc ends at 0x00170000

CLEANMARKER node found at 0x00170000, not first node in block (0x00160000)

Empty flash at 0x0018fffc ends at 0x00190000

CLEANMARKER node found at 0x00190000, not first node in block (0x00180000)

Empty flash at 0x001afffc ends at 0x001b0000

CLEANMARKER node found at 0x001b0000, not first node in block (0x001a0000)

Empty flash at 0x001cfffc ends at 0x001d0000

CLEANMARKER node found at 0x001d0000, not first node in block (0x001c0000)

CLEANMARKER node found at 0x001f0000, not first node in block (0x001e0000)

VFS: Mounted root (jffs2 filesystem).

Freeing unused kernel memory: 152k 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.13.4 (2009-08-06 03:51:37 GMT) built-in shell (msh)

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

 

root:/>

Case 1 ...PASS

 

reboot

and wait for about 1 minute.

 

This is first found on: linux: 7092 uclinux-dist 8605.

last passed on :  linux 7086   uclinux-dist 8599.

 

Follow-ups

No Messages Were Found

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes