{linux, linux-headers}: add version 5.7
PATCH v5 1/3 {linux, linux-headers}: add version 5.7
---
This is a prerequisite for the sl28 board support which needs at least kernel 5.7, thus pack it into one series. This is a new patch and thus, there is no former version. This patch can also be picked early, before the other two patches.
Changes since v4:
none
Changes since v3:
new patch
linux/Config.in | 4 ++-- linux/linux.hash | 1 + package/linux-headers/Config.in.host | 13 +++++++++++-- toolchain/Config.in | 5 +++++ .../toolchain-external-custom/Config.in.options | 6 +++++- 5 files changed, 24 insertions(+), 5 deletions(-)
linux/Config.in +2 -2
@@ -27,7 +27,7 @@ choice prompt "Kernel version" config BR2_LINUX_KERNEL_LATEST_VERSION - bool "Latest version (5.6)" + bool "Latest version (5.7)" config BR2_LINUX_KERNEL_LATEST_CIP_VERSION bool "Latest CIP SLTS version (4.19.98-cip19)"
@@ -128,7 +128,7 @@ endif config BR2_LINUX_KERNEL_VERSION string - default "5.6.7" if BR2_LINUX_KERNEL_LATEST_VERSION + default "5.7" if BR2_LINUX_KERNEL_LATEST_VERSION default "4.19.98-cip19" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION default "4.19.98-cip19-rt7" if BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
linux/linux.hash +1 -0
@@ -1,4 +1,5 @@ # From https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc +sha256 de8163bb62f822d84f7a3983574ec460060bf013a78ff79cd7c979ff1ec1d7e0 linux-5.7.tar.xz sha256 23a0420f29eacb66d71f86f64fbd35a1b6ff617d520e3e05f3e1f537d46692ca linux-5.6.7.tar.xz sha256 1448334371fb52f511255726832464d33877a210a7350260fb18eb225ae211eb linux-5.5.19.tar.xz sha256 e16bd5f7284a80a41328bf712e1136b0adf5b71cc0bd263efa7cac75539806d4 linux-5.4.35.tar.xz
package/linux-headers/Config.in.host +11 -2
@@ -6,7 +6,7 @@ config BR2_PACKAGE_HOST_LINUX_HEADERS choice prompt "Kernel Headers" default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL - default BR2_KERNEL_HEADERS_5_6 + default BR2_KERNEL_HEADERS_5_7 help Select the kernel version to get headers from.
@@ -63,6 +63,10 @@ config BR2_KERNEL_HEADERS_5_6 bool "Linux 5.6.x kernel headers" select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 +config BR2_KERNEL_HEADERS_5_7 + bool "Linux 5.7.x kernel headers" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + config BR2_KERNEL_HEADERS_VERSION bool "Manually specified Linux version" help
@@ -135,8 +139,12 @@ choice If your kernel headers are more recent than the latest version in the choice, then select the latest version. +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_7 + bool "5.7.x or later" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_6 - bool "5.6.x or later" + bool "5.6.x" select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_5
@@ -341,6 +349,7 @@ config BR2_DEFAULT_KERNEL_HEADERS default "5.4.35" if BR2_KERNEL_HEADERS_5_4 default "5.5.19" if BR2_KERNEL_HEADERS_5_5 default "5.6.7" if BR2_KERNEL_HEADERS_5_6 + default "5.7" if BR2_KERNEL_HEADERS_5_7 default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION default "custom" if BR2_KERNEL_HEADERS_CUSTOM_TARBALL default BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION \
toolchain/Config.in +5 -0
@@ -476,6 +476,10 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 bool select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5 + +config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + bool + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 select BR2_TOOLCHAIN_HEADERS_LATEST # This should be selected by the latest version, above, to indicate that
@@ -489,6 +493,7 @@ config BR2_TOOLCHAIN_HEADERS_LATEST # stops affecting a value on the first matching default. config BR2_TOOLCHAIN_HEADERS_AT_LEAST string + default "5.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 default "5.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 default "5.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5 default "5.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
toolchain/toolchain-external/toolchain-external-custom/Config.in.options +5 -1
@@ -115,8 +115,12 @@ choice If your toolchain uses headers newer than the latest version in the choice, then select the latest version. +config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_7 + bool "5.7.x or later" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_6 - bool "5.6.x or later" + bool "5.6.x" select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_5
Signature · 1 line
2.20.1
PATCH v5 2/3 linux: introduce BR2_KERNEL_DTB_KEEP_DIRNAME
In linux, newer architectures like ARM64 and RISC-V keep their device tree sources organized by subdirectories. When these device trees are installed by the kernel they will keep the directory names. But buildroot strips the prefixes when installing them into /boot or the images directory.
Sometimes the bootloader references the device tree by name (e.g. u-boot has the environment variable 'fdtfile') which also includes the prefix directory.
Make it possible to keep this prefix during installation, so we can be compatible with other distributions and make it easier for the user, because he doesn't have to change that environment variable.
---
Hi,
formerly, this was a seperate patch. But because the sl28 board also needs another patch now, I combined all of them into one patch series. So actually, there is no v2, nor a v3 of this patch.
Changes since v4:
make the Makefile expression more readable, thanks Yann
Changes since v3:
none
Changes since v2:
none
linux/Config.in | 7 +++++++ linux/linux.mk | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-)
linux/Config.in +7 -0
@@ -407,6 +407,13 @@ config BR2_LINUX_KERNEL_CUSTOM_DTS_PATH You can provide a list of dts paths to copy and build, separated by spaces. +config BR2_KERNEL_DTB_KEEP_DIRNAME + bool "Keep the directory name of the Device Tree" + help + If enabled, the device tree blobs keep their + directory prefixes when they get copied to the + output image directory or the target directory. + config BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT bool "Build Device Tree with overlay support" help
linux/linux.mk +5 -4
@@ -377,10 +377,11 @@ endef ifeq ($(BR2_LINUX_KERNEL_APPENDED_DTB),) define LINUX_INSTALL_DTB # dtbs moved from arch/<ARCH>/boot to arch/<ARCH>/boot/dts since 3.8-rc1 - cp $(addprefix \ - $(LINUX_ARCH_PATH)/boot/$(if $(wildcard \ - $(addprefix $(LINUX_ARCH_PATH)/boot/dts/,$(LINUX_DTBS))),dts/),$(LINUX_DTBS)) \ - $(1) + $(foreach dtb,$(LINUX_DTBS), \ + install -D \ + $(or $(wildcard $(LINUX_ARCH_PATH)/boot/dts/$(dtb)),$(LINUX_ARCH_PATH)/boot/$(dtb)) \ + $(1)/$(if $(BR2_KERNEL_DTB_KEEP_DIRNAME),$(dtb),$(notdir $(dtb))) + ) endef endif # BR2_LINUX_KERNEL_APPENDED_DTB endif # BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
Signature · 1 line
2.20.1
Yann E. MORIN
AppliedPATCH v5 2/3 linux: introduce BR2_KERNEL_DTB_KEEP_DIRNAME
Michael, All,
On 2020-06-05 00:11 +0200, Michael Walle spake thusly:
Quoted 12 lines
In linux, newer architectures like ARM64 and RISC-V keep their device tree sources organized by subdirectories. When these device trees are installed by the kernel they will keep the directory names. But buildroot strips the prefixes when installing them into /boot or the images directory.
Sometimes the bootloader references the device tree by name (e.g. u-boot has the environment variable 'fdtfile') which also includes the prefix directory.
Make it possible to keep this prefix during installation, so we can be compatible with other distributions and make it easier for the user, because he doesn't have to change that environment variable.
Quoted 1 line
Signed-off-by Michael Walle <[email protected]>
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 61 lines
---
Hi,formerly, this was a seperate patch. But because the sl28 board also needs another patch now, I combined all of them into one patch series. So actually, there is no v2, nor a v3 of this patch.
Changes since v4:
make theMakefileexpression more readable, thanks YannChanges since v3:
noneChanges since v2:
nonelinux/Config.in | 7 +++++++ linux/linux.mk | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-)linux/Config.in +7
-0@@ -407,6 +407,13 @@ config BR2_LINUX_KERNEL_CUSTOM_DTS_PATH You can provide a list of dts paths to copy and build, separated by spaces. +config BR2_KERNEL_DTB_KEEP_DIRNAME + bool "Keep the directory name of the Device Tree" + help + If enabled, the device tree blobs keep their + directory prefixes when they get copied to the + output image directory or the target directory. + config BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT bool "Build Device Tree with overlay support" helplinux/linux.mk +5
-4@@ -377,10 +377,11 @@ endef ifeq ($(BR2_LINUX_KERNEL_APPENDED_DTB),) define LINUX_INSTALL_DTB # dtbs moved from arch/<ARCH>/boot to arch/<ARCH>/boot/dts since 3.8-rc1 - cp $(addprefix \ - $(LINUX_ARCH_PATH)/boot/$(if $(wildcard \ - $(addprefix $(LINUX_ARCH_PATH)/boot/dts/,$(LINUX_DTBS))),dts/),$(LINUX_DTBS)) \ - $(1) + $(foreach dtb,$(LINUX_DTBS), \ + install -D \ + $(or $(wildcard $(LINUX_ARCH_PATH)/boot/dts/$(dtb)),$(LINUX_ARCH_PATH)/boot/$(dtb)) \ + $(1)/$(if $(BR2_KERNEL_DTB_KEEP_DIRNAME),$(dtb),$(notdir $(dtb))) + ) endef endif # BR2_LINUX_KERNEL_APPENDED_DTB endif # BR2_LINUX_KERNEL_DTB_IS_SELF_BUILTSignature · 1 line
2.20.1
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH v5 3/3 board: Add Kontron SMARC-sAL28 support
In reply to Michael WalleNow that upstream supports this board add buildroot support for it, too.
This supports:
- latest upstream linux kernel. Since the support for this board and its SoC is still in active development, we want to follow the upstream kernel releases for now.
- building an image which can be installed to eMMC, SD card or USB thumb drive.
- upstream u-boot patches are pending, therefore no support for building a bootloader for now.
---
Changes since v4:
none
Changes since v3:
- removed custom kernel version, instead use the latest 5.7 kernel
Changes since v2:
- added udev rules 71-smarc-networking.rules, to rename the network interfaces according to the SMARC specification.
- removed arm-smmu.disable_bypass=n kernel paramter, since the real fix is now upstream and will be included in 5.7
- use full path in PARTUUID="$($HOST_DIR/bin/uuidgen)" to be sure we are using our own uuidgen
- mention fdtfile in readme.txt
- fixed typo in readme.txt
- mention non-working network with vendor's bootloader in readme.txt
- set BR2_KERNEL_DTB_KEEP_DIRNAME=y
Changes since v1:
- added readme.txt
- changed from u-boot boot script to extlinux.conf booting
- enable eudev and added udev rules to properly name network interfaces
- removed CONFIG_FSL_ENETC_HW_TIMESTAMPING=y
- added CONFIG_NET_SCH_CBS, CONFIG_NET_SCH_ETF, CONFIG_NET_SCH_TAPRIO, CONFIG_FSL_ENETC_QOS and iproute2, as this it the main feature of this board
- added var2 device tree
- generate PARTUUID in post-build.sh to be able to use the resulting image on any block device which the board supports for booting
- (keep post-build.sh for consistency reasons)
DEVELOPERS | 2 + board/kontron/smarc-sal28/extlinux.conf | 4 + board/kontron/smarc-sal28/genimage.cfg | 11 +++ board/kontron/smarc-sal28/linux.fragment | 18 +++++ board/kontron/smarc-sal28/post-build.sh | 7 ++ board/kontron/smarc-sal28/readme.txt | 80 +++++++++++++++++++ .../udev/rules.d/70-enetc-networking.rules | 8 ++ .../udev/rules.d/70-felix-networking.rules | 6 ++ .../udev/rules.d/71-smarc-networking.rules | 19 +++++ configs/kontron_smarc_sal28_defconfig | 22 +++++ 10 files changed, 177 insertions(+) create mode 100644 board/kontron/smarc-sal28/extlinux.conf create mode 100644 board/kontron/smarc-sal28/genimage.cfg create mode 100644 board/kontron/smarc-sal28/linux.fragment create mode 100755 board/kontron/smarc-sal28/post-build.sh create mode 100644 board/kontron/smarc-sal28/readme.txt create mode 100644 board/kontron/smarc-sal28/rootfs_overlay/etc/udev/rules.d/70-enetc-networking.rules create mode 100644 board/kontron/smarc-sal28/rootfs_overlay/etc/udev/rules.d/70-felix-networking.rules create mode 100644 board/kontron/smarc-sal28/rootfs_overlay/etc/udev/rules.d/71-smarc-networking.rules create mode 100644 configs/kontron_smarc_sal28_defconfig
DEVELOPERS +2 -0
@@ -1837,6 +1837,8 @@ F: package/jasper/ F: package/libstrophe/ N: Michael Walle <[email protected]> +F: board/kontron/smarc-sal28/ +F: configs/kontron_smarc_sal28_defconfig F: package/libavl/ N: Micha? ?yszczek <[email protected]>
board/kontron/smarc-sal28/extlinux.conf new file +4 -0
@@ -0,0 +1,4 @@ +label buildroot + kernel /boot/Image + devicetreedir /boot + append root=PARTUUID=%PARTUUID% rootwait
board/kontron/smarc-sal28/genimage.cfg new file +11 -0
@@ -0,0 +1,11 @@ +image sdcard-emmc.img { + hdimage { + gpt = true + } + + partition rootfs { + offset = 2M + image = rootfs.ext4 + partition-uuid = %PARTUUID% + } +}
board/kontron/smarc-sal28/linux.fragment new file +18 -0
@@ -0,0 +1,18 @@ +CONFIG_NET_DSA=m +CONFIG_NET_DSA_TAG_OCELOT=m +CONFIG_NET_DSA_MSCC_FELIX=m +CONFIG_NET_SCHED=y +CONFIG_NET_SCH_CBS=m +CONFIG_NET_SCH_ETF=m +CONFIG_NET_SCH_TAPRIO=m +CONFIG_CAN_FLEXCAN=m +CONFIG_FSL_ENETC=y +CONFIG_FSL_ENETC_VF=m +CONFIG_FSL_ENETC_QOS=y +CONFIG_MSCC_OCELOT_SWITCH=m +CONFIG_PCIE_DW_PLAT_HOST=y +CONFIG_GPIO_MPC8XXX=y +CONFIG_SND_SOC_FSL_SAI=m +CONFIG_SND_SOC_WM8904=m +CONFIG_RTC_DRV_RV8803=y +CONFIG_COMMON_CLK_FSL_SAI=y
board/kontron/smarc-sal28/post-build.sh new file +7 -0
@@ -0,0 +1,7 @@ +#!/bin/sh +BOARD_DIR="$(dirname $0)" +PARTUUID="$($HOST_DIR/bin/uuidgen)" + +install -d "$TARGET_DIR/boot/extlinux/" +sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/extlinux.conf" > "$TARGET_DIR/boot/extlinux/extlinux.conf" +sed "s/%PARTUUID%/$PARTUUID/g" "$BOARD_DIR/genimage.cfg" > "$BINARIES_DIR/genimage.cfg"
board/kontron/smarc-sal28/readme.txt new file +80 -0
80 lines not on this page · raw message
board/kontron/smarc-sal28/rootfs_overlay/etc/udev/rules.d/70-enetc-networking.rules new file +8 -0
@@ -0,0 +1,8 @@ +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.0", DRIVERS=="fsl_enetc", NAME="eno0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.1", DRIVERS=="fsl_enetc", NAME="eno1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.2", DRIVERS=="fsl_enetc", NAME="eno2" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.6", DRIVERS=="fsl_enetc", NAME="eno3" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.0", DRIVERS=="fsl_enetc_vf", NAME="eno0vf0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.1", DRIVERS=="fsl_enetc_vf", NAME="eno0vf1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.2", DRIVERS=="fsl_enetc_vf", NAME="eno1vf0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:01.3", DRIVERS=="fsl_enetc_vf", NAME="eno1vf1"
board/kontron/smarc-sal28/rootfs_overlay/etc/udev/rules.d/70-felix-networking.rules new file +6 -0
@@ -0,0 +1,6 @@ +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p0", NAME="swp0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p1", NAME="swp1" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p2", NAME="swp2" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p3", NAME="swp3" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p4", NAME="swp4" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p5", NAME="swp5"
board/kontron/smarc-sal28/rootfs_overlay/etc/udev/rules.d/71-smarc-networking.rules new file +19 -0
@@ -0,0 +1,19 @@ +# Map the GBE0 and GBE1 names from the SMARC standard to the network +# interfaces. This depends on the variant of the board. + +# get the variant compatible string +PROGRAM=="/bin/grep '^kontron,sl28-var[1-4]$' /sys/firmware/devicetree/base/compatible", ENV{sl28_compatible}="%c" + +# variant 1 +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.1", DRIVERS=="fsl_enetc", ENV{sl28_compatible}=="kontron,sl28-var1", NAME="gbe0" + +# variant 2 +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p0", ENV{sl28_compatible}=="kontron,sl28-var2", NAME="gbe0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.5", DRIVERS=="mscc_felix", ATTR{phys_port_name}=="p1", ENV{sl28_compatible}=="kontron,sl28-var2", NAME="gbe1" + +# variant 3 +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.0", DRIVERS=="fsl_enetc", ENV{sl28_compatible}=="kontron,sl28-var3", NAME="gbe0" + +# variant 4 +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.0", DRIVERS=="fsl_enetc", ENV{sl28_compatible}=="kontron,sl28-var4", NAME="gbe0" +ACTION=="add", SUBSYSTEM=="net", KERNELS=="0000:00:00.1", DRIVERS=="fsl_enetc", ENV{sl28_compatible}=="kontron,sl28-var4", NAME="gbe1"
configs/kontron_smarc_sal28_defconfig new file +22 -0
@@ -0,0 +1,22 @@ +BR2_aarch64=y +BR2_cortex_a72=y +BR2_TOOLCHAIN_BUILDROOT_WCHAR=y +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y +BR2_ROOTFS_OVERLAY="board/kontron/smarc-sal28/rootfs_overlay" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/kontron/smarc-sal28/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c $(BINARIES_DIR)/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/kontron/smarc-sal28/linux.fragment" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-kontron-sl28 freescale/fsl-ls1028a-kontron-sl28-var2 freescale/fsl-ls1028a-kontron-sl28-var3-ads2 freescale/fsl-ls1028a-kontron-sl28-var4 freescale/fsl-ls1028a-kontron-kbox-a-230-ls" +BR2_KERNEL_DTB_KEEP_DIRNAME=y +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_IPROUTE2=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="128M" +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_UBOOT_TOOLS=y
Signature · 1 line
2.20.1
PATCH v5 3/3 board: Add Kontron SMARC-sAL28 support
Hi Michael,
Am Fr., 5. Juni 2020 um 00:11 Uhr schrieb Michael Walle <[email protected]>:
Quoted 47 lines
Now that upstream supports this board add buildroot support for it, too.
This supports:
- latest upstream linux kernel. Since the support for this board and its SoC is still in active development, we want to follow the upstream kernel releases for now.
- building an image which can be installed to eMMC, SD card or USB thumb drive.
- upstream u-boot patches are pending, therefore no support for building a bootloader for now.Signed-off-by Michael Walle <[email protected]>Reviewed-by Heiko Thiery <[email protected]>Tested-by Heiko Thiery <[email protected]>---
Changes since v4:
noneChanges since v3:
- removed custom kernel version, instead use the latest 5.7 kernelChanges since v2:
- added udev rules 71-smarc-networking.rules, to rename the network interfaces according to the SMARC specification.
- removed arm-smmu.disable_bypass=n kernel paramter, since the real fix is now upstream and will be included in 5.7
- use full path in PARTUUID="$($HOST_DIR/bin/uuidgen)" to be sure we are using our own uuidgen
- mention fdtfile in readme.txt
- fixed typo in readme.txt
- mention non-working network with vendor's bootloader in readme.txt
- set BR2_KERNEL_DTB_KEEP_DIRNAME=yChanges since v1:
- added readme.txt
- changed from u-boot boot script to extlinux.conf booting
- enable eudev and added udev rules to properly name network interfaces
- removedCONFIG_FSL_ENETC_HW_TIMESTAMPING=y
- addedCONFIG_NET_SCH_CBS,CONFIG_NET_SCH_ETF,CONFIG_NET_SCH_TAPRIO,CONFIG_FSL_ENETC_QOSand iproute2, as this it the main feature of this board
- added var2 device tree
- generate PARTUUID inpost-build.shto be able to use the resulting image on any block device which the board supports for booting
- (keeppost-build.shfor consistency reasons)
[snip]
Quoted 6 lines
+++ b/configs/kontron_smarc_sal28_defconfig
configs/kontron_smarc_sal28_defconfig new file +4
-0@@ -0,0 +1,22 @@ +BR2_aarch64=y +BR2_cortex_a72=y +BR2_TOOLCHAIN_BUILDROOT_WCHAR=y +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
configs/kontron_smarc_sal28_defconfig line 14
Quoted 10 lines
configs/kontron_smarc_sal28_defconfig new file +10
-0+BR2_ROOTFS_OVERLAY="board/kontron/smarc-sal28/rootfs_overlay" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/kontron/smarc-sal28/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c $(BINARIES_DIR)/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/kontron/smarc-sal28/linux.fragment" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-kontron-sl28 freescale/fsl-ls1028a-kontron-sl28-var2 freescale/fsl-ls1028a-kontron-sl28-var3-ads2 freescale/fsl-ls1028a-kontron-sl28-var4 freescale/fsl-ls1028a-kontron-kbox-a-230-ls" +BR2_KERNEL_DTB_KEEP_DIRNAME=y
This config option should be:BR2_LINUX_KERNEL_DTB_KEEP_DIRNAME
This was changed due to a naming-scheme mismatch
(d8e3e939694c4777c5287e44e67772f4e5c043aa).
Quoted 11 lines
configs/kontron_smarc_sal28_defconfig new file +8
-1+BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_IPROUTE2=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="128M" +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_UBOOT_TOOLS=y --2.20.1
Signature · 1 line
Heiko
PATCH v5 3/3 board: Add Kontron SMARC-sAL28 support
In reply to Michael WalleHello Michael,
Quoted 11 lines · On Fri, 5 Jun 2020 00:11:22 +0200 Michael Walle <[email protected]> wrote:
Now that upstream supports this board add buildroot support for it, too.
This supports:
- latest upstream linux kernel. Since the support for this board and its SoC is still in active development, we want to follow the upstream kernel releases for now.
- building an image which can be installed to eMMC, SD card or USB thumb drive.
- upstream u-boot patches are pending, therefore no support for building a bootloader for now.
Quoted 3 lines
Signed-off-by Michael Walle <[email protected]>Reviewed-by Heiko Thiery <[email protected]>Tested-by Heiko Thiery <[email protected]>
Thanks. I've applied your patch, with some minor changes.
Changed the commit title to follow the format:
configs/foo_defconfig: new defconfig
Quoted 1 line
+BR2_KERNEL_DTB_KEEP_DIRNAME=y
I fixed the name of this option, as pointed by Heiko.
configs/kontron_smarc_sal28_defconfig line 17
Quoted 3 lines
configs/kontron_smarc_sal28_defconfig new file +3
-0+BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_IPROUTE2=y
I dropped this, as we want our defconfigs to be minimal.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Yann E. MORIN
AppliedPATCH v5 1/3 {linux, linux-headers}: add version 5.7
In reply to Michael WalleMichael, All,
On 2020-06-05 00:11 +0200, Michael Walle spake thusly:
Quoted 1 line
Signed-off-by Michael Walle <[email protected]>
Applied to master, after fixing the conflicts due to the CIP version bumps. Thanks! :-)
Regards,
Yann E. MORIN.
Quoted 141 lines
---
This is a prerequisite for the sl28 board support which needs at least kernel 5.7, thus pack it into one series. This is a new patch and thus, there is no former version. This patch can also be picked early, before the other two patches.Changes since v4:
noneChanges since v3:
new patchlinux/Config.in | 4 ++-- linux/linux.hash | 1 + package/linux-headers/Config.in.host | 13 +++++++++++-- toolchain/Config.in | 5 +++++ .../toolchain-external-custom/Config.in.options | 6 +++++- 5 files changed, 24 insertions(+), 5 deletions(-)linux/Config.in +2
-2@@ -27,7 +27,7 @@ choice prompt "Kernel version" config BR2_LINUX_KERNEL_LATEST_VERSION - bool "Latest version (5.6)" + bool "Latest version (5.7)" config BR2_LINUX_KERNEL_LATEST_CIP_VERSION bool "Latest CIP SLTS version (4.19.98-cip19)"@@ -128,7 +128,7 @@ endif config BR2_LINUX_KERNEL_VERSION string - default "5.6.7" if BR2_LINUX_KERNEL_LATEST_VERSION + default "5.7" if BR2_LINUX_KERNEL_LATEST_VERSION default "4.19.98-cip19" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION default "4.19.98-cip19-rt7" if BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \linux/linux.hash +1
-0@@ -1,4 +1,5 @@ # From https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc +sha256 de8163bb62f822d84f7a3983574ec460060bf013a78ff79cd7c979ff1ec1d7e0 linux-5.7.tar.xz sha256 23a0420f29eacb66d71f86f64fbd35a1b6ff617d520e3e05f3e1f537d46692ca linux-5.6.7.tar.xz sha256 1448334371fb52f511255726832464d33877a210a7350260fb18eb225ae211eb linux-5.5.19.tar.xz sha256 e16bd5f7284a80a41328bf712e1136b0adf5b71cc0bd263efa7cac75539806d4 linux-5.4.35.tar.xzpackage/linux-headers/Config.in.host +11
-2@@ -6,7 +6,7 @@ config BR2_PACKAGE_HOST_LINUX_HEADERS choice prompt "Kernel Headers" default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL - default BR2_KERNEL_HEADERS_5_6 + default BR2_KERNEL_HEADERS_5_7 help Select the kernel version to get headers from.@@ -63,6 +63,10 @@ config BR2_KERNEL_HEADERS_5_6 bool "Linux 5.6.x kernel headers" select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 +config BR2_KERNEL_HEADERS_5_7 + bool "Linux 5.7.x kernel headers" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + config BR2_KERNEL_HEADERS_VERSION bool "Manually specified Linux version" help@@ -135,8 +139,12 @@ choice If your kernel headers are more recent than the latest version in the choice, then select the latest version. +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_7 + bool "5.7.x or later" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_6 - bool "5.6.x or later" + bool "5.6.x" select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_5@@ -341,6 +349,7 @@ config BR2_DEFAULT_KERNEL_HEADERS default "5.4.35" if BR2_KERNEL_HEADERS_5_4 default "5.5.19" if BR2_KERNEL_HEADERS_5_5 default "5.6.7" if BR2_KERNEL_HEADERS_5_6 + default "5.7" if BR2_KERNEL_HEADERS_5_7 default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION default "custom" if BR2_KERNEL_HEADERS_CUSTOM_TARBALL default BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION \toolchain/Config.in +5
-0@@ -476,6 +476,10 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 bool select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5 + +config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + bool + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 select BR2_TOOLCHAIN_HEADERS_LATEST # This should be selected by the latest version, above, to indicate that@@ -489,6 +493,7 @@ config BR2_TOOLCHAIN_HEADERS_LATEST # stops affecting a value on the first matching default. config BR2_TOOLCHAIN_HEADERS_AT_LEAST string + default "5.7" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 default "5.6" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 default "5.5" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5 default "5.4" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4toolchain/toolchain-external/toolchain-external-custom/Config.in.options +5
-1@@ -115,8 +115,12 @@ choice If your toolchain uses headers newer than the latest version in the choice, then select the latest version. +config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_7 + bool "5.7.x or later" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7 + config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_6 - bool "5.6.x or later" + bool "5.6.x" select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6 config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_5Signature · 1 line
2.20.1
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'