比较9G的uboot分析

common\cmd_flash.c
int do_fldata(cmd_tbl_t *cmdtp, int flag)函数
common\cmd_xmodem.c文件新增
common\xmodem.c文件新增
include\xmodem.h文件新增
include\configs\at92rm9200sat.h文件新增
lib_arm\board_OK.c文件新增

include\configs\SBC8560.h
#if XXX
#define DEBUG        /* General debug */
#define ET_DEBUG
#endif
#define TSEC_DEBUG

#define CONFIG_SERVERIP   YourServerIP
#define CONFIG_IPADDR   YourTargetIP
#define CONFIG_GATEWAYIP YourGatewayIP
#define CONFIG_NETMASK   255.255.255.0
#define CONFIG_HOSTNAME   SBC8560
#define CONFIG_ROOTPATH   YourRootPath
#define CONFIG_BOOTFILE   YourImageName

commom\Makefile文件中在
COBJS += cmd_xmodem.o xmodem.o
Makefile文件
新增以下两行,参考at91rm9200dk_config加入
at91rm9200sat_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200sat NULL at91rm9200

cpu\arm920t\start.S
#ifndef CONFIG_AT91RM9200DK
     mov ip, lr
     bl lowlevel_init
     mov lr, ip
#endif /* CONFIG_AT91RM9200DK */ //add by 2006-03-13


configs\at91rm9200sat.h 跟at91rm9200dk.h比较
#define CONFIG_ETHADDR    11:22:33:44:55:66
#define CONFIG_IPADDR    192.168.1.4
#define CONFIG_SERVERIP   192.168.1.3
#define CONFIG_HOSTNAME   SAT-LINUX
#define CONFIG_BOOTCOMMAND      \
"setenv ipaddr 192.168.1.4;" \
"rx 21000000 115200;" \
"rx 20410000 115200;" \
"setenv bootargs console=ttyS0,115200 initrd=0x20410000,3145728 root=/dev/ram rw ;" \
"go 21000000 "
// boot kernelimage and filesystems on TFTP-server

mku-boot-sat.sh文件新增,内容如下
#!/bin/sh
make mrproper
make clean
make at91rm9200sat_config
make
rm -f u-boot-1.1.6-sat.bin
rm -f u-boot-1.1.6-sat.bin.gz
cp u-boot.bin u-boot-1.1.6-sat.bin
gzip u-boot-1.1.6-sat.bin

你可能感兴趣的:(#嵌入式linux)