一、开发板介绍
开发板型号:NuMaker-Server-NUC980
开发平台特色
二、开发板外观
三、上电前的配置
①boot选择:SPI
PG0:OFF
PG1:OFF
②SPI NAND选择:SPI-NAND ,1 bit
PG8:ON
PG9:ON
③下载调试
con5:调试打印口
con21:usb下载口
默认分区,输入指令
mtdparts
四、开机启动
开发板已经下载好镜像,按照以上配置,上电即可。可看到开发板正常开机启动。
五、手动启动内核
sf probe 0 18000000 // 设置spi 时钟频率
//镜像从flash拷贝到ddr
sf read 0x7FC0 0x200000 0x760000 // 把flash偏移0x200000(2048KB)处, 长度为0x760000 byte的数据, 写入到内存0x7FC0, 操作偏移和长度最小单位是Byte
bootm 0x7FC0 // boot linux kernel image
要注意的一點是, 在使用 sf read/write/erase/update 之前, 必須先執行 sf probe 這個命令. sf 命 令可以指定 SPI 的速度 。
Usage:
sf probe [[bus:]cs] [hz] [mode] - init flash device on given SPI bus
and chip select
sf read addr offset|partition len - read `len' bytes starting at
`offset' or from start of mtd
`partition'to memory at `addr'
sf write addr offset|partition len - write `len' bytes from memory
at `addr' to flash at `offset'
or to start of mtd `partition'
sf erase offset|partition [+]len - erase `len' bytes from `offset'
or from start of mtd `partition'
`+len' round up `len' to block size
sf update addr offset|partition len - erase and write `len' bytes from memory
at `addr' to flash at `offset'
or to start of mtd `partition'
sf protect lock/unlock sector len - protect/unprotect 'len' bytes starting
at address 'sector'
启动成功
全部0条评论
快来发表一下你的评论吧 !