Kernel device tree gets modified with bootm command when CONFIG_OFDEVICE is enabled

Marcel Hamer marcel at solidxs.nl
Fri Oct 6 03:28:47 PDT 2017


Hello Ian,

On 10/06/2017 11:55 AM, Ian Abbott wrote:
> On 06/10/17 08:45, Marcel Hamer wrote:
>> It kind of sounds like the boot loader is deciding it is smarter than 
>> the developer and overriding the settings in the dtb before it passes 
>> it to the kernel. I also see it as kind of strange, when you 
>> configure a partition table in your dtb for the kernel and once you 
>> boot the kernel you get the partition table from the boot loader. 
>> Especially since I don't think this is documented anywhere, at least 
>> not in the bootm command documentation as far as I know.
>
> There is a magic variable setting to leave the partition entries alone:
>
>   global.of_partition_binding="donttouch"
>
> (Other meaningful values for this variable are "new" and "legacy", 
> which controls whether the individual partitions are placed within a 
> "partitions" node ("new") or not ("legacy").)
>

Thank you for pointing that option out, I will certainly have a look at 
that.

I took the partitioning as an example, because it gave me the biggest 
burden. But I guess in general I think the principle of fixing up the 
kernel device tree should be optional to my opinion.

Kind regards,

Marcel



More information about the barebox mailing list