From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Schwebel Date: Sat, 31 Jan 2004 08:25:01 +0100 Subject: [U-Boot-Users] Production und U-boot In-Reply-To: <37FB7AA6F5F9814FB634A7BF4C35A6F501213E4E@ESEALNT442.al.sw.ericsson.se> References: <37FB7AA6F5F9814FB634A7BF4C35A6F501213E4E@ESEALNT442.al.sw.ericsson.se> Message-ID: <20040131072501.GC32127@pengutronix.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jan 29, 2004 at 12:45:17PM +0100, Matias Sundman (AL/EAB) wrote: > Now what I am thinking of is to program U-boot to recognize a pin in > the backplane, if the pin is set the board is in a production facility > - BOOTP and a TFTP download of the flash image shall be done, and > burned in flash ( by U-boot ). The pin is set by production staff. I've done similar things with our boards, mostly by setting a bootcmd_foobar variable in the environment (from misc_init_r()) when the pin is set and setting bootcmd to 'run bootcmd_foobar' in that case; this way you can test your scenario by running it manually from the command line. > If it is not set U-boot shall start a Image from flash ( Containing > Linux and a Rootfile system ) since it is in a "sharp" environment. The other thing I'm currently implementing is to setup a generic scripting mechanism which tests and flashed boards with an "expect" script - this works pretty well and you can also perform some test cases with U-Boot and Linux while setting up the board, including autogenerated test reports. Robert -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hornemannstra?e 12, 31137 Hildesheim, Germany Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4