Skip to contentSkip to conversation

Vybrid (vf610) Linux 4.4 changes

PATCH In review Stefan Agner 2 participants 6 messages Jan 15, 2016 – Jan 16, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

cover Vybrid (vf610) Linux 4.4 changes

From: Stefan Agner <[email protected]>

Hi Otavio,

This patchset bumps the Linux kernel to 4.4 and makes 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

Stefan Agner (3):
linux-fslc (4.4): Introduce Linux 4.4 kernel for Vybrid 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               |  1 +
 recipes-kernel/linux/linux-fslc/vf/defconfig            | 10 +++-------
 recipes-kernel/linux/linux-fslc_4.4.bb                  | 17 +++++++++++++++++
 5 files changed, 34 insertions(+), 7 deletions(-)
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/vf/xorg.conf
 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 for Vybrid

From: Stefan Agner <[email protected]>

Introduce Linux 4.4 based Linux kernel for Vybrid devices. This version allows to use the DRM DCU driver (with some additional patches). Beside that, also enable PWM support through Vybrid's FlexTimer module and synchronize with common defconfig.

---
 recipes-kernel/linux/linux-fslc/defconfig    |  1 +
 recipes-kernel/linux/linux-fslc/vf/defconfig | 10 +++-------
 recipes-kernel/linux/linux-fslc_4.4.bb       | 17 +++++++++++++++++
 3 files changed, 21 insertions(+), 7 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-fslc_4.4.bb
recipes-kernel/linux/linux-fslc/defconfig +1 -0
index d615e3d..ffad666 100644
@@ -296,6 +296,7 @@ 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
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.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 for Vybrid

On Fri, Jan 15, 2016 at 5:22 AM, Stefan Agner <[email protected]> wrote:
...

Quoted 2 lines
recipes-kernel/linux/linux-fslc/vf/defconfig +0 -0

...

recipes-kernel/linux/linux-fslc/vf/defconfig CONFIG_EXT2_FS_SECURITY=y · line 281

Quoted 10 lines
recipes-kernel/linux/linux-fslc/vf/defconfig +0 -3
@@ -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

You removed ext4 support here.

Also please remove the old version so we just use 4.4.

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

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

Quoted 5 lines · Otavio Salvador

On Fri, Jan 15, 2016 at 5:22 AM, Stefan Agner <[email protected]> wrote:
...

Quoted 2 lines
recipes-kernel/linux/linux-fslc/vf/defconfig +0 -0

...

Quoted 12 lines

recipes-kernel/linux/linux-fslc/vf/defconfig CONFIG_EXT2_FS_SECURITY=y · line 281

Quoted 10 lines
recipes-kernel/linux/linux-fslc/vf/defconfig +0 -3
@@ -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

You removed ext4 support here.

I did not actually remove it, I just used savedefconfig... It seems that it changed to default nowadays?

Quoted 2 lines

Also please remove the old version so we just use 4.4.

The old version of the linux-fslc recipe?

--
Stefan

#4 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
#5 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