Skip to contentSkip to conversation

Update to Linux 4.4

PATCH New Stefan Agner 1 participant 4 messages Jan 19, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

v3 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 v2:
- Rebased on master, and hence remove the 4.3 kernel recipe
- Updated linux-fslc to the new git hash

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          |   6 +-
 recipes-kernel/linux/linux-fslc/vf/defconfig       | 318 +++++++++++++++++++++
 recipes-kernel/linux/linux-fslc_4.3.bb             |  17 --
 recipes-kernel/linux/linux-fslc_4.4.bb             |  17 ++
 6 files changed, 349 insertions(+), 22 deletions(-)
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/vf/xorg.conf
 create mode 100644 recipes-kernel/linux/linux-fslc/vf/defconfig
 delete mode 100644 recipes-kernel/linux/linux-fslc_4.3.bb
 create mode 100644 recipes-kernel/linux/linux-fslc_4.4.bb
Signature · 1 line
2.7.0
#2 lore raw

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

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
#1 lore raw

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

In reply to 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.

---
 recipes-kernel/linux/linux-fslc/defconfig    |   6 +-
 recipes-kernel/linux/linux-fslc/vf/defconfig | 318 +++++++++++++++++++++++++++
 recipes-kernel/linux/linux-fslc_4.3.bb       |  17 --
 recipes-kernel/linux/linux-fslc_4.4.bb       |  17 ++
 4 files changed, 336 insertions(+), 22 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-fslc/vf/defconfig
 delete mode 100644 recipes-kernel/linux/linux-fslc_4.3.bb
 create mode 100644 recipes-kernel/linux/linux-fslc_4.4.bb
recipes-kernel/linux/linux-fslc/defconfig +1 -5
index 79194c6..f416e27 100644
@@ -72,7 +72,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
@@ -310,9 +309,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
@@ -324,9 +323,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
recipes-kernel/linux/linux-fslc/vf/defconfig new file +318 -0

318 lines not on this page · raw message

recipes-kernel/linux/linux-fslc_4.3.bb deleted +0 -17
deleted file mode 100644
index 1648e22..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.3+git${SRCPV}"
-
-SRCBRANCH = "4.3.x"
-SRCREV = "5a86d64130c32975e29c8682b6c521b8b201d94d"
-
-COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf)"
recipes-kernel/linux/linux-fslc_4.4.bb new file +17 -0
new file mode 100644
index 0000000..3aa4cdb
@@ -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 = "e79731d17c466a872c0c5573396b5e654d090101"
+
+COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf)"
Signature · 1 line
2.7.0
#3 lore raw

PATCH v3 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