KITL移植续

直接添加HFKR的KITL文件夹,直接编译以下几个错误:
NMAKE :  U1073: don't know how to make 'D:\WINCE600\platform\mini2440\lib\ARMV4I\debug\s3c2440a_args.lib'
删除$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\s3c2440a_args.lib \这个静态库,
接着编译产生如下问题:
NMAKE :  U1073: don't know how to make 'D:\WINCE600\platform\mini2440\lib\ARMV4I\debug\nandflash_lib.lib'
接着删除:    $(_TARGETPLATROOT)\lib\$(_CPUDEPPATH)\nandflash_lib.lib  \这个静态库
继续编译,产生错误:
kitl.obj : error LNK2019: unresolved external symbol OALArgsQuery referenced in function OEMKitlStartup
接着将DEVICEEMULATOR中的ARGS.C复制到KITL文件目录下,在SOURCE中添加ARGS.H文件,并将INC目录下的ARGS,H进行相应的更换,重新编译

KITL,错误如下:
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000045:ERRORE] D:\WINCE600\PLATFORM\mini2440\src\kitl\.\args.c(109) : error C2065:

'BSP_BASE_REG_PA_CS8900A_IOBASE' : undeclared identifier
BUILD: [01:0000000046:ERRORE] D:\WINCE600\PLATFORM\mini2440\src\kitl\.\args.c(130) : error C2065: 'OAL_ARGS_QUERY_UPDATEMODE'

: undeclared identifier
BUILD: [01:0000000047:ERRORE] D:\WINCE600\PLATFORM\mini2440\src\kitl\.\args.c(130) : error C2051: case expression not constant

清理,并进行重新全部编译,错误如下:
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000045:ERRORE] D:\WINCE600\PLATFORM\mini2440\src\kitl\.\args.c(109) : error C2065:

'BSP_BASE_REG_PA_CS8900A_IOBASE' : undeclared identifier
BUILD: [01:0000000046:ERRORE] D:\WINCE600\PLATFORM\mini2440\src\kitl\.\args.c(130) : error C2065: 'OAL_ARGS_QUERY_UPDATEMODE'

: undeclared identifier
BUILD: [01:0000000047:ERRORE] D:\WINCE600\PLATFORM\mini2440\src\kitl\.\args.c(130) : error C2051: case expression not constant
估计还是args.c文件的问题,这次换成6.0的args.c再试试!
先编译KITL,错误如下:
 NMAKE :  U1073: don't know how to make 'D:\WINCE600\platform\mini2440\lib\ARMV4I\debug\oal_memory_s3c2440a.lib'
继续删除:    $(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\oal_memory_s3c2440a.lib \
接着编译,错误一下子成了5个,啥情况?
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000120:ERRORE] kitlser.obj : error LNK2019: unresolved external symbol OALPAtoVA referenced in function

S3C2440UART_Init
BUILD: [01:0000000121:ERRORE] kitlusbser.obj : error LNK2001: unresolved external symbol OALPAtoVA
BUILD: [01:0000000122:ERRORE] kitl.obj : error LNK2001: unresolved external symbol OALPAtoVA
BUILD: [01:0000000123:ERRORE] kitlusbser_lib.lib(kitlusbser.obj) : error LNK2001: unresolved external symbol OALPAtoVA
BUILD: [01:0000000124:ERRORE] D:\WINCE600\platform\mini2440\target\ARMV4I\debug\kitl.dll : fatal error LNK1120: 1 unresolved

externals

整体编译,这次要过不了,我就把周六的KITL移植过来重新编译,哦想起来了,INC下的args.c是DEVICEEMULATOR的,不是HFRK的,等下编译完

成后,换过来再试试。
换成HFRK的args.c以后,重新编译还是有错:
BUILD: [01:0000000120:ERRORE] kitlser.obj : error LNK2019: unresolved external symbol OALPAtoVA referenced in function

S3C2440UART_Init
BUILD: [01:0000000121:ERRORE] kitlusbser.obj : error LNK2001: unresolved external symbol OALPAtoVA
BUILD: [01:0000000122:ERRORE] kitl.obj : error LNK2001: unresolved external symbol OALPAtoVA
BUILD: [01:0000000123:ERRORE] kitlusbser_lib.lib(kitlusbser.obj) : error LNK2001: unresolved external symbol OALPAtoVA
出现在哪呢?不管了换成周六编译的吧,看看啥情况?
晕!!!!!居然成功了,而且只有26个警告,太帅了!
哈哈~~~~
贴出来下:
Compacting bin file...
Done!
makeimg: Check for D:\WINCE600\OSDesigns\OSDesign6\OSDesign6\RelDir\mini2440_ARMV4I_Debug\PostRomImage.bat to run.
makeimg: Check for D:\WINCE600\OSDesigns\OSDesign6\OSDesign6\RelDir\mini2440_ARMV4I_Debug\PostMakeImg.bat to run.
makeimg: Change directory to D:\WINCE600.
makeimg: run command: cmd /C D:\WINCE600\public\common\oak\misc\pbpostmakeimg
 驱动器 D 中的卷没有标签。
 卷的序列号是 ECD7-86D2

 D:\WINCE600\OSDesigns\OSDesign6\OSDesign6\RelDir\mini2440_ARMV4I_Debug 的目录

