From: Kyle Harris Date: Mon, 2 Dec 2002 08:27:05 -0500 Subject: [U-Boot-Users] autoscript? In-Reply-To: <3DE74228.89AF6ED3@imc-berlin.de> References: <3DE74228.89AF6ED3@imc-berlin.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 29 November 2002 05:32 am, Steven Scholz wrote: > Hi there, > > how can a make an u-boot image that contains a kernel _and_ a script? Yes. But, you have to run a 2 pass process to fixup addresses within the autoscript output generated from mkimage. For example, this is a simple autoscript that could be used to update a root fs. setenv stdout serial erase 40040000 400fffff cp 00100134 40040000 24500 The mkimage command would be. mkimage -T script -n label -C none -d autoscript:rootfs root.auto When this is combined with the root image with mkimage, the source address (100134) may change, depending on length of autoscript. So, the script has to be updated accordingly and a 2nd and final pass of mkimage must be run. I have bash scripts for doing this automatically for multiple images, if anyone is interested. HTH, Kyle.