public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] use CONFIG_PRE_CONSOLE_BUFFER
@ 2014-08-13  9:37 Johann Obermayr
  2014-09-01  5:14 ` Simon Glass
  0 siblings, 1 reply; 2+ messages in thread
From: Johann Obermayr @ 2014-08-13  9:37 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] use CONFIG_PRE_CONSOLE_BUFFER
  2014-08-13  9:37 [U-Boot] use CONFIG_PRE_CONSOLE_BUFFER Johann Obermayr
@ 2014-09-01  5:14 ` Simon Glass
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2014-09-01  5:14 UTC (permalink / raw)
  To: u-boot

Hi,

On 13 August 2014 02:37, Johann Obermayr <johann.obermayr@sigmatek.at> wrote:
> 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.

Why do you remove console_init_f()?

Is this hanging in SPL or U-Boot?

Regards,
Simon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-01  5:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13  9:37 [U-Boot] use CONFIG_PRE_CONSOLE_BUFFER Johann Obermayr
2014-09-01  5:14 ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox