FAQ: [#6840] ubifs issues while updating kernel. 2010r1-rc5 mounted nand(2011)

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

[#6840] ubifs issues while updating kernel. 2010r1-rc5 mounted nand

Submitted By: Chris Page

Open Date

2011-10-24 19:46:38     Close Date

2011-10-25 23:05:32

Priority:

Medium High     Assignee:

Aaron Wu

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1-RC5     Release:

2010r1-rc5

Category:

Memory     Board:

Custom

Processor:

BF537     Silicon Revision:

3

Is this bug repeatable?:

Yes     Resolution:

Rejected

Uboot version or rev.:

2010R1-RC2     Toolchain version or rev.:

4.3.5

App binary format:

FDPIC     

Summary: ubifs issues while updating kernel. 2010r1-rc5 mounted nand

Details:

 

After updating to the later kernel from 2009 I am having many issues with my mounted nand partition Data. It is using ubifs. I have reformatted and cleaned the partition and still get the following output. This partition works great when I use the previous kernel. The error causes the file system to be read only.

 

 

UBI: attaching mtd1 to ubi0

UBI: physical eraseblock size:   131072 bytes (128 KiB)

UBI: logical eraseblock size:    129024 bytes

UBI: smallest flash I/O unit:    2048

UBI: sub-page size:              512

UBI: VID header offset:          512 (aligned 512)

UBI: data offset:                2048

UBI: attached mtd1 to ubi0

UBI: MTD device name:            "Data(nand)"

UBI: MTD device size:            464 MiB

UBI: number of good PEBs:        3711

UBI: number of bad PEBs:         1

UBI: max. allowed volumes:       128

UBI: wear-leveling threshold:    4096

UBI: number of internal volumes: 1

UBI: number of user volumes:     1

UBI: available PEBs:             0

UBI: total number of reserved PEBs: 3711

UBI: number of PEBs reserved for bad PEB handling: 37

UBI: max/mean erase counter: 5/3

UBI: image sequence number: 0

UBI: background thread "ubi_bgt0d" started, PID 250

UBIFS: recovery needed

UBIFS: recovery completed

UBIFS: mounted UBI device 0, volume 0, name "data"

UBIFS: file system size:   471711744 bytes (460656 KiB, 449 MiB, 3656 LEBs)

UBIFS: journal size:       23611392 bytes (23058 KiB, 22 MiB, 183 LEBs)

UBIFS: media format:       w4/r0 (latest is w4/r0)

UBIFS: default compressor: lzo

UBIFS: reserved for root:  4952683 bytes (4836 KiB)

spidev spi0.5: Warning: SPI CPHA not set: Slave Select not under software control!

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

spidev spi0.5: Warning: SPI CPHA not set: Slave Select not under software control!

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

spidev spi0.5: Warning: SPI CPHA not set: Slave Select not under software control!

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

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

uncorrectable error :

uncorrectable error :

uncorrectable error :

uncorrectable error :

uncorrectable error :

uncorrectable error :

UBI error: ubi_io_read: error -74 while reading 2836 bytes from PEB 43:73120, read 2836 bytes

UBIFS error (pid 327): try_read_node: cannot read node type 1 from LEB 21:71072, error -74

UBIFS error (pid 327): ubifs_read_node: bad node type (17 but expected 0)

UBIFS error (pid 327): ubifs_read_node: bad node at LEB 15:10056

UBIFS error (pid 327): ubifs_iget: failed to read inode 74, error -22

UBIFS error (pid 327): ubifs_lookup: dead directory entry 'variance.so', error -22

UBIFS warning (pid 327): ubifs_ro_mode: switched to read-only mode, error -22

UBI: scrubbed PEB 2106 (LEB 0:15), data moved to PEB 2107

UBIFS error (pid 327): ubifs_read_node: bad node type (0 but expected 9)

UBIFS error (pid 327): ubifs_read_node: bad node at LEB 14:107304

UBIFS error (pid 327): ubifs_iget: failed to read inode 91, error -22

UBIFS error (pid 327): ubifs_lookup: dead directory entry 'prog2', error -22

UBI: scrubbed PEB 2105 (LEB 0:14), data moved to PEB 2106

uncorrectable error :

uncorrectable error :

UBI error: ubi_io_read: error -74 while reading 160 bytes from PEB 2107:29056, read 160 bytes

UBIFS error (pid 327): ubifs_read_node: bad node type (5 but expected 0)

UBIFS error (pid 327): ubifs_read_node: bad node at LEB 15:27008

UBIFS error (pid 327): ubifs_iget: failed to read inode 92, error -22

UBIFS error (pid 327): ubifs_lookup: dead directory entry 'prog3', error -22

UBIFS error (pid 327): ubifs_check_node: bad magic 0x10183165, expected 0x6101831

UBIFS error (pid 327): ubifs_check_node: bad node at LEB 15:17760

UBIFS error (pid 327): ubifs_read_node: expected node type 0

UBIFS error (pid 327): ubifs_iget: failed to read inode 89, error -117

UBIFS error (pid 327): ubifs_lookup: dead directory entry 'CALIBRATION', error -117

UBI: scrubbed PEB 2107 (LEB 0:15), data moved to PEB 143

spidev spi0.5: Warning: SPI CPHA not set: Slave Select not under software control!

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

spidev spi0.5: Warning: SPI CPHA not set: Slave Select not under software control!

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

spidev spi0.5: Warning: SPI CPHA not set: Slave Select not under software control!

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

UBIFS error (pid 302): make_reservation: cannot reserve 160 bytes in jhead 1, error -30

UBIFS error (pid 302): ubifs_write_inode: can't write inode 87, error -30

UBIFS error (pid 302): make_reservation: cannot reserve 160 bytes in jhead 1, error -30

UBIFS error (pid 302): ubifs_write_inode: can't write inode 88, error -30

UBIFS error (pid 302): make_reservation: cannot reserve 160 bytes in jhead 1, error -30

UBIFS error (pid 302): ubifs_write_inode: can't write inode 84, error -30

UBIFS error (pid 302): make_reservation: cannot reserve 160 bytes in jhead 1, error -30

UBIFS error (pid 302): ubifs_write_inode: can't write inode 89, error -30

 

Follow-ups

 

--- Aaron Wu                                                 2011-10-25 01:21:00

UBIFS is tested for 2010R1 release, please check the attached logs, one for

bf537 and another for 548.      

 

--- Chris Page                                               2011-10-25 11:54:59

I can see and verify that it has been tested. It does not mean that there is not

a bug. Here is the start-up of my the previous 2.6.28.10-ADI-2009R1-svn7850. It

has NO ubi errors on the same board. To reproduce the bug on version 2010R1-RC5

I clean and format the partition. After around two resets the ubi is corrupted.

Comparing the initial output of the two the only difference is that the max/mean

erase counter is different.

 

 

Warning: Permanently added '10.137.202.22' (RSA) to the list of known hosts.

root@10.137.202.22's password:

                           _____________________________________

        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 (2011-08-17 19:53:53 EDT) built-in shell (msh)

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

 

root:~> dmesg

Linux version 2.6.28.10-ADI-2009R1-svn7850 (cmd@chris-ubuntu) (gcc version

4.3.5 (ADI-2010R1-RC4) ) #2469 Fri Sep 9 09:57:48 EDT 2011

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0015ce30

  rodata    = 0x0015ce30-0x001bcf5c

  bss       = 0x001bd000-0x001d05cc

  data      = 0x001d05cc-0x001e4000

    stack   = 0x001e2000-0x001e4000

  init      = 0x001e4000-0x01658000

  available = 0x01658000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 3

Reset caused by Software reset

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

Compiled for ADSP-BF537 Rev 0.3

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

Processor Speed: 500 MHz core clock and 100 MHz System Clock

boot memmap: 0000000001658000 - 0000000003eff000 (usable)

On node 0 totalpages: 16127

free_area_init_node: node 0, pgdat 001df508, node_mem_map 0165a000

  DMA zone: 126 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 16001 pages, LIFO batch:3

  Normal zone: 0 pages used for memmap

  Movable zone: 0 pages used for memmap

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart0,115200 console= console=ttyBF0,115200

Configuring Blackfin Priority Driven Interrupts

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

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

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

Kernel managed physical pages: 16127

Memory available: 41060k/65536k RAM, (20944k init code, 1391k kernel code, 541k

data, 1024k dma, 572k reserved)

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)

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

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

Switched to high resolution mode on CPU 0

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

Setting up Blackfin MMR debugfs

msgmni has been set to 80

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

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

Done.

rs485 /dev entries driver, this is version 1

Serial: Blackfin serial driver

bfin-uart.1: 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=19)@sclk=100MHz)

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

