第一步:安装编译android系统必要的软件;
第二步:安装交叉编译工具链;
第三步:编译uboot
uboot的配置文件为smdkv210single.h,复制两份,一份命名为smdkv210_nand.h,一份命名为smdkv210_sd.h,
smdkv210_nand.h中做如下修改:
//#define CFG_FASTBOOT_ONENANDBSP
#define CFG_FASTBOOT_NANDBSP
//#define CFG_FASTBOOT_SDMMCBSP
#define CONFIG_EVT1 1
smdkv210_sd.h中做如下修改:
//#define CFG_FASTBOOT_ONENANDBSP
//#define CFG_FASTBOOT_NANDBSP
#define CFG_FASTBOOT_SDMMCBSP
#define CONFIG_EVT1 1
makefile中做如下修改:
CROSS_COMPILE = /opt/arm-2009q3/bin/arm-none-linux-gnueabi-
smdkv210single_config : unconfig
@$(MKCONFIG) $(@:_config=) arm s5pc11x smdkc110 samsung s5pc110
@echo "TEXT_BASE = 0xc3e00000" > $(obj)board/samsung/smdkc110/config.mk
smdkv210_nand_config : unconfig
@$(MKCONFIG) $(@:_config=) arm s5pc11x smdkc110 samsung s5pc110
@echo "TEXT_BASE = 0xc3e00000" > $(obj)board/samsung/smdkc110/config.mk
smdkv210_sd_config : unconfig
@$(MKCONFIG) $(@:_config=) arm s5pc11x smdkc110 samsung s5pc110
@echo "TEXT_BASE = 0xc3e00000" > $(obj)board/samsung/smdkc110/config.mk
注意,smdkv210_nand_config和smdkv210_sd_config为新增的语句,用于配置nand和SD卡;
再制作uboot编译脚本,命名为mk,内容如下:
#!/bin/sh
# create by liuqiming
# date: 2011-11-24
MODE=$1
CPU_NUM=$(cat /proc/cpuinfo |grep processor|wc -l)
CPU_NUM=$((CPU_NUM+1))
mkdir -p /h
第二步:安装交叉编译工具链;
第三步:编译uboot
uboot的配置文件为smdkv210single.h,复制两份,一份命名为smdkv210_nand.h,一份命名为smdkv210_sd.h,
smdkv210_nand.h中做如下修改:
//#define CFG_FASTBOOT_ONENANDBSP
#define CFG_FASTBOOT_NANDBSP
//#define CFG_FASTBOOT_SDMMCBSP
#define CONFIG_EVT1 1
smdkv210_sd.h中做如下修改:
//#define CFG_FASTBOOT_ONENANDBSP
//#define CFG_FASTBOOT_NANDBSP
#define CFG_FASTBOOT_SDMMCBSP
#define CONFIG_EVT1 1
makefile中做如下修改:
CROSS_COMPILE = /opt/arm-2009q3/bin/arm-none-linux-gnueabi-
smdkv210single_config : unconfig
@$(MKCONFIG) $(@:_config=) arm s5pc11x smdkc110 samsung s5pc110
@echo "TEXT_BASE = 0xc3e00000" > $(obj)board/samsung/smdkc110/config.mk
smdkv210_nand_config : unconfig
@$(MKCONFIG) $(@:_config=) arm s5pc11x smdkc110 samsung s5pc110
@echo "TEXT_BASE = 0xc3e00000" > $(obj)board/samsung/smdkc110/config.mk
smdkv210_sd_config : unconfig
@$(MKCONFIG) $(@:_config=) arm s5pc11x smdkc110 samsung s5pc110
@echo "TEXT_BASE = 0xc3e00000" > $(obj)board/samsung/smdkc110/config.mk
注意,smdkv210_nand_config和smdkv210_sd_config为新增的语句,用于配置nand和SD卡;
再制作uboot编译脚本,命名为mk,内容如下:
#!/bin/sh
# create by liuqiming
# date: 2011-11-24
MODE=$1
CPU_NUM=$(cat /proc/cpuinfo |grep processor|wc -l)
CPU_NUM=$((CPU_NUM+1))
mkdir -p /h