[OpenWrt-Users] MTD partitioning and rewriting

Robert P. J. Day rpjday at crashcourse.ca
Mon Dec 10 17:03:40 CET 2007


   just wanting to verify my MTD partitioning, if i "cat /proc/mtd" on  
my WRT54GL, then based on the docs, what i'm looking at is:

mtd0:     cfe (bootloader)
mtd1:     linux (collectively referring to ...)
              kernel
     mtd2:    rootfs (squashfs format)
     mtd4:    OpenWRT (JFFS2 filesystem)
mtd3:     NVRAM

   this means that, when i use the "mtd" command to rewrite the  
"linux" MTD partition, i'm rewriting the entire combination of the  
kernel, rootfs and JFFS2 filesystem simultaneously.

   i'm assuming, then, that (technically) i could similarly rewrite  
the rootfs or OpenWRT partitions individually if it ever became  
necessary.  i'm not saying i'm about to run off and do that, just that  
it's technically possible, right?

rday

p.s.  i'm also assuming that any rewrites using "mtd" must *always*  
involve pure .trx files, not .bin files.



More information about the openwrt-users mailing list