各位大侠好:
最近在弄这个这个内存的扩展工作,硬件已经进行了修改,软件的具体修改工作如下:
1.fw.s
HandleFIQ是存放着FIQ服务程序入口地址的地址,内存多了64M,所以要加上64M的内存。
HandleFIQ EQU 0x33ffff1c
改成
HandleFIQ EQU 0x37ffff1c
这个文件第二个要改的地方
ldr r3, = (0x8C000000 - 0x30000000)
改成
ldr r3, = (0x88800000 - 0x30000000)
2.map.a
DCD 0x80000000, 0x02000000, 30 ; 30 MB SROM(SRAM/ROM) BANK 0
DCD 0x82000000, 0x08000000, 32 ; 32 MB SROM(SRAM/ROM) BANK 1
DCD 0x84000000, 0x10000000, 32 ; 32 MB SROM(SRAM/ROM) BANK 2
DCD 0x86000000, 0x18000000, 32 ; 32 MB SROM(SRAM/ROM) BANK 3
DCD 0x88000000, 0x20000000, 32 ; 32 MB SROM(SRAM/ROM) BANK 4
DCD 0x8A000000, 0x28000000, 32 ; 32 MB SROM(SRAM/ROM) BANK 5
DCD 0x8C000000, 0x30000000, 64 ; 64 MB DRAM BANK 0,1
改成
DCD 0x80000000, 0x02000000, 30 ; 30 MB SROM(SRAM/ROM) BANK 0
DCD 0x82000000, 0x08000000, 32 ; 32 MB SROM(SRAM/ROM) BANK 1
DCD 0x84000000, 0x10000000, 32 ; 32 MB SROM(SRAM/ROM) BANK 2
DCD 0x86000000, 0x18000000, 32 ; 32 MB SROM(SRAM/ROM) BANK 3
DCD 0x88000000, 0x20000000, 4 ; 32 MB SROM(SRAM/ROM) BANK 4
DCD 0x88400000, 0x28000000, 4 ; 32 MB SROM(SRAM/ROM) BANK 5
DCD 0x88800000, 0x30000000, 128 ; 128 MB DRAM BANK 0,1
3.reg2440.a
;Bank 6 parameter
B6_MT EQU 0x3 ;SDRAM
B6_Trcd EQU 0x1 ;3clk ; over 180M
B6_SCAN EQU 0x1 ;9bit
;Bank 7 parameter
B7_MT EQU 0x3 ;SDRAM
B7_Trcd EQU 0x1 ;2clk
B7_SCAN EQU 0x1 ;9bit