Skip to contentSkip to conversation

Update to Linux 4.4

PATCH Superseded Stefan Agner 2 participants 5 messages Jan 18, 2016 Arm i.MX and Layerscape

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Update to Linux 4.4

From: Stefan Agner <[email protected]>

Hi Otavio,

This patchset bumps the Linux kernel to 4.4. For Vybrid we can now make use of the new DCU DRM driver. I successfully booted an image on the Tower. However, I do not have the display hence could not visually verify that the DCU driver works. I previously tested the driver on our Toradex Colibri VF61 module, where it worked successfully, hence I assume it should work on the Tower too. The DRM sysfs files report the correct resolution (for the TWR-LCD-RGB module):

# cat /sys/class/drm/card0-LVDS-1/*
cat: read error: Is a directory
On
enabled
480x272
cat: read error: Is a directory
connected
cat: read error: Is a directory

Changes since v1:
- Removed old kernel recipe 4.1
- Regenerate common defconfig using savedefconfig too

Stefan Agner (3):
linux-fslc (4.4): Introduce Linux 4.4 kernel
imx-base.inc: use modesetting driver for Vybrid
xserver-xf86-config: use modesetting for Vybrid

 conf/machine/include/imx-base.inc                       |  1 +
 .../xorg-xserver/xserver-xf86-config/vf/xorg.conf       | 12 ++++++++++++
 recipes-kernel/linux/linux-fslc/defconfig               |  7 +------
 recipes-kernel/linux/linux-fslc/vf/defconfig            | 10 +++-------
 recipes-kernel/linux/linux-fslc_4.1.bb                  | 17 -----------------
 recipes-kernel/linux/linux-fslc_4.4.bb                  | 17 +++++++++++++++++
 6 files changed, 34 insertions(+), 30 deletions(-)
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/vf/xorg.conf
 delete mode 100644 recipes-kernel/linux/linux-fslc_4.1.bb
 create mode 100644 recipes-kernel/linux/linux-fslc_4.4.bb
Signature · 1 line
2.7.0
#1 lore raw

PATCH 1/3 linux-fslc (4.4): Introduce Linux 4.4 kernel

From: Stefan Agner <[email protected]>

Introduce Linux 4.4 based vanilla Linux kernel. This version allows to use the DRM DCU driver on Vybrid (with some additional patches). Also enable PWM support through Vybrid's FlexTimer module, and update the defconfigs.

---
 recipes-kernel/linux/linux-fslc/defconfig    |  7 +------
 recipes-kernel/linux/linux-fslc/vf/defconfig | 10 +++-------
 recipes-kernel/linux/linux-fslc_4.1.bb       | 17 -----------------
 recipes-kernel/linux/linux-fslc_4.4.bb       | 17 +++++++++++++++++
 4 files changed, 21 insertions(+), 30 deletions(-)
 delete mode 100644 recipes-kernel/linux/linux-fslc_4.1.bb
 create mode 100644 recipes-kernel/linux/linux-fslc_4.4.bb
recipes-kernel/linux/linux-fslc/defconfig +1 -6
index d615e3d..87d06f0 100644
@@ -67,7 +67,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_XFRM_MODE_TUNNEL is not set
 # CONFIG_INET_XFRM_MODE_BEET is not set
 # CONFIG_INET_LRO is not set
-CONFIG_IPV6=y
 CONFIG_NETFILTER=y
 CONFIG_CAN=y
 CONFIG_CAN_FLEXCAN=y
@@ -296,9 +295,9 @@ CONFIG_RTC_DRV_MC13XXX=y
 CONFIG_RTC_DRV_MXC=y
 CONFIG_RTC_DRV_SNVS=y
 CONFIG_DMADEVICES=y
+CONFIG_FSL_EDMA=y
 CONFIG_IMX_SDMA=y
 CONFIG_MXS_DMA=y
-CONFIG_FSL_EDMA=y
 CONFIG_STAGING=y
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_PWM=y
@@ -310,9 +309,6 @@ CONFIG_EXT2_FS_SECURITY=y
 CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_EXT3_FS_SECURITY=y