NAND device: Manufacturer ID: 0x20, Chip ID: 0xdc (ST Micro NAND 512MiB 3,3V

8-bit)

Scanning device for bad blocks

Bad eraseblock 1016 at 0x07f00000

RedBoot partition parsing not available

Creating 2 MTD partitions on "gen_nand":

0x01000000-0x02000000 : "linux kernel and file system(nand)"

0x03000000-0x20000000 : "Data(nand)"

m25p80 spi0.1: m25pe80 (1024 Kbytes)

Creating 1 MTD partitions on "m25p80":

0x00000000-0x00100000 : "u-boot(spi)"

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

regs_base@ffc00500, dma channel@7

ads7846 spi0.0: touchscreen, irq 57

input: ADS784x Touchscreen as /devices/platform/bfin-spi.0/spi0.0/input/input0

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

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

Advanced Linux Sound Architecture Driver Version 1.0.18rc3.

ALSA device list:

  #0: ADI ad1836 at PF0 SPORT3 rx/tx dma /4 err irq 45

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2011-10-25 11:36:36 UTC

(1319542596)

Freeing unused kernel memory: 20944k freed

Warning: unable to open an initial console.

UBI: attaching mtd1 to ubi0

UBI: physical eraseblock size:   131072 bytes (128 KiB)

