Skip to contentSkip to conversation

Various upgrade/fixes from Technux

PATCH Superseded Petter Mabäcker 3 participants 12 messages Jan 11, 2016 – Jan 12, 2016 Broadcom BCM2711/BCM2835 Arm architecture

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Various upgrade/fixes from Technux

Various fixes from Technux, with focus on PiTFT support.

Petter Mabäcker (5):
.gitignore: Ignore .swp files
linux-raspberrypi: Update 4.1 recipe to 4.1.15
rpi-config: I2C support
pitft: Add basic support for PiTFT
pitft: Add PiTFT22 support

 .gitignore                                         |   1 +
 README                                             |  43 ++++++--
 conf/machine/include/rpi-base.inc                  |   1 +
 recipes-bsp/bootfiles/rpi-config_git.bb            |  26 +++++
 .../rpi/xorg.conf.d/99-pitft.conf                  |   5 +
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend  |   1 +
 recipes-kernel/linux/linux-raspberrypi.inc         |   1 +
 ...dts-add-overlay-for-pitft22-in-linux-3.18.patch | 110 +++++++++++++++++++++
 .../0001-dts-add-overlay-for-pitft22.patch         | 110 +++++++++++++++++++++
 recipes-kernel/linux/linux-raspberrypi_3.18.bb     |   5 +-
 recipes-kernel/linux/linux-raspberrypi_4.1.bb      |   8 +-
 11 files changed, 298 insertions(+), 13 deletions(-)
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf
 create mode 100644 recipes-kernel/linux/linux-raspberrypi/0001-dts-add-overlay-for-pitft22-in-linux-3.18.patch
 create mode 100644 recipes-kernel/linux/linux-raspberrypi/0001-dts-add-overlay-for-pitft22.patch
Signature · 1 line
1.9.1
#3 lore raw

PATCH 3/5 rpi-config: I2C support

With newer kernels (>=3.18) that supports device-trees I2C should be enabled with device-trees.

This is now support by adding:
ENABLE_I2C = "1"
in local.conf

This will enable the dtparams:
i2c1
i2c_arm

---
 README                                  | 21 +++++++++++++--------
 recipes-bsp/bootfiles/rpi-config_git.bb |  6 ++++++
 2 files changed, 19 insertions(+), 8 deletions(-)
README +13 -8
index a168692..8ef4e7a 100644
@@ -21,10 +21,11 @@ Contents:
     2.G. Optional - Enable offline compositing support
     2.H. Optional - Enable kgdb over console support
     2.I. Optional - Enable SPI bus
-    2.J. Images
-    2.K. Boot to U-Boot
-    2.L. Image with Initramfs
-    2.M. Device tree support
+    2.J. Optional - Enable I2C
+    2.K. Images
+    2.L. Boot to U-Boot
+    2.M. Image with Initramfs
+    2.N. Device tree support
 3. Extra apps
     3.A. omxplayer
 4. Source code and mirrors
@@ -151,8 +152,12 @@ ENABLE_KGDB = "1"
 When using device tree kernels, set this variable to enable the SPI bus
 ENABLE_SPI_BUS = "1"
 
+2.J. Optional - Enable I2C
+==========================
+When using device tree kernels, set this variable to enable I2C
+ENABLE_I2C = "1"
 
-2.J. Images
+2.K. Images
 ===========
 * rpi-hwup-image
     Hardware up image
@@ -162,7 +167,7 @@ ENABLE_SPI_BUS = "1"
     Image based on rpi-basic-image which includes most of the packages in this
     layer and some media samples.
 
-2.K. Boot to U-Boot
+2.L. Boot to U-Boot
 ===================
 To have u-boot load kernel image, set in your local.conf
 KERNEL_IMAGETYPE = "uImage"
@@ -170,7 +175,7 @@ KERNEL_IMAGETYPE = "uImage"
 This will make kernel.img be u-boot image which will load uImage.
 By default, kernel.img is the actual kernel image (ex. Image).
 
-2.L. Image with Initramfs
+2.M. Image with Initramfs
 =========================
 To build an initramfs image :
     * Set this 3 kernel variables (in linux-raspberrypi.inc for example)
@@ -183,7 +188,7 @@ To build an initramfs image :
     * Set the meta-rasberrypi variable (in raspberrypi.conf for example)
         - KERNEL_INITRAMFS = "-initramfs"
 
