2010年7月20日 星期二

u-boot and montavista kernel

mkimage always not find, because u must re-build your u-boot and set the absolute path in scripts/mkuboot.sh that is in your kernel root folder, for example:

1 #!/bin/bash
2
3 #
4 # Build U-Boot image when `mkimage' tool is available.
5 #
6 MKIMAGE_PATH="/home/joe/dm368/ipnc/Utils/src/u-boot/tools/"
7 MKIMAGE=$(type -path "${MKIMAGE_PATH}mkimage")
8
9
10 if [ -z "${MKIMAGE}" ]; then
11 # Doesn't exist
12 echo '"mkimage" command not found - U-Boot images will not be built' >&2
13 exit 0;
14 fi
15
16 # Call "mkimage" to create U-Boot image
17 ${MKIMAGE} "$@"


note that the ${MKIMAGE_PATH} is a big bracket.

rebuild kernel
defconfig first
make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm365_defconfig
(davinci_dm365_ipnc_defconfig/davinci_dm368_ipnc_defconfig)

verifying the montavista default kernel options
make ARCH=arm CROSS_COMPILE=arm_v5t_le- checksetconfig


make modules
host $ make ARCH=arm CROSS_COMPILE=arm_v5t_le- modules
host $ make ARCH=arm CROSS_COMPILE=arm_v5t_le-
INSTALL_MOD_PATH=/home//workdir/filesys modules_install

manual mkimage (only for dm368 ipnc)
./mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n Linux-2.6.18_pro500-davinci_IPNC -d zImage uImage


modify MTD partition with dm368_ipnc in below C file
ti-davinci/arch/arm/mach-davinci/board-dm368-ipnc.c

沒有留言:

張貼留言