i.MX233 EVK- Unable to mount rootfs on NAND Flash:

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

i.MX233 EVK- Unable to mount rootfs on NAND Flash:

Jump to solution
1,682 Views
GopiNagaBharath
Contributor IV

Hello All,

 

I am trying to boot the imx23evb from NAND Flash.

 

I have take the LTIB distribution and compiled the 2.6.31 kernel.

The command line parameters that are configured are

 

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

 

 

After this I have created the boot stream images (imx_kernel.sb) and the rootfs.

 

Then I am burning these two software components using the MFG tool to the NAND flash.

 

Once done I am booting the system after selecting the NANDFLash configuration from the DIP switches.

 

The kernel is not able to mount the rootfs on the NAND flash.

 

Attached is the console output. Please help me resolve this.

 

Thanks

Gopi

 

Console Output ############################

 

Feb 16 201322:27:27

EVK board

EMI_CTRL 0x1C084040

FRAC 0x92926192

init_ddr_mt46v32m16_133Mhz

power 0x00820710

Frac 0x92926192

start change cpu freq

hbus 0x00000003

cpu 0x00010001

Uncompressing Linux................................................................................................................................................... done, booting the kernel.

[    0.000000] Linux version 2.6.31-626-g602af1c-updater (developer@story_teller_vm-desktop) (gcc version 4.1.2) #15 PREEMPT Sat Feb 16 22:14:47 PST 2013

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

[    0.000000] CPU: VIVT data cache, VIVT instruction cache

[    0.000000] Machine: Freescale MX23EVK board

[    0.000000] Memory policy: ECC disabled, Data cache writeback

[    0.000000] INITRD: 0x40400000+0x00400000 overlaps in-use memory region - disabling initrd

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512

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

[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)

[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

[    0.000000] Memory: 128MB = 128MB total

[    0.000000] Memory: 124936KB available (4164K code, 428K data, 128K init, 0Khighmem)

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

[    0.000000] NR_IRQS:224

[    0.000000] Console: colour dummy device 80x30

[    0.000000] console [ttyAM0] enabled

[    0.010000] Calibrating delay loop... 231.83 BogoMIPS (lpj=1159168)

[    0.240000] Mount-cache hash table entries: 512

[    0.240000] CPU: Testing write buffer coherency: ok

[    0.250000] regulator: core version 0.5

[    0.260000] NET: Registered protocol family 16

[    0.270000] regulator: vddd: 800 <--> 1575 mV fast normal

[    0.280000] regulator: vddd_bo: 800 <--> 1575 mV fast normal

[    0.280000] regulator: vdda: 1500 <--> 2275 mV fast normal

[    0.290000] regulator: vddio: 2800 <--> 3575 mV fast normal

[    0.290000] regulator: overall_current: 0 <--> 2147483 mA fast normal

[    0.300000] regulator: mxs-duart-1: 0 <--> 2147483 mA fast normal

[    0.300000] regulator: mxs-bl-1: 0 <--> 2147483 mA fast normal

[    0.310000] regulator: mxs-i2c-1: 0 <--> 2147483 mA fast normal

[    0.310000] regulator: mmc_ssp-1: 0 <--> 2147483 mA fast normal

[    0.320000] regulator: mmc_ssp-2: 0 <--> 2147483 mA fast normal

[    0.320000] regulator: charger-1: 0 <--> 2147483 mA fast normal

[    0.330000] regulator: power-test-1: 0 <--> 2147483 mA fast normal

[    0.330000] regulator: cpufreq-1: 0 <--> 2147483 mA fast normal

[    0.340000] i.MX IRAM pool: 28 KB@0xc8808000

[    0.380000] bio: create slab <bio-0> at 0

[    0.390000] usbcore: registered new interface driver usbfs

[    0.400000] usbcore: registered new interface driver hub

[    0.400000] usbcore: registered new device driver usb

[    0.420000] NET: Registered protocol family 2

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

[    0.430000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)

[    0.440000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)

[    0.450000] TCP: Hash tables configured (established 4096 bind 4096)

[    0.450000] TCP reno registered

[    0.460000] NET: Registered protocol family 1

[    0.460000] Bus freq driver module loaded

[    0.470000] usb: DR gadget (utmi) registered

[    0.480000] mxs_cpu_init: cpufreq init finished

[    0.490000] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).

[    0.500000] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.

[    0.510000] msgmni has been set to 244

[    0.520000] alg: No test for stdrng (krng)

[    0.520000] io scheduler noop registered

[    0.530000] io scheduler anticipatory registered

[    0.530000] io scheduler deadline registered

