Linux CME9210 user data stored in flash

Hi Friends,
I have a system with Digi9210ME module, and Linux operating system.
Sadly I’m not Linux guru, so can you suggest me a way to use some part of flash memory as a general purpose partition to store some user data.

10x in advance
P.S> Flash is partitioned as follows
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 |

I’ts fixed :slight_smile:

/ # mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,noatime)
tmpfsdev on /dev type tmpfs (rw,size=64k)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,mode=600)
tmpfs on /tmp type tmpfs (rw,size=1024k)
/dev/mtdblock4 on /tmp/mnt/User-JFFS2 type jffs2 (rw)
Cheers
Danail

Hi,
two propals:

  1. mount your /dev/mtdblock4 in a /“user_data_dir” instead of /tmp/… directory
  2. at startup, enter in the uboot and use the partition tool to partition your rootfs as JFFS2 (this is what I made to have all the roofs in readable/writable)
    br

I already fixed thanks anyway wixxk.
I just need to read twice entire mtd and uboot documentation :frowning:
to realize that, prior to mount a jffs2 file system the mtdblock partition must be erased(empty!=erased)!!!
An silly me - I assume that when I create with “flpart” a brand new partition in the uboot environment it should be empty - no it is NOT empty. There need to execute “erase_pt”.
After that - it is was a matter of minutes to have it , finally my user read/write partition of flash :slight_smile:
Cheers
Danail