On Sat, 2005-04-09 at 15:10, A C wrote: > Or you can always just add it into the official linksys firmware. > Here is my notes on it. Sort of cryptic because I was just using it > as a reference for myself: > > # extract kernel > dd if=WRT54GV2_3.01.3_US_code.bin of=kern.gz count=669953 bs=1 skip=60 > > bs is bs from below subtract 59 for the header 670012 - 59 = 669953 > > # extract cramfs > dd if=WRT54GV2_3.01.3_US_code.bin of=cramfs.img bs=670012 skip=1 > > # bs value is obtained by looking for "45 3d cd" > doing a hexdump -C file.bin you should see the start of the cramfs: > > [EMAIL PROTECTED] 3.01.3 # hexdump -C WRT54GV2_3.01.3_US_code.bin |grep "45 > 3d cd" > |more > 000a3930 7f fe 03 d3 4f 2b c6 00 e0 17 00 00 45 3d cd 28 |....O+......E=.(| > > [EMAIL PROTECTED] 3.01.3 # hexdump -C WRT54GV2_3.01.3_US_code.bin |grep > 000a39 |more > 000a3930 7f fe 03 d3 4f 2b c6 00 e0 17 00 00 45 3d cd 28 |....O+......E=.(| > 000a3940 00 f0 28 00 03 00 00 00 00 00 00 00 43 6f 6d 70 |..(.........Comp| > 000a3950 72 65 73 73 65 64 20 52 4f 4d 46 53 e6 01 60 92 |ressed ROMFS..`.| > 000a3960 00 00 00 00 8f 07 00 00 0e 01 00 00 43 6f 6d 70 |............Comp| > 000a3970 72 65 73 73 65 64 00 00 00 00 00 00 ed 41 00 00 |ressed.......A..| > > ---------------------- > To put the firmware back together: > > more 3.01.3/mkfirm.sh > /sbin/mkfs.cramfs custom/ ./cus-cramfs.bin > ../trx -o ./trx.bin kern.bin cus-cramfs.bin > ../addpattern -i trx.bin -o done.bin > That all seems pretty neat, it must hava taken quite a lot of work to figure out. But if anything changes I'm screwed again, I'd really much rather have sources and compile than 'magic'.
Paul ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
