Marvell>> printenv baudrate=115200 : : usb0Mode=host usb1Mode=host Environment size: 1046/4092 bytes Marvell>>test という変数はない。
Marvell>> setenv test true Marvell>> printenv baudrate=115200 : usb0Mode=host usb1Mode=host test=true Environment size: 1056/4092 bytes Marvell>>セットできた。
Marvell>> reset Marvell>> Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD: KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Feb 13 2007 - 15:59:43) Marvell version: 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash: 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M): Done NAND: 256 MB Soc: 88F5182 A2 CPU: ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0: host mode USB 1: host mode PCI 0: PCI Express Root Complex Interface PCI 1: Conventional PCI, speed = 33000000 Net: egiga0 [PRIME] Using 88E1118 phy hit any key to switch tftp boot. Hit any key to stop autoboot: 0 <<system_bootend>> Hit any key to stop autoboot: 0 Marvell>> printenv baudrate=115200 : : usb0Mode=host usb1Mode=host Environment size: 1046/4092 bytes Marvell>>test は消えている
Marvell>> setenv test false Marvell>> printenv baudrate=115200 : usb0Mode=host usb1Mode=host test=false Environment size: 1057/4092 bytes Marvell>>
Marvell>> saveenv Saving Environment to Flash... . Un-Protected 1 sectors Erasing Flash... . Erased 1 sectors Writing to Flash... done . Protected 1 sectors Marvell>>
Marvell>> reset Marvell>> Orion1 CPU = Low === KURO U-Boot. === ** LOADER ** ** KUROBOX BOARD: KURO_BOX LE (CFG_ENV_ADDR=fffff000) U-Boot 1.1.1 (Feb 13 2007 - 15:59:43) Marvell version: 1.12.1 - TINY DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB [256kB@fffc0000] Flash: 256 kB Addresses 20M - 0M are saved for the U-Boot usage. Mem malloc Initialization (20M - 16M): Done NAND: 256 MB Soc: 88F5182 A2 CPU: ARM926 (Rev 0) running @ 500Mhz Orion 1 streaming disabled SysClock = 250Mhz , TClock = 166Mhz USB 0: host mode USB 1: host mode PCI 0: PCI Express Root Complex Interface PCI 1: Conventional PCI, speed = 33000000 Net: egiga0 [PRIME] Using 88E1118 phy hit any key to switch tftp boot. Hit any key to stop autoboot: 0 <<system_bootend>> Hit any key to stop autoboot: 0 Marvell>> printenv baudrate=115200 : : nand_boot=no test=false stdin=serial : : Environment size: 1057/4092 bytes Marvell>>ちゃんと保存されていた。
というわけで、setenv だけでは変数は保存されない。そのときだけの設定。
saveenv を実行することによって保存され、電源OFF やリセット後も有効になる。
|
← HS-DHGLシリーズ ファームウェア アップデータ Ver.1.06 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 変数の消去 |