Adding DTB's to architecture independent vmlinux
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 10 repliesIn review
Changes from V4 from the cover letter
Patch to device tree compiler dropped, alignment done in DTB wrapper object code.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | of: Add support for linking device tree blobs into vmlinuxinclude/ scripts/ | +34 | 5 replies | |
| 2/2 | of/fdt: add kernel command line option for dtb_compat stringDocumentation/ drivers/ include/ | +67 | 5 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] Adding DTB's to architecture independent vmlinux
From: Dirk Brandewie <[email protected]>
This patch set adds support for linking an arbitrary number of device tree blobs into the kernel image and allow passing the "compatible" string for the platform on the kernel command line.
Patch 1/2:
modifies asm-generic/vmlinux.lds.h to add linking .dtb.init.rodata sections into the .init.data section of the vmlinux image. modifies scripts/Makefile.lib to add a kbuild command to compile DTS files to device tree blobs and a rule to create objects to wrap the blobs for linking into vmlinux.
A DTB is linked in by adding the DTB object to the list of objects to be linked into vmlinux in the archtecture specific Makefile using
obj-y += dts/foo.dtb.o
$(obj)/%.dtb: $(src)/%.dts
$(call if_changed,dtc)
The location of the device tree DTS files is architecture specific.
Patch 2/2:
Adds a kernel command line option "dtb_compat=<string>" and functions for architecture/platform specific code to retrieve the command line string and locate the compatible DTB linked into the kernel e.g.
compat_string = of_get_dtb_compatible_string();
compat_dtb = of_find_compatible_dtb(compat_string);Changes from V4:
Patch to device tree compiler dropped, alignment done in DTB wrapper object code.
Name of DTB section changed to .dtb.init.rodata from .dtb
Code cleanup in of_find_compatible_dtb() to remove redundant code and improve readabiility.
Patch to arch/x86/kernel Makefile dropped from this set.
Dirk Brandewie (2):
of: Add support for linking device tree blobs into vmlinux of/fdt: add kernel command line option for dtb_compat string
Documentation/kernel-parameters.txt | 7 ++++ drivers/of/fdt.c | 55 +++++++++++++++++++++++++++++++++++ include/asm-generic/vmlinux.lds.h | 19 +++++++++++- include/linux/of_fdt.h | 5 +++ scripts/Makefile.lib | 17 +++++++++++ 5 files changed, 101 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.2.3