All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH] rpi-config: Setup lcd_rotate for Raspberry Pi display
@ 2017-11-29 22:20 drew.moseley
  2017-11-30 17:16 ` Paul Barker
  0 siblings, 1 reply; 4+ messages in thread
From: drew.moseley @ 2017-11-29 22:20 UTC (permalink / raw)
  To: yocto

From: Drew Moseley <drew.moseley@northern.tech>

Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
---
 docs/extra-build-config.md              | 6 ++++++
 recipes-bsp/bootfiles/rpi-config_git.bb | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/docs/extra-build-config.md b/docs/extra-build-config.md
index 380d969..0390eee 100644
--- a/docs/extra-build-config.md
+++ b/docs/extra-build-config.md
@@ -170,6 +170,12 @@ Screen LCD, HDMI interface (<http://www.waveshare.com/7inch-HDMI-LCD-C.htm>) Rev
 
     WAVESHARE_1024X600_C_2_1 = "1"
 
+If you would like to use the Raspberry Pi, 7 inch Capacitive Touch Screen
+LCD (https://www.raspberrypi.org/products/raspberry-pi-touch-display/), please
+set the following in your local.conf:
+
+    RASPBERRYPI_DISPLAY = "1"
+
 ## Enable UART
 
 RaspberryPi 0, 1, 2 and CM will have UART console enabled by default.
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb
index ca4160b..e9a4fe2 100644
--- a/recipes-bsp/bootfiles/rpi-config_git.bb
+++ b/recipes-bsp/bootfiles/rpi-config_git.bb
@@ -127,6 +127,12 @@ do_deploy() {
         echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
         echo "hdmi_drive=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
     fi
+
+    # Raspberry Pi 7" Display/Touch screen (https://www.raspberrypi.org/products/raspberry-pi-touch-display/)
+    if [ "${RASPBERRYPI_DISPLAY}" = "1" ]; then
+        echo "# Raspberry Pi 7\" display/touch screen" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+        echo "lcd_rotate=2" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+    fi
 }
 
 do_deploy_append_raspberrypi3-64() {
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [meta-raspberrypi][PATCH] rpi-config: Setup lcd_rotate for Raspberry Pi display
  2017-11-29 22:20 [meta-raspberrypi][PATCH] rpi-config: Setup lcd_rotate for Raspberry Pi display drew.moseley
@ 2017-11-30 17:16 ` Paul Barker
  2017-11-30 17:43   ` Paul Barker
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Barker @ 2017-11-30 17:16 UTC (permalink / raw)
  To: drew.moseley; +Cc: yocto

On Wed, Nov 29, 2017 at 10:20 PM,  <drew.moseley@northern.tech> wrote:
> From: Drew Moseley <drew.moseley@northern.tech>
>
> Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
> ---
>  docs/extra-build-config.md              | 6 ++++++
>  recipes-bsp/bootfiles/rpi-config_git.bb | 6 ++++++
>  2 files changed, 12 insertions(+)
>
> diff --git a/docs/extra-build-config.md b/docs/extra-build-config.md
> index 380d969..0390eee 100644
> --- a/docs/extra-build-config.md
> +++ b/docs/extra-build-config.md
> @@ -170,6 +170,12 @@ Screen LCD, HDMI interface (<http://www.waveshare.com/7inch-HDMI-LCD-C.htm>) Rev
>
>      WAVESHARE_1024X600_C_2_1 = "1"
>
> +If you would like to use the Raspberry Pi, 7 inch Capacitive Touch Screen
> +LCD (https://www.raspberrypi.org/products/raspberry-pi-touch-display/), please
> +set the following in your local.conf:
> +
> +    RASPBERRYPI_DISPLAY = "1"
> +
>  ## Enable UART
>
>  RaspberryPi 0, 1, 2 and CM will have UART console enabled by default.
> diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb
> index ca4160b..e9a4fe2 100644
> --- a/recipes-bsp/bootfiles/rpi-config_git.bb
> +++ b/recipes-bsp/bootfiles/rpi-config_git.bb
> @@ -127,6 +127,12 @@ do_deploy() {
>          echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
>          echo "hdmi_drive=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
>      fi
> +
> +    # Raspberry Pi 7" Display/Touch screen (https://www.raspberrypi.org/products/raspberry-pi-touch-display/)
> +    if [ "${RASPBERRYPI_DISPLAY}" = "1" ]; then
> +        echo "# Raspberry Pi 7\" display/touch screen" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
> +        echo "lcd_rotate=2" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
> +    fi
>  }
>
>  do_deploy_append_raspberrypi3-64() {

This all looks good in general. Just a quick check though - are all
users of this display going to want that lcd_rotate value? I've never
used this display so not sure if that's specific to particular use
cases or not.

If you're happy that this is applicable for everyone could you submit
this as a pull request on github
(https://github.com/agherzan/meta-raspberrypi).

Thanks,

-- 
Paul Barker
Togán Labs Ltd


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-raspberrypi][PATCH] rpi-config: Setup lcd_rotate for Raspberry Pi display
  2017-11-30 17:16 ` Paul Barker
