2272943826

2272943826

0个粉丝

24

问答

0

专栏

8

资料

2272943826  发布于  2016-06-28 11:35:07
采纳率 0%
24个问答
2919

[已解决]SPI Burn Image 参考资料

 
本帖最后由 2272943826 于 2016-11-25 09:58 编辑

刚收到 Hi3516A demo board,让我自己去研究。 我是新手。
疑惑:
        1 烧写文件去 demo board,用的是 bootrom, spi flash 还是 nand flash?
        2 fastboot工具, by default是按照分区烧写,地址烧写还是boot 烧写?

非常感谢
多多关照新人


学习啦3个月,向隅而泣:
1 我用的是 spi flash   参考材料:Description of the Installation and Upgrade of the Hi3516A/Hi3516D SDK

Burn images to the SPI flash.
   In this section, a 16 MB SPI flash is used as an example.
1) Address space
        |      1M       |      3M       |     12M       |
        |---------------|---------------|---------------|
        |     boot      |     kernel    |     rootfs    |
        The following operations are performed based on the allocated address space. You can change the address space as required.
    2) Burn the U-boot.
        sf probe 0
        mw.b 82000000 ff 100000
        tftp 0x82000000 u-boot-hi3516a.bin
        sf probe 0
        sf erase 0 100000
        sf write 82000000 0 100000       
        reset   
¡¡  3) Burn the kernel.
                mw.b 82000000 ff 300000
                tftp 82000000 uImage_hi3516a
                sf probe 0
                sf erase 100000 300000
                sf write 82000000 100000 300000
¡¡  4) Burn the file system.
                mw.b 82000000 ff C00000
                tftp 0x82000000 rootfs_hi3516a_64k.jffs2
                sf probe 0
                sf erase 400000 C00000
                sf write 82000000 400000 C00000
     5) Set boot parameters.
                setenv bootargs 'mem=64M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:1M(boot),3M(kernel),12M(rootfs)'
                setenv bootcmd 'sf probe 0;sf read 0x82000000 0x100000 0x300000;bootm 0x82000000'
                sa

2 fastboot我是按照 分区 烧写的
参考文件: Hi3516A/Hi3516D U-boot Porting Development Guide
3.3.1 Burning the U-boot to the SPI Flash
Perform the following steps:
Step 1 Run the following commands in the HyperTerminal after the U-boot runs in the memory:
hisilicon# mw.b 0x82000000 ff 0x100000 /*Set the DDR value of all Fs.*/
hisilicon# tftp 0x82000000 u-boot-hi3516a.bin /*Download the U-boot to the
DDR.*/
hisilicon# sf probe 0 /*Detect and initialize the SPI
flash.*/
hisilicon# sf erase 0x0 0x100000 /*Erase 1 MB capacity of the SPI
flash.*/
hisilicon# sf write 0x82000000 0x0 0x100000 /*Write the U-boot from the DDR
to the SPI flash.*/
Step 2 Restart the system. The U-boot is burnt successfully.
我来回答
回答1个
时间排序
认可量排序

zzsywlx

0个粉丝

2

问答

0

专栏

0

资料

zzsywlx 2016-07-15 16:30:55
认可0
1. bootrom 是arm 内部的,不用烧写,烧写文件到的是SPI flash或 nand,这个得看你的 硬件电路选择的,一般来说 demo板上会有拔码开关让你来选择。
2.可以按地址来写。
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区