Mount UBIFS problem in Nand Flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mount UBIFS problem in Nand Flash

3,789 Views
PramodKumar
Contributor IV

Hi

We are facing a problem of mount root file system .Able to boot kernel in nand flash but it cannot mount ubifs.

Output is

HTLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFC

PowerPrep start initialize power...

Battery Voltage = 1.72VHTLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFC

PowerPrep start initialize power...

Battery Voltage = 1.97V

No battery or bad battery                                       detected!!!.Disabling battery                                   voltage measure1

EMI_CTRL 0x1C084040

FRAC 0x92926192

init_ddr_mt46v32m16_133Mhz

power 0x00820710

Frac 0x92926192

start change cpu freq

hbus 0x00000003

cpu 0x00010001

LLLLLLLFCLJUncompressing Linux... done, booting the kernel.

Linux version 2.6.35.3-744-g27fdf7b (lucid@ubuntu) (gcc version 4.4.4 (4.4.4_09.06.2010) ) #1 PREEMPT Sat May 9 02:31:13 PDT 2015

CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

CPU: VIVT data cache, VIVT instruction cache

Machine: Freescale MX23EVK board

Memory policy: ECC disabled, Data cache writeback

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256

Kernel command line: -e noinitrd console=ttyAM0,115200 ssp1=spi1 ubi.mtd=1 root=ubi0:rootfs0 rootfstype=ubifs rw gpmi

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: 64MB = 64MB total

Memory: 56008k/56008k available, 9528k reserved, 0K highmem

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    DMA     : 0xfde00000 - 0xffe00000   (  32 MB)

    vmalloc : 0xc4800000 - 0xf0000000   ( 696 MB)

    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)

    modules : 0xbf000000 - 0xc0000000   (  16 MB)

      .init : 0xc0008000 - 0xc002d000   ( 148 kB)

      .text : 0xc002d000 - 0xc0459000   (4272 kB)

      .data : 0xc0472000 - 0xc04a7c40   ( 216 kB)

SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

Hierarchical RCU implementation.

        RCU-based detection of stalled CPUs is disabled.

        Verbose stalled-CPUs detection is disabled.

NR_IRQS:224

Console: colour dummy device 80x30

console [ttyAM0] enabled

Calibrating delay loop... 226.91 BogoMIPS (lpj=1134592)

pid_max: default: 32768 minimum: 301

Security Framework initialized

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

regulator: core version 0.5

NET: Registered protocol family 16

regulator: vddd: 800 <--> 1575 mV at 1550 mV fast normal

regulator: vdddbo: 800 <--> 1575 mV fast normal

regulator: vdda: 1500 <--> 2275 mV at 1750 mV fast normal

regulator: vddio: 2800 <--> 3575 mV at 3300 mV fast normal

regulator: overall_current: fast normal

regulator: mxs-duart-1: fast normal

regulator: mxs-bl-1: fast normal

regulator: mxs-i2c-1: fast normal

regulator: mmc_ssp-1: fast normal

regulator: mmc_ssp-2: fast normal

regulator: charger-1: fast normal

regulator: power-test-1: fast normal

regulator: cpufreq-1: fast normal

i.MX IRAM pool: 28 KB@0xc4808000

usb: DR gadget (utmi) registered

bio: create slab <bio-0> at 0

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

Advanced Linux Sound Architecture Driver Version 1.0.23.

Switching to clocksource mxs clock source

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

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

Trying to unpack rootfs image as initramfs...

rootfs image is not initramfs (junk in compressed archive); looks like an initrd

Freeing initrd memory: 4096K

Bus freq driver module loaded

mxs_cpu_init: cpufreq init finished

msgmni has been set to 117

alg: No test for stdrng (krng)

cryptodev: driver loaded.

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

Console: switching to colour frame buffer device 60x34

mxs-duart.0: ttyAM0 at MMIO 0x80070000 (irq = 0) is a DebugUART

mxs-auart.1: ttySP1 at MMIO 0x8006c000 (irq = 24) is a mxs-auart.1

Found APPUART 3.0.0

brd: module loaded

loop: module loaded

i.MX GPMI NFC

NFC: Version 0, 4-chip GPMI and BCH

Boot ROM: Version 0, Single/dual-chip boot area, no block mark swapping

Scanning for NAND Flash chips...

-----------------------------

NAND Flash Device Information

-----------------------------

Manufacturer      : Micron (0x2c)

Device Code       : 0x38

Cell Technology   : SLC

Chip Size         : 1 GiB

Pages per Block   : 128

Page Geometry     : 4096+224

ECC Strength      : 16 bits

ECC Size          : 512 B

Data Setup Time   : 25 ns

Data Hold Time    : 15 ns

Address Setup Time: 10 ns

GPMI Sample Delay : 6 ns

tREA              : Unknown

tRLOH             : Unknown

tRHOH             : Unknown

Description       : MT29F8G08ABABA,MT29F8G08ABCBB

------------

NFC Geometry

------------

ECC Algorithm          : BCH

ECC Strength           : 16

Page Size in Bytes     : 4320

Metadata Size in Bytes : 10

ECC Chunk Size in Bytes: 512

ECC Chunk Count        : 8

Payload Size in Bytes  : 4096

