Hello,
im trying to replace some rmt contents but How is the dd "skip" value for dd calculated or extracted ? ... I have another openrg device with other firmware but cant figure out how to get the "skip" value or file map contents ... is there any utility out there for examining rmt files? is this value something which is fixed or specific to the platform? calculated from ramsize? extracted from the image?
examle from wrv54g : dd if=wrv54g_2.03_fw.rmt of=ext2.img.gz bs=1c skip=788041c
http://www.seattlewireless.net/index.cgi/LinksysWrv54g
2.1. Examining the filesystem
Extract the compressed {ext2} filesystem from firmware 2.03 like this:
# dd if=wrv54g_2.03_fw.rmt of=ext2.img.gz bs=1c skip=788041c
# gunzip ext2.img.gzExtract the compressed {ext2, cramfs} filesystems from firmware 2.37 like this:
# dd if=wrv54g_v2.37_US.rmt of=layer1.img.gz bs=1c skip=12258c
# gunzip layer1.img.gz
> gunzip: layer1.img.gz: decompression OK, trailing garbage ignored
# dd if=layer1.img of=ext2.img.gz bs=1c skip=1740800c
# dd if=layer1.img of=cramfs.img bs=1c skip=1761280c
# gunzip ext2.img.gz
> gunzip: ext2.img.gz: decompression OK, trailing garbage ignoredMount:
# mount -t ext2 -o loop ext2.img /mnt/ext2
# mount -t cramfs -o loop cramfs.img /mnt/cramfs