NAND flash booting problem.

hi all,

i am working on B board,
i have done some changes in the kernel code to create one extra MTD
partition as shown below.

0x00000000-0x00080000 : "X-Loader"
0x00080000-0x00260000 : "U-Boot"
0x00260000-0x00280000 : "U-Boot Env"
0x00280000-0x00680000 : "Kernel"
0x00680000-0x01940000 : "File System"
0x01940000-0x10000000 : "EXTENDED PARTITION"

this image (uImage) is working fine if i boot from SD card.
but not working if i boot from NAND flash.

i got the following errors.
..................................................................
Starting
kernel ...

Uncompressing
Linux.............................................................
Linux version 2.6.28-rc9-omap1 (msrsas@ubuntu) (gcc version 4.2.1
(CodeSourcery2
CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7),
cr=10c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction
cache
Machine: OMAP3 DevKit8000
Board
Memory policy: ECC disabled, Data cache
writeback
OMAP3430 Unknown
revision

SRAM: Mapped pa 0x40200000 to va 0xd7000000 size:
0x100000
Built 1 zonelists in Zone order, mobility grouping on. Total pages:
65024
Kernel command line: console=ttyS2,115200n8 ubi.mtd=0 root=ubi0:rootfs
rootfstyD
Clocking rate (Crystal/DPLL/ARM core): 26.0/266/500
MHz
GPMC revision
5.0
IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96
interrupts
Total of 96 interrupts on 1 active
controller
OMAP34xx GPIO hardware version
2.5
PID hash table entries: 1024 (order: 10, 4096
bytes)
OMAP clockevent source: GPTIMER12 at 32768
Hz
Console: colour dummy device
80x30
Dentry cache hash table entries: 32768 (order: 5, 131072
bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536
bytes)
Memory: 128MB 128MB = 256MB
total
Memory: 255104KB available (4056K code, 360K data, 148K
init)
Calibrating delay loop... 470.56 BogoMIPS
(lpj=1839104)
Mount-cache hash table entries:
512
CPU: Testing write buffer coherency:
ok
net_namespace: 288
bytes
NET: Registered protocol family
16
Found NAND on
CS0
Registering NAND on
CS0
omap3evmdc: Driver registration
complete
OMAP DMA hardware revision
4.0
USB: No board-specific platform config
found
OMAP DSS rev
2.0
OMAP DISPC rev
3.0
OMAP VENC rev
2
OMAP DSI rev
1.0
i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600
kHz
twl4030: PIH (irq 7) chaining IRQs
368..375
twl4030: power (irq 373) chaining IRQs
376..383
twl4030: gpio (irq 368) chaining IRQs
384..401
i2c_omap i2c_omap.2: bus 2 rev3.12 at 400
kHz
i2c_omap i2c_omap.3: bus 3 rev3.12 at 400
kHz
SCSI subsystem
initialized
twl4030_usb twl4030_usb: Initialized TWL4030 USB
module
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, otg (peripheral+host),
debug=0
musb_hdrc: USB OTG mode controller at d80ab000 using DMA, IRQ
92
NET: Registered protocol family
2
IP route cache hash table entries: 2048 (order: 1, 8192
bytes)
TCP established hash table entries: 8192 (order: 4, 65536
bytes)
TCP bind hash table entries: 8192 (order: 3, 32768
bytes)
TCP: Hash tables configured (established 8192 bind
8192)
TCP reno
registered
NET: Registered protocol family
1
NetWinder Floating Point Emulator V0.97 (double
precision)
VFS: Disk quotas
dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat,
Inc.
msgmni has been set to
498
alg: No test for stdrng
(krng)
io scheduler noop
registered
io scheduler anticipatory registered
(default)
io scheduler deadline
registered
io scheduler cfq
registered
Serial: 8250/16550 driver4 ports, IRQ sharing
enabled
serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a
ST16654
serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a
ST16654
serial8250.0: ttyS2 at MMIO 0x49020000 (irq = 74) is a
ST16654
console [ttyS2]
enabled
brd: module
loaded
loop: module
loaded
PPP generic driver version
2.4.2
PPP Deflate Compression module
registered
PPP BSD Compression module
registered
PPP MPPE Compression module
registered
NET: Registered protocol family
24
PPPoL2TP kernel driver,
V1.0
dm9000 Ethernet Driver,
V1.31
eth0: dm9000a at d08c4000,d08c8400 IRQ 185 MAC: 00:11:22:33:44:55
(chip)
Linux video capture interface:
v2.00
tvp514x 2-005d: Registered to v4l2 master
omap34xxcam!!
usbcore: registered new interface driver
uvcvideo
USB Video Class driver
(v0.1.0)
i2c /dev entries
driver
Driver 'sd' needs updating - please use bus_type
methods
omap2-nand driver
initializing
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB
1,8V 16-b)
cmdlinepart partition parsing not
available
Creating 6 MTD partitions on "omap2-
nand":
0x00000000-0x00080000 : "X-
Loader"
0x00080000-0x00260000 : "U-
Boot"
0x00260000-0x00280000 : "U-Boot
Env"
0x00280000-0x00680000 :
"Kernel"
0x00680000-0x01940000 : "File
System"
0x01940000-0x10000000 : "EXTENDED
PARTITION"
UBI: attaching mtd0 to
ubi0
UBI: MTD device 0 is write-protected, attach in read-only
mode
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 error: ubi_read_volume_table: the layout volume was not
found
UBI error: ubi_init: cannot attach
mtd0
UBI error: ubi_init: UBI error: cannot initialize UBI, error
-22
usbmon: debugfs is not
available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
ehci-omap ehci-omap.0: OMAP-EHCI Host
Controller
ehci-omap ehci-omap.0: new USB bus registered, assigned bus number
1
ehci-omap ehci-omap.0: irq 77, io mem
0x48064800
ehci-omap ehci-omap.0: USB 2.0 started, EHCI
1.00
usb usb1: configuration #1 chosen from 1
choice
hub 1-0:1.0: USB hub
found
hub 1-0:1.0: 3 ports
detected
Initializing USB Mass Storage
driver...
usbcore: registered new interface driver usb-
storage
USB Mass Storage support
registered.
input: omap_twl4030keypad as /class/input/
input0
input: gpio-keys as /class/input/
input1
ads7846 spi2.0: touchscreen, irq
187
input: ADS784x Touchscreen as /class/input/
input2
twl4030_rtc twl4030_rtc: rtc core: registered twl4030_rtc as
rtc0
twl4030_rtc twl4030_rtc: Power up reset
detected.
twl4030_rtc twl4030_rtc: Enabling TWL4030-
RTC.
Registered led device:
led1
Registered led device:
led2
Registered led device:
ledB
Registered led device:
led3
usbcore: registered new interface driver
usbhid
usbhid: v2.6:USB HID core
driver
Advanced Linux Sound Architecture Driver Version
1.0.18rc3.
ASoC version
0.13.2
OMAP3 omap3devkit8000 SoC
init
TWL4030 Audio Codec
init
asoc: twl4030 <-> omap-mcbsp-dai-(link_id) mapping
ok
ALSA device
list:
  #0: omap3devkit8000
