Some dubts on Linux

I’m using EP9301 board, and does Linux boot and run in RAM, right? Because of this when I create a file or a DIR, when I restart the board all are lost … how can I create file and directories and it remains when it start?

leomecma

No idea how it runs, tell us please.

What kind of filesystem is mounted at the root? (run ‘mount’ and look for a line ‘/XXX on / type YYY’).

Linux image is loaded from flash to RAM, and run in RAM. But for this reason when I do changes in filesystem, like simple creating a file, when I restart I lost all changes, because systems run in RAM memory, how can I just save changes in flash?

leomecma

maybe you could try the command ‘sync’

Not really sure exactly what to do here.

I’ve been runing a gumstix for quite a while and every thing seems to get written back to flash fine but i’m ussing a jffs2 filesystem which is specificaly made for flash memory.

I’d check out this book to get your feet under you in this kind of linux:

http://www.amazon.com/Embedded-Linux-Pr … 0131679848

Happy Hacking :wink:

Where the linux image is loaded is not important. What matters is the type of filesystem that you create a directory or file in.

‘sync’ may indeed help (but not for vfat filesystems IIRC)

Can you post the result of executing ‘mount’ or the contents of file /etc/mtab?

It’s because Linux uses a ram filesystem.

Anything written to it will be discarded. If you want to change that you need to build a new kernel with MTD support and flash a root filesystem in redboot.