UBI: logical eraseblock size:    129024 bytes

UBI: smallest flash I/O unit:    2048

UBI: sub-page size:              512

UBI: VID header offset:          512 (aligned 512)

UBI: data offset:                2048

UBI: attached mtd1 to ubi0

UBI: MTD device name:            "Data(nand)"

UBI: MTD device size:            464 MiB

UBI: number of good PEBs:        3711

UBI: number of bad PEBs:         1

UBI: max. allowed volumes:       128

UBI: wear-leveling threshold:    4096

UBI: number of internal volumes: 1

UBI: number of user volumes:     1

UBI: available PEBs:             0

UBI: total number of reserved PEBs: 3711

UBI: number of PEBs reserved for bad PEB handling: 37

UBI: max/mean erase counter: 3/0

UBI: background thread "ubi_bgt0d" started, PID 236

UBIFS: recovery needed

UBIFS: recovery completed

UBIFS: mounted UBI device 0, volume 0, name "data"

UBIFS: file system size:   471711744 bytes (460656 KiB, 449 MiB, 3656 LEBs)

UBIFS: journal size:       23611392 bytes (23058 KiB, 22 MiB, 183 LEBs)

UBIFS: media format:       4 (latest is 4)

UBIFS: default compressor: LZO

UBIFS: reserved for root:  5182151 bytes (5060 KiB)

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

root:~>

root:~>

root:~> ls /data/

CALIBRATION  static       NETMASK      serial-uart  TFTversion   usr        

tft

root:~> echo hello > /data/hello

root:~> cat /data/hello

hello

root:~> reboot

Connection to 10.137.202.22 closed by remote host.

Connection to 10.137.202.22 closed.

cmd@chris-ubuntu:~$ ssh -lroot 10.137.202.22

Warning: Permanently added '10.137.202.22' (RSA) to the list of known hosts.

root@10.137.202.22's password:

                           _____________________________________

        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 (2011-08-17 19:53:53 EDT) built-in shell (msh)

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

 

root:~> dmesg

Linux version 2.6.28.10-ADI-2009R1-svn7850 (cmd@chris-ubuntu) (gcc version

4.3.5 (ADI-2010R1-RC4) ) #2469 Fri Sep 9 09:57:48 EDT 2011

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0015ce30

  rodata    = 0x0015ce30-0x001bcf5c

  bss       = 0x001bd000-0x001d05cc

  data      = 0x001d05cc-0x001e4000

    stack   = 0x001e2000-0x001e4000

  init      = 0x001e4000-0x01658000

  available = 0x01658000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 3

Reset caused by Software reset

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

Compiled for ADSP-BF537 Rev 0.3

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

Processor Speed: 500 MHz core clock and 100 MHz System Clock

boot memmap: 0000000001658000 - 0000000003eff000 (usable)

On node 0 totalpages: 16127

free_area_init_node: node 0, pgdat 001df508, node_mem_map 0165a000

  DMA zone: 126 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 16001 pages, LIFO batch:3

  Normal zone: 0 pages used for memmap

  Movable zone: 0 pages used for memmap

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart0,115200 console= console=ttyBF0,115200

