Factory Default u-Boot Environment

Revision for “Factory Default u-Boot Environment” created on 26 October, 2011 @ 15:58 [Autosave]

Title
Factory Default u-Boot Environment
Content
<div> <h1><span class="editsection">Recovering u-boot env variables to default </span></h1> <p>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.</p> <p>Plug the mini USB connector to the plug in order to get serial port connectivity. For setting up serial port refer to <a title="Configure U-Boot on the Plug Computer" href="/plugwiki/index.php/Configure_U-Boot_on_the_Plug_Computer">here for Windows users</a> or <a class="mw-redirect" title="Setting up Serial Console Under Linux" href="/plugwiki/index.php/Setting_up_Serial_Console_Under_Linux">here for Linux users</a> or <a class="mw-redirect" title="Serial terminal program" href="/plugwiki/index.php/Serial_terminal_program">here for combined wiki page</a>.</p> <p>After getting u-boot messages, press any key to stop the count down and then reset the environment variables and reset the system.</p> <pre> resetenv reset</pre> <p>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)</p> <pre> Running diagnostics ... DDR2 data bus test PASSED DDR2 address bus test PASSED DDR2 device test PASSED ........ Marvell&gt;&gt;</pre> <p>Now, reprogram the environment variables to the u-boot default factory variables -</p> <pre> 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</pre> <p>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 -</p> <pre> setenv mainlineLinux yes setenv arcNumber 2097</pre> <p>And then reset the system back again</p> <pre> reset</pre> <p>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).</p> <h1><span class="editsection"> Factory Default u-Boot Environment </span></h1> <p>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.</p> <pre> baudrate=115200 loads_echo=0 <strong>rootpath=/mnt/ARM_FS/</strong> netmask=255.255.0.0 <strong>console=console=ttyS0,115200</strong> CASset=min MALLOC_len=1 ethprime=egiga0 <strong>bootargs_root=root=/dev/mtdblock2 ro</strong> ethmtu=1500 usb0Mode=host nandEcc=1bit ethact=egiga0 <strong>serverip=10.10.0.2</strong> <strong>ipaddr=10.10.0.1</strong> cesvcid=ULULULULULULPPULULULULULDA <strong>bootargs_end=:::DB88FXX81:eth0:none</strong> <strong>image_name=uImage</strong> 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 <strong>ethaddr=xx:xx:xx:xx:xx:xx</strong> <strong>run_diag=no</strong> <strong>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</strong> <strong>bootcmd=nand read.e 0x800000 0x100000 0x400000; bootm 0x800000</strong> stdin=serial stdout=serial stderr=serial <strong>mainlineLinux=no</strong> 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</pre> </div>
Excerpt


OldNewDate CreatedAuthorActions
26 October, 2011 @ 15:58 [Autosave] admin
26 October, 2011 @ 15:55 admin
26 October, 2011 @ 15:55 admin