Bekijk de volledige versie : mksquashfs not working ?

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

I can split and mount the WL500g- 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-
-rw-r--r-- 1 root root 2850816 31. Jan 21:19 WL500g-
(difference of 584 Bytes)

What I am doing wrong ?

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

01-02-2005, 23: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) ?

02-02-2005, 10: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.