我想把VXWORKS移植到S3C4510B上面,其中主机一个串口,所以用的TSFS目标文件服务器下载VXWORKS的镜像。
我把wrSBCarm7中的复制过来了,同时改了下列文件:
我在config.h中改了以下东西
/* NO LCD support */
#undef INCLUDE_LCD
/* NO LED support */
#undef INCLUDE_LED
#define ROM_BASE_ADRS 0x01000000 /* base of Flash/EPROM 16 MB */
#define ROM_TEXT_ADRS ROM_BASE_ADRS /* code start addr in ROM */
#define ROM_SIZE 0x00080000 /* size of ROM holding VxWorks 512K */
#define ROM_COPY_SIZE ROM_SIZE
#define ROM_SIZE_TOTAL 0x00200000 /* total size of ROM 2MB */
#define RAM_LOW_ADRS 0x00001000 /* VxWorks image entry point */
#define RAM_HIGH_ADRS 0x00100000 /* RAM address for ROM boot */
#define SERIAL_DEBUG
#define INCLUDE_SERIAL
#undef NUM_TTY
#define NUM_TTY 1
#undef CONSOLE_TTY
#define CONSOLE_TTY NONE
#ifdef SERIAL_DEBUG
#undef WDB_COMM_TYPE
#define WDB_COMM_TYPE WDB_COMM_SERIAL
#undef WDB_TTY_CHANNEL
#define WDB_TTY_CHANNEL 0
#undef WDB_TTY_BAUD
#define WDB_TTY_BAUD 38400
#undef WDB_TTY_DEV_NAME
#define WDB_TTY_DEV_NAME "/tyCo/0"
#endif
#define INCLUDE_TSFS_BOOT
#define INCLUDE_TSFS_BOOT_VIO_CONSOLE
#undef INCLUDE_NETWORK
#undef INCLUDE_END
makefile文件中改了
CONFIG_ALL =$(TGT_DIR)\config\all
#
# The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined
# in config.h and Makefile.
# All definitions for these constants must be identical.
#
ROM_TEXT_ADRS = 01000000 # ROM entry address
ROM_WARM_ADRS = 01000004 # ROM warm entry address
ROM_SIZE = 0080000 # number of bytes of ROM space
RAM_LOW_ADRS = 00001000 # RAM text/data address (bootrom)
RAM_HIGH_ADRS = 00100000 # RAM text/data address (bootrom)
同时将wrSbcArm7.h中改了五个最重要的寄存器值,重新配置板上的FLASH和SDRAM的映射和重映射,
但是练到串口发现连不上,出现
Error: rpccore backend client Timed out
failed.
哪位达人帮小弟分析一下