LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 04-24-2011, 07: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, 02:10 PM   #2
nini09
Member
 
Registered: Apr 2009
Posts: 920

Rep: Reputation: 67
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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 03:28 PM.

Main Menu
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