当前位置:   article > 正文

HI3516dv300刷机_3516机顶盒刷机

3516机顶盒刷机

刷机前,uboot环境变量:

  1. hisilicon # pri
  2. arch=arm
  3. baudrate=115200
  4. board=hi3516dv300
  5. board_name=hi3516dv300
  6. bootargs=mem=128M console=ttyAMA0,115200 coherent_pool=2M root=/dev/mtdblock2 rootfstype=yaffs2 rw mtdparts=hinand:1M(boot),4M(kernel),123M(rootfs)
  7. bootcmd=nand read 0x82000000 0x100000 0x400000;bootm 0x82000000
  8. bootdelay=2
  9. cpu=armv7
  10. ethact=eth0
  11. ethaddr=b6:44:5d:df:20:c4
  12. fileaddr=82000000
  13. filesize=38923c
  14. ipaddr=192.168.1.104
  15. serverip=192.168.1.101
  16. soc=hi3516dv300
  17. stderr=serial
  18. stdin=serial
  19. stdout=serial
  20. vendor=hisilicon
  21. verify=n
  22. Environment size: 540/262140 bytes

以 128M SPI NAND Flash 为例
1. 地址空间说明
|             1M            |           4M          |           123M         | 
|-------------------------|----------------------|------------------------| 
|         boot              |         kernel       |         rootfs           | 
以下的操作均基于图示的地址空间分配,您也可以根据实际情况进行调整。
2. 烧写 u-boot 
    mw.b 0x82000000 0xff 0x100000 
    tftp 0x82000000 u-boot-hi3516dv300.bin 
    nand probe 0;nand erase 0x0 0x100000;nand write 0x82000000 0x0 0x100000 
3. 烧写内核
    mw.b 0x82000000 0xff 0x400000 
    tftp 0x82000000 uImage_hi3516dv300
    nand erase 0x100000 0x400000;
    nand write 0x82000000 0x100000 0x400000 
4. 烧写文件系统
    mw.b 0x82000000 0xff 0x7b00000
    tftp 0x82000000 rootfs_uclibc_3516dv300_2k_4bit_327.yaffs2
    nand erase 0x500000 0x7b00000;
    nand write.yaffs 0x82000000 0x500000 10A1840
5. 设置启动参数(注意 linux-4.9.y kernel 默认文件系统只读,需要在 bootargs 中加入
rw 选项,文件系统才可读写)
    setenv bootargs 'mem=128M console=ttyAMA0,115200 coherent_pool=2M root=/dev/mtdblock2 rootfstype=yaffs2 rw mtdparts=hinand:1M(boot),4M(kernel),123M(rootfs)' 
    setenv bootcmd 'nand read 0x82000000 0x100000 0x400000;bootm 0x82000000' 
    saveenv 
6. 重启系统
    reset

流地址:rtsp://192.168.1.104:554/test.264

 

 

 

 

 

 

 

 

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/287255?site=
推荐阅读
相关标签
  

闽ICP备14008679号