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.

wl1271 as Soft AP



Hi,

I'm using the "linux-2.6.37-psp04.02.00.07.sdk" from the "ti-sdk-am37x-evm-05.02.00.00" for my am37xx based board.

Currently the borad boot up is stuck at "Uncompressing Linux... done, booting the kernel." The env variables are as follows:

 

bootdelay=10

baudrate=115200

loadaddr=0x82000000

machid=0x60A

usbtty=cdc_acm

console=ttyO2,115200n8

vram=12M

mmcroot=/dev/mmcblk0p2 rw

mmcrootfstype=ext3 rootwait

nandroot=/dev/mtdblock4 rw

nandrootfstype=jffs2

nandargs=setenv bootargs console=${console} vram=${vram} root=${nandroot} rootfstype=${nandrootfstype}

loadbootscript=fatload mmc 0 ${loadaddr} boot.scr

bootscript=echo Running bootscript from mmc ...; source ${loadaddr}

loaduimage=fatload mmc 0 ${loadaddr} uImage

mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}

nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr}

dieid#=727800029e3800000160a7451401b02e

enablemmc=setenv mw 0x6E000078 0x0

initmmc=mmc init

enablemw=mw 0x6E000078 0x0

enablei2c=i2c mw 0x2d 0x35.1 0x09

mmcargs=setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait

powertop1=i2c mw 0x2d 0x30.1 0xD;

powertop2=i2c mw 0x2d 0x37.1 0x5;

powertop3=i2c mw 0x2d 0x32.1 0xD;

powertop=run powertop1; run powertop2; run powertop3;

set_mux=mw 0x48002110 0x011C011C

enable_gpio=mw 0x49054034 0x00

led_on=mw 0x49054094 0x02

enable_misc=run set_mux; run enable_gpio; run led_on;

bootcmd=run enablemw; run enablei2c ; run set_mux ; mmc init ; run loadbootscript; run bootscript

bootargs=console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext 3 rootwait

 

And the log buffer shows the following output:

 

<6>[    0.000000] Preemptable hierarchical RCU implementation.............................n of stalled CPUs is disabled..

<6>[    0.000000] .Verbose stalled-CPUs detection is disabled............................

   [ 0.000000] ------------[ cut here ]------------..............

0.000000] WARNING: at arch/arm/mach-omap2/omap_hwmod.c:1650 omap_hwmod_late_init+0x6c/0x94().

........................................_late_init(): _init_clocks failed...............................

ed in:..........................................................) from [<c0093b24>] (warn_slowpath_common+0x54/0x64)....

........00000] [<c0093b24>] (warn_slowpath_common+0x54/0x64) from [<c0093bc8>] (warn_slowpath_fmt+0x30/0x40)....

........................8>] (warn_slowpath_fmt+0x30/0x40) from [<c006797c>] (omap_hwmod_late_init+0x6c/0x94).

<4>[    0.000000] [<c006797c>] (omap_hwmod_late_init+0x6c/0x94) from [<c000fd64>] (omap2_init_common_devices+0x14/0x104)...

.............................devices+0x14/0x104) from[<c0016294>] (omap3_beagle_init_irq+0x10/0x24)................

........10/0x24) from [<c000bdf4>] (init_IRQ+0x14/0x18).................] [<c000bdf4>] (init_IRQ+0x14/0x18) from

[<c0008ce0>] (start_kernel+0x1a0/0x308)................1a0/0x308) from [<80008038>] (0x80008038)...............

........ end trace 1b75b31a2719ed1c ]---................................ cut here ]------------.

........................ach-omap2/omap_hwmod.c:1654 omap_hwmod_late_init+0x90/0x94()....

[    0.000000] omap_hwmod: could not find MPU initiator hwmod mpu.<4>[  0.000000] Modules linked in:.

<4>[    0.000000] [<c005ba60>] (unwind_backtrace+0x0/0xf8) from [

<c0093b24>] (warn_slowpath_common+0x54/0x64)........................th_common+0x54/0x64) from 

<c0093bc8>] (warn_slowpath_fmt+0x30/0x40).

<4>[    0.000000] [<c0093bc8>] (warn_slowpath_fmt+0x30/0x40) from [<c00679a0>] (omap_hwmod_late_init+0x90/0x94)....

........00000] [<c00679a0>] (omap_hwmod_late_init+0x90/0x94) from [<c000fd64>] (omap2_init_common_devices+0x14/0x104).

<4>[    0.000000] [<c000fd64>] (omap2_init_common_devices+0x14/0x104) from [<c0016294>] (omap3_beagle_init_irq+0x10/0x24).

