Skip to contentSkip to conversation

configs: nexbox_a95x_defconfig: bump to kernel 4.12

PATCH New Peter Korsgaard 2 participants 4 messages Jul 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: nexbox_a95x_defconfig: bump to kernel 4.12

Main difference is that the drm driver now supports the hdmi output.

The gxl variant device tree has been renamed in:

commit 7eea67101b9713ae438955e8899b3c4b078419f9

Author: Kevin Hilman <[email protected]>
Date:   Fri Jan 20 07:57:52 2017 -0800

ARM64: dts: meson-gxl: rename Nexbox A95x for consistency

Since the GXL family has S905X and S905D SoCs, we're keeping the SoC name in the DTS filename for clarity. Rename this file accordingly to be consistent with the rest of the GXL DTS files.

So adjust the defconfig and boot script to match.

---
 board/nexbox/a95x/boot.txt     | 2 +-
 board/nexbox/a95x/genimage.cfg | 2 +-
 configs/nexbox_a95x_defconfig  | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)
board/nexbox/a95x/boot.txt +1 -1
index b538b4a9ab..f388ba814a 100644
@@ -3,7 +3,7 @@ setenv bootargs console=ttyAML0,115200 earlyprintk root=/dev/mmcblk1p2 rootwait
 fatload mmc 0:1 0x01080000 uImage
 
 if itest.s "${aml_dt}" == "gxl_p212_2g"; then
-	fatload mmc 0:1 $dtb_mem_addr meson-gxl-nexbox-a95x.dtb
+	fatload mmc 0:1 $dtb_mem_addr meson-gxl-s905x-nexbox-a95x.dtb
 else
 	fatload mmc 0:1 $dtb_mem_addr meson-gxbb-nexbox-a95x.dtb
 fi
board/nexbox/a95x/genimage.cfg +1 -1
index c6c80f860b..74e2d3a6f9 100644
@@ -3,7 +3,7 @@ image boot.vfat {
 		files = {
 			"uImage",
 			"meson-gxbb-nexbox-a95x.dtb",
-			"meson-gxl-nexbox-a95x.dtb",
+			"meson-gxl-s905x-nexbox-a95x.dtb",
 			"boot.scr"
 		}
 	}
configs/nexbox_a95x_defconfig +3 -3
index 375b4d3f03..80265932c2 100644
@@ -1,16 +1,16 @@
 BR2_aarch64=y
 BR2_cortex_a53=y
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_10=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_12=y
 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
 BR2_SYSTEM_DHCP="eth0"
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/nexbox/a95x/post-build.sh"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="board/nexbox/a95x/post-image.sh"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.10"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.12"
 BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="amlogic/meson-gxbb-nexbox-a95x amlogic/meson-gxl-nexbox-a95x"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="amlogic/meson-gxbb-nexbox-a95x amlogic/meson-gxl-s905x-nexbox-a95x"
 BR2_TARGET_ROOTFS_EXT2=y
 BR2_TARGET_ROOTFS_EXT2_4=y
 # BR2_TARGET_ROOTFS_TAR is not set
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 configs: nexbox_a95x_defconfig: bump to kernel 4.12

Hello,

Quoted 14 lines · Peter Korsgaard

Main difference is that the drm driver now supports the hdmi output.

The gxl variant device tree has been renamed in:

commit 7eea67101b9713ae438955e8899b3c4b078419f9

Author: Kevin Hilman <[email protected]>
Date:   Fri Jan 20 07:57:52 2017 -0800

ARM64: dts: meson-gxl: rename Nexbox A95x for consistency

Since the GXL family has S905X and S905D SoCs, we're keeping the SoC name in the DTS filename for clarity. Rename this file accordingly to be consistent with the rest of the GXL DTS files.

Quoted 7 lines

So adjust the defconfig and boot script to match.

Since you used this board, perhaps you could remove the bit in the post-build.sh script that generates boot.scr, and use BR2_TARGET_UBOOT_BOOT_SCRIPT instead ? Should be a separate patch of course.

Sadly, this will not allow to remove completely post-build.sh, as it needs a special AArch64 uImage for the kernel. But I wonder why this is done in the post-build.sh script and not the post-image.sh script.

And the post-image.sh script can be refactored to use the common genimage script :)

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 configs: nexbox_a95x_defconfig: bump to kernel 4.12

Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Since you used this board, perhaps you could remove the bit in the post-build.sh script that generates boot.scr, and use BR2_TARGET_UBOOT_BOOT_SCRIPT instead ? Should be a separate patch of course.

Heh, I also got tricked by this. You would think that could be done, but as the defconfig doesn't build u-boot (no public sources) we cannot use that option.

Quoted 3 lines

Sadly, this will not allow to remove completely post-build.sh, as it needs a special AArch64 uImage for the kernel. But I wonder why this is done in the post-build.sh script and not the post-image.sh script.

It doesn't really matter as the kernel gets built before the post-build script runs (except for initramfs, but the genimage configuration expects ext4).

If we are to introduce kconfig options for genimage (which will cause genimage to be executed BEFORE the post-image script, then this uImage handling must be in post-build so it is available for genimage.

Quoted 2 lines

And the post-image.sh script can be refactored to use the common genimage script :)

Correct. I would prefer to first rework the genimage handling to make it available in kconfig instead of such in-between solution.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/1 configs: nexbox_a95x_defconfig: bump to kernel 4.12

In reply to Peter Korsgaard

Hello,

Quoted 18 lines · Peter Korsgaard

Main difference is that the drm driver now supports the hdmi output.

The gxl variant device tree has been renamed in:

commit 7eea67101b9713ae438955e8899b3c4b078419f9

Author: Kevin Hilman <[email protected]>
Date:   Fri Jan 20 07:57:52 2017 -0800

ARM64: dts: meson-gxl: rename Nexbox A95x for consistency

Since the GXL family has S905X and S905D SoCs, we're keeping the SoC name in the DTS filename for clarity. Rename this file accordingly to be consistent with the rest of the GXL DTS files.

Quoted 8 lines

So adjust the defconfig and boot script to match.

---
 board/nexbox/a95x/boot.txt     | 2 +-
 board/nexbox/a95x/genimage.cfg | 2 +-
 configs/nexbox_a95x_defconfig  | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com