Auxiliary Size in Bytes: 20

Auxiliary Status Offset: 12

Block Mark Byte Offset : 0

Block Mark Bit Offset  : 0

NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron NAND 1GiB 2,4V 8-bit)

-----------------

Boot ROM Geometry

-----------------

Boot Area Count            : 1

Boot Area Size in Bytes    : 41943040 (0x2800000)

Stride Size in Pages       : 64

Search Area Stride Exponent: 2

Scanning for an NCB fingerprint...

  Looking for a fingerprint in page 0x0

  Found a fingerprint

Scanning device for bad blocks

Boot area protection is enabled.

Creating 2 MTD partitions on "gpmi-nfc-main":

0x000000000000-0x000002800000 : "gpmi-nfc-0-boot"

0x000002800000-0x000040000000 : "gpmi-nfc-general-use"

UBI: attaching mtd1 to ubi0

UBI: physical eraseblock size:   524288 bytes (512 KiB)

UBI: logical eraseblock size:    516096 bytes

UBI: smallest flash I/O unit:    4096

UBI: VID header offset:          4096 (aligned 4096)

UBI: data offset:                8192

UBI: attached mtd1 to ubi0

UBI: MTD device name:            "gpmi-nfc-general-use"

UBI: MTD device size:            984 MiB

UBI: number of good PEBs:        1968

UBI: number of bad PEBs:         0

UBI: max. allowed volumes:       128

UBI: wear-leveling threshold:    4096

UBI: number of internal volumes: 1

UBI: number of user volumes:     2

UBI: available PEBs:             903

UBI: total number of reserved PEBs: 1065

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

UBI: max/mean erase counter: 4/1

UBI: image sequence number: 0

UBI: background thread "ubi_bgt0d" started, PID 441

ubiblka: unknown partition table

ubiblkb: unknown partition table

mxs-spi mxs-spi.0: Max possible speed 96000 = 96000000/2 kHz

mxs-spi mxs-spi.0: at 0x80010000 mapped to 0xF0010000, irq=14, bus 1, DMA ver_major 3

enc28j60 spi1.0: enc28j60 Ethernet driver 1.01 loaded

enc28j60 spi1.0: enc28j60 chip not found

enc28j60: probe of spi1.0 failed with error -5

usbmon: debugfs is not available

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

fsl-ehci fsl-ehci: Freescale On-Chip EHCI Host Controller

fsl-ehci fsl-ehci: new USB bus registered, assigned bus number 1

fsl-ehci fsl-ehci: irq 11, io base 0x80080000

fsl-ehci fsl-ehci: USB 2.0 started, EHCI 1.00

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

ARC USBOTG Device Controller driver (1 August 2005)

udc: request mem region for fsl-usb2-udc failed

fsl-usb2-udc: probe of fsl-usb2-udc failed with error -16

mice: PS/2 mouse device common for all mice

input: mxs-kbd as /class/input/input0

input: MXS touchscreen as /class/input/input1

MXS RTC driver v1.0 hardware v2.0.0

mxs-rtc mxs-rtc.0: rtc core: registered mxs-rtc as rtc0

i2c /dev entries driver

IR NEC protocol handler initialized

IR RC5(x) protocol handler initialized

IR RC6 protocol handler initialized

IR JVC protocol handler initialized

IR Sony protocol handler initialized

Linux video capture interface: v2.00

mxs-pxp mxs-pxp.0: initialized

WARNING : No battery connected !

Aborting power driver initialization

mxs-battery: probe of mxs-battery.0 failed with error 1

add mma8450 i2c driver

add mma8451 i2c driver

mxs watchdog: initialized, heartbeat 19 sec

mxs-mmc: MXS SSP Controller MMC Interface driver

dcp dcp.0: DCP crypto enabled.!

mxs-adc-audio mxs-adc-audio.0: MXS ADC/DAC Audio Codec

No device for DAI mxs adc/dac

No device for DAI mxs adc/dac

asoc: mxs adc/dac <-> mxs adc/dac mapping ok

ALSA device list:

  #0: MXS EVK (mxs adc/dac)

TCP cubic registered

NET: Registered protocol family 10

IPv6 over IPv4 tunneling driver

NET: Registered protocol family 17

mxs-rtc mxs-rtc.0: setting system clock to 1970-01-01 02:48:33 UTC (10113)

UBIFS error (pid 1): ubifs_read_node: bad node type (255 but expected 6)

UBIFS error (pid 1): ubifs_read_node: bad node at LEB 0:0

List of all partitions:

1f00           40960 mtdblock0 (driver?)

1f01         1007616 mtdblock1 (driver?)

fe00          262584 ubiblka (driver?)

fe08          262584 ubiblkb (driver?)

No filesystem could mount root, tried:  ubifs

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

Please provide Solution.

Thanks

Pramod Kumar

0 Kudos
1 Reply

1,985 Views
igorpadykov
NXP Employee
NXP Employee

Hi Pramod

one can try first to erase NAND then program rootfs as

describes attached Linux Guide p.19-20 "Root file system on NAND flash"

or use MFG Tools to perform whole operation:

I.MX23_MANUFACTURING_TOOL : Tool and documentation for downloading

i.MX233 image during manufacturing..

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos