
On Tue, Mar 27, 2007 at 06:17:59PM +0200, Ulf Samuelsson wrote:
CHANGELOG: [PATCH][ARM] Change dataflash partition boundaries to be compatible with Linux 2.6 Make partition boundaries align with start of dataflash pages Add partition name to environment automatically Add printing info on protection status Enable by setting CONFIG_NEW_PARTITION in <board>.h
I do not like this one... drivers/dataflash.c has too much knowledge of various board types, which will soon lead to #ifdef mess. Moreover it is imposible to use cmdline partitions without touching this file again.
Best regards, ladis
Please note that these partitions are NOT used by the kernel. It defines partitions for U-boot use only. The kernel will only see the rootsfs partition.
U-Boot uses the partition info to determine where to store the kernel and where to store the rootfs.
There is a natural step of 256 pages in the dataflashes, so you should always allocate 256 pages for Initial boot/U-boot/Environment.
Then you could use a configuration parameter where you define the size of the kernel, and then the rootfs is in the remainder. I am converging on this solution for the pathces on the ftp site.
If you have more than one dataflash, each extra dataflash has a single partition for u-boot purposes.
Best Regards Ulf Samuelsson