|
PXA3XX平台(MONAHANS) 内存升级 128M(两片64)升级到256M(两片128)
[复制链接]
http://topic.eeworld.net/u/20081121/16/4ba50dc9-fe31-48b9-acce-0619bb010372.html?27857
和这个帖子的情况基本相同,从里面看到不少东西,但我们的两个平台实现上好像有些差距。config.bib和oemaddrtab都差不多。我们的平台是这样实现的。
void NKStartup (struct KDataStruct * pKData)
{
...
...
OEMInit(); // initialize firmware
// flush I&D TLB
OEMCacheRangeFlush (NULL, 0, CACHE_SYNC_FLUSH_TLB);
KernelFindMemory();
...
...
}
OEMInit();中没有找到OEMGetExtensionDram,在KernelFindMemory中找到了,如下:
KernelFindMemory(void){
...
...
//
// Ask OEM if extension RAM exists.
//
if (g_pOemGlobal->pfnEnumExtensionDRAM) {
cExtSections = (*g_pOemGlobal->pfnEnumExtensionDRAM)(MemSections, MAX_MEMORY_SECTIONS - 1);
DEBUGCHK(cExtSections < MAX_MEMORY_SECTIONS);
} else if (OEMGetExtensionDRAM (&MemSections[0].dwStart, &MemSections[0].dwLen)) {
cExtSections = 1;
} else {
cExtSections = 0;
}
dwRAMStart = pTOC->ulRAMStart;
dwRAMEnd = g_pOemGlobal->dwMainMemoryEndAddress;
mainpages = (PAGEALIGN_DOWN(g_pOemGlobal->dwMainMemoryEndAddress) - PAGEALIGN_UP(pTOC->ulRAMFree+MemForPT))/VM_PAGE_SIZE - 4096/VM_PAGE_SIZE;
...
...
}
同样存在无法启动的问题。
|
|