NGW100 buildroot root image too big

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am wondering if there is a way to compress the root filesystem image to have it fit inside the 8M of the NGW100.

When I add almost anything to the default config in buildroot, it becomes more than 8M.

Just wondering what the way around this is. Is it to compress? Or is it to push more stuff into /usr or should I try mounting /root on an SD card?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cramfs and Squashfs are both compressed filesystems for flash, they could help. I know openWRT builds Squashfs images, though I don't know whether unpatched kernels support Squashfs. Cramfs support is in mainstream but I don't think it compresses as well or runs as fast.

Both of these will compress a filesystem by 10-20%, maybe a little more.

If you need substantially more than this then mounting something on an SD card is a good move. You'll probably find it easiest to put your whole / on an SD card rather than splitting it up further, you can then flick the whole buildroot-generated .tar to SD and off she goes.

-S.