LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   How to save program in Embedded linux based Cobra5329 BSP (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/how-to-save-program-in-embedded-linux-based-cobra5329-bsp-898248/)

zawii87 08-19-2011 04:22 AM

How to save program in Embedded linux based Cobra5329 BSP
 
Hello Members,

Can any one please explain me that how can we access the in built memory to save our program on embedded Linux based cobra5329 board support package which is based on MCF5329 coldfire processor.

Also there is option to put extra memory card into the board . How Can I access this and save my program on to it because every time I shut down my system I have to download the program again to my board. This is too much time consuming and also rubbish !

There is no manual support comes with this board that how to do this . Can any one please explain me and guide me about this.

Thanks

cnxsoft 08-23-2011 04:33 AM

The cobra5329 has 16 MByte Flash according to the product brief, so you could save your program there.

You could have a partition formatted as JFFS2 (or other file system) in the flash to store your program or create of JFFS2 image (with mkfs.jffs2) and burn it to the flash.

zawii87 08-23-2011 04:40 AM

Quote:

Originally Posted by cnxsoft (Post 4450930)
The cobra5329 has 16 MByte Flash according to the product brief, so you could save your program there.

You could have a partition formatted as JFFS2 (or other file system) in the flash to store your program or create of JFFS2 image (with mkfs.jffs2) and burn it to the flash.


yup I know that Cobra5239 have 16 MByte flash in it, but I don't know how to access this flash memory to store my files there.

I am on the board terminal and don't know where to go to reach the internal memory and save my program

cnxsoft 08-24-2011 01:57 AM

You could try to list the flash partition:
Quote:

cat /dev/mtd
mtd0 is usually the physical flash and mtd1, mtd2 etc.. the partition.

If you have mtd1, you can format and mount the partition, for example:

Quote:

mkfs.jffs2 /dev/mtd3
mount -t jffs2 /dev/mtdblock3 /mnt/flash
Then edit the startup script (check /etc/inittab to locate it) to mount the partition at boot time and run your program.


All times are GMT -5. The time now is 12:45 PM.