Viable PPC platform?
I have a ppc405gpr system with 64M ram and 4Meg flash in a AM29LV320. Is this a viable platform for linux? Can a filesystem (JFFS2?) be put this flash type?
Signature · 1 line
Lit up like Levy's
Quoted 3 lines · geneSmith
I have a ppc405gpr system with 64M ram and 4Meg flash in a AM29LV320. Is this a viable platform for linux? Can a filesystem (JFFS2?) be put this flash type?
Yes. (Yes) Yes.
-Matt
Quoted 4 lines · On Tue, 09 May 2006 10:38:19 -0400 geneSmith <[email protected]> wrote:
I have a ppc405gpr system with 64M ram and 4Meg flash in a AM29LV320. Is this a viable platform for linux? Can a filesystem (JFFS2?) be put this flash type?
I would create an initrd and put every file that doesn't need to be changed persistently into it instead of JFFS2.
The reason for this is that if JFFS2 becomes too full (less than 5 free blocks) you may find that writes to it hang.
Alex
Quoted 7 lines
Signature · 6 lines
Lit up like Levy's _______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 10 lines · Alex Zeffertt
Quoted 4 lines · On Tue, 09 May 2006 10:38:19 -0400 geneSmith <[email protected]> wrote:
I have a ppc405gpr system with 64M ram and 4Meg flash in a AM29LV320. Is this a viable platform for linux? Can a filesystem (JFFS2?) be put this flash type?
I would create an initrd and put every file that doesn't need to be changed persistently into it instead of JFFS2.
After many years of doing embedded Linux stuff I still don't understand why people are so fond of initrd.
For temporary stuff - tempfs is much better and flexible. For r/o stuff - just make separate MTD partition (cramfs, squashfs) and mount it directly as root. Both options will waste significantly less memory.
Signature · 1 line
Eugene
Quoted 8 lines · In message <[email protected]> you wrote:
After many years of doing embedded Linux stuff I still don't understand why people are so fond of initrd.
For temporary stuff - tempfs is much better and flexible. For r/o stuff - just make separate MTD partition (cramfs, squashfs) and mount it directly as root. Both options will waste significantly less memory.
Agreed.
And if somebody wants to see facts and numbers, please see
http://www.denx.de/wiki/view/DULG/RootFileSystemSelection
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Ninety-Ninety Rule of Project Schedules: The first ninety percent of the task takes ninety percent of the time, and the last ten percent takes the other ninety percent.
Quoted 12 lines · On Tue, 9 May 2006 10:15:20 -0700 Eugene Surovegin <[email protected]> wrote:
Quoted 10 lines · Alex Zeffertt
Quoted 4 lines · On Tue, 09 May 2006 10:38:19 -0400 geneSmith <[email protected]> wrote:
I have a ppc405gpr system with 64M ram and 4Meg flash in a AM29LV320. Is this a viable platform for linux? Can a filesystem (JFFS2?) be put this flash type?
I would create an initrd and put every file that doesn't need to be changed persistently into it instead of JFFS2.
Quoted 8 lines
After many years of doing embedded Linux stuff I still don't understand why people are so fond of initrd.
For temporary stuff - tempfs is much better and flexible. For r/o stuff - just make separate MTD partition (cramfs, squashfs) and mount it directly as root. Both options will waste significantly less memory.
Okay, let me qualify my answer. It depends on whether you need to make persistent changes to the filesystem in flash. If so, and given that your flash is only 4MB, I would recommend moving files to somewhere else, e.g. an initrd, because if when a JFFS2 FS is approaching full, you often find that writes to flash hang while JFFS2 searches for blocks to use as a scratchpad. This has been my experience anyway.
If you don't need to make persistent changes to files, then I'm sure cramfs in flash as a rootfs would work well, with a tmpfs partition mounted on /tmp and /var.
Alex
Quoted 32 lines · Alex Zeffertt
Quoted 12 lines · On Tue, 9 May 2006 10:15:20 -0700 Eugene Surovegin <[email protected]> wrote:
Quoted 10 lines · Alex Zeffertt
Quoted 4 lines · On Tue, 09 May 2006 10:38:19 -0400 geneSmith <[email protected]> wrote:
I have a ppc405gpr system with 64M ram and 4Meg flash in a AM29LV320. Is this a viable platform for linux? Can a filesystem (JFFS2?) be put this flash type?
I would create an initrd and put every file that doesn't need to be changed persistently into it instead of JFFS2.
Quoted 8 lines
After many years of doing embedded Linux stuff I still don't understand why people are so fond of initrd.
For temporary stuff - tempfs is much better and flexible. For r/o stuff - just make separate MTD partition (cramfs, squashfs) and mount it directly as root. Both options will waste significantly less memory.
Okay, let me qualify my answer. It depends on whether you need to make persistent changes to the filesystem in flash. If so, and given that your flash is only 4MB, I would recommend moving files to somewhere else, e.g. an initrd, because if when a JFFS2 FS is approaching full, you often find that writes to flash hang while JFFS2 searches for blocks to use as a scratchpad. This has been my experience anyway.
Quoted 3 lines
If you don't need to make persistent changes to files, then I'm sure cramfs in flash as a rootfs would work well, with a tmpfs partition mounted on /tmp and /var.
You missed my point. initrd should be stored somewhere - in the same flash . In this case there is no reason to actually use initrd instead of just direct mount from flash.
Signature · 1 line
Eugene
Quoted 2 lines · Wolfgang Denk
And if somebody wants to see facts and numbers, please see
http://www.denx.de/wiki/view/DULG/RootFileSystemSelection
Out of interest, how old is that JFFS2 test? If it's with the ancient code in the 2.4 kernel, you'll get a _lot_ of improvement by using the 2.6 kernel.
It looks like it took about 13 seconds to mount the onboard 8MiB flash. I can mount 512MiB of flash in 7.9 seconds with the current kernel, with a 400MHz AMD Geode.
There's more work going on right now to reduce the memory usage too.
Signature · 1 line
dwmw2
Quoted 4 lines · In message <[email protected]> you wrote:
Out of interest, how old is that JFFS2 test? If it's with the ancient code in the 2.4 kernel, you'll get a _lot_ of improvement by using the 2.6 kernel.
This was on a MPC860 system running a 2.4.25 kernel tree with a MTD snapshot of Spring 2005.
Quoted 3 lines
It looks like it took about 13 seconds to mount the onboard 8MiB flash. I can mount 512MiB of flash in 7.9 seconds with the current kernel, with a 400MHz AMD Geode.
The file system size was actually only 4 MiB.
But then, a 400 MHz Geode is a bit faster than a 50 MHz 8xx, probably not only in terms of CPU performance but also in terms of memory bandwidth.
Quoted 1 line
There's more work going on right now to reduce the memory usage too.
Fine, thanks!
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Make it right before you make it faster.
Quoted 3 lines · Wolfgang Denk
But then, a 400 MHz Geode is a bit faster than a 50 MHz 8xx, probably not only in terms of CPU performance but also in terms of memory bandwidth.
It's actually NAND flash, and the bandwidth sucks (the flash controller on the Geode companion chip is quite slow). We're getting about 3 MiB/s from it, although we _ought_ to be able to get 3½. I'm playing with JFFS2 some more before I go back to tweaking the NAND drivers though.
Signature · 1 line
dwmw2