Skip to contentSkip to conversation

use CONFIG_PRE_CONSOLE_BUFFER

U-Boot Johann Obermayr 2 participants 2 messages Aug 13, 2014 – Sep 1, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

i will use CONFIG_PRE_CONSOLE_BUFFER and have some trouble.

myboard.h

     #define CONFIG_PRE_CONSOLE_BUFFER
     #define CONFIG_PRE_CON_BUF_SZ            4096
     #ifndef __ASSEMBLY__
     extern char preConsoleBuffer[] __attribute__ ((section(".data")));
     #define CONFIG_PRE_CON_BUF_ADDR            preConsoleBuffer
     #endif

myboard.c
char preConsoleBuffer[ CONFIG_PRE_CON_BUF_SZ ] __attribute__
((section(".data")));

     int board_init()
     {
     .....
     console_init_f();
     .....
     }

u-boot/arch/arm/lib/board.c

     remove console_init_f(); from init_sequence list.

after this changes, u-boot will hang.

use u-boot v2013-04 on arm i.mx6 (Freescale)

Best Regards
Johann

#1 lore raw

Hi,

Quoted 25 lines · Johann Obermayr

Hello,

i will use CONFIG_PRE_CONSOLE_BUFFER and have some trouble.

myboard.h

    #define CONFIG_PRE_CONSOLE_BUFFER
    #define CONFIG_PRE_CON_BUF_SZ            4096
    #ifndef __ASSEMBLY__
    extern char preConsoleBuffer[] __attribute__ ((section(".data")));
    #define CONFIG_PRE_CON_BUF_ADDR            preConsoleBuffer
    #endif

myboard.c
char preConsoleBuffer[ CONFIG_PRE_CON_BUF_SZ ] __attribute__
((section(".data")));

    int board_init()
    {
    .....
    console_init_f();
    .....
    }
Quoted 4 lines

u-boot/arch/arm/lib/board.c

    remove console_init_f(); from init_sequence list.

after this changes, u-boot will hang.

Why do you remove console_init_f()?

Is this hanging in SPL or U-Boot?

Regards,
Simon