[    0.540000] io scheduler cfq registered (default)

[    1.930000] Console: switching to colour frame buffer device 60x34

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

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

[    2.240000] Found APPUART 3.0.0

[    2.270000] brd: module loaded

[    2.300000] i.MX GPMI NFC

[    2.310000] NFC: Version 0, 4-chip GPMI and BCH

[    2.310000] Boot ROM: Version 0, Single/dual-chip boot area, no block mark sw apping

[    2.320000] Scanning for NAND Flash chips...

[    2.320000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xd7 (Samsung NAND 4 GiB 3,3V 8-bit)

[    2.380000] -----------------------------

[    2.380000] NAND Flash Device Information

[    2.380000] -----------------------------

[    2.390000] Manufacturer      : Samsung (0xec)

[    2.390000] Device Code       : 0xd7

[    2.390000] Cell Technology : MLC

[    2.400000] Chip Size         : 4 GiB

[    2.400000] Pages per Block : 128

[    2.410000] Page Geometry     : 4096+218

[    2.410000] ECC Strength      : 8 bits

[    2.410000] ECC Size          : 512 B

[    2.420000] Data Setup Time : 20 ns

[    2.420000] Data Hold Time    : 10 ns

[    2.420000] Address Setup Time: 25 ns

[    2.430000] GPMI Sample Delay : 6 ns

[    2.430000] tREA : Unknown

[    2.430000] tRLOH             : Unknown

[    2.440000] tRHOH : Unknown

[    2.440000] Description       : K9LBG08U0D

[    2.450000] -----------------

[    2.450000] Physical Geometry

[    2.450000] -----------------

[    2.450000] Chip Count             : 1

[    2.460000] Page Data Size in Bytes: 4096 (0x1000)

[    2.460000] Page OOB Size in Bytes : 218

[    2.470000] Block Size in Bytes    : 524288 (0x80000)

[    2.470000] Block Size in Pages    : 128 (0x80)

[    2.480000] Chip Size in Bytes     : 4294967296 (0x100000000)

[    2.480000] Chip Size in Pages     : 1048576 (0x100000)

[    2.490000] Chip Size in Blocks    : 8192 (0x2000)

[    2.490000] Medium Size in Bytes   : 4294967296 (0x100000000)

[    2.500000] ------------

[    2.500000] NFC Geometry

[    2.500000] ------------

[    2.510000] ECC Algorithm          : BCH

[    2.510000] ECC Strength           : 16

[    2.510000] Page Size in Bytes     : 4314

[    2.520000] Metadata Size in Bytes : 10

[    2.520000] ECC Chunk Size in Bytes: 512

[    2.520000] ECC Chunk Count : 8

[    2.530000] Payload Size in Bytes : 4096

[    2.530000] Auxiliary Size in Bytes: 20

[    2.540000] Auxiliary Status Offset: 12

[    2.540000] Block Mark Byte Offset : 0

[    2.540000] Block Mark Bit Offset : 0

[    2.550000] -----------------

[    2.550000] Boot ROM Geometry

[    2.550000] -----------------

[    2.560000] Boot Area Count            : 1

[    2.560000] Boot Area Size in Bytes    : 41943040 (0x2800000)

[    2.570000] Stride Size in Pages       : 64

[    2.570000] Search Area Stride Exponent: 2

[    2.570000] Scanning for an NCB fingerprint...

[    2.580000]   Looking for a fingerprint in page 0x0

[    2.580000]   Found a fingerprint

[    2.590000] Scanning device for bad blocks

[    2.640000] Bad eraseblock 415 at 0x00000cf80000

[    2.990000] Bad eraseblock 3178 at 0x000063500000

[    3.150000] Bad eraseblock 4359 at 0x000088380000

[    3.210000] Bad eraseblock 4793 at 0x000095c80000

[    3.590000] Bad eraseblock 7747 at 0x0000f2180000

[    3.620000] Bad eraseblock 8017 at 0x0000fa880000

[    3.650000] Boot area protection is enabled.

[    3.660000] Creating 2 MTD partitions on "gpmi-nfc-main":

[    3.660000] 0x000000000000-0x000002800000 : "gpmi-nfc-0-boot"

[    3.670000] 0x000002800000-0x000100000000 : "gpmi-nfc-general-use"

[    3.680000] cmdlinepart partition parsing not available

[    3.680000] Creating 2 MTD partitions on "gpmi-nfc-general-use":

[    3.690000] 0x000000000000-0x000080000000 : "gpmi-nfc-ubi-0"

[    3.700000] 0x000080000000-0x0000fd800000 : "gpmi-nfc-ubi-1"

[    3.710000] UBI: attaching mtd1 to ubi0

[    3.710000] UBI: physical eraseblock size:   524288 bytes (512 KiB)

[    3.720000] UBI: logical eraseblock size:    516096 bytes

[    3.730000] UBI: smallest flash I/O unit:    4096

[    3.730000] UBI: VID header offset:          4096 (aligned 4096)

[    3.740000] UBI: data offset: 8192

[   18.840000] UBI: attached mtd1 to ubi0

[   18.840000] UBI: MTD device name: "gpmi-nfc-general-use"

[   18.850000] UBI: MTD device size:            4056 MiB

[   18.850000] UBI: number of good PEBs:        8106

[   18.860000] UBI: number of bad PEBs:         6

[   18.860000] UBI: max. allowed volumes:       128

[   18.870000] UBI: wear-leveling threshold:    128

[   18.870000] UBI: number of internal volumes: 1

[   18.880000] UBI: number of user volumes:     2

[   18.880000] UBI: available PEBs:             0

[   18.880000] UBI: total number of reserved PEBs: 8106

[   18.890000] UBI: number of PEBs reserved for bad PEB handling: 162

[   18.900000] UBI: max/mean erase counter: 3/1

[   18.900000] UBI: image sequence number: 0

[   18.900000] UBI: background thread "ubi_bgt0d" started, PID 355

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

[   18.920000] mxs-spi mxs-spi.0: at 0x80010000 mapped to 0xF0010000, irq=14, bus 1, DMA

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

[   18.950000] fsl-ehci fsl-ehci: Freescale On-Chip EHCI Host Controller

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

[   19.000000] fsl-ehci fsl-ehci: irq 11, io base 0x80080000

[   19.020000] fsl-ehci fsl-ehci: USB 2.0 started, EHCI 1.00

[   19.020000] usb usb1: configuration #1 chosen from 1 choice

[   19.030000] hub 1-0:1.0: USB hub found

[   19.030000] hub 1-0:1.0: 1 port detected

[   19.040000] MXS RTC driver v1.0 hardware v2.0.0

[   19.040000] mxs-rtc mxs-rtc.0: rtc core: registered mxs-rtc as rtc0

[   19.050000] Linux video capture interface: v2.00

[   19.060000] sdhci: Secure Digital Host Controller Interface driver

[   19.060000] sdhci: Copyright(c) Pierre Ossman

[   19.070000] mxs-mmc: MXS SSP Controller MMC Interface driver

[   19.070000] Advanced Linux Sound Architecture Driver Version 1.0.20.

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

[   19.090000] No device for DAI mxs adc/dac

[   19.090000] No device for DAI mxs adc/dac

[   19.100000] asoc: mxs adc/dac <-> mxs adc/dac mapping ok

[   19.110000] Failed to add route HP MUX->HPR

[   19.110000] ALSA device list:

[   19.120000]   #0: MXS EVK (mxs adc/dac)

[   19.120000] IPv4 over IPv4 tunneling driver

[   19.130000] GRE over IPv4 tunneling driver

[   19.140000] TCP cubic registered

[   19.140000] NET: Registered protocol family 10

[   19.160000] IPv6 over IPv4 tunneling driver

[   19.170000] NET: Registered protocol family 17

[   19.170000] NET: Registered protocol family 15

[   19.180000] RPC: Registered udp transport module.

[   19.180000] RPC: Registered tcp transport module.

[   19.190000] mxs-rtc mxs-rtc.0: setting system clock to 1970-01-01 00:00:23 UTC (23)

[   19.200000] UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0.rootfs0", error -22

[   19.210000] List of all partitions:

[   19.210000] No filesystem could mount root, tried:  ubifs

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

 

 

 

Original Attachment has been moved to: story_teller-_log.txt.zip

Labels (2)
0 Kudos
1 Solution
627 Views
jimmychan
NXP TechSupport
NXP TechSupport

According to the BSP User guide for NAND booting, the command is like this:

console=ttyAM0,115200 ubi.mtd=1 root=ubi0:rootfs0 rootfstype=ubifs lcd_panel=lms350 ssp2=gpmi

View solution in original post

0 Kudos
1 Reply
628 Views
jimmychan
NXP TechSupport
NXP TechSupport

According to the BSP User guide for NAND booting, the command is like this:

console=ttyAM0,115200 ubi.mtd=1 root=ubi0:rootfs0 rootfstype=ubifs lcd_panel=lms350 ssp2=gpmi

0 Kudos