Configuring Blackfin Priority Driven Interrupts

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

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

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

Kernel managed physical pages: 16127

Memory available: 41060k/65536k RAM, (20944k init code, 1391k kernel code, 541k

data, 1024k dma, 572k reserved)

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)

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

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

Switched to high resolution mode on CPU 0

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

Setting up Blackfin MMR debugfs

msgmni has been set to 80

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

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

Done.

rs485 /dev entries driver, this is version 1

Serial: Blackfin serial driver

bfin-uart.1: 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=19)@sclk=100MHz)

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

NAND device: Manufacturer ID: 0x20, Chip ID: 0xdc (ST Micro NAND 512MiB 3,3V

8-bit)

Scanning device for bad blocks

Bad eraseblock 1016 at 0x07f00000

RedBoot partition parsing not available

Creating 2 MTD partitions on "gen_nand":

0x01000000-0x02000000 : "linux kernel and file system(nand)"

0x03000000-0x20000000 : "Data(nand)"

m25p80 spi0.1: m25pe80 (1024 Kbytes)

Creating 1 MTD partitions on "m25p80":

0x00000000-0x00100000 : "u-boot(spi)"

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

regs_base@ffc00500, dma channel@7

ads7846 spi0.0: touchscreen, irq 57

input: ADS784x Touchscreen as /devices/platform/bfin-spi.0/spi0.0/input/input0

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

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

Advanced Linux Sound Architecture Driver Version 1.0.18rc3.

ALSA device list:

  #0: ADI ad1836 at PF0 SPORT3 rx/tx dma /4 err irq 45

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2011-10-25 11:37:49 UTC

(1319542669)

Freeing unused kernel memory: 20944k freed

Warning: unable to open an initial console.

UBI: attaching mtd1 to ubi0

UBI: physical eraseblock size:   131072 bytes (128 KiB)

UBI: logical eraseblock size:    129024 bytes

UBI: smallest flash I/O unit:    2048

UBI: sub-page size:              512

UBI: VID header offset:          512 (aligned 512)

UBI: data offset:                2048

UBI: attached mtd1 to ubi0

UBI: MTD device name:            "Data(nand)"

UBI: MTD device size:            464 MiB

UBI: number of good PEBs:        3711

UBI: number of bad PEBs:         1

UBI: max. allowed volumes:       128

UBI: wear-leveling threshold:    4096

UBI: number of internal volumes: 1

UBI: number of user volumes:     1

UBI: available PEBs:             0

UBI: total number of reserved PEBs: 3711

UBI: number of PEBs reserved for bad PEB handling: 37

UBI: max/mean erase counter: 3/0

UBI: background thread "ubi_bgt0d" started, PID 236

UBIFS: recovery needed

UBIFS: recovery completed

UBIFS: mounted UBI device 0, volume 0, name "data"

UBIFS: file system size:   471711744 bytes (460656 KiB, 449 MiB, 3656 LEBs)

UBIFS: journal size:       23611392 bytes (23058 KiB, 22 MiB, 183 LEBs)

UBIFS: media format:       4 (latest is 4)

UBIFS: default compressor: LZO

UBIFS: reserved for root:  5182151 bytes (5060 KiB)

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

root:~> dmesg

Linux version 2.6.28.10-ADI-2009R1-svn7850 (cmd@chris-ubuntu) (gcc version

4.3.5 (ADI-2010R1-RC4) ) #2469 Fri Sep 9 09:57:48 EDT 2011

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0015ce30

  rodata    = 0x0015ce30-0x001bcf5c

  bss       = 0x001bd000-0x001d05cc

  data      = 0x001d05cc-0x001e4000

    stack   = 0x001e2000-0x001e4000

  init      = 0x001e4000-0x01658000

  available = 0x01658000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 3

Reset caused by Software reset

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

Compiled for ADSP-BF537 Rev 0.3

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

Processor Speed: 500 MHz core clock and 100 MHz System Clock

boot memmap: 0000000001658000 - 0000000003eff000 (usable)

On node 0 totalpages: 16127

free_area_init_node: node 0, pgdat 001df508, node_mem_map 0165a000

  DMA zone: 126 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 16001 pages, LIFO batch:3

  Normal zone: 0 pages used for memmap

  Movable zone: 0 pages used for memmap

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart0,115200 console= console=ttyBF0,115200

