赞
踩
刷机前,uboot环境变量:
- hisilicon # pri
- arch=arm
- baudrate=115200
- board=hi3516dv300
- board_name=hi3516dv300
- bootargs=mem=128M console=ttyAMA0,115200 coherent_pool=2M root=/dev/mtdblock2 rootfstype=yaffs2 rw mtdparts=hinand:1M(boot),4M(kernel),123M(rootfs)
- bootcmd=nand read 0x82000000 0x100000 0x400000;bootm 0x82000000
- bootdelay=2
- cpu=armv7
- ethact=eth0
- ethaddr=b6:44:5d:df:20:c4
- fileaddr=82000000
- filesize=38923c
- ipaddr=192.168.1.104
- serverip=192.168.1.101
- soc=hi3516dv300
- stderr=serial
- stdin=serial
- stdout=serial
- vendor=hisilicon
- verify=n
-
- 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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。