(twl4030)
TCP cubic
registered
NET: Registered protocol family
17
NET: Registered protocol family
15
RPC: Registered udp transport
module.
RPC: Registered tcp transport
module.
Power Management for TI
OMAP3.
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev
1
omapfb: using mode
4.3inch_LCD
Console: switching to colour frame buffer device
60x34
clock: clksel_round_rate_div: dpll4_m4_ck target_rate
48000000
clock: new_div = 9, new_rate =
48000000
tvp514x 2-005d: tvp5146m2 found at 0xba (OMAP I2C
adapter)
omap34xxcam omap34xxcam: video0 is now omap3/
tvp514x//
Display already
enabled
Display already
enabled
Buffer Size =
3686400
omap_vout: registered and initialized video device 1
[v4l2]
Buffer Size =
3686400
omap_vout: registered and initialized video device 2
[v4l2]
display-

updated

twl4030_rtc twl4030_rtc: setting system clock to 2000-01-01 00:00:00
UTC (94668)
UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:rootfs", error
-19
VFS: Cannot open root device "ubi0:rootfs" or unknown-
block(0,0)
Please append a correct "root=" boot option; here are the available
partitions:
1f00 512 mtdblock0
(driver?)
1f01 1920 mtdblock1
(driver?)
1f02 128 mtdblock2
(driver?)
1f03 4096 mtdblock3
(driver?)
1f04 19200 mtdblock4
(driver?)
1f05 236288 mtdblock5
(driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-
block(0,0)

................................................................................................

PLEASE SUGGEST ME HOW TO OVERCOME THIS PROBLEM.

THANKS AND REGARDS
N Reddy