linux 内核 sdram初始化,为AM335x移植Linux内核主线代码(22)Run u-boot.bin in SDRAM

Running u-boot.bin in SDRAM can save time and be good for SD card and NAND Flash.

Reference:

http://blog.chinaunix.net/uid-25605754-id-1564890.html

Step 1: add these defines in config file. These defines will make U-Boot to skip low-level initialization. SPL/MLO need not to be executed.

#define CONFIG_SKIP_LOWLEVEL_INIT

#define CONFIG_SKIP_RELOCATE_UBOOT

Step 2: change SYS_TEXT_BASE in include/configs/ti_armv7_common.h. It cannot be set default value 0x80800000, as it's default u-boot address.

#define CONFIG_SYS_TEXT_BASE            0x83000000

Step 3: make.

Step 4: cp ../build/u-boot.bin /tftp_root/

Step 5: execute u-boot cmds. Then the new u-boot.bin will be executed.

set ipaddr 192.168.1.117; set serverip 192.168.1.116

tftp 0x83000000 u-boot.bin

go 0x83000000

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值