From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frederic Kwiatkowski Date: Thu, 2 Mar 2006 11:58:14 +0100 Subject: [U-Boot-Users] Adding devices' init in board.c In-Reply-To: <7826EB01AD927140A1DCF898FE63325D3D8497@ExchangeSrv.Prodrive.nl> References: <7826EB01AD927140A1DCF898FE63325D3D8497@ExchangeSrv.Prodrive.nl> Message-ID: <5fb065d90603020258p421ff5f8n@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 : > > > > -----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 >