vboot

Ravi 2010-09-02 18:57:49 Link
I was going through the code of vboot for mini2440. I understood it up to
an extent but there are few things I did not get. I want to utilize your
code of vboot to run an standalone application without OS.

In vboot code following snippet is there:
................................................................................
....................................
    ldr     r2, mpll_value_USER         @ clock user set 12MHz
    str    r2, [r1, #oMPLLCON]


    @ set GPIO for UART
    mov    r1, #GPIO_CTL_BASE
    add    r1, r1, #oGPIO_H
    ldr    r2, gpio_con_uart   
    str    r2, [r1, #oGPIO_CON]
    ldr    r2, gpio_up_uart
    str    r2, [r1, #oGPIO_UP]   
    bl    InitUART
    bl    memsetup

    @ get read to call C functions
    mov    fp, #0            @ no previous frame, so fp=0
    mov    a2, #0            @ set argv to NULL
        ldr    sp, DW_STACK_START    @ setup stack pointer
    bl    Main           
................................................................................
............................

I want to know why it is essential to call "bl memsetup" ?

Will someone please explain me that?

Damian Eppel 2010-09-28 11:49:38 Link
Hi,

memsetup routine deals with memory controller configuration - this is
important since vboot is going to use both external memory - sdram and
flash as it is going to copy Linux kernel from flash to RAM.

BR,
Damian

Reply

Name
eMail (not visible)
Subject (no text only in upper case; no HELP, URGENT...)
Text
HTML tags are not supported and links are generated automatically if they start with http or ftp.
Please submit long source code or log files as attachment (only registered users).
Please enter the number 3128