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.

Gingerbread on Kernel 2.6.38

Other Parts Discussed in Thread: ADS7846

Upgrading from 2.6.32 to 2.6.38 prevents kernel from executing init - may be related to ttyS* to ttyO* OMAP specific port mapping.

If you have had success running this or higher Kernel release with either Froyo or GB, I wil appreciate any pointers on init scripts or the like

to get around this ttyO* issue.

 

Thanks - JP

  • Hi Jehangir,

    1. At present we have not enable 2.6.38

    w.r.t your issue

    1. could you post logs?

    2. Would you elaborate on your issue? Which point you are facing this one.. booting time ? build time? Could you able to see any activity on screen ?

  • Hi Satish;

    Here's the tail portion of console log message after I changed  ttyS2 to ttyO2 in "boot.scr":

     2.050231] ThumbEE CPU extension supported.
    [    2.067993] Power Management for TI OMAP3.
    [    2.114349] clock: disabling unused clocks to save power
    [    2.125610] regulator_init_complete: VDVI: incomplete constraints, leaving on
    [    2.133575] regulator_init_complete: VDAC: incomplete constraints, leaving on
    [    2.142730] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:12 UTC (946684812)
    [    2.155212] Waiting for root device /dev/mmcblk0p2...
    [    2.199981] mmc0: host does not support reading read-only switch. assuming write-enable.
    [    2.223846] mmc0: new high speed SDHC card at address 0001
    [    2.233245] mmcblk0: mmc0:0001 00000 7.41 GiB
    [    2.245269]  mmcblk0: p1 p2 p3
    [    2.271575] EXT3-fs: barriers not enabled
    [    2.277496] kjournald starting.  Commit interval 5 seconds
    [    2.320404] EXT3-fs (mmcblk0p2): using internal journal
    [    2.326568] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    [    2.334411] VFS: Mounted root (ext3 filesystem) on device 179:2.
    [    2.341064] Freeing init memory: 292K
    [    2.383331] Kernel panic - not syncing: Attempted to kill init!

    ====

    Thanks - JP

     

  • Hi Satish,

    Yes. the x-loader and u-boot loads fine. Here's the complete log from power-on with kernel chatter till it hangs on init...

    Note that bootargs were modified so ttyS2 -> ttyO2.  Thanks - JP

    =========


    Texas Instruments X-Loader 1.4.4ss (Mar 25 2011 - 15:35:41)
    No NAND detected
    OMAP3530-GP ES3.1
    Board revision: 1
    Reading boot sector
    Loading u-boot.bin from mmc


    U-Boot 2010.09-00000-g333db6d (Apr 08 2011 - 14:49:31)

    OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 mHz
    Gumstix Overo board + LPDDR/NAND
    I2C:   ready
    DRAM:  512 MiB
    NAND:  0 MiB
    Using default environment

    In:    serial
    Out:   serial
    Err:   serial
    Board revision: 1
    Direct connection on mmc2
    Die ID #661800040000000004039f220301201a
    Net:   No ethernet found.
    Hit any key to stop autoboot:  0
    mmc1 is available
    reading boot.scr

    505 bytes read
    Running bootscript from mmc ...
    ## Executing script at 82000000
    mmc1 is available
    reading uImage

    3076780 bytes read
    ## Booting kernel from Legacy Image at 82000000 ...
       Image Name:   Linux-2.6.39-rc1-10025-g11fa864
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3076716 Bytes = 2.9 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 2.6.39-rc1-10025-g11fa864 (jehangir@jehangir-ubuntu) (gcc version 4.4.0 (GCC) ) #1 SMP Sat Apr 16 23:12:59 PDT 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: Gumstix Overo
    [    0.000000] Reserving 12582912 bytes SDRAM for VRAM
    [    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: 0x10000
    [    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
    [    0.000000] Reprogramming SDRC clock to 332000000 Hz
    [    0.000000] PERCPU: Embedded 7 pages/cpu @c0f8f000 s8160 r8192 d12320 u32768
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 126976
    [    0.000000] Kernel command line: mpurate=600 console=ttyO2,115200n8 console=tty0 androidboot.console=ttyO2 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait init=/init vram=12M omapfb.mode=dvi:1024x768MR-16@60 omapdss.def_disp=lcd43
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 500MB = 500MB total
    [    0.000000] Memory: 495644k/495644k available, 28644k 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 : 0xe0800000 - 0xf8000000   ( 376 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .init : 0xc0008000 - 0xc0051000   ( 292 kB)
    [    0.000000]       .text : 0xc0051000 - 0xc05ac24c   (5485 kB)
    [    0.000000]       .data : 0xc05ae000 - 0xc06303b8   ( 521 kB)
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000]     RCU-based detection of stalled CPUs is disabled.
    [    0.000000] NR_IRQS:410
    [    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 clockevent source: GPTIMER1 at 32768 Hz
    [    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000000] console [tty0] enabled
    [    0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
    [    0.000000] ... MAX_LOCKDEP_SUBCLASSES:  8
    [    0.000000] ... MAX_LOCK_DEPTH:          48
    [    0.000000] ... MAX_LOCKDEP_KEYS:        8191
    [    0.000000] ... CLASSHASH_SIZE:          4096
    [    0.000000] ... MAX_LOCKDEP_ENTRIES:     16384
    [    0.000000] ... MAX_LOCKDEP_CHAINS:      32768
    [    0.000000] ... CHAINHASH_SIZE:          16384
    [    0.000000]  memory used by lock dependency info: 3695 kB
    [    0.000000]  per task-struct memory footprint: 1152 bytes
    [    0.005004] Calibrating delay loop... 497.82 BogoMIPS (lpj=1941504)
    [    0.093811] pid_max: default: 32768 minimum: 301
    [    0.094818] Security Framework initialized
    [    0.095367] Mount-cache hash table entries: 512
    [    0.100921] CPU: Testing write buffer coherency: ok
    [    0.104644] Brought up 1 CPUs
    [    0.104705] SMP: Total of 1 processors activated (497.82 BogoMIPS).
    [    0.121704] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l4_core
    [    0.121765] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l4_per
    [    0.121826] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l4_wkup
    [    0.122375] omap_hwmod: gpt12_fck: missing clockdomain for gpt12_fck.
    [    0.138488] omap_hwmod: i2c1: softreset failed (waited 10000 usec)
    [    0.153137] omap_hwmod: i2c2: softreset failed (waited 10000 usec)
    [    0.167633] omap_hwmod: i2c3: softreset failed (waited 10000 usec)
    [    0.168518] omap_hwmod: am35x_otg_hs: cannot be enabled (3)
    [    0.174530] print_constraints: dummy:
    [    0.176300] NET: Registered protocol family 16
    [    0.177764] GPMC revision 5.0
    [    0.187103] omap_device: omap_gpio.0: new worst case activate latency 0: 122070
    [    0.188446] OMAP GPIO hardware version 2.5
    [    0.189392] OMAP GPIO hardware version 2.5
    [    0.190185] OMAP GPIO hardware version 2.5
    [    0.190979] OMAP GPIO hardware version 2.5
    [    0.191772] OMAP GPIO hardware version 2.5
    [    0.192565] OMAP GPIO hardware version 2.5
    [    0.211883] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.224609] omap_device: omap_uart.0: new worst case activate latency 0: 30517
    [    0.229217] Found NAND on CS0
    [    0.229278] Registering NAND on CS0
    [    0.232543] could not obtain gpio for ADS7846_PENDOWN
    [    0.249938] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.260314] omap_init_gpu: Could not look up gpu
    [    0.351745] Switched to new clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
    [    0.353332] OMAP DMA hardware revision 4.0
    [    0.424774] bio: create slab <bio-0> at 0
    [    0.429382] print_constraints: vads7846: 3300 mV
    [    0.436645] SCSI subsystem initialized
    [    0.437377] omap_device: omap2_mcspi.1: new worst case activate latency 0: 30517
    [    0.441009] omap_device: omap2_mcspi.1: new worst case deactivate latency 0: 30517
    [    0.448394] usbcore: registered new interface driver usbfs
    [    0.449768] usbcore: registered new interface driver hub
    [    0.450836] usbcore: registered new device driver usb
    [    0.452941] omap_device: omap_i2c.1: new worst case activate latency 0: 30517
    [    0.453552] omap_i2c omap_i2c.1: bus 1 rev3.12 at 2600 kHz
    [    0.464721] twl4030: PIH (irq 7) chaining IRQs 368..375
    [    0.464965] twl4030: power (irq 373) chaining IRQs 376..383
    [    0.467285] twl4030: gpio (irq 368) chaining IRQs 384..401
    [    0.479583] print_constraints: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby
    [    0.482208] print_constraints: VDAC: 1800 mV normal standby
    [    0.485351] print_constraints: VDVI: 1800 mV normal standby
    [    0.486083] omap_device: omap_i2c.1: new worst case deactivate latency 0: 30517
    [    0.500366] omap_i2c omap_i2c.3: bus 3 rev3.12 at 400 kHz
    [    0.510620] Switching to clocksource 32k_counter
    [    0.515991] Switched to NOHz mode on CPU #0
    [    0.627960] NET: Registered protocol family 2
    [    0.629394] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.630004] IPv4 FIB: Using LC-trie version 0.409
    [    0.631652] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.632446] TCP bind hash table entries: 16384 (order: 7, 589824 bytes)
    [    0.642211] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.642364] TCP reno registered
    [    0.642425] UDP hash table entries: 256 (order: 2, 20480 bytes)
    [    0.642791] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
    [    0.644073] NET: Registered protocol family 1
    [    0.645629] RPC: Registered udp transport module.
    [    0.645690] RPC: Registered tcp transport module.
    [    0.645721] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.646789] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.836730] VFS: Disk quotas dquot_6.5.2
    [    0.837219] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.840728] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    0.842102] msgmni has been set to 968
    [    0.847259] io scheduler noop registered
    [    0.847320] io scheduler deadline registered
    [    0.847625] io scheduler cfq registered (default)
    [    0.852355] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.860778] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
    [    0.862640] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
    [    0.864440] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
    [    1.603363] console [ttyO2] enabled
    [    1.648284] brd: module loaded
    [    1.671356] loop: module loaded
    [    1.676177] omap_device: omap_i2c.1: new worst case activate latency 0: 122070
    [    1.692413] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.699645] omap2-nand driver initializing
    [    1.704559] No NAND device found.
    [    1.708404] No NAND device found.
    [    1.712890] OneNAND driver initializing
    [    1.726074] smsc911x: Driver version 2008-10-21.
    [    1.731750] smsc911x: Driver version 2008-10-21.
    [    1.738555] usbcore: registered new interface driver asix
    [    1.744873] usbcore: registered new interface driver cdc_ether
    [    1.751800] usbcore: registered new interface driver net1080
    [    1.758575] usbcore: registered new interface driver cdc_subset
    [    1.765533] usbcore: registered new interface driver zaurus
    [    1.771545] cdc_ncm: 7-Feb-2011
    [    1.775543] usbcore: registered new interface driver cdc_ncm
    [    1.784332] usbcore: registered new interface driver cdc_wdm
    [    1.790435] Initializing USB Mass Storage driver...
    [    1.796386] usbcore: registered new interface driver usb-storage
    [    1.802886] USB Mass Storage support registered.
    [    1.809173] usbcore: registered new interface driver libusual
    [    1.816070] usbcore: registered new interface driver usbtest
    [    1.825714] mousedev: PS/2 mouse device common for all mice
    [    1.835266] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [    1.850524] ads7846 spi1.0: touchscreen, irq 274
    [    1.856750] omap_device: omap2_mcspi.1: new worst case activate latency 0: 61035
    [    1.866485] input: ADS7846 Touchscreen as /devices/platform/omap/omap2_mcspi.1/spi1.0/input/input1
    [    1.883026] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input2
    [    1.903900] using rtc device, twl_rtc, for alarms
    [    1.908843] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
    [    1.916046] twl_rtc twl_rtc: Power up reset detected.
    [    1.923919] i2c /dev entries driver
    [    1.931488] Driver for 1-wire Dallas network protocol.
    [    1.939361] omap_device: omap_wdt.-1: new worst case activate latency 0: 30517
    [    1.949157] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
    [    1.955535] omap_device: omap_wdt.-1: new worst case deactivate latency 0: 30517
    [    1.964813] twl4030_wdt twl4030_wdt: Failed to register misc device
    [    1.971466] twl4030_wdt: probe of twl4030_wdt failed with error -16
    [    1.993316] usbcore: registered new interface driver usbhid
    [    1.999420] usbhid: USB HID core driver
    [    2.004058] oprofile: hardware counters not available
    [    2.009368] oprofile: using timer interrupt.
    [    2.014587] TCP cubic registered
    [    2.018005] Initializing XFRM netlink socket
    [    2.022766] NET: Registered protocol family 17
    [    2.027648] NET: Registered protocol family 15
    [    2.032836] Registering the dns_resolver key type
    [    2.038482] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
    [    2.048400] ThumbEE CPU extension supported.
    [    2.066101] Power Management for TI OMAP3.
    [    2.112396] clock: disabling unused clocks to save power
    [    2.123687] regulator_init_complete: VDVI: incomplete constraints, leaving on
    [    2.131652] regulator_init_complete: VDAC: incomplete constraints, leaving on
    [    2.140838] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:12 UTC (946684812)
    [    2.153320] Waiting for root device /dev/mmcblk0p2...
    [    2.198394] mmc0: host does not support reading read-only switch. assuming write-enable.
    [    2.222259] mmc0: new high speed SDHC card at address 0001
    [    2.231658] mmcblk0: mmc0:0001 00000 7.41 GiB
    [    2.243713]  mmcblk0: p1 p2 p3
    [    2.269958] EXT3-fs: barriers not enabled
    [    2.275878] kjournald starting.  Commit interval 5 seconds
    [    2.282348] EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
    [    2.320709] EXT3-fs (mmcblk0p2): using internal journal
    [    2.326904] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    [    2.334716] VFS: Mounted root (ext3 filesystem) on device 179:2.
    [    2.341400] Freeing init memory: 292K
    [    2.385925] Kernel panic - not syncing: Attempted to kill init!

     

  • Hi Jehangir,

    I think this issue is not related with the console settings. They are correct.

    I assume you have applied all 2.6.38 android patches.

    Can you please check you have enabled the minimum android options in the kernel?

    Like

    a)ASHMEM support

    b)Android Staging Drivers -> (Binder, Log, Low Memory Killer, RAM console)

     

    Please check with the 2.6.32 rowboat kernel configuration or the  emulator kernel configuration (/proc/config.gz)

     

    Regards,

    Arun


  • Hi Arun,

    I'm not usre if you're referring to the bootargs or kernel .config file by options.

    Neverthless, can you please send me a comprehensive minimal list of android options for 2.6.38 ?

    Thanks - JP

  • Hi Jehangir,

    I was referring to kernel config.

    If you want to see android kernel differences, best way would be to do a "diff" of

    omap3_evm_defconfig and omap3_evm_android_defconfig.


    You can refer to below document to get more info on android specific kernel options

    http://elinux.org/Android_Kernel_Features

    Regards,

    Arun