Factory Default u-Boot Environment
Recovering u-boot env variables to default
Following is a procedure to recover u-boot factory default environment variables. Beware of the difference between u-boot default and u-boot factory default; where the first one is default variables that won't boot the plug and the later will.
Plug the mini USB connector to the plug in order to get serial port connectivity. For setting up serial port refer to here for Windows users or here for Linux users or here for combined wiki page.
After getting u-boot messages, press any key to stop the count down and then reset the environment variables and reset the system.
resetenv reset
The system in this stage will reset using the u-boot default environment variables that does system diag on every boot (will take few minutes to finish)
Running diagnostics ...
DDR2 data bus test PASSED
DDR2 address bus test PASSED
DDR2 device test PASSED
........
Marvell>>
Now, reprogram the environment variables to the u-boot default factory variables -
setenv bootcmd 'nand read.e 0x800000 0x100000 0x400000; bootm 0x800000' setenv bootargs 'console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none' setenv ethaddr 00:50:43:4c:02:26 setenv run_diag no saveenv
If you will be using the marvell git kernel or a kernel from kernel.org, then you should change the machine ID too. But if you are using the original kernel 2.6.22.18 that is shipped with the plug then you DON'T need the following -
setenv mainlineLinux yes setenv arcNumber 2097
And then reset the system back again
reset
Note that the 'ethaddr' env variable mentioned is the default; you should reprogram it with the MAC address assigned to your plug (refer to the sticker on the back of your plug).
Factory Default u-Boot Environment
Following are ALL u-boot factory default u-Boot environment variables that can be used to restore your plug back to its original state. Notes - 1. 2. Change the MAC address for your plug! 3. The ones are marked with bold are the important ones to tweak.
baudrate=115200 loads_echo=0 rootpath=/mnt/ARM_FS/ netmask=255.255.0.0 console=console=ttyS0,115200 CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_root=root=/dev/mtdblock2 ro ethmtu=1500 usb0Mode=host nandEcc=1bit ethact=egiga0 serverip=10.10.0.2 ipaddr=10.10.0.1 cesvcid=ULULULULULULPPULULULULULDA bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 yuk_ethaddr=00:00:00:EE:51:81 netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no ethaddr=xx:xx:xx:xx:xx:xx run_diag=no bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none bootcmd=nand read.e 0x800000 0x100000 0x400000; bootm 0x800000 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no bootdelay=3 disaMvPnp=no enaAutoRecovery=yes