赞
踩
开发板烧写uboot后,会修改环境变量到默认配置,可以修改配置文件,修改默认的环境变量。
修改u-boot-2016.11/include/configs/hi3516dv300.h
- /* Assume we boot with root on the seventh partition of eMMC */
- #define CONFIG_BOOTARGS "mem=512M console=ttyAMA0,115200 root=/dev/mtdblock2 rw rootfstype=yaffs2 mtdparts=hinand:1M(boot),4M(kernel),-(rootfs)"
- #define CONFIG_BOOTCOMMAND "nand read 0x82000000 0x100000 0x400000;bootm 0x82000000"
- #define CONFIG_IPADDR 192.168.1.100
- #define CONFIG_SERVERIP 192.168.1.120
- #define CONFIG_GATEWAYIP 192.168.1.1
- #define CONFIG_NETMASK 255.255.255.0
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。