I am trying to modify the gaintable on my E680 (original firmware). Reading some threads here, I figure that I have to first copy my root filesystem, mount it on my PC, edit it and reflash the filesystem using flashkit.
I can't figure out how to copy the rootfs.
When I telnet to the machine:
# mount
rootfs on / type rootfs (rw)
/dev/root on / type cramfs (rw)
none on /ram type ramfs (rw)
proc on /ram/proc type proc (rw)
/dev/tffsa on /usr/language type cramfs (rw)
/dev/roflash2 on /usr/setup type cramfs (rw)
none on /dev/pts type devpts (rw)
/dev/mtdblock2 on /ezxlocal type vfm (rw,noatime)
/dev/tffsb1 on /diska type vfat (rw,noatime)
/dev/mmca1 on /mmc/mmca1 type vfat (rw,noatime)
# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00008000 "Bootloader"
mtd1: 000e0000 00020000 "Kernel"
mtd2: 00580000 00020000 "VFM_Filesystem"
mtd3: 00020000 00020000 "Logo"
Turns out, /dev/root isn't actually there. Also, the flashkit guide refers to mtd5 and upwards which aren't listed. So I tried using flashkit.
After loading rwflash.o, I telnet back into the phone and this is what I get:
# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00008000 "Bootloader"
mtd1: 000e0000 00020000 "Kernel"
mtd2: 00580000 00020000 "VFM_Filesystem"
mtd3: 00020000 00020000 "Logo"
mtd4: 000e0000 00020000 "R/W Kernel"
mtd5: 018e0000 00020000 "R/W RootFS"
mtd6: 00020000 00020000 "R/W Setup"
mtd7: 00020000 00020000 "R/W Logo"
But again, when I try to create a cramfs file of my rootfs:
# dd if=/dev/mtd5 of=/mmc/mmca1/my_rootfs.cramfs
dd: opening `/dev/mtd5': No such file or directory
So how do I get hold of the filesystem with /usr in it? Can someone help me out with this?



1Likes
Reply With Quote