........................6294>] (omap3_beagle_init_irq+0x10/0x24) from [<c000bdf4>] (init_IRQ+0x14/0x18).........

............................18) from [<c0008ce0>] (start_kernel+0x1a0/0x308)................0] [<c0008ce0>] 

(start_kernel+0x1a0/0x308) from [<80008038>] (0x80008038)................................0) with 96 interrupts.

<6>[    0.000000] Total of 96 interrupts on 1 active controller...........................GPTIMER12 at 0 Hz.......

........--------........:48 clockevent_delta2ns+0x8c/0x94().............................nked in:................

........f8) from[<c0093b24>] (warn_slowpath_common+0x54/0x64)...........000000]

[<c0093b24>] (warn_slowpath_common+0x54/0x64) from [<c0093b50>](warn_slowpath_null+0x1c/0x24).

........................3b50>] (warn_slowpath_null+0x1c/0x24) from [<c00c2f08>] 

(clockevent_delta2ns+0x8c/0x94).......................nt_delta2ns+0x8c/0x94) from [<c0011fa8>] (omap2_gp_timer_init+0x14c/0x1b4)..............

........x14c/0x1b4) from [<c000ca1c>] (time_init+0x18/0x1c).............0000] [<c000ca1c>] (time_init+0x18/0x1c)

 from [<c0008cf8>] (start_kernel+0x1b8/0x308)...........el+0x1b8/0x308) from 

[<80008038>] (0x80008038).................. ---[ end trace 1b75b31a2719ed1e ]---...

....................... colour dummy device 80x30.............................led.....

 

 

Any hints....can you please help me out this....Its been 2 weeks, i'm stuck here....

Thanks in advance....

 

Regards,
Philip Mathew 

  • It is possible that the console definition that you want is not being set properly as part of "bootargs".  I see three places that "console" is defined in your u-boot variables.  There is a stand alone definition of console with ttyO2.  There is a definition embedded within bootargs with ttyO0.  And there is a definition embedded within mmcargs with ttyO2.  Since your bootcmd is calling a script (boot.src) it is unclear which definition of console is being used in bootargs and getting passed to the kernel command line. 

    Could you post the contents of the boot.scr script? 

    Greg.

  • Thanks Greg,

    Here are the boot.scr contents:

    ----------------------------------------------------------------------------------------------------------------

    if test "${beaglerev}" = "xMA"; then

    echo "Kernel is not ready for 1Ghz limiting to 800Mhz"

    setenv mpurate 800

    fi

    if test "${beaglerev}" = "xMB"; then

    echo "Kernel is not ready for 1Ghz limiting to 800Mhz"

    setenv mpurate 800

    fi

    if test "${beaglerev}" = "xMC"; then

    echo "Kernel is not ready for 1Ghz limiting to 800Mhz"

    setenv mpurate 800

    fi

    setenv dvimode 1280x720MR-16@60

    setenv vram 12MB

    setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000'

    setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootwait ro vram=${vram} omapfb.mode=dvi:${dvimode} fixrtc buddy=${buddy} mpurate=${mpurate}

    boot

    -----------------------------------------------------------------------------------------------------------------------------
    Earlier I was using kernel version 2.6.37.2 and my board file (modified board-omap3beagle.c) which was booting fine.
    The only change in the board file is in this :
    static void __init omap3_beagle_init_irq(void)
    {
            omap2_init_common_hw(mt46h32m32lf6_sdrc_params,            ------------------->>>> GIVES COMPILATION ERROR
                                 mt46h32m32lf6_sdrc_params);
            omap_init_irq();
    #ifdef CONFIG_OMAP_32K_TIMER
            omap2_gp_clockevent_set_gptimer(12);
    #endif
            omap_gpio_init();                                                       ------------------->>>> GIVES COMPILATION ERROR                         
    }
    CHANGES:
    static void __init omap3_beagle_init_irq(void)
    {
            omap2_init_common_devices(mt46h32m32lf6_sdrc_params,
                                 mt46h32m32lf6_sdrc_params);
            omap_init_irq();
    #ifdef CONFIG_OMAP_32K_TIMER
            omap2_gp_clockevent_set_gptimer(12);
    #endif
            //omap_gpio_init();
    }
    Thanks for all help.
    Regards,
    Philip Mathew

  • I fixed it with some changes in my board's file, but I'm using the latest kernel code from the git tree.

    When I apply the same changes on the SDK, it still gives the boot problems....I don't know why...

    Anyway, thanks for the support.

    Philip.