1,723
edits
m |
m |
||
Line 1: | Line 1: | ||
The examples, output, etc. in this article are for the WRT32X. The WRT3200ACM and various iterations of the WRT1900AC, WRT1900ACS, etc. are similar. | The examples, output, etc. in this article are for the WRT32X. The WRT3200ACM and various iterations of the WRT1900AC, WRT1900ACS, etc. are similar. | ||
There are just some quick notes here. | |||
Command: mtdparts (output from WRT32X shown)<syntaxhighlight lang="text"> | |||
mtdparts (output from WRT32X shown)<syntaxhighlight lang="text"> | |||
#: name size offset mask_flags | #: name size offset mask_flags | ||
0: uboot 0x000000200000 0x000000000000 1 | 0: uboot 0x000000200000 0x000000000000 1 | ||
Line 19: | Line 13: | ||
active partition: nand0,0 - (uboot) 0x000000200000 @ 0x000000000000 | active partition: nand0,0 - (uboot) 0x000000200000 @ 0x000000000000 | ||
</syntaxhighlight> | </syntaxhighlight>The above seems (not verfied) to be mounted as: ubiblock1_0 | ||
To change active partitions: chpart nand0,X (where X is one of the above #s) | |||
=== Environment Variables === | |||
Note the bootcmd and nandboot variables. Essentially the boot command (setenv bootargs console=ttyS0,115200 root=/dev/mtdblock6;nand read $defaultLoadAddr $priKernAddr $priKernSize; bootz $defaultLoadAddr) breaks down as follows; | |||
* setenv bootargs console=ttyS0,115200 root=/dev/mtdblock6 | |||
* nand read 0x2000000 0x0900000 0x0600000 (this equates to the above "firmware1" mtd partition, which is defined by OpenWRT as mtd5 / kernel1 (primary kernel image & mtd6 rootfs1 (ubi)) | |||
* bootz 0x2000000 | |||
<syntaxhighlight lang="text"> | |||
CASset=max | CASset=max | ||
MALLOC_len=5 | MALLOC_len=5 | ||
Line 129: | Line 129: | ||
yuk_ethaddr=00:00:00:EE:51:81 | yuk_ethaddr=00:00:00:EE:51:81 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
U-Boot Commands | |||
=== U-Boot Commands === | |||
<syntaxhighlight lang="text"> | |||
Venom>> help | Venom>> help | ||
? - alias for 'help' | ? - alias for 'help' | ||
Line 303: | Line 305: | ||
version - print monitor, compiler and linker version | version - print monitor, compiler and linker version | ||
whoAmI - - reading CPU ID | whoAmI - - reading CPU ID | ||
</syntaxhighlight>Typical Command Line Boot Up Messages Displayed Via Serial Port / TTL | </syntaxhighlight> | ||
=== Typical Command Line Boot Up Messages Displayed Via Serial Port / TTL === | |||
<syntaxhighlight lang="text"> | |||
BootROM - 1.73 | BootROM - 1.73 | ||
Booting from NAND flash | Booting from NAND flash |