Root file system doesn't fit flash memory

Hello,

We’ve made a litte test project and tried to program the project in the flash memory of the digi connect me 9210 module using update flash from the target options menu in the digi ESP for embedded linux, however we get an error saying our filesystem is to big. But even after stripping down our file system to the bare minimum we still get this error.

Any idea’s?

Thanks in advance,
Katho

You can increase rootfs by shrinking or removing user JFFS2 partition.
Here is an example I’ve just done to increase rootfs by 300k from U-boot:
CME9210 # flpart
Nr | Name | Start | Size | Type | FS | Flags

0 | U-Boot | 0 | 192 KiB | U-Boot | | fixed
1 | NVRAM | 192 KiB | 128 KiB | NVRAM | | fixed
2 | Kernel | 320 KiB | 1280 KiB | Linux-Kernel | |
3 | RootFS-JFFS2 | 1600 KiB | 1536 KiB | Filesystem | SQUASHFS | rootfs
4 | User-JFFS2 | 3136 KiB | 960 KiB | Filesystem | JFFS2 |
Commands:
a) Append partition
d) Delete partition
m) Modify partition
p) Print partition table
r) Reset partition table
q) Quit
Cmd (? for help)> m
Modify Which Partition? 3
Name (RootFS-JFFS2): RootFS-JFFS2
Chip (0): 0
Start (in MiB, 0 for auto) (1600 KiB): 1600 KiB
Size (in MiB, 0 for auto, 2496 KiB max) (1536 KiB): 1836 Kib
Partition Types
Partition Type (Filesystem, ? for help)>
Fixed (n): n
Readonly (n): n
Filesystem Types
Filesystem (SQUASHFS, ? for help)>
Root-FS (y): y
Mount Readonly (n): n
Auto-Adjust start of succeeding partition? (y): y
*** Warning: Partition 4 would expand behind chip size, don’t adjusting it
Nr | Name | Start | Size | Type | FS | Flags

0 | U-Boot | 0 | 192 KiB | U-Boot | | fixed
1 | NVRAM | 192 KiB | 128 KiB | NVRAM | | fixed
2 | Kernel | 320 KiB | 1280 KiB | Linux-Kernel | |
3 | RootFS-JFFS2 | 1600 KiB | 1836 KiB | Filesystem | SQUASHFS | rootfs
4 | User-JFFS2 | 3136 KiB | 960 KiB | Filesystem | JFFS2 |
Cmd (? for help)> m
Modify Which Partition? 4
Name (User-JFFS2): User-JFFS2
Chip (0): 0
Start (in MiB, 0 for auto) (3436 KiB): 0
–> Set to 3456 KiB
Size (in MiB, 0 for auto, 640 KiB max) (960 KiB): 0
–> Set to 640 KiB
Partition Types
Partition Type (Filesystem, ? for help)>
Fixed (n): n
Readonly (n): n
Filesystem Types
Filesystem (JFFS2, ? for help)>
Root-FS (n): n
Mount Readonly (n): n
Nr | Name | Start | Size | Type | FS | Flags

0 | U-Boot | 0 | 192 KiB | U-Boot | | fixed
1 | NVRAM | 192 KiB | 128 KiB | NVRAM | | fixed
2 | Kernel | 320 KiB | 1280 KiB | Linux-Kernel | |
3 | RootFS-JFFS2 | 1600 KiB | 1836 KiB | Filesystem | SQUASHFS | rootfs
4 | User-JFFS2 | 3456 KiB | 640 KiB | Filesystem | JFFS2 |
Cmd (? for help)> q
Partition table has been modified. Save? (y): y
Regards,
Leonid