I'm currently attempting to write a dts file for "Fritz!Box 3272", but I'm stuck at the "flash" section.
First of all: Is it correct to replicate the manufacturers partitions or do I have to make a scheme up myself?
This board makes use of 2 separate flash chips "s-flash" and "NAND", the manufacturer placed 3 partitions "tffs (1)", "tffs (2)", "urlader" on the former, while filesystem, kernel etc are placed on the latter.
Urlader is the bootloader I suppose.
I took a look at similar flash chip configurations - for example the "Fritz!Box 4040" makes use of a similar scheme. As this board is already integrated with OpenWRT 19.07, I took a look at the dts file:
It only lists one entry "flash@0" and under that all partitions.
Is this the preferred way?
I would very much appreciate any reference on creating partitions in the dts as I couldn't make much use of the wiki 0.
The specific questions I try to answer:
What do those partition definitions represent: The state of the device as is in vendor state or as we want it to be after installing openwrt?
How do I handle the bootloader on a separate Flashchip, can I just add another "flash" node? Is there some reference dts on how thats done?