This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Adding UBIFS image onto the secondary nand flash

Other Parts Discussed in Thread: DM3730, TSC2007

Hi all:

1st Nand : x-loader, u-boot.bin, uImage

2nd Nand : UBIFS Image

done configuration in kernel and also in u-boot

my logcat is below:

what 's happening, problem help me to solve ?

3583820 bytes read
## Booting kernel from Legacy Image at 80300000 ...
   Image Name:   Linux-2.6.32
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3583756 Bytes = 3.4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.....................................................................................................................................................
[    0.000000] Linux version 2.6.32 (ladstech@ladstech-desktop) (gcc version 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-10)) #388 PREEMPT Mon J2
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: OMAP3 Beagle Board
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] OMAP3630/DM3730 ES1.0 (l2cache iva neon isp 192mhz_clk )
[    0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
[    0.000000] Reserving 4194304 bytes SDRAM for VRAM
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS2,115200n8 ubi.mtd=5 root=ubi0:rootfs rootfstype=ubifs rw rootwait nohz=off init=/sbin/init
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 247296KB available (6592K code, 1148K data, 344K init, 0K highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:402
[    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
[    0.000000] Reprogramming SDRC clock to 332000000 Hz
[    0.000000] gpmc_base = fe000000
[    0.000000] GPMC revision 5.0
[    0.000000] cs value = 0
[    0.000000] returned value of the cs = 00000040
[    0.000000] check for chip select
[    0.000000] cs value = 1
[    0.000000] returned value of the cs = (null)
[    0.000000] cs value = 2
[    0.000000] returned value of the cs = (null)
[    0.000000] cs value = 3
[    0.000000] returned value of the cs = (null)
[    0.000000] cs value = 4
[    0.000000] returned value of the cs = (null)
[    0.000000] cs value = 5
[    0.000000] returned value of the cs = (null)
[    0.000000] cs value = 6
[    0.000000] returned value of the cs = (null)
[    0.000000] cs value = 7
[    0.000000] returned value of the cs = 00000040
[    0.000000] check for chip select
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
[    0.000000] Total of 96 interrupts on 1 active controller
[    0.000000] OMAP GPIO hardware version 2.5
[    0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Calibrating delay loop... 510.47 BogoMIPS (lpj=1994752)
[    0.000000] Mount-cache hash table entries: 512
[    0.000000] CPU: Testing write buffer coherency: ok
[    0.000000] tmpfs: No value for mount option 'mode'
[    0.000000] devtmpfs: initialized
[    0.000000] regulator: core version 0.5
[    0.000000] NET: Registered protocol family 16
[    0.000000] Testing nand
[    0.000000] Found NAND on CS0
[    0.000000] nand cs = 0
[    0.000000] omap3beagle cs           = 0
[    0.000000] omap3beagle cs_baseaddr = fe000060
[    0.000000] omap3beagle gpmc_base   = fe000000
[    0.000000] Registering NAND on CS0
[    0.000000] Testing nand
[    0.000000] Testing nand
[    0.000000] Testing nand
[    0.000000] Testing nand
[    0.000000] Testing nand
[    0.000000] Testing nand
[    0.000000] Testing nand
[    0.000000] Found NAND on CS7
[    0.000000] nand cs = 7
[    0.000000] omap3beagle cs           = 7
[    0.000000] omap3beagle cs_baseaddr = fe0001b0
[    0.000000] omap3beagle gpmc_base   = fe000000
[    0.000000] Registering NAND on CS7
[    0.000000] Unable to get DVI reset GPIO
[    0.000000] wl12xx_set_platform_data after that
[    0.000000] omap_init_mbox: platform not supported
[  145.067779] OMAP DMA hardware revision 5.0
[  145.074981] bio: create slab <bio-0> at 0
[  145.076202] SCSI subsystem initialized
[  145.077789] usbcore: registered new interface driver usbfs
[  145.077911] usbcore: registered new interface driver hub
[  145.078063] usbcore: registered new device driver usb
[  145.090881] i2c_omap i2c_omap.1: bus 1 rev4.0 at 2600 kHz
[  145.095458] twl4030: PIH (irq 7) chaining IRQs 368..375
[  145.095489] twl4030: power (irq 373) chaining IRQs 376..383
[  145.095764] twl4030: gpio (irq 368) chaining IRQs 384..401
[  145.096191] arch/arm/mach-omap2/devices.c omap2_mmc_mux 600
[  145.098754] regulator: VUSB1V5: 1500 mV normal standby
[  145.098968] regulator: VUSB1V8: 1800 mV normal standby
[  145.099151] regulator: VUSB3V1: 3100 mV normal standby
[  145.101043] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[  145.101379] regulator: VMMC1: 1850 <--> 3150 mV normal standby
[  145.101593] regulator: VDAC: 1800 mV normal standby
[  145.101806] regulator: VPLL2: 1800 mV normal standby
[  145.102081] regulator: VSIM: 1800 <--> 3000 mV normal standby
[  145.102447] regulator: VAUX3: 1800 mV normal standby
[  145.102813] regulator: VAUX4: 1800 mV normal standby
[  145.110900] i2c_omap i2c_omap.2: bus 2 rev4.0 at 400 kHz
[  145.112518] cfg80211: Using static regulatory domain info
[  145.112548] cfg80211: Regulatory domain: 00
[  145.112548]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  145.112579]     (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
[  145.112579]     (2457000 KHz - 2482000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
[  145.112609]     (2474000 KHz - 2494000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
[  145.112640]     (5170000 KHz - 5250000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
[  145.112640]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
[  145.112701] cfg80211: Calling CRDA to update world regulatory domain
[  145.112915] Switching to clocksource 32k_counter
[  145.120727] musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
[  145.121063] musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
[  145.121765] NET: Registered protocol family 2
[  145.121948] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[  145.122406] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[  145.122619] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[  145.122741] TCP: Hash tables configured (established 8192 bind 8192)
[  145.122741] TCP reno registered
[  145.122772] UDP hash table entries: 256 (order: 0, 4096 bytes)
[  145.122802] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[  145.122985] NET: Registered protocol family 1
[  145.123382] RPC: Registered udp transport module.
[  145.123382] RPC: Registered tcp transport module.
[  145.123413] RPC: Registered tcp NFSv4.1 backchannel transport module.
[  145.131347] ashmem: initialized
[  145.131896] VFS: Disk quotas dquot_6.5.2
[  145.131988] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[  145.132965] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[  145.133666] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[  145.134338] msgmni has been set to 483
[  145.138061] alg: No test for stdrng (krng)
[  145.138336] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[  145.138336] io scheduler noop registered
[  145.138366] io scheduler deadline registered
[  145.138488] io scheduler cfq registered (default)
[  145.199035] OMAP DSS rev 2.0
[  145.199096] OMAP DISPC rev 3.0
[  145.199157] OMAP VENC rev 2
[  145.199432] cmel_oled43_panel: init panel
[  145.199432] cmel_oled43_panel: requesting GPIOs
[  145.733489] cmel_oled43_panel: done
[  145.741943] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[  145.760223] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
[  145.777862] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
[  145.795440] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
[  146.487701] console [ttyS2] enabled
[  146.497680] brd: module loaded
[  146.503875] loop: module loaded
[  146.508850] twl4030_madc twl4030_madc: clk disabled, enabling
[  146.516418] omap2-nand driver initializing
[  146.520690] res = 3481419476
[  146.523590] address of phys_base = 0
[  146.527191] size = 16777216
[  146.529998] returned value of the cs = 00000040
[  146.534576] adjust resource function
[  146.538177] value of adjust resource = 30000000
[  146.542938] NAND device: Manufacturer ID: 0xad, Chip ID: 0xbc (Hynix NAND 512MiB 1,8V 16-bit)
[  146.552001] cmdlinepart partition parsing not available
[  146.557250] Creating 5 MTD partitions on "omap2-nand":
[  146.562500] 0x000000000000-0x000000080000 : "X-Loader"
[  146.568817] 0x000000080000-0x000000260000 : "U-Boot"
[  146.575256] 0x000000260000-0x000000280000 : "U-Boot Env"
[  146.581329] 0x000000280000-0x000000680000 : "Kernel"
[  146.588439] 0x000000680000-0x000020000000 : "File System"
[  146.774932] res = 3481419476
[  146.777862] address of phys_base = 0
[  146.781463] size = 16777216
[  146.784271] returned value of the cs = 00000040
[  146.788848] adjust resource function
[  146.792449] value of adjust resource = 38000000
[  146.797210] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x48 (Micron NAND 1.8v 8-bit)
[  146.805603] cmdlinepart partition parsing not available
[  146.810913] Creating 1 MTD partitions on "omap2-nand.1":
[  146.816345] 0x000000000000-0x000080000000 : "Root file system"
[  146.914642] UBI: attaching mtd5 to ubi0
[  146.918609] UBI: physical eraseblock size:   1048576 bytes (1024 KiB)
[  146.925079] UBI: logical eraseblock size:    1044480 bytes
[  146.930633] UBI: smallest flash I/O unit:    4096
[  146.935394] UBI: sub-page size:              1024
[  146.940124] UBI: VID header offset:          1024 (aligned 1024)
[  146.946197] UBI: data offset:                4096
[  146.951873] UBI error: validate_ec_hdr: bad VID header offset 512, expected 1024
[  146.959350] UBI error: validate_ec_hdr: bad EC header
[  146.964447] UBI error: ubi_io_read_ec_hdr: validation failed for PEB 2
[  146.971405] UBI error: ubi_init: cannot attach mtd5
[  146.976531] UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
[  146.985900] Fixed MDIO Bus: probed
[  146.989562] PPP generic driver version 2.4.2
[  146.994079] PPP Deflate Compression module registered
[  146.999206] PPP BSD Compression module registered
[  147.005187] PPP MPPE Compression module registered
[  147.010009] NET: Registered protocol family 24
[  147.014587] PPPoL2TP kernel driver, V1.0
[  147.018524] SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
[  147.028289] CSLIP: code copyright 1989 Regents of the University of California.
[  147.035644] SLIP linefill/keepalive option.
[  147.039855] dm9000 Ethernet Driver, V1.31
[  147.044189] usbcore: registered new interface driver catc
[  147.049621] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
[  147.055694] usbcore: registered new interface driver kaweth
[  147.061309] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
[  147.068939] usbcore: registered new interface driver pegasus
[  147.074645] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
[  147.081665] usbcore: registered new interface driver rtl8150
[  147.087463] usbcore: registered new interface driver asix
[  147.092956] usbcore: registered new interface driver cdc_ether
[  147.098907] usbcore: registered new interface driver cdc_eem
[  147.104675] usbcore: registered new interface driver dm9601
[  147.110382] usbcore: registered new interface driver smsc95xx
[  147.116271] usbcore: registered new interface driver gl620a
[  147.121948] usbcore: registered new interface driver net1080
[  147.127716] usbcore: registered new interface driver plusb
[  147.133331] usbcore: registered new interface driver rndis_host
[  147.139373] usbcore: registered new interface driver cdc_subset
[  147.145416] usbcore: registered new interface driver zaurus
[  147.151062] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[  147.158630] console [netcon0] enabled
[  147.162353] netconsole: network logging started
[  147.167266] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[  147.174133] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[  147.180175] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
[  147.187774] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[  147.206848] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[  147.212707] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[  147.219604] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  147.226867] usb usb1: Product: OMAP-EHCI Host Controller
[  147.232238] usb usb1: Manufacturer: Linux 2.6.32 ehci_hcd
[  147.237670] usb usb1: SerialNumber: ehci-omap.0
[  147.242858] hub 1-0:1.0: USB hub found
[  147.246704] hub 1-0:1.0: 3 ports detected
[  147.277191] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[  147.283599] usbcore: registered new interface driver cdc_acm
[  147.289337] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
[  147.297943] Initializing USB Mass Storage driver...
[  147.303009] usbcore: registered new interface driver usb-storage
[  147.309082] USB Mass Storage support registered.
[  147.313934] usbcore: registered new interface driver usbserial
[  147.319885] USB Serial support registered for generic
[  147.325073] usbcore: registered new interface driver usbserial_generic
[  147.331695] usbserial: USB Serial Driver core
[  147.336120] USB Serial support registered for GSM modem (1-port)
[  147.342285] usbcore: registered new interface driver option
[  147.347930] option: v0.7.2:USB Driver for GSM modems
[  147.352935] android init
[  147.355560] android_probe pdata: c070a314
[  147.359649] android_bind
[  147.362243] android_usb gadget: android_usb ready
[  147.367004] musb_hdrc musb_hdrc: MUSB HDRC host driver
[  147.372467] musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 2
[  147.379882] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[  147.386749] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  147.394012] usb usb2: Product: MUSB HDRC host driver
[  147.399017] usb usb2: Manufacturer: Linux 2.6.32 musb-hcd
[  147.404479] usb usb2: SerialNumber: musb_hdrc
[  147.409454] hub 2-0:1.0: USB hub found
[  147.413269] hub 2-0:1.0: 1 port detected
[  147.417724] f_acm init
[  147.420104] android_register_function acm
[  147.424133] function adb not found in bind_functions
[  147.429138] f_adb init
[  147.431518] android_register_function adb
[  147.435577] f_mass_storage init
[  147.438720] android_register_function usb_mass_storage
[  147.443939] f_rndis init
[  147.446563] android_register_function rndis
[  147.451171] mice: PS/2 mouse device common for all mice
[  147.456817] input: TWL4030 Keypad as /devices/platform/i2c_omap.1/i2c-1/1-004a/twl4030_keypad/input/input0
[  147.468353] tsc2007_init rest_pin=0
[  148.328094] tsc2007_init rest_pin=1
[  148.332641] using rtc device, twl_rtc, for alarms
[  148.337219] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[  148.343994] twl_rtc twl_rtc: Power up reset detected.
[  148.349639] twl_rtc twl_rtc: Enabling TWL-RTC.
[  148.354675] i2c /dev entries driver
[  148.358795] Linux video capture interface: v2.00
[  148.363555] gspca: main v2.8.0 registered
[  148.368041] usbcore: registered new interface driver uvcvideo
[  148.373840] USB Video Class driver (v0.1.0)
[  148.378051] vpfe_init
[  148.380615] Driver for 1-wire Dallas network protocol.
[  148.385955] 1-Wire driver for the DS2760 battery monitor  chip  - (c) 2004-2005, Szabolcs Gyurko
[  148.395050] ltc4155-battery 2-0009: support ver. 1.0.0 enabled
[  148.401580] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[  148.409362]
[  148.409362]
[  148.409362] drivers/mmc/host/omap_hsmmc.c omap_hsmmc_probe 1658
[  148.418365]
[  148.418365]
[  148.418365] irq in platform driver 83
[  148.418365]
[  148.427795] val->intval of conversion madc = 760
[  148.464599] usb 1-2: new high speed USB device using ehci-omap and address 2
[  148.542999] Registered led device: beagleboard::usr0
[  148.548095] Registered led device: beagleboard::usr1
[  148.554931] Registered led device: beagleboard::pmu_stat
[  148.561492] usbcore: registered new interface driver usbhid
[  148.567138] usbhid: USB HID core driver
[  148.571624] logger: created 64K log 'log_main'
[  148.576293] logger: created 256K log 'log_events'
[  148.581176] logger: created 64K log 'log_radio'
[  148.585906] logger: created 64K log 'log_system'
[  148.590911] Advanced Linux Sound Architecture Driver Version 1.0.21.
[  148.598968]
[  148.598968] twl4030_modinit 2270
[  148.631713] usb 1-2: New USB device found, idVendor=0424, idProduct=2514
[  148.640289] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[  148.652160] hub 1-2:1.0: USB hub found
[  148.657867] hub 1-2:1.0: 4 ports detected
[  148.678894] No device for DAI omap-mcbsp-dai-0
[  148.683441] No device for DAI omap-mcbsp-dai-1
[  148.687896] No device for DAI omap-mcbsp-dai-2
[  148.692382] No device for DAI omap-mcbsp-dai-3
[  148.696899] No device for DAI omap-mcbsp-dai-4
[  148.701385] OMAP3 Beagle SoC init
[  148.704956]
[  148.704956] twl4030_soc_probe2120
[  148.710449] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
[  148.716033]
[  148.716033] twl4030_add_widgets1498
[  148.721801]
[  148.721801] twl4030_soc_probe2154
[  148.731445] ALSA device list:
[  148.734436]   #0: omap3beagle (twl4030)
[  148.738494] oprofile: using arm/armv7
[  148.742431] TCP cubic registered
[  148.746093] NET: Registered protocol family 10
[  148.751434] NET: Registered protocol family 17
[  148.755981] NET: Registered protocol family 15
[  148.761108] NET: Registered protocol family 33
[  148.765655] lib80211: common routines for IEEE802.11 drivers
[  148.771392] ThumbEE CPU extension supported.
[  148.775695] Power Management for TI OMAP3.
[  148.781677] SmartReflex driver initialized
[  148.786010] omap3beaglelmb: Driver registration complete
[  148.798553] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[  148.806854] registered taskstats version 1
[  148.823730] Console: switching to colour frame buffer device 40x30
[  148.831298] omapdss DPI: Could not find exact pixel clock. Requested 11360 kHz, got 11220 kHz
[  148.841613] cmel_oled43_panel: panel_enable begin
[  149.318511] cmel_oled43_panel: panel_enable end
[  149.323791] regulator_init_complete: incomplete constraints, leaving VAUX3 on
[  149.331390] regulator_init_complete: incomplete constraints, leaving VDVI on
[  149.338653] regulator_init_complete: incomplete constraints, leaving VDAC on
[  149.346923] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[  149.355194] omapdss DPI error: display already enabled
[  149.360382] omap_vout omap_vout: 'lcd' Display already enabled
[  149.366271] omapdss DPI error: display already enabled
[  149.371459] omap_vout omap_vout: 'lcd' Display already enabled
[  149.377349] omap_vout omap_vout: Buffer Size = 3686400
[  149.383392] omap_vout omap_vout: : registered and initialized video device 0
[  149.390655] omap_vout omap_vout: Buffer Size = 3686400
[  149.396636] omap_vout omap_vout: : registered and initialized video device 1
[  149.404235] UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:rootfs", error -19
[  149.411987] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[  149.419128] Please append a correct "root=" boot option; here are the available partitions:
[  149.427581] 1f00             512 mtdblock0 (driver?)
[  149.432586] 1f01            1920 mtdblock1 (driver?)
[  149.437591] 1f02             128 mtdblock2 (driver?)
[  149.442596] 1f03            4096 mtdblock3 (driver?)
[  149.447601] 1f04          517632 mtdblock4 (driver?)
[  149.452606] 1f05         2097152 mtdblock5 (driver?)
[  149.457641] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Regards,

santosh vastrad