-CONFIG_EXT4_FS=y
-CONFIG_EXT4_FS_POSIX_ACL=y
-CONFIG_EXT4_FS_SECURITY=y
 CONFIG_QUOTA=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
@@ -346,7 +342,6 @@ CONFIG_PROVE_LOCKING=y
 # CONFIG_FTRACE is not set
 # CONFIG_ARM_UNWIND is not set
 CONFIG_SECURITYFS=y
-# CONFIG_CRYPTO_ANSI_CPRNG is not set
 # CONFIG_CRYPTO_HW is not set
 CONFIG_CRC_CCITT=m
 CONFIG_CRC_T10DIF=y
recipes-kernel/linux/linux-fslc/vf/defconfig +3 -7
index 9afb65f..629ad55 100644
@@ -38,7 +38,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_XFRM_MODE_TUNNEL is not set
 # CONFIG_INET_XFRM_MODE_BEET is not set
 # CONFIG_INET_LRO is not set
-CONFIG_IPV6=y
 CONFIG_NETFILTER=y
 CONFIG_CAN=y
 CONFIG_CAN_FLEXCAN=y
@@ -178,6 +177,7 @@ CONFIG_VIDEO_CODA=y
 CONFIG_SOC_CAMERA_OV2640=y
 CONFIG_IMX_IPUV3_CORE=y
 CONFIG_DRM=y
+CONFIG_DRM_FSL_DCU=y
 CONFIG_DRM_PANEL_SIMPLE=y
 CONFIG_DRM_IMX=y
 CONFIG_DRM_IMX_FB_HELPER=y
@@ -185,7 +185,6 @@ CONFIG_DRM_IMX_PARALLEL_DISPLAY=y
 CONFIG_DRM_IMX_TVE=y
 CONFIG_DRM_IMX_LDB=y
 CONFIG_DRM_IMX_HDMI=y
-CONFIG_FB_FSL_DCU=y
 CONFIG_FB_MXS=y
 CONFIG_LCD_CLASS_DEVICE=y
 CONFIG_LCD_L4F00242T03=y
@@ -262,11 +261,12 @@ CONFIG_RTC_DRV_MC13XXX=y
 CONFIG_RTC_DRV_MXC=y
 CONFIG_RTC_DRV_SNVS=y
 CONFIG_DMADEVICES=y
-CONFIG_IMX_SDMA=y
 CONFIG_FSL_EDMA=y
+CONFIG_IMX_SDMA=y
 CONFIG_STAGING=y
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_PWM=y
+CONFIG_PWM_FSL_FTM=y
 CONFIG_PWM_IMX=y
 CONFIG_RESET_CONTROLLER=y
 CONFIG_EXT2_FS=y
@@ -276,9 +276,6 @@ CONFIG_EXT2_FS_SECURITY=y
 CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_EXT3_FS_SECURITY=y
-CONFIG_EXT4_FS=y
-CONFIG_EXT4_FS_POSIX_ACL=y
-CONFIG_EXT4_FS_SECURITY=y
 CONFIG_QUOTA=y
 CONFIG_QUOTA_NETLINK_INTERFACE=y
 # CONFIG_PRINT_QUOTA_WARNING is not set
@@ -311,7 +308,6 @@ CONFIG_PROVE_LOCKING=y
 # CONFIG_FTRACE is not set
 # CONFIG_ARM_UNWIND is not set
 CONFIG_SECURITYFS=y
-# CONFIG_CRYPTO_ANSI_CPRNG is not set
 # CONFIG_CRYPTO_HW is not set
 CONFIG_CRC_CCITT=m
 CONFIG_CRC_T10DIF=y
