CPU是PXA270,u-boot版本是u-boot-1.3.0
u-boot本身支持很多开发板,其中adsvix使用的是PXA27x处理器,因此可以把它作为模板。
(1)在目录board下添加目标板目录
cp -af adsvix dn270
mv adsvix/adsvix.c dn270/dn270.c
修改Makefile
#COBJS := adsvix.o pcmcia.o
COBJS := dn270.o pcmcia.o
(2)添加目标板配置头文件
cd include/configs/
cp adsvix.h dn270.h
注释掉”#define CONFIG_CMD_IDE”这一行
添加网卡相关定义
#define CONFIG_DRIVER_CS8900 1 /* we have a CS8900 on-board */
#define CS8900_BASE 0x14000300 /* armadillo board */
#define CS8900_BUS16 1
#undef CS8900_BUS32
添加修改环境变量
#define CONFIG_ETHADDR 08:00:3e:26:0a:5b
#define CONFIG_NETMASK 255.255.0.0
#define CONFIG_IPADDR 192.168.1.5
#define CONFIG_SERVERIP 192.168.1.61
修改GPIO寄存器和内存控制器配置
#define CFG_GPSR0_VAL 0x00008000
#define CFG_GPSR1_VAL 0x00df0002
#define CFG_GPSR2_VAL 0x0031c000
#define CFG_GPSR3_VAL 0x00000000
#define CFG_GPCR0_VAL 0x00000000
#define CFG_GPCR1_VAL 0x00000380
#define CFG_GPCR2_VAL 0x00000000
#define CFG_GPCR3_VAL 0x00000000
#define CFG_GPDR0_VAL 0x00008000
#define CFG_GPDR1_VAL 0x00df0382
#define CFG_GPDR2_VAL 0x0031c000
#define CFG_GPDR3_VAL 0x00000000
#define CFG_GAFR0_L_VAL 0x80000000
#define CFG_GAFR0_U_VAL 0x00000010 //| (2<<0 )
#define CFG_GAFR1_L_VAL 0x000a9558
#define CFG_GAFR1_U_VAL 0x0005a0aa
#define CFG_GAFR2_L_VAL 0xa0000000
#define CFG_GAFR2_U_VAL 0x00000402
#define CFG_GAFR3_L_VAL 0x00000000
#define CFG_GAFR3_U_VAL 0x00000000
#define CFG_MSC0_VAL 0x24392BD0
#define CFG_MSC1_VAL 0x00002661
#define CFG_MSC2_VAL 0x3ee97559
#define CFG_MDCNFG_VAL 0x00000AC9
#define CFG_MDREFR_VAL 0x00018018
#define CFG_MDMRS_VAL 0x00000000
(3)修改Makefile
添加
dn270_config: unconfig
@$(MKCONFIG) $(@:_config=) arm pxa dn270
make dn270_config
make
阅读(4043) | 评论(14) | 转发(0) |