查看环境变量
Posted ordinary-world
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了查看环境变量相关的知识,希望对你有一定的参考价值。
xmtech # print bootdelay=1 baudrate=115200 bootfile="uImage" da=mw.b 0x82000000 ff 1000000;tftp 0x82000000 u-boot.bin.img;sf probe 0;flwrite du=mw.b 0x82000000 ff 1000000;tftp 0x82000000 user-x.cramfs.img;sf probe 0;flwrite dr=mw.b 0x82000000 ff 1000000;tftp 0x82000000 romfs-x.cramfs.img;sf probe 0;flwrite dw=mw.b 0x82000000 ff 1000000;tftp 0x82000000 web-x.cramfs.img;sf probe 0;flwrite dl=mw.b 0x82000000 ff 1000000;tftp 0x82000000 logo-x.cramfs.img;sf probe 0;flwrite dc=mw.b 0x82000000 ff 1000000;tftp 0x82000000 custom-x.cramfs.img;sf probe 0;flwrite up=mw.b 0x82000000 ff 1000000;tftp 0x82000000 update.img;sf probe 0;flwrite ua=mw.b 0x82000000 ff 1000000;tftp 0x82000000 upall_verify.img;sf probe 0;flwrite tk=mw.b 0x82000000 ff 1000000;tftp 0x82000000 uImage; bootm 0x82000000 dd=mw.b 0x82000000 ff 1000000;tftp 0x82000000 mtd-x.jffs2.img;sf probe 0;flwrite ipaddr=192.168.1.10 serverip=192.168.1.1 netmask=255.255.255.0 gatewayip=192.168.0.1 ethaddr=00:12:17:e3:9b:b3 NID=0x0004 muxctl0=0x200f00f4 muxval0=1 gpio0=0x75 gpioval0=0x20 muxctl1=0x200f0030 muxval1=0 gpio1=0x01 gpioval1=0x0 muxctl2=0x200f0098 muxval2=0 gpio2=0x17 gpioval2=0x0 muxctl3=0x200f006c muxval3=0 gpio3=0x46 gpioval3=0x1 osmem=37M sensortype=0x0008 appSystemLanguage=SimpChinese appVideoStandard=PAL appNetIP=0x0A01A8C00x00FFFFFF0x0101A8C0 bootargs=mem=32M console=ttyAMA0,115200 root=/dev/mtdblock2 rootfstype=jffs2 mtdparts=hi_sfc:320K(boot),3M(kernel),-(rootfs) bootcmd=sf probe 0;sf read 0x82000000 0x50000 0x300000;bootm 0x82000000 stdin=serial stdout=serial stderr=serial verify=n ver=U-Boot 2010.06 (Mar 26 2018 - 16:24:52) Environment size: 1598/65532 bytes
雄迈
xmtech # print bootcmd=setenv setargs setenv bootargs ${bootargs};run setargs;fload;bootm 0x82000000 bootdelay=1 baudrate=115200 bootfile="uImage" da=mw.b 0x82000000 ff 1000000;tftp 0x82000000 u-boot.bin.img;sf probe 0;flwrite du=mw.b 0x82000000 ff 1000000;tftp 0x82000000 user-x.cramfs.img;sf probe 0;flwrite dr=mw.b 0x82000000 ff 1000000;tftp 0x82000000 romfs-x.cramfs.img;sf probe 0;flwrite dw=mw.b 0x82000000 ff 1000000;tftp 0x82000000 web-x.cramfs.img;sf probe 0;flwrite dl=mw.b 0x82000000 ff 1000000;tftp 0x82000000 logo-x.cramfs.img;sf probe 0;flwrite dc=mw.b 0x82000000 ff 1000000;tftp 0x82000000 custom-x.cramfs.img;sf probe 0;flwrite up=mw.b 0x82000000 ff 1000000;tftp 0x82000000 update.img;sf probe 0;flwrite ua=mw.b 0x82000000 ff 1000000;tftp 0x82000000 upall_verify.img;sf probe 0;flwrite tk=mw.b 0x82000000 ff 1000000;tftp 0x82000000 uImage; bootm 0x82000000 dd=mw.b 0x82000000 ff 1000000;tftp 0x82000000 mtd-x.jffs2.img;sf probe 0;flwrite ipaddr=192.168.1.10 serverip=192.168.1.1 netmask=255.255.255.0 gatewayip=192.168.0.1 bootargs=mem=${osmem} console=ttyAMA0,115200 root=/dev/mtdblock1 rootfstype=cramfs mtdparts=hi_sfc:320K(boot),3520K(romfs),2560K(user),1152K(web),320K(custom),320K(mtd) ethaddr=00:12:16:d8:97:8c NID=0x0003 muxctl0=0x200f00f4 muxval0=1 gpio0=0x75 gpioval0=0x20 muxctl1=0x200f0030 muxval1=0 gpio1=0x01 gpioval1=0x0 muxctl2=0x200f0098 muxval2=0 gpio2=0x17 gpioval2=0x0 muxctl3=0x200f006c muxval3=0 gpio3=0x46 gpioval3=0x1 osmem=37M sensortype=0x001f appSystemLanguage=SimpChinese appVideoStandard=PAL stdin=serial stdout=serial stderr=serial verify=n ver=U-Boot 2010.06-svn564 (Jul 22 2017 - 11:28:12) Environment size: 1623/65532 bytes
以上是关于查看环境变量的主要内容,如果未能解决你的问题,请参考以下文章