各位大侠请教:OAL层到加载驱动的疑问..HELP!!!急!!!

[复制链接]
查看11 | 回复0 | 2007-10-20 08:38:44 | 显示全部楼层 |阅读模式
硬件平台:pxa270,SDRAM:128M,FLASH :32M
软件平台:(1/2)* wince50 (还没完成)
现在系统已经通过了 boot 并且成功进入OAL的OEMInit
打印信息如下:
Microsoft Windows CE Ethernet Bootloader Common Library Version 1.1 Built Jun 11 2009 13:33:30
Microsoft Windows CE Ethernet Bootloader 1.7 for the Intel MainstoneII
Development Platform Built Jun 11 2009
//启动Eboot!
OEMLcdScreen is not finish yet!and will be done later!

Starting auto download Selection = 0
LockID is running
XLLP_CLKEN_USBCLIENT is running
OEM_USBConfigureDevice is running!
Waiting for USB Connecting...USB Connected !
//通过USB传NK
OEM_USBConfigureDevice is successful !
main :STEP 7 !!!.
System ready!
Preparing for download...
INFO: Using device name: ''
OEMPreDownload g_DownloadImage = 1!
Bufflen is 4IMAGE Len : 28311552
.............
USB download completed!
//NK.NB0已经下载到SDRAM中
1111--------------!
xxxxxxxxxxxxyyyyyyyyyyyyy!

FlashWrite in ! ...
//开始写到FLASH中
dwPhysLen = 28311552
num_blocks = 216
BBBBBBBBBBBB
........i = 128
Erasing Flash BAB00000 to BC5FFFFF: Please wait ...
//当然,先要把FLASH擦干净...
........................................................................................................................................................................................................................
Flash erasing complete.

Now programming Flash ...
//开始将NK.NB0写到FLASH中
........................................................................................................................................................................................................................
Comparing Flash vs RAM image ...
//做一下校验

Flash programmed successfully!
//写完!
Will goto launch!
OEMLaunch is running!!!!!!!!!!!!
Download successful!Jumping to image at 0x9AB00000


//向OEMLaunch传地址0x9AB00000是FLASH的虚拟地址
(physical 0x100000)...
//对应物理地址为0x100000从这里启动
start the last launch !
//开始启动NK

//这部分是在OAL的startup.s中运行的部分,

//然后又跳到了kernelstart


-OEMInitDebugSerial is RUNNING2222!


//kernelstart跳到了ArmInit,ArmInit调用OEMInitDebugSerial初始化串口
Windows CE Kernel for ARM (Thumb Enabled) Built on Aug4 2008 at 18:38:38
ProcessorType=0411Revision=7
sp_abt=ffff5000 sp_irq=ffff2800 sp_undef=ffffc800 OEMAddressTable = 9ab068a8
+OEMInit
-OEMInit
//arminit函数调用OEMINIT
Sp=ffffc7cc


//还是在ArmInit中:

KernelFindMemory();

NKDbgPrintfW(L"Sp=%8.8x\r\n", &cpuType);
RTC:Read time from PCF8563.......sucessed


//应该是从ARMINIT中跳了出来了,但是不知道是哪里调用了RTC的驱动
OEMIoControl: Unsupported Code 0x101008c - device 0x0101 func 35

//这个不知道是哪里调用的,同时还有个Unsupported Code ??
Initialize NAND Flash Controller.
NAND_Init:return 0x1
Initialize NAND Flash Controller Successfully.
//这个应该是我加了

file systems and data stroe/storage manager/fat file system/partition driver

出的打印信息,可是奇怪,为什么我以前也加这个组件但是并没有这个打印信息

更奇怪的是系统跑到这里就停止了!!!!

进到这里是不是已经开始加载驱动了呢??

我在显示驱动的入口DrvEnableDriver中添加打印信息也没有出来
请问,进入OAL的startup之后系统是怎么调用的BSP下的函数??
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行