I need to put tmp direcotry in RAM. This because I use an embedded system iMX28 with 1GB UBI filesystem and I need to exchange message between application via temporary files. If I write in flash I think I damage it (these files are written every few seconds for all life of my device).
I created a ramdisk using this command:
mount -t ramfs -o size=5M ramfs /mnt/r
but ramdisk increase your size and may occupy all RAM.
So, I prefer use tmp file.
If I use jffs2 filesystem I can put some direcotry in RAM (in ltib menu under "Target Image Generation"); but this option depends on JFSS2 filesystem or filesystem read only:
(from LTIB search)
Symbol: SYSCFG_RAM_DIRS [=]
Prompt: Place these dirs in writable RAM
Defined at ../../userspace/deployment.lkc:177
Depends on: SYSCFG_READONLY_FS || DEPLOYMENT_JFFS2
How can I put /tmp (and /var) in ram also if I use UBI filesystem?