|
1.成功测试RAM配置文件如下:
arch:arm
cpu: arm920t
mach: s3c2410x
#physical memory
mem_bank: map=M, type=RW, addr=0x00000000, size=0x01000000
mem_bank: map=M, type=RW, addr=0x33f00000, size=0x00200000, file=./u-boot, boot=yes
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x01000000
mem_bank: map=M, type=RW, addr=0xc1000000, size=0x00600000
mem_bank: map=M, type=RW, addr=0xc1600000, size=0x00a00000
#all peripherals I/O mapping area
#mem_bank: map=I, type=RW, addr=0xfefa0000, size=0x00060000
mem_bank: map=I, type=RW, addr=0x48000000, size=0x20000000
mem_bank: map=I, type=RW, addr=0x19000300, size=0x00000020
#net: type=cs8900a, base=0x19000300, size=0x20,int=9, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
lcd:type=s3c2410x,mod=win32
uart: mod=term
#flash: type=SST39VF160, base=0x33f00000, size=0x00200000
#dbct:state=on
运行结果是:
U-Boot 1.1.6<Jan 11 2.10 - 15:01:00)
DRAM:64MB
Flash:16MB
*** Waring - bad CRC,using default environment
In:serial
Out:serial
Err:serial
SMKD2410 #
输入flinfo后,显示信息如下:
Bank # 1:AMD:1 * Am29LV400BB<4Mbit>
Size:16 MB in 12 sectors
Sector Start Addresses:
00000000 <R0> 00004000 <R0> 00006000 <R0> 00008000 <R0> 00010000<R0>
00020000 <R0> 00030000 00040000 00050000 00060000
00070000 00080000
SMKD2410 #
2.如果我们把配置文件中的flash那行的#去掉,把相关的mem_bank的配置改为:
mem_bank: map=F, type=RW, addr=0x33f00000, size=0x00200000, file=./u-boot, boot=yes
即:从flash中加载u-boot (elf文件),如果可以显示u-boot的信息,即和1中所显示的相同,即检验了skyeye中仿真的flash硬件,那么也就说明了仿真的flash的作用,可以运行Uboot,并进一步引导操作系统内核的加载。
但是问题出现了:我们这样配置之后,run 之后,没有任何显示信息;是不是skyeye提供的uboot测试用例不支持sst型号的falsh呢?如果想要达到我说的效果,应该怎么测试,还请高手指点,这个验证norflash的过程是值得探讨的。谢谢! |
|