From: Ulf Samuelsson Date: Wed, 23 May 2007 18:30:43 +0200 Subject: [U-Boot-Users] "8.partition":(1 of 1) [PATCH][ARM] Changedataflash partition boundaries to be compatible with Linux 2.6 References: <460943B7.1020309@atmel.com> <20070523151257.GC18695@michl.2n.cz> Message-ID: <013001c79d58$14276f00$17031b0a@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 .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