User manual
U-Boot for MPL SBC
User Manual
2003 by MPL AG
34
MEH-10082-002 Rev. D
High-Tech • Made in Switzerland
3.5.5 Creating a new U-Boot Image
Provided that you have already build a appropriate toolchain use following steps to build a new u-boot:
• Download the latest u-boot sources from www.u-boot.sourceforge.net
• Set the environment variable CROSS_COMPILE accordingly to your toolchain and make sure that the path to your
cross toolchain is included in your PATH variable. Example:
export CROSS_COMPILE=powerpc-linux-
• Untar the sources to a <user defined directory>
<user defined directory>tar xjvf <downloaded u-boot path>/u-boot.tar.bz2
• Configure u-boot:
cd <user defined directory>/u-boot
make MIP405_config
For MPL boards following config strings are used:
MIP405
make MIP405_config
MIP405T
make MIP405T_config
PIP405
make PIP405_config
VCMA9
make VCMA9_config
• Build u-boot:
make
After successful building, the binary u-boot.bin should reside in the <user defined directory>.
• Create the image:
For MIP405, MIP405T and PIP405 use following command to create the u-boot image:
tools/mkimage –A ppc –O u-boot –T firmware –C none –a fff80000 –e 0 –n ‘U-Boot for MIP405’ \
–d u-boot.bin u-boot.img
Alternatively you can gzip the binary image which results in faster load time. This may be useful if you intend to load the
image via the serial line:
cp u-boot.img u-boot.zip
gzip -f u-boot.zip
tools/mkimage –A ppc –O u-boot –T firmware –C gzip –a fff80000 –e 0 –n ‘U-Boot for MIP405’ \
–d u-boot.zip u-boot.img
For the VCMA9 use following command:
tools/mkimage -A arm -O u-boot -T firmware -C none -a 0 -e 0 -n ‘U-Boot for VCMA9’
-d u-boot.bin u-boot.img
To update the u-boot on the target board refer to chapter 3.5.1 Updating the bootloader.