-2.M. Device tree support
+2.N. Device tree support
 =========================
 Device tree for RPi is only supported when using linux-raspberrypi 3.18+
 kernels.
recipes-bsp/bootfiles/rpi-config_git.bb +6 -0
index aa11b25..ccb9b7f 100644
@@ -72,6 +72,12 @@ do_deploy() {
         echo "# Enable SPI bus" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
         echo "dtparam=spi=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
     fi
+
+    if [ -n "${ENABLE_I2C}" ]; then
+        echo "# Enable I2C" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+        echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+        echo "dtparam=i2c_arm=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+    fi
 }
 
 addtask deploy before do_package after do_install
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/5 linux-raspberrypi: Update 4.1 recipe to 4.1.15

In reply to Petter Mabäcker

[Support #69]

---
 recipes-kernel/linux/linux-raspberrypi_4.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-raspberrypi_4.1.bb +2 -2
index 3a3cf40..cae459a 100644
@@ -1,6 +1,6 @@
-LINUX_VERSION ?= "4.1.10"
+LINUX_VERSION ?= "4.1.15"
 
-SRCREV = "b74df9228c27f55361c065bc5dbfba88861cc771"
+SRCREV = "02a8ee530e32b08e5df44f10e24d5fd82bb960e3"
 SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.1.y"
 
 require linux-raspberrypi.inc
Signature · 1 line
1.9.1
#10 lore raw

PATCH 5/5 pitft: Add PiTFT22 support

In reply to Petter Mabäcker

- Add support to build overlays for PiTFT22 in the kernel.
- Setup a basic configuration for the driver

The PiTFT22 support is optional and can be enabled by adding below in local.conf:

MACHINEOVERRIDES .= ":pitft:pitft22"

[Support #70]

---
 README                                             |   9 ++
 conf/machine/include/rpi-base.inc                  |   1 +
 recipes-bsp/bootfiles/rpi-config_git.bb            |   6 ++
 ...dts-add-overlay-for-pitft22-in-linux-3.18.patch | 110 +++++++++++++++++++++
 .../0001-dts-add-overlay-for-pitft22.patch         | 110 +++++++++++++++++++++
 recipes-kernel/linux/linux-raspberrypi_3.18.bb     |   5 +-
 recipes-kernel/linux/linux-raspberrypi_4.1.bb      |   4 +-
 7 files changed, 242 insertions(+), 3 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi/0001-dts-add-overlay-for-pitft22-in-linux-3.18.patch
 create mode 100644 recipes-kernel/linux/linux-raspberrypi/0001-dts-add-overlay-for-pitft22.patch
README +9 -0
index 791038f..d08d925 100644
@@ -170,6 +170,15 @@ MACHINEOVERRIDES .= ":pitft"
 NOTE: To get this working the overlay for the PiTFT model must be build,
       added and specified as well (dtoverlay=<driver> in config.txt)
 
+Below is a list of currently supported PiTFT models in meta-raspberrypi,
+the modelname should be appended with MACHINEOVERRIDES in local.conf like below:
+
+   - MACHINEOVERRIDES .= ":pitft:<modelname>"
+
+List of currently supported models
+-----------------------------------
+pitft22
+
 2.L. Images
 ===========
 * rpi-hwup-image
conf/machine/include/rpi-base.inc +1 -0
index e097702..44cc7de 100644
@@ -31,6 +31,7 @@ KERNEL_DEVICETREE ?= " \
     overlays/iqaudio-dac-overlay.dtb \
     overlays/iqaudio-dacplus-overlay.dtb \
     overlays/lirc-rpi-overlay.dtb \
+    overlays/pitft22-overlay.dtb \
     overlays/pps-gpio-overlay.dtb \
     overlays/w1-gpio-overlay.dtb \
     overlays/w1-gpio-pullup-overlay.dtb \
recipes-bsp/bootfiles/rpi-config_git.bb +6 -0
index 9f20352..5d1539f 100644
@@ -94,6 +94,12 @@ do_deploy_append_pitft() {
     fi
 }
 
+do_deploy_append_pitft22() {
+    # Add support for PiTFT22 display
+    echo "# Enable PITFT22 display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+    echo "dtoverlay=pitft22,rotate=270,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+}
+
 addtask deploy before do_package after do_install
 do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"
 
recipes-kernel/linux/linux-raspberrypi/0001-dts-add-overlay-for-pitft22-in-linux-3.18.patch new file +110 -0

110 lines not on this page · raw message

recipes-kernel/linux/linux-raspberrypi/0001-dts-add-overlay-for-pitft22.patch new file +110 -0

110 lines not on this page · raw message

recipes-kernel/linux/linux-raspberrypi_3.18.bb +3 -2
index a1fe6b4..9234f70 100644
@@ -1,8 +1,9 @@
 LINUX_VERSION ?= "3.18.16"
 
 SRCREV = "1bb18c8f721ef674a447f3622273f2e2de7a205c"
-SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y"
-
+SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y \
+           file://0001-dts-add-overlay-for-pitft22-in-linux-3.18.patch \
+          "
 require linux-raspberrypi.inc
 
 # Create missing out of tree 'overlays' directory prior to install step
recipes-kernel/linux/linux-raspberrypi_4.1.bb +3 -1
index cae459a..7e78693 100644
@@ -1,6 +1,8 @@
 LINUX_VERSION ?= "4.1.15"
 
 SRCREV = "02a8ee530e32b08e5df44f10e24d5fd82bb960e3"
-SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.1.y"
+SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.1.y \
+           file://0001-dts-add-overlay-for-pitft22.patch \
+          "
 
 require linux-raspberrypi.inc
Signature · 1 line
1.9.1
#4 lore raw

PATCH 4/5 pitft: Add basic support for PiTFT

In reply to Petter Mabäcker

Add basic support for PiTFT display by using device-trees.

In order get it working below configurations must be active in local.conf:

MACHINEOVERRIDES .= ":pitft"
- This will enable SPI bus and i2c device-trees, it will also setup framebuffer for console and x server on PiTFT.

[Support #70]

---
 README                                             | 29 ++++++++++++++++------
 recipes-bsp/bootfiles/rpi-config_git.bb            | 14 +++++++++++
 .../rpi/xorg.conf.d/99-pitft.conf                  |  5 ++++
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend  |  1 +
 recipes-kernel/linux/linux-raspberrypi.inc         |  1 +
 5 files changed, 42 insertions(+), 8 deletions(-)
 create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf
README +21 -8
index 8ef4e7a..791038f 100644
@@ -22,10 +22,11 @@ Contents:
     2.H. Optional - Enable kgdb over console support
     2.I. Optional - Enable SPI bus
     2.J. Optional - Enable I2C
-    2.K. Images
-    2.L. Boot to U-Boot
-    2.M. Image with Initramfs
-    2.N. Device tree support
+    2.K. Optional - Enable PiTFT support
+    2.L. Images
+    2.M. Boot to U-Boot
+    2.N. Image with Initramfs
+    2.O. Device tree support
 3. Extra apps
     3.A. omxplayer
 4. Source code and mirrors
@@ -157,7 +158,19 @@ ENABLE_SPI_BUS = "1"
 When using device tree kernels, set this variable to enable I2C
 ENABLE_I2C = "1"
 
-2.K. Images
+2.K. Optional - Enable PiTFT support
+====================================
+Basic support for using PiTFT screens can be enabled by adding
+below in local.conf:
+
+MACHINEOVERRIDES .= ":pitft"
+  - This will enable SPI bus and i2c device-trees, it will also setup
+    framebuffer for console and x server on PiTFT.
+
+NOTE: To get this working the overlay for the PiTFT model must be build,
+      added and specified as well (dtoverlay=<driver> in config.txt)
+
+2.L. Images
 ===========
 * rpi-hwup-image
     Hardware up image
@@ -167,7 +180,7 @@ ENABLE_I2C = "1"
     Image based on rpi-basic-image which includes most of the packages in this
     layer and some media samples.
 
-2.L. Boot to U-Boot
+2.M. Boot to U-Boot
 ===================
 To have u-boot load kernel image, set in your local.conf
 KERNEL_IMAGETYPE = "uImage"
@@ -175,7 +188,7 @@ KERNEL_IMAGETYPE = "uImage"
 This will make kernel.img be u-boot image which will load uImage.
 By default, kernel.img is the actual kernel image (ex. Image).
 
-2.M. Image with Initramfs
+2.N. Image with Initramfs
 =========================
 To build an initramfs image :
     * Set this 3 kernel variables (in linux-raspberrypi.inc for example)
@@ -188,7 +201,7 @@ To build an initramfs image :
     * Set the meta-rasberrypi variable (in raspberrypi.conf for example)
         - KERNEL_INITRAMFS = "-initramfs"
 
-2.N. Device tree support
+2.O. Device tree support
 =========================
 Device tree for RPi is only supported when using linux-raspberrypi 3.18+
 kernels.
recipes-bsp/bootfiles/rpi-config_git.bb +14 -0
index ccb9b7f..9f20352 100644
@@ -80,6 +80,20 @@ do_deploy() {
     fi
 }
 
+do_deploy_append_pitft() {
+    # Add SPI BUS and I2C support if needed
+    if [ -z "${ENABLE_SPI_BUS}" ]; then
+        echo "# Enable SPI bus" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+        echo "dtparam=spi=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+    fi
+
+    if [ -z "${ENABLE_I2C}" ]; then
+        echo "# Enable I2C" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+        echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+        echo "dtparam=i2c_arm=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+    fi
+}
+
 addtask deploy before do_package after do_install
 do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"
 
recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf new file +5 -0
new file mode 100644
index 0000000..0d2b36b
@@ -0,0 +1,5 @@
+Section "Device"
+    Identifier "Adafruit PiTFT"
+    Driver "fbdev"
+    Option "fbdev" "/dev/fb1"
+EndSection
recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +1 -0
index 2cf40f8..db8e4c1 100644
@@ -1,6 +1,7 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf "
+SRC_URI_append_pitft = " file://xorg.conf.d/99-pitft.conf "
 
 do_install_append_rpi () {
 	install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
recipes-kernel/linux/linux-raspberrypi.inc +1 -0
index 70e8bfe..420346a 100644
@@ -24,6 +24,7 @@ CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootf
 
 # Add the kernel debugger over console kernel command line option if enabled
 CMDLINE_append = ' ${@base_conditional("ENABLE_KGDB", "1", "kgdboc=ttyAMA0,115200", "", d)}'
+CMDLINE_append_pitft = "fbcon=map:10 fbcon=font:VGA8x8"
 
 UDEV_GE_141 ?= "1"
 
Signature · 1 line
1.9.1
#5 lore raw

Re: [meta-raspberrypi][PATCH 4/5] pitft: Add basic support for PiTFT

Quoted 9 lines · Petter Mabäcker

Add basic support for PiTFT display by using device-trees.

In order get it working below configurations must be active in local.conf:

MACHINEOVERRIDES .= ":pitft”

Using MACHINE_FEATURES will be more appropriate term. Effects are same.

Quoted 151 lines

- This will enable SPI bus and i2c device-trees, it will also setup framebuffer for console and x server on PiTFT.

[Support #70]

---

README                                             | 29 ++++++++++++++++------
recipes-bsp/bootfiles/rpi-config_git.bb            | 14 +++++++++++
.../rpi/xorg.conf.d/99-pitft.conf                  |  5 ++++
.../xorg-xserver/xserver-xf86-config_0.1.bbappend  |  1 +
recipes-kernel/linux/linux-raspberrypi.inc         |  1 +
5 files changed, 42 insertions(+), 8 deletions(-)

create mode 100644 recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf

README +5 -4
index 8ef4e7a..791038f 100644
@@ -22,10 +22,11 @@ Contents:
    2.H. Optional - Enable kgdb over console support
    2.I. Optional - Enable SPI bus
    2.J. Optional - Enable I2C
-    2.K. Images
-    2.L. Boot to U-Boot
-    2.M. Image with Initramfs
-    2.N. Device tree support
+    2.K. Optional - Enable PiTFT support
+    2.L. Images
+    2.M. Boot to U-Boot
+    2.N. Image with Initramfs
+    2.O. Device tree support

3. Extra apps
3.A. omxplayer
4. Source code and mirrors

README +0 -0
@@ -157,7 +158,19 @@ ENABLE_SPI_BUS = "1"

When using device tree kernels, set this variable to enable I2C ENABLE_I2C = "1"

-2.K. Images
+2.K. Optional - Enable PiTFT support
+====================================

README +11 -0
+Basic support for using PiTFT screens can be enabled by adding
+below in local.conf:
+
+MACHINEOVERRIDES .= ":pitft"
+  - This will enable SPI bus and i2c device-trees, it will also setup
+    framebuffer for console and x server on PiTFT.
+
+NOTE: To get this working the overlay for the PiTFT model must be build,
+      added and specified as well (dtoverlay=<driver> in config.txt)
+
+2.L. Images

===========
* rpi-hwup-image
Hardware up image

README +1 -1
@@ -167,7 +180,7 @@ ENABLE_I2C = "1"
    Image based on rpi-basic-image which includes most of the packages in this
    layer and some media samples.
 
-2.L. Boot to U-Boot
+2.M. Boot to U-Boot

===================
To have u-boot load kernel image, set in your local.conf KERNEL_IMAGETYPE = "uImage"

README +0 -0
@@ -175,7 +188,7 @@ KERNEL_IMAGETYPE = "uImage"

This will make kernel.img be u-boot image which will load uImage. By default, kernel.img is the actual kernel image (ex. Image).

-2.M. Image with Initramfs
+2.N. Image with Initramfs
=========================
To build an initramfs image :
* Set this 3 kernel variables (in linux-raspberrypi.inc for example)

README +1 -1
@@ -188,7 +201,7 @@ To build an initramfs image :
    * Set the meta-rasberrypi variable (in raspberrypi.conf for example)
        - KERNEL_INITRAMFS = "-initramfs"
 
-2.N. Device tree support
+2.O. Device tree support

=========================
Device tree for RPi is only supported when using linux-raspberrypi 3.18+ kernels.

recipes-bsp/bootfiles/rpi-config_git.bb +14 -0
index ccb9b7f..9f20352 100644
@@ -80,6 +80,20 @@ do_deploy() {
    fi
 }
 
+do_deploy_append_pitft() {
+    # Add SPI BUS and I2C support if needed
+    if [ -z "${ENABLE_SPI_BUS}" ]; then
+        echo "# Enable SPI bus" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+        echo "dtparam=spi=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+    fi
+
+    if [ -z "${ENABLE_I2C}" ]; then
+        echo "# Enable I2C" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+        echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+        echo "dtparam=i2c_arm=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+    fi
+}
+

addtask deploy before do_package after do_install do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"

recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf new file +5 -0
new file mode 100644
index 0000000..0d2b36b
@@ -0,0 +1,5 @@
+Section "Device"
+    Identifier "Adafruit PiTFT"
+    Driver "fbdev"
+    Option "fbdev" "/dev/fb1"
+EndSection
recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend +0 -0
index 2cf40f8..db8e4c1 100644
@@ -1,6 +1,7 @@

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf " +SRC_URI_append_pitft = " file://xorg.conf.d/99-pitft.conf "

do_install_append_rpi () {
	install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
recipes-kernel/linux/linux-raspberrypi.inc +0 -0
index 70e8bfe..420346a 100644
@@ -24,6 +24,7 @@ CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootf
 
 # Add the kernel debugger over console kernel command line option if enabled

CMDLINE_append = ' ${@base_conditional("ENABLE_KGDB", "1", "kgdboc=ttyAMA0,115200", "", d)}' +CMDLINE_append_pitft = "fbcon=map:10 fbcon=font:VGA8x8"

UDEV_GE_141 ?= "1"

--
1.9.1

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#11 lore raw
In reply to Petter Mabäcker

Just realized that I missed one minor patch that fixes some typo in the README.. Will add that one in a v2 of this serie.

BR Petter

Petter Mabäcker

Technux
<[email protected]>
www.technux.se

2016-01-11 17:49 skrev Petter
Mabäcker:

Quoted 6 lines

Various fixes from Technux, with focus on PiTFT support.

Petter Mabäcker (5):
.gitignore: Ignore .swp files

linux-raspberrypi: Update 4.1 recipe to 4.1.15

Quoted 1 line

rpi-config: I2C

support

Quoted 2 lines

pitft: Add basic support for PiTFT
pitft: Add PiTFT22

support

Quoted 4 lines

.gitignore | 1 +
README | 43 ++++++--

conf/machine/include/rpi-base.inc | 1 +

Quoted 1 line

recipes-bsp/bootfiles/rpi-config_git.bb | 26 +++++

Quoted 1 line

.../rpi/xorg.conf.d/99-pitft.conf | 5 +

Quoted 1 line

.../xorg-xserver/xserver-xf86-config_0.1.bbappend | 1 +

Quoted 1 line

recipes-kernel/linux/linux-raspberrypi.inc | 1 +

Quoted 1 line

...dts-add-overlay-for-pitft22-in-linux-3.18.patch | 110
+++++++++++++++++++++

Quoted 1 line

.../0001-dts-add-overlay-for-pitft22.patch | 110

+++++++++++++++++++++

Quoted 1 line

recipes-kernel/linux/linux-raspberrypi_3.18.bb |

5 +-

Quoted 2 lines

recipes-kernel/linux/linux-raspberrypi_4.1.bb | 8 +- 11 files

changed, 298 insertions(+), 13 deletions(-)

Quoted 1 line

create mode 100644

recipes-graphics/xorg-xserver/xserver-xf86-config/rpi/xorg.conf.d/99-pitft.conf

Quoted 1 line

create mode 100644 recipes-kernel/linux/linux-raspberrypi/0001-dts-add-overlay-for-pitft22-in-linux-3.18.patch

Quoted 1 line

create mode 100644 recipes-kernel/linux/linux-raspberrypi/0001-dts-add-overlay-for-pitft22.patch

#6 lore raw

Re: [meta-raspberrypi][PATCH 4/5] pitft: Add basic support for PiTFT

In reply to Khem Raj
Quoted 12 lines · Khem Raj
Quoted 9 lines · Petter Mabäcker

Add basic support for PiTFT display by using device-trees.

In order get it working below configurations must be active in local.conf:

MACHINEOVERRIDES .= ":pitft”

Using MACHINE_FEATURES will be more appropriate term. Effects are same.

Indeed. I support MACHINE_FEATURE usage here.

--
Andrei Gherzan

#7 lore raw

Re: [meta-raspberrypi][PATCH 4/5] pitft: Add basic support for PiTFT

2016-01-11 21:32 skrev Andrei Gherzan:

Quoted 1 line

On Mon, Jan 11, 2016 at

Quoted 2 lines · Khem Raj
Quoted 2 lines
Quoted 2 lines

On Jan 11, 2016, at 8:49 AM,

Petter Mabäcker <[email protected]> wrote: Add basic support for PiTFT display by using device-trees. In order get it working below configurations must be active in local.conf: MACHINEOVERRIDES .= ":pitft"

Quoted 1 line
Quoted 1 line

Using MACHINE_FEATURES will be more appropriate term.

Effects are same.

Quoted 2 lines

Indeed. I support MACHINE_FEATURE usage here.

I
agree that the term MACHINE_FEATURES is better. However since MACHINE_FEATURES isn't included in the OVERRIDES variable I will not be able to use the task pre/appends that was the reason I used MACHINEOVERRIDES in the first place. The reason I want to use overrides in this case is since I think it makes the code easier to read and understand for the user (in this particular case at least). I can of course change to just using variables (like in many other optional features in meta-raspberrypi) or change to MACHINE_FEATURES. But I'm not sure how I can solve for example the below part in a effective and nice way:

xserver-xf86-config_0.1.bbappend

FILESEXTRAPATHS_prepend :=
"${THISDIR}/${PN}:"

SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf " SRC_URI_append_pitft = " file://xorg.conf.d/99-pitft.conf " <---------------- My change....

do_install_append_rpi () {
install -d
${D}/${sysconfdir}/X11/xorg.conf.d/
install -m 0644
${WORKDIR}/xorg.conf.d/*
${D}/${sysconfdir}/X11/xorg.conf.d/
}

FILES_${PN}_rpi +=
"${sysconfdir}/X11/xorg.conf
${sysconfdir}/X11/xorg.conf.d/*"
------------------- end
-----------------------

But if you have any good suggestions about how
to solve this, please enlighten me =)

BR Petter

Quoted 1 line

-- Andrei Gherzan

#8 lore raw

Re: [meta-raspberrypi][PATCH 4/5] pitft: Add basic support for PiTFT

Quoted 13 lines · Petter Mabäcker

2016-01-11 21:32 skrev Andrei Gherzan:

On Mon, Jan 11, 2016 at 09:55:43AM -0800, Khem Raj wrote:

On Jan 11, 2016, at 8:49 AM, Petter Mabäcker <[email protected]> wrote: Add basic support for PiTFT display by using device-trees. In order get it working below configurations must be active in local.conf: MACHINEOVERRIDES .= ":pitft”

Using MACHINE_FEATURES will be more appropriate term. Effects are same.

Indeed. I support MACHINE_FEATURE usage here.

Quoted 9 lines

I agree that the term MACHINE_FEATURES is better. However since MACHINE_FEATURES isn't included in the OVERRIDES variable I will not be able to use the task pre/appends that was the reason I used MACHINEOVERRIDES in the first place. The reason I want to use overrides in this case is since I think it makes the code easier to read and understand for the user (in this particular case at least). I can of course change to just using variables (like in many other optional features in meta-raspberrypi) or change to MACHINE_FEATURES. But I'm not sure how I can solve for example the below part in a effective and nice way:

it really doesnt need to have override, you can enquire MACHINE_FEATURES in python or shell.

Quoted 27 lines

xserver-xf86-config_0.1.bbappend

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf " SRC_URI_append_pitft = " file://xorg.conf.d/99-pitft.conf " <---------------- My change....

do_install_append_rpi () {
    install -d ${D}/${sysconfdir}/X11/xorg.conf.d/
    install -m 0644 ${WORKDIR}/xorg.conf.d/*

${D}/${sysconfdir}/X11/xorg.conf.d/
}

FILES_${PN}_rpi += "${sysconfdir}/X11/xorg.conf
${sysconfdir}/X11/xorg.conf.d/*"
------------------- end -----------------------

But if you have any good suggestions about how to solve this, please enlighten me =)

BR Petter

-- Andrei Gherzan

#9 lore raw

Re: [meta-raspberrypi][PATCH 4/5] pitft: Add basic support for PiTFT

2016-01-12 09:45 skrev Khem Raj:

Quoted 1 line

On Mon, Jan 11, 2016 at 10:51

Quoted 2 lines · Petter Mabäcker
Quoted 2 lines

2016-01-11 21:32

skrev Andrei Gherzan: On Mon, Jan 11, 2016 at 09:55:43AM -0800, Khem Raj
wrote: On Jan 11, 2016, at 8:49 AM, Petter Mabäcker <[email protected]>
wrote: Add basic support for PiTFT display by using device-trees. In order get it working below configurations must be active in local.conf:
MACHINEOVERRIDES .= ":pitft" Using MACHINE_FEATURES will be more appropriate term. Effects are same. Indeed. I support MACHINE_FEATURE usage here. I agree that the term MACHINE_FEATURES is better. However since MACHINE_FEATURES isn't included in the OVERRIDES variable I will not be able to use the task pre/appends that was the reason I used MACHINEOVERRIDES in the first place. The reason I want to use overrides in this case is since I think it makes the code easier to read and understand for the user (in this particular case at least). I can of course change to just using variables (like in many other optional features in meta-raspberrypi) or change to MACHINE_FEATURES. But I'm not sure how I can solve for example the below part in a effective and nice way:

Quoted 3 lines

it really doesnt need to have override, you can enquire

MACHINE_FEATURES in python or shell.

Yes, I'm aware of that I can use
it that way. It was just my personal opinion that the code looks better with overrides in this particular case. On the other hand I can agree that the end-user will be more comfortable with using MACHINE_FEATURES instead of MACHINEOVERRIDES. Also since both you and Andrei push for MACHINE_FEATURES I will bend for your will =)

Start using
MACHINE_FEATURES from local.conf when using meta-raspberrypi will require a minor change i rpi-base.inc as well, since it otherwise will override MACHINE_FEATURES added in local.conf. I will send up a fix for that in v2 of this series as well.

Thanks for your feedback.

BR
Petter

Quoted 1 line
Quoted 1 line

xserver-xf86-config_0.1.bbappend FILESEXTRAPATHS_prepend :=

"${THISDIR}/${PN}:" SRC_URI_append_rpi = " file://xorg.conf.d/10-evdev.conf [1] " SRC_URI_append_pitft = " file://xorg.conf.d/99-pitft.conf [2] " <---------------- My change.... do_install_append_rpi () { install -d ${D}/${sysconfdir}/X11/xorg.conf.d/ install -m 0644 ${WORKDIR}/xorg.conf.d/* ${D}/${sysconfdir}/X11/xorg.conf.d/ } FILES_${PN}_rpi += "${sysconfdir}/X11/xorg.conf ${sysconfdir}/X11/xorg.conf.d/*" ------------------- end ----------------------- But if you have any good suggestions about how to solve this, please enlighten me =) BR Petter -- Andrei Gherzan

Links:
------
[1] file://xorg.conf.d/10-evdev.conf
[2]
file://xorg.conf.d/99-pitft.conf