LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 03-06-2011, 08:23 PM   #1
justboo2u
Member
 
Registered: Feb 2011
Distribution: Ubuntu, Debian(ARM),XP,W7,CP/M
Posts: 126

Rep: Reputation: 20
Question Best topology for embedded or flash filesystem


I have been 'working' with a Debian version for ARM on what is now a defective 'smartbook'.
Now that I am going deeper than I had intended I would like to ask this:

1) Since this (and most all) 'netbook-type' units have some combination of SPI and NAND flash, and
2) the SPI flash is 'generally' considered 'read-only'... holding essential 'images' usually placed in RAM (updated only as necessary), and
3) the NAND flash, while generally considered the 'hard drive' can/will eventually fail from 'overuse',

What would be the best topology for the filesystem, presuming that the NAND flash will hold the 'lions share' of rarely-changed files/data?... or NOT?

As there are plenty of methods for relocating images to various areas/memory the 'how' is not so much a question...

The machine in question has only 128Mb (only... 64K usedtabe LOTS) of which 16Mb has, to this point, been allocated for kernel use...
The NAND flash is currently a 2Gb 'stick' which I intend to swap out with a 4 or 8-gigger once I know the 'repair' will take...

It makes sense to me that /proc could be located in a portion of RAM, unless there are files that need to be kept for resuse THERE as well...
I suspect that some speed advantage would possibly be seen from the 'rearrangement' as well. Perhaps.

Up to the point where I broke it, I had the entire / filesystem in the 'HD' (NAND) as EXT2.
I have no issues with keeping it that way, particularly if the 'drive' substitution works as I expect it to...

Would appreciate input on this as is convenient!

Last edited by justboo2u; 03-06-2011 at 08:26 PM.
 
Old 03-07-2011, 12:57 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I've an android in my pocket. That uses yaffs, with squashfs images mapped to ram disks and mounted wherever. They seem to have thought this through as well.

Another option is unionfs, which minimises writes. You can put your squashfs image in and go to work, or use a ro system (e.g.iso9660). Unionfs stores only overwrites. If you want to go to town on that, maybe update your squashfs on power down. That should keep you coding for 3 months.
 
Old 03-07-2011, 05:57 PM   #3
justboo2u
Member
 
Registered: Feb 2011
Distribution: Ubuntu, Debian(ARM),XP,W7,CP/M
Posts: 126

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by business_kid View Post
I've an android in my pocket. That uses yaffs, with squashfs images mapped to ram disks and mounted wherever. They seem to have thought this through as well.

Another option is unionfs, which minimises writes. You can put your squashfs image in and go to work, or use a ro system (e.g.iso9660). Unionfs stores only overwrites. If you want to go to town on that, maybe update your squashfs on power down. That should keep you coding for 3 months.
.. and I thought you were just happy to see me!

Thanks for the input. It doesnt really cover the question tho... perhaps I didnt elaborate adequately.
It isnt so much the TYPE of filesystem as the 'layout'... /bin and /dev located here, /proc and /usr located there... that sort of thing...

Most everyone agrees that yaffs2 or something similar is best for NAND altho it likely would add some overhead to the file I/O with the 'smart' work it does...
Doubt it would be worse than Stacker / Doublespace tho!
 
Old 03-08-2011, 03:06 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
You're asking us to share out your memory for you?
proc is a door to ram anyhow . It can all be virtual, except probably /home.
 
Old 03-08-2011, 06:37 PM   #5
justboo2u
Member
 
Registered: Feb 2011
Distribution: Ubuntu, Debian(ARM),XP,W7,CP/M
Posts: 126

Original Poster
Rep: Reputation: 20
Well, since I wouldnt want to be accused of asking others to do my work for me...

Consider this thread closed.
 
Old 03-09-2011, 05:27 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
justboo2u,

No one who has read your Journey to Linux-ify a Chinese 'Smartbook' could ever accuse you of asking us to do your work for you. -- Keep up the good work

I see that you have marked this thread "[SOLVED]", which is enough to "close the case", as it were. Formal closure of a thread is reserved for cases of spamming & other serious rule breakage.

Feel free to continue this problem here, if appropriate.
 
Old 03-09-2011, 08:05 PM   #7
justboo2u
Member
 
Registered: Feb 2011
Distribution: Ubuntu, Debian(ARM),XP,W7,CP/M
Posts: 126

Original Poster
Rep: Reputation: 20
Appreciate the input..

