1、首先下载u-boot(ftp://ftp.denx.de/pub/u-boot)
wget ftp://ftp.denx.de/pub/u-boot/u-boot-latest.tar.bz2
2、解压到你指定下路径中
tar -jxvf u-boot-latest.tar.bz2 -C /opt
步骤2
1、进入u-boot-<发布日期>文件夹
cd /opt/u-boot-2011.06/
cd board/samsung/
2、建立smdk6410文件夹
mkdir smdk6410
3、复制6400文件夹下的所有代码到6410下
cp -rf smdk6400/* smdk6410
4、进入smdk6410
cd smdk6410
5、将smdk6400_and_spl.c和smdk6400.c改为smdk6410_and_spl.c和smdk6410.c
mv smdk6400_nand_spl.c smdk6410_nand_spl.c
mv smdk6400.c smdk6410.c
6、打开smdk6410中的Makefile,将COBJS-y := smdk6400.o改为COBJS-y := smdk6410.o
vim Makefile
7、回到U-boot根目录,进入include/configs/ 复制smdk6400.h 并改名为smdk6410.h
cd include/configs/
cp smdk6400.h smdk6410.h
步骤3
1、打开U-boot根目录下的Makefile
vim Makefile
2、指定交叉编译工具,找到CROSS_COMPILE?=在等号后面添加arm-linux-
:/CROSS
CROSS_COMPILE ?=arm-linux-
3、找到smdk6400_noUSB_config /
将有关6400的所有行复制并将其中的6400替换为6410
smdk6410_noUSB_config /
smdk6410_config : unconfig
@mkdir -p $(obj)include $(obj)board/samsung/smdk6410
@mkdir -p $(obj)nand_spl/board/samsung/smdk6410
@echo "#define CONFIG_NAND_U_BOOT" > $(obj)include/config.h
@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
@if [ -z "$(findstring smdk6410_noUSB_config,$@)" ]; then /
echo "RAM_TEXT = 0x57e00000" >> $(obj)board/samsung/smdk6410/config.tmp;/
else /
echo "RAM_TEXT = 0xc7e00000" >> $(obj)board/samsung/smdk6410/config.tmp;/
fi
@$(MKCONFIG) smdk6410 arm arm1176 smdk6410 samsung s3c64xx
@echo "CONFIG_NAND_U_BOOT = y" >> $(obj)include/config.mk
步骤4
1、从U-boot根目录,进入nand_spl/board/samsung/
cd nand_spl/board/samsung/
2、新建目录smdk6410并将smdk6400下的所有文件复制到smdj6410中
mkdir smdk6410
cp -ar smdk6400/* smdk6410/
步骤5
make smdk6410_config
make
更多回帖