2011-01-03 5 views
0

U 부팅의 env를 얻기 위해 fw_printenv를 사용하고 싶습니다.U 부팅의 env를 얻기 위해 fw_printenv를 사용하십시오.

$cat /proc/mtd 

mtd0: 00060000 00004000 "bootloader" 
mtd1: 00200000 00004000 "kernel" 
mtd2: 03c00000 00004000 "root" 

$vi /etc/fw_env.config 

# Configuration file for fw_(printenv/saveenv) utility. 
# Up to two entries are valid, in this case the redundand 
# environment sector is assumed present. 

# MTD device name  Device offset Env. size  Flash sector size 
/dev/mtd0    0x0000   0x60000   0x4000 

다음

$ fw_printenv 

Warning: Bad CRC, using default environment 
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm 
bootdelay=5 
baudrate=115200 

당신은 무엇이 잘못되었는지 말해 것인가?

감사합니다. ^^

답변

0

알았어.

# MTD device name  Device offset Env. size  Flash sector size 
/dev/mtdblock0    0x40000   0x20000   0x4000 
관련 문제