but since I still have the issue of the malformed bootcmd(tm) to contend with, I guess it would be better for my 8-bit brain to work on one thing at a time...







sounds like a book title... dont-it?

Last edited by justboo2u; 03-09-2011 at 08:14 PM.
 
Old 03-19-2011, 09:05 PM   #8
justboo2u
Member
 
Registered: Feb 2011
Distribution: Ubuntu, Debian(ARM),XP,W7,CP/M
Posts: 126

Original Poster
Rep: Reputation: 20
ReFresh vers 1.0

Now that I have this Sylvania (that may be 'broken' now...), and it is already setup with mtd-configured NAND, I must reconsider the problem of setting up the NAND to be:
1) an efficient user of space, and
2) reliable...

I'd rather NOT configure any RAM as ramdisk... I intend to continue using X-windows of some form or another on it, and would benefit from ALL the 'real' RAM I have...
Having said that, I CAN and WOULD be willing to occupy the SD/mmc slot with 'extra HD space' once I get the overall system reliably booting without 'external assistance'. (which begs the question of 'can I keep track of where the little SOB is? )

So,

Here we go again!
 
Old 03-19-2011, 09:25 PM   #9
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,101
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Just throwing this out here since they have a section for Sylvania Netbooks/oops tablets.

http://www.androidtablets.net/forum/...tablet-brands/

Last edited by rokytnji; 03-19-2011 at 09:28 PM.
 
Old 03-19-2011, 09:36 PM   #10
justboo2u
Member
 
Registered: Feb 2011
Distribution: Ubuntu, Debian(ARM),XP,W7,CP/M
Posts: 126

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by rokytnji View Post
Just throwing this out here since they have a section for Sylvania Netbooks/oops tablets.

http://www.androidtablets.net/forum/...tablet-brands/
I appreciate it, and I might take a look, but I have developed an aversion to android...
Would rather go full-blown linux-X anyway...

EDIT:
Nah... that looks to be for tablets and this is not one...

Last edited by justboo2u; 03-19-2011 at 09:39 PM.
 
Old 03-20-2011, 09:21 PM   #11
justboo2u
Member
 
Registered: Feb 2011
Distribution: Ubuntu, Debian(ARM),XP,W7,CP/M
Posts: 126

Original Poster
Rep: Reputation: 20
Lightbulb Slicing the pie...

Until the JTAG/SPI programmer shows up I will have to work with 'what I have'...

Right now, the 2gb NAND (the same SAMSUNG everybody else has... fer sure) is divided into:

Kernel-NAND........ (mtdblock6) of 0003Mb (since the kernel is compressed and sits around 2.5 things are cool!)
Filesystem-NAND... (mtdblock7) of 0300Mb (unsure yet what to use this for...)
Logo-NAND.......... (mtdblock8) of 0006Mb (considering nearly ALL .BMPs are no more than 1.5 this is wasteful..)
User-NAND.......... (mtdblock9) of 1700Mb (the current designated location of the root '/' filesystem)

Which totals out to only 2009Mb... leaving 39Mb 'open'... presumably for 'fault relocation' (?)

IF the JTAG can do what I want... I intend to reallocate this NAND into:

Kernel-NAND........ (mtdblock6) of 0004Mb (more room for 'expansion'...)
Logo-NAND.......... (mtdblock7) of 0002Mb (more would be wasteful...)
Filesystem-NAND.... (mtdblock8) .... the rest... 2003Mb. (leaving the 'buffer')

For now, mtdblock9 will contain the entire filesystem (at around 60% used right now), and I expect to have it self-bootable on the NAND tonite after work. ** DONE **

I forsee the /USR, /proc, /var (possibly) being moved to their own partition...
Right now I do not believe /home, /media and some others are necessary and could be removed.


Last edited by justboo2u; 03-21-2011 at 03:14 AM.
 
  


Reply



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
[SOLVED] NFS server on embedded plateform : "possibly unsupported filesystem or fsid= required mpicaud Linux - Server 2 12-28-2010 08:33 AM
After filesystem what is next on embedded linux? odesus Linux - Embedded & Single-board computer 5 02-25-2009 05:05 AM
How to mount the embedded flash memory? venmugil Linux - Embedded & Single-board computer 1 09-23-2008 10:38 AM
Shared Objects in Embedded Linux Filesystem ashok449 Linux - Kernel 5 07-06-2008 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 08:24 PM.

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
Open Source Consulting | Domain Registration