[U-Boot] [PATCH v3 0/7] tegra: Add NAND flash support
Stephen Warren
swarren at wwwdotorg.org
Thu Apr 26 17:13:02 CEST 2012
On 04/26/2012 04:50 AM, Thierry Reding wrote:
> * Simon Glass wrote:
>> This series adds NAND flash support to Tegra and enables it on Seaboard.
>>
>> Included here is a proposed device tree binding with most of the properties
>> private to "nvidia,". The binding includes information about the NAND
>> controller as well as the connected NAND device. The Seaboard has a
>> Hynix HY27UF4G2B.
>>
>> The driver supports ECC-based access and uses DMA and NAND acceleration
>> features of the Tegra SOC to provide access at reasonable speed.
>
> I've been working on getting a similar driver up and running in the Linux
> kernel. While I can successfully read data from the flash (my hardware has
> the same Hynix chip) I've run into a bit of a problem with the partition
> tables.
...
> That however doesn't produce the expected results. Looking at the UART output
> produced by the bootstrap fastboot.bin it looks like it's actually allocating
> more blocks than necessary.
...
> Both of these issues lead to the problem that if I encode the same partition
> information in the DT, the kernel's representation will not match what the
> nvflash tool did.
Yes, I'd recommend not putting information in DT that can be easily
extracted from the partition table on the device itself.
Out of curiosity though, why do you even need the Tegra PT support; I'd
assume in a situation like this, you'd just replace the whole flash with
BCT, PT, EBT at once rather than attempting to update just parts of it
(since the BCT must be updated when writing a new EBT content anyway),
so the existing partition layout wouldn't matter, and the whole device
could just be treated raw.
More information about the U-Boot
mailing list