recipes-kernel/linux/linux-fslc_4.1.bb deleted +0 -17
deleted file mode 100644
index a711573..0000000
@@ -1,17 +0,0 @@
-# Copyright (C) 2012-2015 O.S. Systems Software LTDA.
-# Released under the MIT license (see COPYING.MIT for the terms)
-
-SUMMARY = "FSL Community BSP Linux mainline based kernel with backported features and fixes"
-DESCRIPTION = "Linux kernel based on mainline kernel used by FSL Community BSP in order to \
-provide support for some backported features and fixes, or because it was applied in linux-next \
-and takes some time to become part of a stable version, or because it is not applicable for \
-upstreaming."
-
-include linux-fslc.inc
-
-PV = "4.1+git${SRCPV}"
-
-SRCBRANCH = "patches-4.1"
-SRCREV = "e55a6a92e898a85f47faf04f7e611b931c8c7fe3"
-
-COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf)"
recipes-kernel/linux/linux-fslc_4.4.bb new file +17 -0
new file mode 100644
index 0000000..d95635f
@@ -0,0 +1,17 @@
+# Copyright (C) 2012-2015 O.S. Systems Software LTDA.
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "FSL Community BSP Linux mainline based kernel with backported features and fixes"
+DESCRIPTION = "Linux kernel based on mainline kernel used by FSL Community BSP in order to \
+provide support for some backported features and fixes, or because it was applied in linux-next \
+and takes some time to become part of a stable version, or because it is not applicable for \
+upstreaming."
+
+include linux-fslc.inc
+
+PV = "4.4+git${SRCPV}"
+
+SRCBRANCH = "4.4.x"
+SRCREV = "4d2c6cae83c84ecc5197a9bca0cc62aa08233c7d"
+
+COMPATIBLE_MACHINE = "(vf)"
Signature · 1 line
2.7.0
#2 lore raw

Re: [PATCH 1/3] linux-fslc (4.4): Introduce Linux 4.4 kernel

Quoted 8 lines · Stefan Agner

From: Stefan Agner <[email protected]>

Introduce Linux 4.4 based vanilla Linux kernel. This version allows to use the DRM DCU driver on Vybrid (with some additional patches). Also enable PWM support through Vybrid's FlexTimer module, and update the defconfigs.

You seem to have based this patch on Jethro branch while you should have base it on top of master; please rebase it.

While on that, please adjust the SRCREV for the linux-fslc repository as now it has been merged.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#3 lore raw

PATCH 2/3 imx-base.inc: use modesetting driver for Vybrid

In reply to Stefan Agner

From: Stefan Agner <[email protected]>

With the use of the new DCU DRM driver we can make use of the X-servers modesetting DDX driver. The driver uses directly the DRM/KMS interface.

---
 conf/machine/include/imx-base.inc | 1 +
 1 file changed, 1 insertion(+)
conf/machine/include/imx-base.inc +1 -0
index bd64bc5..3184909 100644
@@ -30,6 +30,7 @@ PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
 XSERVER_DRIVER = "xf86-video-fbdev"
 XSERVER_DRIVER_mx6 = "xf86-video-imxfb-vivante"
 XSERVER_DRIVER_mx6ul = "xf86-video-fbdev"
+XSERVER_DRIVER_vf = "xf86-video-modesetting"
 XSERVER = "xserver-xorg \
            xf86-input-evdev \
            ${XSERVER_DRIVER}"
Signature · 1 line
2.7.0
#4 lore raw

PATCH 3/3 xserver-xf86-config: use modesetting for Vybrid

In reply to Stefan Agner

From: Stefan Agner <[email protected]>

Explicitly use the generic Xorg driver for KMS devices.

---
 .../xorg-xserver/xserver-xf86-config/vf/xorg.conf            | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/vf/xorg.conf
recipes-graphics/xorg-xserver/xserver-xf86-config/vf/xorg.conf new file +12 -0
new file mode 100644
index 0000000..b4ee82a
@@ -0,0 +1,12 @@
+Section "Device"
+    Identifier  "DCU DRM/KMS using Modesetting"
+    Driver      "modesetting"
+    Option      "kmsdev" "/dev/dri/card0"
+EndSection
+
+Section "ServerFlags"
+    Option "BlankTime"  "0"
+    Option "StandbyTime"  "0"
+    Option "SuspendTime"  "0"
+    Option "OffTime"  "0"
+EndSection
Signature · 1 line
2.7.0