Lazy backup

% sudo fw_printenv | sed 's/^/sudo fw_setenv /;s/=/ "/;s/$/"/;'

sudo fw_setenv bootcmd "setenv ethact egiga0; ${x_bootcmd_ethernet}; setenv ethact egiga1; ${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000;"
sudo fw_setenv bootdelay "3"
sudo fw_setenv baudrate "115200"
sudo fw_setenv x_bootcmd_ethernet "ping 192.168.2.1"
sudo fw_setenv x_bootcmd_usb "usb start"
sudo fw_setenv x_bootcmd_kernel "nand read.e 0x6400000 0x100000 0x400000"
sudo fw_setenv x_bootargs "console=ttyS0,115200"
sudo fw_setenv x_bootargs_root "ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs"
sudo fw_setenv stdin "serial"
sudo fw_setenv stdout "serial"
sudo fw_setenv stderr "serial"
sudo fw_setenv ethact "egiga0"
sudo fw_setenv ethaddr "00:99:99:99:99:99"
sudo fw_setenv eth1addr "00:99:99:99:99:98"
Posted on 2010-07-05
Tags: u-boot, setenv, printenv