Research/Tools
CFE setenv
sunnyan
2009. 12. 22. 10:51
728x90
CFE> setenv -p nfsboot 'setenv -p STARTUP "boot -z -elf flash0.kernel: root=/dev
/nfs nfsroot=$ROOT_IPADDR:$ROOT_PATH ip$NET_IPADDR:$ROOT_IPADDR:$NET_GATEWAY:$NE
T_NETMASK:bcm:: rw mem=LSIZE console=ttyS0,115200"'
*** command status = 0
CFE> $nfsboot
*** command status = 0
CFE> printenv
Variable Name Value
-------------------- --------------------------------------------------
BOOT_CONSOLE uart0
LINUX_FFS_STARTAD 0
LINUX_FFS_SIZE 3c00000
LINUX_PART_STARTAD 3c80000
LINUX_PART_SIZE 37f800
jffs boot -z -elf flash0.kernel: 'rootfstype=jffs2 root=/dev/mtd
block0 rw mem=192m'
F3 ifconfig eth0 -addr=61.74.164.11 -mask=255.255.255.0 -gw=61
.74.164.190 -dns=168.126.63.1
vmlinuz flash -noheader 61.74.164.7:vmlinuz-7335b0-smp flash0.kerne
l
NET_DEVICE eth0
NET_IPADDR 61.74.164.11
NET_NETMASK 255.255.255.0
NET_GATEWAY 61.74.164.190
ROOT_IPADDR 61.74.164.7
ROOT_PATH /root/project/whs1000/rootfs
LSIZE 184m
ETH0_HWADDR 00:10:18:9A:22:5D
DRAM0_SIZE 256
DRAM1_SIZE 128
FLASH_TYPE NOR
FLASH_SIZE 64
CFE_VERSION 2.12.18
CFE_BOARDNAME BCM97335B0
CFE_MEMORYSIZE 128
nfsboot setenv -p STARTUP "boot -z -elf flash0.kernel: root=/dev/nf
s nfsroot=$ROOT_IPADDR:$ROOT_PATH ip$NET_IPADDR:$ROOT_IPADDR:$NET_GATEWAY:$NET_N
ETMASK:bcm:: rw mem=LSIZE console=ttyS0,115200"
STARTUP boot -z -elf flash0.kernel: root=/dev/nfs nfsroot=61.74.164
.7:/root/project/whs1000/rootfs ip61.74.164.11:61.74.164.7:61.74.164.190:255.255
.255.0:bcm:: rw mem=LSIZE console=ttyS0,115200
*** command status = 0
CFE>
/nfs nfsroot=$ROOT_IPADDR:$ROOT_PATH ip$NET_IPADDR:$ROOT_IPADDR:$NET_GATEWAY:$NE
T_NETMASK:bcm:: rw mem=LSIZE console=ttyS0,115200"'
*** command status = 0
CFE> $nfsboot
*** command status = 0
CFE> printenv
Variable Name Value
-------------------- --------------------------------------------------
BOOT_CONSOLE uart0
LINUX_FFS_STARTAD 0
LINUX_FFS_SIZE 3c00000
LINUX_PART_STARTAD 3c80000
LINUX_PART_SIZE 37f800
jffs boot -z -elf flash0.kernel: 'rootfstype=jffs2 root=/dev/mtd
block0 rw mem=192m'
F3 ifconfig eth0 -addr=61.74.164.11 -mask=255.255.255.0 -gw=61
.74.164.190 -dns=168.126.63.1
vmlinuz flash -noheader 61.74.164.7:vmlinuz-7335b0-smp flash0.kerne
l
NET_DEVICE eth0
NET_IPADDR 61.74.164.11
NET_NETMASK 255.255.255.0
NET_GATEWAY 61.74.164.190
ROOT_IPADDR 61.74.164.7
ROOT_PATH /root/project/whs1000/rootfs
LSIZE 184m
ETH0_HWADDR 00:10:18:9A:22:5D
DRAM0_SIZE 256
DRAM1_SIZE 128
FLASH_TYPE NOR
FLASH_SIZE 64
CFE_VERSION 2.12.18
CFE_BOARDNAME BCM97335B0
CFE_MEMORYSIZE 128
nfsboot setenv -p STARTUP "boot -z -elf flash0.kernel: root=/dev/nf
s nfsroot=$ROOT_IPADDR:$ROOT_PATH ip$NET_IPADDR:$ROOT_IPADDR:$NET_GATEWAY:$NET_N
ETMASK:bcm:: rw mem=LSIZE console=ttyS0,115200"
STARTUP boot -z -elf flash0.kernel: root=/dev/nfs nfsroot=61.74.164
.7:/root/project/whs1000/rootfs ip61.74.164.11:61.74.164.7:61.74.164.190:255.255
.255.0:bcm:: rw mem=LSIZE console=ttyS0,115200
*** command status = 0
CFE>
728x90