[PATCH 1/2] ubi: mount partitions specified in device tree

Richard Weinberger richard at nod.at
Mon Jun 20 12:57:45 PDT 2016


Am 20.06.2016 um 17:08 schrieb Arnd Bergmann:
>> Since blocks on a MTD can render bad you'd lose the table sooner or later.
>> That's why we cannot store it on the MTD directly.
>> Defining the table in DT is at least less ugly than using the mtdparts=
>> kernel parameter.
> 
> Right, there would be no benefit in using the kernel command line,
> it just moves the information to another place inside of the same DT
> (the /chosen property).
> 
> I think you can normally rely on the first block being readable
> on flash, in particular if you write it very rarely (when updating
> the partition information), so it would be technically possible to
> have a partition table in there, but in practice that's not how
> things are done, so the argument is useless.

Speaking of NAND, only SLC (and also here not all) chips guarantee that the first
block is better than the other ones.

Thanks,
//richard



More information about the linux-mtd mailing list