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.

[omap3]unrecognize nand memery & failed to setup omapfb in booting time

Other Parts Discussed in Thread: ADS7846

Hi... Everyone

Does anyone successfully boot up devkit8000 with 2.6.35 kernel?


Devkit8000 board is a clone Beagleboard..

I downloaded  kernel 2.6.35.11  from http://www.kernel.org, cross-complied well, but  there are two problem unfourtunatly.

The 1st. kernel can't recognize nand memory, after  kernel panic with  error message following  booting is stoped.

[    0.923767] omap2-nand: probe of omap2-nand failed with error -16
[    0.931396] UBI error: ubi_init: UBI error: cannot initialize UBI, error -19

The 2nd is could'nt setup omapfb
[    1.385162] omapfb omapfb: no driver for display
[    1.389953] omapfb omapfb: failed to setup omapfb

Could you show me the way to escape from this hell

There are booing message following

Thanks in advance

Starting kernel ...

[    0.000000] Linux version 2.6.35.11 (human@desktop) (gcc version 4.3.3 (GCC) ) #4 Wed Mar 2 14:41:10 KST 2011
[    0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c53c7f
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: OMAP3 Devkit8000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp )
[    0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
[    0.000000] Reserving 12582912 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=4 root=ubi0:rootfs rootfstype=ubifs vram=12M omapfb.vrc
[    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: 128MB 128MB = 256MB total
[    0.000000] Memory: 242736k/242736k available, 19408k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
[    0.000000]     vmalloc : 0xd0800000 - 0xf8000000   ( 632 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc0034000   ( 176 kB)
[    0.000000]       .text : 0xc0034000 - 0xc044b000   (4188 kB)
[    0.000000]       .data : 0xc046a000 - 0xc049eee0   ( 212 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU-based detection of stalled CPUs is disabled.
[    0.000000]  Verbose stalled-CPUs detection is disabled.
[    0.000000] NR_IRQS:402
[    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/266/500 MHz
[    0.000000] omap_hwmod: l3_hwmod: cannot be enabled (3)
[    0.000000] omap_hwmod: l4_core_hwmod: cannot be enabled (3)
[    0.000000] omap_hwmod: l4_per_hwmod: cannot be enabled (3)
[    0.000000] omap_hwmod: l4_wkup_hwmod: cannot be enabled (3)
[    0.000000] Reprogramming SDRC clock to 266000000 Hz
[    0.000000] dpll3_m2_clk rate change failed: -22
[    0.000000] GPMC revision 5.0
[    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... 479.96 BogoMIPS (lpj=1871872)
[    0.000000] pid_max: default: 32768 minimum: 301
[    0.000000] Mount-cache hash table entries: 512
[    0.000000] CPU: Testing write buffer coherency: ok
[    0.000000] regulator: core version 0.5
[    0.000000] NET: Registered protocol family 16
[    0.000000] Found NAND on CS0
[    0.000000] Registering NAND on CS0
[    0.000030] OMAP DMA hardware revision 4.0
[    0.017669] bio: create slab <bio-0> at 0
[    0.020385] SCSI subsystem initialized
[    0.022857] usbcore: registered new interface driver usbfs
[    0.023132] usbcore: registered new interface driver hub
[    0.023406] usbcore: registered new device driver usb
[    0.024291] i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
[    0.028289] twl4030: PIH (irq 7) chaining IRQs 368..375
[    0.028320] twl4030: power (irq 373) chaining IRQs 376..383
[    0.028930] twl4030: gpio (irq 368) chaining IRQs 384..401
[    0.031921] regulator: VUSB1V5: 1500 mV normal standby
[    0.032684] regulator: VUSB1V8: 1800 mV normal standby
[    0.033355] regulator: VUSB3V1: 3100 mV normal standby
[    0.035064] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[    0.036285] regulator: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby
[    0.036956] regulator: VDAC: 1800 mV normal standby
[    0.037628] regulator: VDVI: 1800 mV normal standby
[    0.038391] regulator: VSIM: 1800 <--> 3000 mV at 1800 mV normal standby
[    0.038635] i2c_omap i2c_omap.3: bus 3 rev3.12 at 400 kHz
[    0.040466] Advanced Linux Sound Architecture Driver Version 1.0.23.
[    0.041412] NET: Registered protocol family 23
[    0.041503] Bluetooth: Core ver 2.15
[    0.041748] NET: Registered protocol family 31
[    0.041748] Bluetooth: HCI device and connection manager initialized
[    0.041778] Bluetooth: HCI socket layer initialized
[    0.041809] Switching to clocksource 32k_counter
[    0.063659] musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
[    0.066864] musb_hdrc musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
[    0.067504] NET: Registered protocol family 2
[    0.067749] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.068359] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.068603] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.068756] TCP: Hash tables configured (established 8192 bind 8192)
[    0.068756] TCP reno registered
[    0.068786] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.068817] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.069061] NET: Registered protocol family 1
[    0.069458] RPC: Registered udp transport module.
[    0.069488] RPC: Registered tcp transport module.
[    0.069488] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.070312] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.072296] VFS: Disk quotas dquot_6.5.2
[    0.072418] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.074096] JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[    0.074737] msgmni has been set to 474
[    0.078399] alg: No test for stdrng (krng)
[    0.078491] io scheduler noop registered
[    0.078491] io scheduler deadline registered
[    0.078674] io scheduler cfq registered (default)
[    0.079925] OMAP DSS rev 2.0
[    0.080047] OMAP DISPC rev 3.0
[    0.080108] OMAP VENC rev 2
[    0.247161] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.268585] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
[    0.288757] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
[    0.308837] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
[    0.888610] console [ttyS2] enabled
[    0.904388] brd: module loaded
[    0.913879] loop: module loaded
[    0.919555] omap2-nand driver initializing
[    0.923767] omap2-nand: probe of omap2-nand failed with error -16
[    0.931396] UBI error: ubi_init: UBI error: cannot initialize UBI, error -19
[    0.938659] dm9000 Ethernet Driver, V1.31
[    1.034240] dm9000 dm9000: eth%d: Invalid ethernet MAC address. Please set using ifconfig
[    1.043212] eth0: dm9000a at d08bc000,d08c0400 IRQ 185 MAC: 00:00:00:00:00:00 (chip)
[    1.051300] usbmon: debugfs is not available
[    1.055603] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.062744] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[    1.068542] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
[    1.076202] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[    1.096649] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[    1.102600] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.109466] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.116760] usb usb1: Product: OMAP-EHCI Host Controller
[    1.122131] usb usb1: Manufacturer: Linux 2.6.35.11 ehci_hcd
[    1.127868] usb usb1: SerialNumber: ehci-omap.0
[    1.133453] hub 1-0:1.0: USB hub found
[    1.137298] hub 1-0:1.0: 3 ports detected
[    1.168395] input: TWL4030 Keypad as /devices/platform/i2c_omap.1/i2c-1/1-004a/twl4030_keypad/input/input0
[    1.179931] ads7846 spi2.0: unable to get regulator: -19
[    1.186126] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[    1.192443] twl_rtc twl_rtc: Power up reset detected.
[    1.197875] twl_rtc twl_rtc: Enabling TWL-RTC.
[    1.202880] i2c /dev entries driver
[    1.207885] sdhci: Secure Digital Host Controller Interface driver
[    1.214172] sdhci: Copyright(c) Pierre Ossman
[    1.223632] usbcore: registered new interface driver usbhid
[    1.229278] usbhid: USB HID core driver
[    1.311737] No device for DAI omap-mcbsp-dai-0
[    1.316253] No device for DAI omap-mcbsp-dai-1
[    1.320739] No device for DAI omap-mcbsp-dai-2
[    1.325225] No device for DAI omap-mcbsp-dai-3
[    1.329711] No device for DAI omap-mcbsp-dai-4
[    1.334197] OMAP3 Beagle/Devkit8000 SoC init
[    1.340484] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
[    1.349761] ALSA device list:
[    1.352752]   #0: omap3beagle (twl4030)
[    1.356964] TCP cubic registered
[    1.360198] NET: Registered protocol family 17
[    1.364807] NET: Registered protocol family 15
[    1.369873] Power Management for TI OMAP3.
[    1.374359] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
[    1.385162] omapfb omapfb: no driver for display
[    1.389953] omapfb omapfb: failed to setup omapfb
[    1.395233] regulator_init_complete: incomplete constraints, leaving VDVI on
[    1.402496] regulator_init_complete: incomplete constraints, leaving VDAC on
[    1.411163] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    1.424987] UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:rootfs", error -19
[    1.432769] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[    1.439849] Please append a correct "root=" boot option; here are the available partitions:
[    1.448333] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

  • pak chul said:

    I downloaded  kernel 2.6.35.11  from http://www.kernel.org, cross-complied well, but  there are two problem unfourtunatly.
    The 1st. kernel can't recognize nand memory, after  kernel panic with  error message following  booting is stoped.
    ...
    The 2nd is could'nt setup omapfb


    This means that support for Devkit8000 wasn't complete in the 2.6.35 kernel.
    Can you get a more recent kernel and see if you notice these errors?

  • Hi,

    >> The 2nd is could'nt setup omapfb
    >> [    1.385162] omapfb omapfb: no driver for display
    >> [    1.389953] omapfb omapfb: failed to setup omapfb

    You have to enable display driver in your configuration, which seems to be missing. Look at your board file (board-xxx.c) for supported display panels and enable them in your default configuration.

     

    Thanks,

    Vaibhav

  • Hi everyone

    I solved the problem not to initializie nand memory but  failing to setup omapfb  is not.
    The problem about omapfb is changed from

    [    1.385162] omapfb omapfb: no driver for display
    [    1.389953] omapfb omapfb: failed to setup omapfb

    to

    [   10.544219] omapfb omapfb: illegal display bpp
    [   10.548767] omapfb omapfb: failed to setup fb_info
    [   10.553710] omapfb omapfb: failed to setup omapfb
    [   10.558502] omapfb: probe of omapfb failed with error -22

    The kernel Version was changed form 2.6.35.11 to  2.6.35.rc3, and what  configuration mean is using menuconfig

    setenv bootargs console=ttyS2,115200n8 ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs vram=12M omapfb.vram=0:2M omapdss.debug=1, omapfb.debug=1 nohz=off rootdelay=3 omapdss.def_disp=tv omapfb.mode=tv:ntsc


    Best regards,
    Thanks

  • Your problem relates to this error:

    [   10.544219] omapfb omapfb: illegal display bpp

    Make sure that bits-per-pixel for the display matches the spec for actual hardware.

  • I would recommend to migrate to later kernel version OR check with the later kernel version, There might be some known issues with the kernel version you are using? Also, can try setting default output to LCD or DVI, if available on devkit?

     

    Thanks,

    Vaibhav