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.

omapl138 custumized board

Other Parts Discussed in Thread: OMAPL138, OMAP-L138

Hi,

I've built UBL, UBOOT for my customized board inspired from OMAPL138_LCDK card.

I did so modifications:

- on parameters of my DDR2 (MT47H32M16) :

    status |= DEVICE_ExternalMemInit(0x000000C5, 0x00134A22, 0x2C927209, 0x7013F924, 0x000002EE,   0x00000000);

- changed communication from UART2 to UART1 on uboot.

    ->omapl138_lcdk.h :         

         - CONFIG_SYS_NS16555_COM2        DAVINCI_UART1_BASE

         - CONFIG_SYS_NS16555_CLK            clk_get(1)  

         - CONFIG_CONS_INDEX                       2

     ->omapl138_lcdk.c :   into lpsc[] structure, I changed DAVINCI_LPSC_UART2 to DAVINCI_LPSC_UART1

But when I boot my card, system stops to "Jumping to entry point at 0xC1080000"

Here my console:

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

OMAP-L138 LCDK initialization passed!
Booting TI User Boot Loader
        UBL Version: 1.65
        UBL Flashtype: NAND
Starting NAND Copy...
Valid magicnum, 0x55424CBB, found in block 0x00000006.
   DONE
Jumping to entry point at 0xC1080000.

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

please, could you help me? thalks

Regards

Sebastien

  • Hi,

    Please don't create multiple post for the same issue.

    1) include/asm/arch/hardware.h

    #define DAVINCI_SYSCFG_SUSPSRC_UART0        (1 << 18)
    #define DAVINCI_SYSCFG_SUSPSRC_UART2        (1 << 20)
    #define DAVINCI_SYSCFG_SUSPSRC_UART1        (1 << 19) //Titus

    2) include/configs/omapl138_lcdk.h

    /*
     * Serial Driver info
     */
    #define CONFIG_SYS_NS16550
    #define CONFIG_SYS_NS16550_SERIAL
    #define CONFIG_SYS_NS16550_REG_SIZE    -4    /* NS16550 register size */
    #define CONFIG_SYS_NS16550_COM2    DAVINCI_UART1_BASE /* Titus : Base address of UART1 */
    #define CONFIG_SYS_NS16550_CLK    clk_get(DAVINCI_UART2_CLKID)
    #define CONFIG_CONS_INDEX    2        /* Titus : use UART1 for console */
    #define CONFIG_BAUDRATE        115200        /* Default baud rate */
    #define CONFIG_SYS_BAUDRATE_TABLE    { 9600, 19200, 38400, 57600, 115200 }

    3) board/davinci/da8xxevm/omapl138_lcdk.c

    i)

        /* setup the SUSPSRC for ARM to control emulation suspend */
        writel(readl(&davinci_syscfg_regs->suspsrc) &
               ~(DAVINCI_SYSCFG_SUSPSRC_EMAC | DAVINCI_SYSCFG_SUSPSRC_I2C |
             DAVINCI_SYSCFG_SUSPSRC_SPI1 | DAVINCI_SYSCFG_SUSPSRC_TIMER0 |
             DAVINCI_SYSCFG_SUSPSRC_UART1),//Titus
               &davinci_syscfg_regs->suspsrc);
    ii)

        /* enable the console UART */
        writel((DAVINCI_UART_PWREMU_MGMT_FREE | DAVINCI_UART_PWREMU_MGMT_URRST |
            DAVINCI_UART_PWREMU_MGMT_UTRST),
               &davinci_uart1_ctrl_regs->pwremu_mgmt);

    iii)

    static const struct lpsc_resource lpsc[] = {
        { DAVINCI_LPSC_AEMIF },    /* NAND, NOR */
        { DAVINCI_LPSC_SPI1 },    /* Serial Flash */
        { DAVINCI_LPSC_EMAC },    /* image download */
        { DAVINCI_LPSC_UART1 },    /* Titus : console is changed to UART1 from UART2 */
        { DAVINCI_LPSC_GPIO },
    #ifdef CONFIG_DAVINCI_MMC
        { DAVINCI_LPSC_MMC_SD },
    #endif        

    Apply the above changes in u-boot source code and please let us know results.

  • Hi,

    Sorry I thought I had 2 different issues.

    I did all your requirements and it's working.

    Thank you for your helping.

    Sébastien

  • Hi Sebastien,

    I'm glad that you got fixed.

    Thanks for your update.

    Please close (by clicking verify button on which answers of post answered your question)  the following threads which are created by you, If our answers answered your questions.

    Also, It helps others for those who facing the same requirements.

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/343960.aspx

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/342615.aspx

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/343979.aspx