2009-11-02  11:34         3,575,923 NK.bin
               1 个文件      3,575,923 字节
               0 个目录 20,886,196,224 可用字节

BLDDEMO: OSDesign6 build complete.

OSDesign6 - 0 error(s), 26 warning(s)
========== 生成: 1 成功或最新,0 失败,0 被跳过 ==========
下午接着搞,按照周六的思路...呵呵~~~

以下接着周六的思路继续往下走:
1.    加上$(_TARGETPLATROOT)\lib\$(_CPUDEPPATH)\nandflash_lib.lib  \静态库,果然有错误啊,两个:
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000104:ERRORE] NMAKE :  U1073: don't know how to make 'D:\WINCE600\platform\Micro2440

\lib\ARMV4I\debug\nandflash_lib.lib'
BUILD: [01:0000000106:ERRORE] NMAKE.EXE TargetExeFiles  -i -c BUILDMSG=Stop.  BUILDROOT=D:\WINCE600\PLATFORM\Micro2440

CLEANBUILD=1 LINKONLY=1 NOPASS0=1MAKEDLL=1 failed - rc = 2
2.加上$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\s3c2440a_args.lib \这个静态库
还是这两个错误:
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000104:ERRORE] NMAKE :  U1073: don't know how to make 'D:\WINCE600\platform\Micro2440

\lib\ARMV4I\debug\nandflash_lib.lib'
BUILD: [01:0000000106:ERRORE] NMAKE.EXE TargetExeFiles  -i -c BUILDMSG=Stop.  BUILDROOT=D:\WINCE600\PLATFORM\Micro2440

CLEANBUILD=1 LINKONLY=1 NOPASS0=1MAKEDLL=1 failed - rc = 2
删除第一个静态库,重新编译,还是两个错误,和周六早上的错误一样:
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000104:ERRORE] NMAKE :  U1073: don't know how to make 'D:\WINCE600\platform\Micro2440

\lib\ARMV4I\debug\s3c2440a_args.lib'
BUILD: [01:0000000106:ERRORE] NMAKE.EXE TargetExeFiles  -i -c BUILDMSG=Stop.  BUILDROOT=D:\WINCE600\PLATFORM\Micro2440

CLEANBUILD=1 LINKONLY=1 NOPASS0=1MAKEDLL=1 failed - rc = 2
难道这两个静态库真的不能加?
在上步的基础之上,将DEVICEEMULATOR目录下的args.h文件复制到Micro目录下并进行覆盖,肯定有错,早上好像这种思路尝试过,现在看看有

没有更改的余地:
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [01:0000000455:ERRORE] NMAKE :  U1073: don't know how to make 'D:\WINCE600\platform\Micro2440

\lib\ARMV4I\debug\s3c2440a_args.lib'
BUILD: [01:0000000457:ERRORE] NMAKE.EXE TargetExeFiles  -i -c BUILDMSG=Stop.  BUILDROOT=D:\WINCE600\PLATFORM\Micro2440

LINKONLY=1 NOPASS0=1MAKEDLL=1 failed - rc = 2
在KITL目录下,将$(_TARGETPLATROOT)\lib\$(_CPUINDPATH)\s3c2440a_args.lib \这个静态库删除,看下啥反应,应为现在的情况和早上的情

况有点类似,也只有26个警告。期待...
果然成功!但是居然有3099个警告,费解!
如果,我再将INC下的args.h文件换回去结果如何呢?接着,将早上成功的INC文件下的args.h文件复制到Micro文件中相应位置并进行覆盖,结

果如下:成功,但是警告只有845个。
D:\WINCE600\OSDesigns\OSDesign3\OSDesign3\RelDir\Micro2440_ARMV4I_Debug 的目录

2009-11-02  16:19         3,379,543 NK.bin
               1 个文件      3,379,543 字节
               0 个目录 20,881,526,784 可用字节

BLDDEMO: OSDesign3 build complete.

OSDesign3 - 0 error(s), 845 warning(s)
========== 生成: 1 成功或最新,0 失败,0 被跳过 ==========

不知道咋回事,先mark,以后慢慢了解吧!
呵呵,毕竟都成功了嘛!
KITL这个事情,先放到这里吧,毕竟也花费了不少时间,至于CS8900A还是DM9000,这个问题也很重要,给我点时间先放在这里,以后我会回来

解决的!接下来的这段时间继续移植LCD,TOUCH,FMD,等等还有好多呢。


 

你可能感兴趣的:(it)