* [U-Boot-Users] Adding devices' init in board.c
@ 2006-03-01 14:55 Frederic Kwiatkowski
0 siblings, 0 replies; 3+ messages in thread
From: Frederic Kwiatkowski @ 2006-03-01 14:55 UTC (permalink / raw)
To: u-boot
Hello all
I'm looking to init an external device (an lcd screen through a RM9200
based board) while starting U-Boot. So i've write a binary file to
check if my .C sources were right and load it into the RAM. Typing the
go 20000000 command (after a tftp transfer) get success and my device
is initialised.
So i've tryed to put a function call in my arm board.c and while i'm
building the new U-Boot.bin, everything is right (the .o file is
created and u-boot.bin is build), but nothing is running (there is no
message and prompt on my RS232 Debug display and the board is not
booting).
Is there something specific to do to init a device using board.c? or
is there any possiblity to include and launch the binary file in
U-Boot?
With regards
Frederic Kwiatkowski
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] Adding devices' init in board.c
@ 2006-03-02 8:12 Martijn de Gouw
2006-03-02 10:58 ` Frederic Kwiatkowski
0 siblings, 1 reply; 3+ messages in thread
From: Martijn de Gouw @ 2006-03-02 8:12 UTC (permalink / raw)
To: u-boot
> -----Original Message-----
> From: u-boot-users-admin at lists.sourceforge.net
> [mailto:u-boot-users-admin at lists.sourceforge.net] On Behalf
> Of Frederic Kwiatkowski
> Sent: woensdag 1 maart 2006 15:56
> To: u-boot-users at lists.sourceforge.net
> Subject: [U-Boot-Users] Adding devices' init in board.c
>
> Hello all
>
> I'm looking to init an external device (an lcd screen through a RM9200
> based board) while starting U-Boot. So i've write a binary file to
> check if my .C sources were right and load it into the RAM. Typing the
> go 20000000 command (after a tftp transfer) get success and my device
> is initialised.
Does u-boot return to the command prompt after this init?
>
> So i've tryed to put a function call in my arm board.c and while i'm
> building the new U-Boot.bin, everything is right (the .o file is
> created and u-boot.bin is build), but nothing is running (there is no
> message and prompt on my RS232 Debug display and the board is not
> booting).
Hook up the bdi and start debugging
> Is there something specific to do to init a device using board.c? or
> is there any possiblity to include and launch the binary file in
> U-Boot?
>
#define CONFIG_BOARD_EARLY_INIT_F 1 /* Call
board_early_init_f(lash) from $board.c */
#define CONFIG_MISC_INIT_R 1 /* Call misc_init_r(am) from
$board.c */
Regards, martijn
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] Adding devices' init in board.c
2006-03-02 8:12 [U-Boot-Users] Adding devices' init in board.c Martijn de Gouw
@ 2006-03-02 10:58 ` Frederic Kwiatkowski
0 siblings, 0 replies; 3+ messages in thread
From: Frederic Kwiatkowski @ 2006-03-02 10:58 UTC (permalink / raw)
To: u-boot
Hi, thanks for your indication
Concerning the U-Boot's prompt, we haven't any prompt, that the main
problem concerning the text debugging of my piece of code
With regards
Frederic Kwiatkowski
2006/3/2, Martijn de Gouw <martijn.de.gouw@prodrive.nl>:
>
>
> > -----Original Message-----
> > From: u-boot-users-admin at lists.sourceforge.net
> > [mailto:u-boot-users-admin at lists.sourceforge.net] On Behalf
> > Of Frederic Kwiatkowski
> > Sent: woensdag 1 maart 2006 15:56
> > To: u-boot-users at lists.sourceforge.net
> > Subject: [U-Boot-Users] Adding devices' init in board.c
> >
> > Hello all
> >
> > I'm looking to init an external device (an lcd screen through a RM9200
> > based board) while starting U-Boot. So i've write a binary file to
> > check if my .C sources were right and load it into the RAM. Typing the
> > go 20000000 command (after a tftp transfer) get success and my device
> > is initialised.
>
> Does u-boot return to the command prompt after this init?
>
> >
> > So i've tryed to put a function call in my arm board.c and while i'm
> > building the new U-Boot.bin, everything is right (the .o file is
> > created and u-boot.bin is build), but nothing is running (there is no
> > message and prompt on my RS232 Debug display and the board is not
> > booting).
>
> Hook up the bdi and start debugging
>
> > Is there something specific to do to init a device using board.c? or
> > is there any possiblity to include and launch the binary file in
> > U-Boot?
> >
>
> #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call
> board_early_init_f(lash) from $board.c */
> #define CONFIG_MISC_INIT_R 1 /* Call misc_init_r(am) from
> $board.c */
>
> Regards, martijn
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-02 10:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-02 8:12 [U-Boot-Users] Adding devices' init in board.c Martijn de Gouw
2006-03-02 10:58 ` Frederic Kwiatkowski
-- strict thread matches above, loose matches on Subject: below --
2006-03-01 14:55 Frederic Kwiatkowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox