
22
TWR-MPC 5125
TWR-MPC5125 User Manual
Made by
www.
.com
semiconductor
#!/bin/bash
# checks for correct cmdline usage
if [ "$#" != "1" -a "$#" != "3" ]; then
echo "Usage: `basename $0` <dts-filename> [-o dtb-filename]"
exit 1
fi
DTS_FILE=$1
DTB_FILE=${DTS_FILE%%dts}dtb
if [ "${DTS_FILE##*.}" != "dts" ]; then
echo “`basename $0`: '$DTS_FILE' input file type error."
exit 1
fi
shift
if [ "$1" == "-o" ]; then
shift
DTB_FILE=$1
if [ "${DTB_FILE##*.}" != "dtb" ]; then
echo “`basename $0`: '$DTB_FILE' output file type error."
exit 1
fi
fi
./
arch/powerpc/boot/dtc -I dts -O dtb -S 0x3000 -o $DTB_FILE $DTS_FILE
Uncompress the kerenl uImage script file "mkvm":
#!/bin/bash
cat vmlinux.bin.gz | gunzip > vmlinux.bin
mkimage -A ppc -O Linux -T kernel -C none -a 0x0 -e 0x0 -n Linux-2.6 -d
vmlinux.bin $1
3). Build Device-tree
Compile the DTS script file "mkdts":
$ mkdts arch/powerpc/boot/dts/mpc5125-twr.dts -o mpc5125-twr.dtb
$ mkvm vmlinux-5125-twr.bin
Compressed kernel ulmage
in the path:
arch/powerpc/boot/uImage
Summary of Contents for TWR-MPC5125
Page 1: ...TWR MPC5125 User Manual semiconductor...
Page 31: ...Made by www com...