mounting root file system problem for nand flash : Waiting for root device /dev/mmcblk0p3...

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

mounting root file system problem for nand flash : Waiting for root device /dev/mmcblk0p3...

1,312 Views
PramodKumar
Contributor IV

hello...

We are able to boot kernel in nand in imx233 but it was unable to call root file system path and get the message Waiting for root device /dev/mmcblk0p3...

The step follow to port kernel image and rfs in nand flash was:

flash_eraseall /dev/mtd0

flash_eraseall /dev/mtd1

mkdir -p /mnt/sd1; mount /dev/mmcblk0p3 /mnt/sd1     // in docs its given to mount /dev/mmcblk0p1 but its unable to mount so we mount                                                                                          //       /dev/mmcblk0p3

cd /mnt/sd1/

kobs-ng init imx23_linux.sb

ubiattach /dev/ubi_ctrl -m 1 -d 0

ubimkvol /dev/ubi0 -n 0 -N rootfs0 -s 256MiB

ubimkvol /dev/ubi0 -n 2 -N data -s 256MiB

mkdir -p /mnt/ubi0; mount -t ubifs ubi0_0 /mnt/ubi0

tar -C /mnt/ubi0 –jxvf rootfs.tar.bz2

umount /mnt/ubi0

our  board output is :

HTLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFC

PowerPrep start initialize power...

Battery Voltage = 1.96V

No battery or bad battery                    detected!!!.Disabling battery                    voltage measurements./r/nLLCMay  7 201503:34:36

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 Thu May 7 03:31:58 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 root=/dev/mmcblk0p3 rw rootwait ip=none 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.09 BogoMIPS (lpj=1130496)

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"

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

mxs-mmc mxs-mmc.0: mmc0: MXS SSP MMC DMAIRQ 14 ERRIRQ 15

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 00:14:34 UTC (874)

\00Waiting for root device /dev/mmcblk0p3...

Please provide the some solution:

Regards

Pramod Kumar

0 Kudos
1 Reply

747 Views
Yuri
NXP Employee
NXP Employee

  Please check in the kernel command line is configured correctly for NAND,

as stated in section 5.1.1 (Setting kernel command line) of “i.MX23_Linux_BSP_UserGuide.pdf”.


Root file system located on a NAND flash (UBI volume):

ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs


Have a great day,
Yuri

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

0 Kudos