This patch gives 320KiB more freespace (kernel:128 + rootfs:192) on a WRT54G v2.0 w/buildroot as of 2005-02-06.
Before:
@wrt54g:/# df -k
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 896 896 0 100% /rom
/dev/mtdblock/4 2240 352 1888 16% /
@wrt54g:/# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00010000 "pmon"
mtd1: 003b0000 00010000 "linux"
mtd2: 000d27f1 00010000 "rootfs"
mtd3: 00010000 00010000 "nvram"
mtd4: 00230000 00010000 "OpenWrt"
After:
@wrt54g:/# df -k
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 704 704 0 100% /rom
/dev/mtdblock/4 2560 352 2208 14% /
@wrt54g:/# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00010000 "pmon"
mtd1: 003b0000 00010000 "linux"
mtd2: 000aa400 00010000 "rootfs"
mtd3: 00010000 00010000 "nvram"
mtd4: 00280000 00010000 "OpenWrt"
Nothing new on the rootfs part, of course, thanks to Oleg's work.
The kernel loader by Oleg, too, which is slightly based on mjn3's idea and using the decompression code in Igor Pavlov's LZMA SDK.
This includes my CRC error fix.
Edit: The patch has been updated - Now this should also work on the units with 8MiB RAM/16-bit flash.