; For DMA API on STELLCOM Peacock, should be same as in config.bib file.
; VGXDMA 84040000 000E0000 RESERVED ; in config.bib
;; "SDRAM_BASE" = dword:84000000
;; "VGXDMABUF_ADDR" = dword:84040000
;; "VGXDMABUF_SIZE" = dword:E0000
ENDIF
3、在platform.bib文件里加入以下内容
IF BSP_DISPLAY_SMIVGX
ddi_vgx.dll $(_FLATRELEASEDIR)\ddi_vgx.dll NK SH
ENDIF BSP_DISPLAY_SMIVGX
4、驱动的smi.cpp文件,最开始加入
#define HOST_ENABLE
5、build,再下载到板子上。
运行时出现错误了,调试信息如下:
Windows CE Kernel for ARM (Thumb Enabled) Built on Jun 24 2004 at 18:25:00
ProcessorType=0920 Revision=0
sp_abt=ffff5000 sp_irq=ffff2800 sp_undef=ffffc800 OEMAddressTable = 8c2013bc
Windows CE Firmware Init
INFO: Initializing system interrupts...
INFO: Initializing system clock(s)...
INFO: Initializing driver globals area...
billy::yl to at test~
billy::InitDisplay() test1 !
billy::InitDisplay() test2 !
SDMMC config set rGPGCON: 86a6aa
SDMMC config Init Done.
OEMInit Done...
Sp=ffffc7cc
OEMSetRealTime: Year: 3, Month: 1, Day: 1, Hour: 12, Minute: 0, second: 0 rcnr=1h
NandFlash FMD_Init
NandFlash FMD_Init Done
384 clock
USB:OhcdPdd_Init
++InitializeOHCI
USB:*pIrq=11, *pioPortBase=0x160000
OHCD: MapIrq2SysIntr(11): 27
OHCD: Memory Object
--InitializeOHCI
SL_Open 0x417C0 (0 opens)
SetBaudRate -> 9600
SL_Close
SL_Open 0x42590 (0 opens)
SetBaudRate -> 9600
SL_Close
CIS_Init----
Cam_Init----
CAMERA.DLL::InterruptThread Initialized.
MACL = 544400,MACH = 0[dm9: Tries to map io space with 18000000
[dm9: The mapped address is 460000
[dm9: Chip signature is 90000A46
[dm9: Chip signature is 90000A46
DeviceFolder::LoadDevice!Enumerate Found deprecated load instructions at (Drivers\BuiltIn\AFD). Driver cannot be unloaded.
USB enable interrutp
DeviceFolder::LoadDevice!Enumerate Found deprecated load instructions at (Drivers\BuiltIn\PPP). Driver cannot be unloaded.
BTU: DLL_PROCESS_ATTACH
BTU: BTU_Init
v_pIOPregs->rDSC0 = 0
v_pIOPregs->rDSC1 = 3ff0ffff
m_pSM502Reg mis control = 1082
m_pSM502Reg 0x14 = 5146732
m_pSM502Reg 0x38 = 21807
m_pSM502Reg 0x3c = 2a1a0a09
m_pSM502Reg version = 50100c0
DeviceFolder::LoadDevice!Enumerate Found deprecated load instructions at (Drivers\BuiltIn\SDBusDriver). Driver cannot be unloaded.
charlie::SDIO::SDHOST::SDCSDCardDllEntry::DLL_PROCESS_ATTACH
charlie::SDIO::SDCInitialize+
charlie::SDIO::SDCInitialize-
BILLY:: TEST SM502
define HOST_ENABLE
SMIVGX - CrystalFreqency = 0x0000000C.
SMIVGX - VideoInterpolation = 0x00000003.
SMIVGX - FixedColorKey = 0x00000000.
SMIVGX - WaitVsync = 0x00000000.
SMIVGX - SetPowerCEPC = 0x00000000.
SMIVGX - FrameBuffer Base = 0x08000000.
SMIVGX - Register Base = 0x0BE00000.
Detect Card
m_pLAW = 0x46500000
m_pREG = 0x46D00000
SMIVGX - MONITOR #0
m_nChipID = 0x00000501
m_nLAWPhysical = 0x08000000
m_pLAW = 0x46500000
m_nREGPhysical = 0x0BE00000
m_pREG = 0x46D00000
SMIVGX - Mode not found (modeId = 0, 1688x1024@60)
Lyg.p: Layout Manager successfully initialized to 2
Touch Init
Maximum error 53 exceeds calibration threshold 7
MSIM: IM_ReadRegistry read KB 5
Data Abort: Thread=8fbf5a70 Proc=8da26250 'gwes.exe'
AKY=ffffffff PC=03fc5618(coredll.dll+0x00055618) RA=030e7160(ddi_vgx.dll+0x00007160) BVA=464ff800 FSR=00000007
Explorer(V2.0) taskbar thread started.
Data Abort: Thread=8f9b2a08 Proc=8da26250 'gwes.exe'
AKY=ffffffff PC=03fc5618(coredll.dll+0x00055618) RA=030e7160(ddi_vgx.dll+0x00007160) BVA=464ff800 FSR=00000007
RasEntry '`USB Socket Default' Created
Data Abort: Thread=8f9b2a08 Proc=8da26250 'gwes.exe'
AKY=ffffffff PC=03fc5618(coredll.dll+0x00055618) RA=030e7160(ddi_vgx.dll+0x00007160) BVA=464ff800 FSR=00000007
NDISPWR:: Found adapter [DM9CE1]