|
楼主 |
发表于 2009-7-9 14:55:13
|
显示全部楼层
9261从SD卡启动
折腾了几天,终于可以让9261从SD卡启动了(我使用的板是上面的SBC6000X),,我使用的资料是从官方的代码包中拿来的,效果很不错,现在已经可以将SD卡中的uboot和uImage加载到SDRAM中了,速度很不错,整个过程花的时间大致为2秒钟,现在将文件系统也加入进去,这样的话,可以将速度提高不少,整个的启动时间可以控制在8秒内,这样大家调试就方便多了。
我小整理了一下,放上来给大家参考一下,现在从SD卡启动的速度可以控制10秒左右,调试很爽,烧写速度也很快,可以将UBOOT调入内存后利用UBOOT操作NANDflash的功能将各种代码都下载到nandflash上去,下面是烧写和启动信息:
-- AT91bootstrap Project 3.0 --
-- AT91SAM9261-EK
-- Compiled: Jun 8 2009 12:00:44 --
-I- Setting: MCK = 99MHz
-I- I cache is already enabled.
-I- Init SDRAM
-I- MEDSdcard init
-I- SD card detection not available, assuming card is present
-I- Cannot check if SD card is write-protected
-I- SD/MMC card initialization successful
-I- Card size: 238 MB
-I- Block size: 512 Bytes
-I- Copy "uboot.bin" from SdCard to 0x23f00000
-I- Copy "uImage" from SdCard to 0x20400000
-I- Copy "rootfs.bin" from SdCard to 0x20600000
-I- Copy "nand.bin" from SdCard to 0x203e0000
-I- Copy "u-boot.bin" from SdCard to 0x21800000
-I- Jump to 0x23f00000
U-Boot 1.3.4 (Jun 08 2009 - 18:46:09)
DRAM: 64 MB
NAND: 128 MiB
*** Warning - bad CRC or NAND, using default environment
In: serial
Out: serial
Err: serial
dm9000 i/o: 0x30000000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: de:ad:be:ef:01:01
operating at unknown: 15 mode
Hit any key to stop autoboot: 0
U-Boot>
NAND erase: device 0 whole chip
Erasing at 0x7fe0000 -- 100% complete.
OK
NAND write: device 0 offset 0x0, size 0x10000
Writing at 0x0 -- 0% is complete. 65536 bytes written: OK
NAND write: device 0 offset 0xa0000, size 0x200000
Writing at 0x280000 -- 94% is complete. 2097152 bytes written: OK
NAND write: device 0 offset 0x20000, size 0x40000
Writing at 0x40000 -- 50% is complete. 262144 bytes written: OK
NAND write: device 0 offset 0x2a0000, size 0xc8cdc0
Writing at 0x560000 -- 22% is complete.
马上把移植成功的代码发上来给大家共享下 |
|