LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 04-24-2011, 08:07 AM   #1
_spectrum_
LQ Newbie
 
Registered: Jun 2009
Posts: 16

Rep: Reputation: 0
help on JFFS2 support


hi all,

i have a little custom board developed by myself with running linux.
I need now to save some data in the non volatile memory (parallel flash), and i read here and there that JFFS2 is a goow wat to go.
So i created the partition in the last megabyte of the flash, as below:

static struct mtd_partition amcore_partitions[] = {
{
.name = "Colilo (64K)",
.size = 0x10000,
.offset = 0x0
},
{
.name = "Kernel+ROMfs (3008K)",
.size = 0x2F0000,
.offset = MTDPART_OFS_APPEND
},
{
.name = "JFFS2 (1024K)",
.size = MTDPART_SIZ_FULL,
.offset = MTDPART_OFS_APPEND
}

The next step is to format the partition, but i don't know where to start.

Is the correct way to create an image on PC and writing it on the partition spave ? Or is more correct to format the partition with some linux tool included in the embedded linux ?

In both cases i would need some help/example/link,
many thanks,

angelo
 
Old 04-25-2011, 03:10 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,058

Rep: Reputation: 88
You can reference following link.
http://www.denx.de/wiki/DULG/RootFil...FFS2FileSystem
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
jffs2 and suggestions _spectrum_ Linux - Embedded & Single-board computer 3 02-23-2011 03:24 PM
[SOLVED] Can we have JFFS2 Filesystem on NOR Flash. Niraj Kulkarni Linux - Newbie 0 04-28-2010 08:28 AM
Busybox And Jffs2 Problem ashthet Linux - General 0 09-02-2008 02:20 AM
how to mount jffs2 nesta Linux - Kernel 1 08-24-2008 09:39 AM
Problems with CF and jffs2....... webquinty Linux - Embedded & Single-board computer 1 06-13-2008 03:22 AM


All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration