2021-01-26 01:33:16

by Cyril Brulebois

[permalink] [raw]
Subject: Re: [PATCH] cmd_dtc: Enable generation of device tree symbols

Hi,

Uwe Kleine-König <[email protected]> (2021-01-25):
> Adding the -@ switch to dtc results in the binary devicetrees containing
> a list of symbolic references and their paths. This is necessary to
> apply device tree overlays e.g. on Raspberry Pi as described on
> https://www.raspberrypi.org/documentation/configuration/device-tree.md.
>
> Obviously the downside of this change is an increas of the size of the

(as spotted by Uwe right after sending →) increase

> generated dtbs, for an arm out-of-tree build (multi_v7_defconfig):
>
> $ du -s arch/arm/boot/dts*
> 101380 arch/arm/boot/dts-pre
> 114308 arch/arm/boot/dts-post
>
> so this is in average an increase of 12.8% in size.
>
> Signed-off-by: Uwe Kleine-König <[email protected]>

Tested-by: Cyril Brulebois <[email protected]>

with:
- a Raspberry Pi CM3
- a carrier board designed after the official IO Board V3
- an RTC accessible over I²C, made functional via a DTB overlay, that
can only be enabled once bcm2710-rpi-cm3.dtb has been generated with
this patch applied.


Cheers,
--
Cyril Brulebois -- Debian Consultant @ DEBAMAX -- https://debamax.com/


Attachments:
(No filename) (1.16 kB)
signature.asc (849.00 B)
Download all attachments

2021-01-26 20:48:16

by Frank Rowand

[permalink] [raw]
Subject: Re: [PATCH] cmd_dtc: Enable generation of device tree symbols

+frank

On 1/25/21 5:15 AM, Cyril Brulebois wrote:
> Hi,
>
> Uwe Kleine-König <[email protected]> (2021-01-25):
>> Adding the -@ switch to dtc results in the binary devicetrees containing
>> a list of symbolic references and their paths. This is necessary to
>> apply device tree overlays e.g. on Raspberry Pi as described on
>> https://www.raspberrypi.org/documentation/configuration/device-tree.md.
>>
>> Obviously the downside of this change is an increas of the size of the
>
> (as spotted by Uwe right after sending →) increase
>
>> generated dtbs, for an arm out-of-tree build (multi_v7_defconfig):
>>
>> $ du -s arch/arm/boot/dts*
>> 101380 arch/arm/boot/dts-pre
>> 114308 arch/arm/boot/dts-post
>>
>> so this is in average an increase of 12.8% in size.
>>
>> Signed-off-by: Uwe Kleine-König <[email protected]>
>
> Tested-by: Cyril Brulebois <[email protected]>
>
> with:
> - a Raspberry Pi CM3
> - a carrier board designed after the official IO Board V3
> - an RTC accessible over I²C, made functional via a DTB overlay, that
> can only be enabled once bcm2710-rpi-cm3.dtb has been generated with
> this patch applied.
>
>
> Cheers,
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> [email protected]
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>