Linux - MobileThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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.
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!
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.
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...
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? )
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.