[U-Boot-Users] "8.partition":(1 of 1) [PATCH][ARM] Changedataflash partition boundaries to be compatible with Linux 2.6

Ulf Samuelsson ulf at atmel.com
Wed May 23 18:30:45 CEST 2007


> 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





More information about the U-Boot mailing list