@ 2017-11-30 17:43   ` Paul Barker
  2017-12-01 17:40     ` Andrei Gherzan
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Barker @ 2017-11-30 17:43 UTC (permalink / raw)
  To: drew.moseley; +Cc: yocto

On Thu, Nov 30, 2017 at 5:16 PM, Paul Barker <pbarker@toganlabs.com> wrote:
> On Wed, Nov 29, 2017 at 10:20 PM,  <drew.moseley@northern.tech> wrote:
>> From: Drew Moseley <drew.moseley@northern.tech>
>>
>> Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
>> ---
>>  docs/extra-build-config.md              | 6 ++++++
>>  recipes-bsp/bootfiles/rpi-config_git.bb | 6 ++++++
>>  2 files changed, 12 insertions(+)
>>
>> diff --git a/docs/extra-build-config.md b/docs/extra-build-config.md
>> index 380d969..0390eee 100644
>> --- a/docs/extra-build-config.md
>> +++ b/docs/extra-build-config.md
>> @@ -170,6 +170,12 @@ Screen LCD, HDMI interface (<http://www.waveshare.com/7inch-HDMI-LCD-C.htm>) Rev
>>
>>      WAVESHARE_1024X600_C_2_1 = "1"
>>
>> +If you would like to use the Raspberry Pi, 7 inch Capacitive Touch Screen
>> +LCD (https://www.raspberrypi.org/products/raspberry-pi-touch-display/), please
>> +set the following in your local.conf:
>> +
>> +    RASPBERRYPI_DISPLAY = "1"
>> +
>>  ## Enable UART
>>
>>  RaspberryPi 0, 1, 2 and CM will have UART console enabled by default.
>> diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb
>> index ca4160b..e9a4fe2 100644
>> --- a/recipes-bsp/bootfiles/rpi-config_git.bb
>> +++ b/recipes-bsp/bootfiles/rpi-config_git.bb
>> @@ -127,6 +127,12 @@ do_deploy() {
>>          echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
>>          echo "hdmi_drive=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
>>      fi
>> +
>> +    # Raspberry Pi 7" Display/Touch screen (https://www.raspberrypi.org/products/raspberry-pi-touch-display/)
>> +    if [ "${RASPBERRYPI_DISPLAY}" = "1" ]; then
>> +        echo "# Raspberry Pi 7\" display/touch screen" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
>> +        echo "lcd_rotate=2" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
>> +    fi
>>  }
>>
>>  do_deploy_append_raspberrypi3-64() {
>
> This all looks good in general. Just a quick check though - are all
> users of this display going to want that lcd_rotate value? I've never
> used this display so not sure if that's specific to particular use
> cases or not.
>
> If you're happy that this is applicable for everyone could you submit
> this as a pull request on github
> (https://github.com/agherzan/meta-raspberrypi).
>

Someone has come back off-list and said they use that display without
the lcd_rotate setting. I think we'll have to drop this then.

It may be good to have an RPI_EXTRA_CONFIG variable or similar to add
arbitrary text to the config file, so you could do something like
this:

RPI_EXTRA_CONFIG = " \
    # Raspberry Pi 7\" display/touch screen \
    lcd_rotate=2 \
    "

How does that sound?

-- 
Paul Barker
Togán Labs Ltd


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-raspberrypi][PATCH] rpi-config: Setup lcd_rotate for Raspberry Pi display
  2017-11-30 17:43   ` Paul Barker
@ 2017-12-01 17:40     ` Andrei Gherzan
  0 siblings, 0 replies; 4+ messages in thread
From: Andrei Gherzan @ 2017-12-01 17:40 UTC (permalink / raw)
  To: Paul Barker; +Cc: yocto, drew.moseley

[-- Attachment #1: Type: text/plain, Size: 6373 bytes --]

On Thu, Nov 30, 2017 at 5:43 PM, Paul Barker <pbarker@toganlabs.com> wrote:

> On Thu, Nov 30, 2017 at 5:16 PM, Paul Barker <pbarker@toganlabs.com>
> wrote:
> > On Wed, Nov 29, 2017 at 10:20 PM,  <drew.moseley@northern.tech> wrote:
> >> From: Drew Moseley <drew.moseley@northern.tech>
> >>
> >> Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
> >> ---
> >>  docs/extra-build-config.md              | 6 ++++++
> >>  recipes-bsp/bootfiles/rpi-config_git.bb | 6 ++++++
> >>  2 files changed, 12 insertions(+)
> >>
> >> diff --git a/docs/extra-build-config.md b/docs/extra-build-config.md
> >> index 380d969..0390eee 100644
> >> --- a/docs/extra-build-config.md
> >> +++ b/docs/extra-build-config.md
> >> @@ -170,6 +170,12 @@ Screen LCD, HDMI interface (<
> http://www.waveshare.com/7inch-HDMI-LCD-C.htm>) Rev
> >>
> >>      WAVESHARE_1024X600_C_2_1 = "1"
> >>
> >> +If you would like to use the Raspberry Pi, 7 inch Capacitive Touch
> Screen
> >> +LCD (https://www.raspberrypi.org/products/raspberry-pi-touch-display/),
> please
> >> +set the following in your local.conf:
> >> +
> >> +    RASPBERRYPI_DISPLAY = "1"
> >> +
> >>  ## Enable UART
> >>
> >>  RaspberryPi 0, 1, 2 and CM will have UART console enabled by default.
> >> diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb
> b/recipes-bsp/bootfiles/rpi-config_git.bb
> >> index ca4160b..e9a4fe2 100644
> >> --- a/recipes-bsp/bootfiles/rpi-config_git.bb
> >> +++ b/recipes-bsp/bootfiles/rpi-config_git.bb
> >> @@ -127,6 +127,12 @@ do_deploy() {
> >>          echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ${DEPLOYDIR}/bcm2835-
> bootfiles/config.txt
> >>          echo "hdmi_drive=1" >> ${DEPLOYDIR}/bcm2835-
> bootfiles/config.txt
> >>      fi
> >> +
> >> +    # Raspberry Pi 7" Display/Touch screen (
> https://www.raspberrypi.org/products/raspberry-pi-touch-display/)
> >> +    if [ "${RASPBERRYPI_DISPLAY}" = "1" ]; then
> >> +        echo "# Raspberry Pi 7\" display/touch screen" >>
> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
> >> +        echo "lcd_rotate=2" >> ${DEPLOYDIR}/bcm2835-
> bootfiles/config.txt
> >> +    fi
> >>  }
> >>
> >>  do_deploy_append_raspberrypi3-64() {
> >
> > This all looks good in general. Just a quick check though - are all
> > users of this display going to want that lcd_rotate value? I've never
> > used this display so not sure if that's specific to particular use
> > cases or not.
> >
> > If you're happy that this is applicable for everyone could you submit
> > this as a pull request on github
> > (https://github.com/agherzan/meta-raspberrypi).
> >
>
> Someone has come back off-list and said they use that display without
> the lcd_rotate setting. I think we'll have to drop this then.
>
> It may be good to have an RPI_EXTRA_CONFIG variable or similar to add
> arbitrary text to the config file, so you could do something like
> this:
>
> RPI_EXTRA_CONFIG = " \
>     # Raspberry Pi 7\" display/touch screen \
>     lcd_rotate=2 \
>     "
>
> How does that sound?
>
>
>
I like this.



--
Andrei Gherzan


--
Andrei Gherzan

On Thu, Nov 30, 2017 at 5:43 PM, Paul Barker <pbarker@toganlabs.com> wrote:

> On Thu, Nov 30, 2017 at 5:16 PM, Paul Barker <pbarker@toganlabs.com>
> wrote:
> > On Wed, Nov 29, 2017 at 10:20 PM,  <drew.moseley@northern.tech> wrote:
> >> From: Drew Moseley <drew.moseley@northern.tech>
> >>
> >> Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
> >> ---
> >>  docs/extra-build-config.md              | 6 ++++++
> >>  recipes-bsp/bootfiles/rpi-config_git.bb | 6 ++++++
> >>  2 files changed, 12 insertions(+)
> >>
> >> diff --git a/docs/extra-build-config.md b/docs/extra-build-config.md
> >> index 380d969..0390eee 100644
> >> --- a/docs/extra-build-config.md
> >> +++ b/docs/extra-build-config.md
> >> @@ -170,6 +170,12 @@ Screen LCD, HDMI interface (<
> http://www.waveshare.com/7inch-HDMI-LCD-C.htm>) Rev
> >>
> >>      WAVESHARE_1024X600_C_2_1 = "1"
> >>
> >> +If you would like to use the Raspberry Pi, 7 inch Capacitive Touch
> Screen
> >> +LCD (https://www.raspberrypi.org/products/raspberry-pi-touch-display/),
> please
> >> +set the following in your local.conf:
> >> +
> >> +    RASPBERRYPI_DISPLAY = "1"
> >> +
> >>  ## Enable UART
> >>
> >>  RaspberryPi 0, 1, 2 and CM will have UART console enabled by default.
> >> diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb
> b/recipes-bsp/bootfiles/rpi-config_git.bb
> >> index ca4160b..e9a4fe2 100644
> >> --- a/recipes-bsp/bootfiles/rpi-config_git.bb
> >> +++ b/recipes-bsp/bootfiles/rpi-config_git.bb
> >> @@ -127,6 +127,12 @@ do_deploy() {
> >>          echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ${DEPLOYDIR}/bcm2835-
> bootfiles/config.txt
> >>          echo "hdmi_drive=1" >> ${DEPLOYDIR}/bcm2835-
> bootfiles/config.txt
> >>      fi
> >> +
> >> +    # Raspberry Pi 7" Display/Touch screen (
> https://www.raspberrypi.org/products/raspberry-pi-touch-display/)
> >> +    if [ "${RASPBERRYPI_DISPLAY}" = "1" ]; then
> >> +        echo "# Raspberry Pi 7\" display/touch screen" >>
> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
> >> +        echo "lcd_rotate=2" >> ${DEPLOYDIR}/bcm2835-
> bootfiles/config.txt
> >> +    fi
> >>  }
> >>
> >>  do_deploy_append_raspberrypi3-64() {
> >
> > This all looks good in general. Just a quick check though - are all
> > users of this display going to want that lcd_rotate value? I've never
> > used this display so not sure if that's specific to particular use
> > cases or not.
> >
> > If you're happy that this is applicable for everyone could you submit
> > this as a pull request on github
> > (https://github.com/agherzan/meta-raspberrypi).
> >
>
> Someone has come back off-list and said they use that display without
> the lcd_rotate setting. I think we'll have to drop this then.
>
> It may be good to have an RPI_EXTRA_CONFIG variable or similar to add
> arbitrary text to the config file, so you could do something like
> this:
>
> RPI_EXTRA_CONFIG = " \
>     # Raspberry Pi 7\" display/touch screen \
>     lcd_rotate=2 \
>     "
>
> How does that sound?
>
> --
> Paul Barker
> Togán Labs Ltd
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 11441 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-01 17:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-29 22:20 [meta-raspberrypi][PATCH] rpi-config: Setup lcd_rotate for Raspberry Pi display drew.moseley
2017-11-30 17:16 ` Paul Barker
2017-11-30 17:43   ` Paul Barker
2017-12-01 17:40     ` Andrei Gherzan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.