Configuring Blackfin Priority Driven Interrupts

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

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

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

Kernel managed physical pages: 16127

Memory available: 41060k/65536k RAM, (20944k init code, 1391k kernel code, 541k

data, 1024k dma, 572k reserved)

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)

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

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

Switched to high resolution mode on CPU 0

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

Setting up Blackfin MMR debugfs

msgmni has been set to 80

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

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

Done.

rs485 /dev entries driver, this is version 1

Serial: Blackfin serial driver

bfin-uart.1: 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=19)@sclk=100MHz)

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

NAND device: Manufacturer ID: 0x20, Chip ID: 0xdc (ST Micro NAND 512MiB 3,3V

8-bit)

Scanning device for bad blocks

Bad eraseblock 1016 at 0x07f00000

RedBoot partition parsing not available

Creating 2 MTD partitions on "gen_nand":

0x01000000-0x02000000 : "linux kernel and file system(nand)"

0x03000000-0x20000000 : "Data(nand)"

m25p80 spi0.1: m25pe80 (1024 Kbytes)

Creating 1 MTD partitions on "m25p80":

0x00000000-0x00100000 : "u-boot(spi)"

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

regs_base@ffc00500, dma channel@7

ads7846 spi0.0: touchscreen, irq 57

input: ADS784x Touchscreen as /devices/platform/bfin-spi.0/spi0.0/input/input0

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

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

Advanced Linux Sound Architecture Driver Version 1.0.18rc3.

ALSA device list:

  #0: ADI ad1836 at PF0 SPORT3 rx/tx dma /4 err irq 45

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2011-10-25 11:37:49 UTC

(1319542669)

Freeing unused kernel memory: 20944k freed

Warning: unable to open an initial console.

UBI: attaching mtd1 to ubi0

UBI: physical eraseblock size:   131072 bytes (128 KiB)

UBI: logical eraseblock size:    129024 bytes

UBI: smallest flash I/O unit:    2048

UBI: sub-page size:              512

UBI: VID header offset:          512 (aligned 512)

UBI: data offset:                2048

UBI: attached mtd1 to ubi0

UBI: MTD device name:            "Data(nand)"

UBI: MTD device size:            464 MiB

UBI: number of good PEBs:        3711

UBI: number of bad PEBs:         1

UBI: max. allowed volumes:       128

UBI: wear-leveling threshold:    4096

UBI: number of internal volumes: 1

UBI: number of user volumes:     1

UBI: available PEBs:             0

UBI: total number of reserved PEBs: 3711

UBI: number of PEBs reserved for bad PEB handling: 37

UBI: max/mean erase counter: 3/0

UBI: background thread "ubi_bgt0d" started, PID 236

UBIFS: recovery needed

UBIFS: recovery completed

UBIFS: mounted UBI device 0, volume 0, name "data"

UBIFS: file system size:   471711744 bytes (460656 KiB, 449 MiB, 3656 LEBs)

UBIFS: journal size:       23611392 bytes (23058 KiB, 22 MiB, 183 LEBs)

UBIFS: media format:       4 (latest is 4)

UBIFS: default compressor: LZO

UBIFS: reserved for root:  5182151 bytes (5060 KiB)

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

 

--- Chris Page                                               2011-10-25 15:29:05

After further testing there seems to be an issue with the ubi/nand driver and

large nands. When I use the later kernel with a smaller nand device it seemed to

work fine. I went from using a NAND04GW (4Gbit) which gave me errors to a

smaller NAND512 (512Mbit).

 

The driver does not appear to handle large partitions. When I use a 400M BYTE

partition and move large files (10 M BYTES) back and forth from the nand I get

these errors and the partition becomes read only. I Noticed you were using a

small nand with a small partition (around 2 M Bytes) and tested using small

files.

 

Have you tested large NAND memory with large files? The file system should be

able to handle this.

 

 

--- Aaron Wu                                                 2011-10-25 23:12:40

Close this bug since it's not a issue happens on the ADI platform and release.

 

For customer board support please go to the new engineerzone support community.

For New Nand of diffrent pagesize, erase block size, device size etc you may

need to port the NAND MTD driver first and make sure it's working fine.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

ubi_548_2010R1.txt    text/plain    10057    Aaron Wu

nand_test_log    text/plain    559819    Aaron Wu

bugreport.tar.gz    application/x-gzip    20220    Chris Page

Outcomes