Linux Kernel MTD question
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · In message <[email protected]> you wrote:
Actually, the range of my flash is from
0xFF000000to0xFFFFFFFF. My starting address of Kernel is0xFF000000, and the starting address of ramdisk image is FF200000, so the partitions is as following:0xFF000000-0xFF1FFFFFKernel0xFF200000-0xFF9FFFFFRamDisk Image ( also my Root File System )And I found my RootFS image is so big that waste many time while write it to flash.
Then avoid writing it that often. Use a more efficient setup for developoment and test, like root file system mounted over NFS.
Quoted 2 lines
I hope I can use MTD to distribute it into two parts, Simple RootFS and libraries, but I don't know how to implement it?
You can use MTD to provide an additional file system which can then be mounted by one of your startup scripts. MTD configuration and file system building is documented in the DULG, please see
http://www.denx.de/twiki/bin/view/DULG/Manual
It is not possible to give good advice how to split data into separate file systems, or how exactly you can mount it without precise knowledge of your system and it's requirements. For example, do you use a SysV init with several run levels, or a simple setup for example based on busybox? In the end this is something which you have to design yourself.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Let the programmers be many and the managers few -- then all will be productive. -- Geoffrey James, "The Tao of Programming"
I have browsed the website, http://www.denx.de/twiki/bin/view/DULG/Manual.
For this example:
0x00000000-0x00060000 : "U-Boot"
0x00060000-0x00080000 : "Environment 1"
0x00080000-0x000A0000 : "Environment 2"
0x000A0000-0x000C0000 : "ASIC Images"
0x000C0000-0x001C0000 : "Linux Kernel"
0x001C0000-0x005C0000 : "Ramdisk Image"
0x005C0000-0x01000000 : "User Data"
How can I put the Environment variables or configurations in 0x00060000-0x00080000, or put User Data in 0x005C0000-0x1000000? Use U-boot command? Or....
Best Regards,
Johnson Cheng
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Wolfgang Denk
Sent: Monday, August 22, 2005 4:17 PM
To: JohnsonCheng
Cc: [email protected]
Subject: Re: Linux Kernel MTD question
Quoted 6 lines · In message <[email protected]> you wrote:
Actually, the range of my flash is from
0xFF000000to0xFFFFFFFF. My starting address of Kernel is0xFF000000, and the starting address of ramdisk image is FF200000, so the partitions is as following:0xFF000000-0xFF1FFFFFKernel0xFF200000-0xFF9FFFFFRamDisk Image ( also my Root File
System )
Quoted 2 lines
And I found my RootFS image is so big that waste many time while write it
to
Quoted 1 line
flash.
Then avoid writing it that often. Use a more efficient setup for developoment and test, like root file system mounted over NFS.
Quoted 2 lines
I hope I can use MTD to distribute it into two parts, Simple RootFS and libraries, but I don't know how to implement it?
You can use MTD to provide an additional file system which can then be mounted by one of your startup scripts. MTD configuration and file system building is documented in the DULG, please see
http://www.denx.de/twiki/bin/view/DULG/Manual
It is not possible to give good advice how to split data into separate file systems, or how exactly you can mount it without precise knowledge of your system and it's requirements. For example, do you use a SysV init with several run levels, or a simple setup for example based on busybox? In the end this is something which you have to design yourself.
Best regards,
Wolfgang Denk
Signature · 8 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Let the programmers be many and the managers few -- then all will be productive. -- Geoffrey James, "The Tao of Programming" _______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded