[U-Boot-Users] autoscript?
Kyle Harris
kharris at nexus-tech.net
Mon Dec 2 14:27:05 CET 2002
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.
More information about the U-Boot
mailing list