On Tue, Oct 12, 2010 at 1:19 PM, Victor Rodriguez <vm.ro...@gmail.com>wrote:

> On Tue, Oct 12, 2010 at 12:12 PM, Nicolas Luna <luna...@gmail.com> wrote:
> > Hi,
> >
> > I'm running Linux Davinci on a custum hardware based on OMAP L138 EVM. I
> got
> > two cards, one with OMAP-L138and an other with AM1808. The only
> difference
> > between the two cards is the CPU, all others peripherals are same.
> >
> > I compiled the kernel from DaVinci-PSP-SDK-03.20.00.12.tgz.
> >
> > The first board with OMAP-L138 boot correctly.
> >
> > With the same kernel image, the second board with AM1808 freeze at boot
> > time.
> >
> > Here is the boot log:
> >
> >
> >
> > Loading:
> #################################################################
> >
> >
> #################################################################
> >
> >           ################
> >
> > done
> >
> > Bytes transferred = 2142892 (20b2ac hex)
> >
> > ## Booting kernel from Legacy Image at c0007fc0 ...
> >
> >    Image Name:   Linux-2.6.33-rc4
> >
> >    Image Type:   ARM Linux Kernel Image (uncompressed)
> >
> >    Data Size:    2142828 Bytes =  2 MB
> >
> >    Load Address: c0008000
> >
> >    Entry Point:  c0008000
> >
> >    Verifying Checksum ... OK
> >
> >    Loading Kernel Image ... OK
> >
> > OK
> >
> > Starting kernel ...
> >
> > Uncompressing Linux... done, booting the kernel. <= Freezes here !
> >
>
>
> Check uncompress.h and if your board is there available
>
>
It is.


>
> Besides which board are you using , i mean hawkboard? mytiomap? ...
>

Custom hardware based on OMAP-L138 EVM (ZOOMâ„¢ OMAP-L138 EVM DEVELOPMENT KIT)


>
>
> >
> >
> >
> > I configured the kernel to use 300 Mhz clock, I also tried 456 Mhz but
> same
> > behaviour.
> >
> > It seems to be a bad access to memory. Is there any access to DSP memory
> map
> > in the linux kernel?
> >
> > Also, I tried to turn on a LED before the kernel freeze. Can anybody tell
> me
> > where is the linux entry point in the code. I tried to add a raw_write
> into
> > "da850_evm_map_io" and in "da850_evm_init" to turn on the LED and it
> doesn't
> > work.
>
>
> Check the gpio if it si maped and then make a module similar to this
>
> #define PIN_LED         GPIO_TO_PIN(6, 12)
> #define MUX_LED         DA850_GPIO6_12
>
> static int led_on(void)
> {
>
>
>        int ret;
>
>
>        gpio_free(PIN_LED);
>
>
>        ret = davinci_cfg_reg (MUX_LED);
>                if (ret<0)
>                {
>                        printk(KERN_INFO "Error\n");
>                        return ret;
>                }
>
>
>        ret = gpio_request(PIN_LED, "led");
>                if (ret)
>                {
>                        printk(KERN_INFO "error\n");
>                        return ret;
>                }
>
>
>
>
>        gpio_direction_output(PIN_LED, 1);
>
>
>        gpio_set_value(PIN_LED, 1);
>
>
>        return 0 ;
>
> }
>
>
Well, my board is freezing before all inits, it is why I tried to turn on a
LED directly by writing into the GPIO register. It is working on the board
why OMAP processor but with AM1808 the code seems to freeze
before "da850_evm_init" so the LED doesn't turn on. The goal of this is to
find where the code freeze with the LED. I wonder where I could move my code
to be at the very beginning of linux startup.

Regards,
Nicolas



> Regards
>
> Victor Rodriguez
>
>
> >
> >
> > Thank you.
> >
> > Regards,
> >
> > Nicolas
> >
> > _______________________________________________
> > Davinci-linux-open-source mailing list
> > Davinci-linux-open-source@linux.davincidsp.com
> > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> >
> >
>
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to