PDA

Bekijk de volledige versie : mksquashfs not working ?



maxx
01-02-2005, 20:58
Sorry for a dummy question, but I am new on Asus Firmware.

I can split and mount the WL500g-1.9.2.7-3b.trx image but when making a new image from the original splitted image with mksquashfs (the same which works with sveassoft ) I get a different size.
For example:
-rw-r--r-- 1 root root 2851400 31. Jan 21:13 WL500g-1.9.2.7-3b.sqsh
-rw-r--r-- 1 root root 2850816 31. Jan 21:19 WL500g-1.9.2.7-3b_2.sqsh
(difference of 584 Bytes)

What I am doing wrong ?

Oleg
01-02-2005, 21:05
Most likely your image does not contain trailer, which should be added later by addver.

maxx
01-02-2005, 22:16
Thanks for your fast reply !

I tried addver with some dummy values and got of course a different size.

But on the other hand if I don't change the original image the trailer should be the same size of the missing bytes and if I append them to the created squashfs it should give a loadable firmware image (after adding header with crc and filesize) ?

Oleg
02-02-2005, 09:08
Yes, this should work, unless you modify the kernel. But I'm not recommending doing so anyway. Use right utilities to pack the firmware, trailer size is dependent on the kernel size.