u boot 1.3.2 run in flash for at91rm9200
主要目的:移植u-boot-1.3.2到K9开发板,使其直接从FLASH
启
动,而不是通过boot.bin和u-boot
压
缩文件
启动。实现u-
boot的非压缩式的从FLASH的0x10000000地址处直接启动。
硬件资源:K9开发
板
MCU : ATMEL AT91RM9200 QU
SDRAM :
HY57V281620HCT-H 2片(4banks*2M*16bits=16MB,2片组成32M内存空间
)
Nor Flash:
JS28F128,类似于28F128J3A,不过速度快点。位宽是16bits,容量为16M。
PHY :
DM9161E
u-boot版本:u-boot-1.3.2
FLASH驱动、SDRAM、FLASH大小等修改在此不再多说,主要是修改nor
FLASH驱动(board/atmel/flash.c)、开发板配置文件(include/conifgs/at91rm9200dk.h)、加载地址
等几个文件。本文的
主要目的介如何使u-boot直接从FLASH的0x10000000处启动的办法。
之前成功的将u-boot-1.3.2移植到该硬件平台,不过u-boot是通过load.bin将u-boot解压到SDRAM中运行的!后来直接将
u-boot.bin烧入FALSH后,重新上电后
相关文档:
经daquan提醒,发现听雨对于上传的flash文件的脚本没有处理,用户能够利用上传的flash的脚本功能(比如带有geturl动作的flash)实现自动跳转到某个站点。
到北邮人论坛参考了一下,发现他们有对flash脚本的禁用,于是借鉴北邮人的做法,对听雨的flash附件脚本动作进行了处理,具体做法如下:
改动之前的代码:
<objec ......
怕哪天再用到,省的再重新写:
#!/bin/sh
save_path=$1
log_path="/usr/local/nginx/logs/null.log"
_from=`head $log_path -n1 |awk '{print $4}'|awk -F"[" '{print $2}'|grep -oE "[A-Za-z0-9:]+"`
_end=`tail $log_path -n1 |awk '{print $4}'|awk -F"[" '{print $2}'|grep -oE "[A-Za-z0-9:]+"`
from=`echo $_ ......
class CFlashPlayer {
public:
/**
创建播放器
playerUrl : 播放器对应的URL,例如要播放优酷的视频,则URL填:
http://static.youku.com/v1.0.0103/v/swf/qplayer.swf
**/
static CFlashPlayer* createFlashPlayer (const string& playerUrl, EMhwlibTVStandard standard, b ......
Beside the different silicon cell design, the most important difference between NAND and NOR Flash is the bus interface. NOR Flash is connected to a address / data bus direct like other memory devices as SRAM etc. NAND Flash uses a multiplexed I/O Interface with some additional control pins. NAND fl ......