(2)x210:change the physical meme addr to 30000000 in uboot

1) in smdkv210single.h

//#define MEMORY_BASE_ADDRESS   0x20000000
#define MEMORY_BASE_ADDRESS     0x30000000

#if defined(CONFIG_MCP_SINGLE)
//jimmy comment #define DMC0_MEMCONFIG_0        0x20E01323      // MemConfig0   256MB config, 8 banks,Mapping Method[12:15]0:linear, 1:linterleaved, 2:Mixed
#define DMC0_MEMCONFIG_0        0x30F01323      // MemConfig0   256MB config, 8 banks,Mapping Method[12:15]0:linear, 1:linterleaved, 2:Mixed


//jimmycomment
//#define SDRAM_BANK_SIZE         0x20000000    /* 512 MB */
#define SDRAM_BANK_SIZE         0x10000000    /* 256 MB */

//jimmy comment
//#define PHYS_SDRAM_2            (MEMORY_BASE_ADDRESS + SDRAM_BANK_SIZE) /* SDRAM Bank #2 */

#define PHYS_SDRAM_2            0x40000000 /* SDRAM Bank #2 */


2) change mmu table in /arm/samsung-dev-uboot/board/samsung/smdkc110/lowlevel_init.S

//jimmy change 200 to 300 for the psy-add 30000000
        .set __base,0x300
        // 256MB for SDRAM with cacheable
        .rept 0xD00 - 0xC00
        FL_SECTION_ENTRY __base,3,0,1,1
        .set __base,__base+1
        .endr
3)

/arm/samsung-dev-uboot/board/samsung/smdkc110/smdkc110.c


ulong virt_to_phy_smdkc110(ulong addr)
{
        if ((0xc0000000 <= addr) && (addr < 0xd0000000))
                //jimmy
               //return (addr - 0xc0000000 + 0x20000000);
                return (addr - 0xc0000000 + 0x30000000);
        else
                printf("The input address don't need "\
                        "a virtual-to-physical translation : %08lx\n", addr);

        return addr;
}

4)make distclean

make smdkv210single_config

make

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值