rpi-config: waveshare screen support
PATCH 1/1 rpi-config: waveshare screen support
Add support for the Waveshare 1024x600 "C" Rev2.1 7" IPS Capacitive Touch Screen LCD with HDMI interface:
http://www.waveshare.com/7inch-HDMI-LCD-C.htm http://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)
This product works "out of the box" with the Raspberry Pi. Simply connect the provided HDMI and USB cables between the two devices. The touch<=>mouse integration works automatically.
Tested with a Raspberry Pi 3, with a 32-bit raspberrypi3 build.
--- README | 13 ++++++++++--- recipes-bsp/bootfiles/rpi-config_git.bb | 10 ++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-)
README +10 -3
@@ -29,7 +29,8 @@ Contents: 3.L. Enable SPI bus 3.M. Enable I2C 3.N. Enable PiTFT support - 3.O. Enable UART support + 3.O. Misc. display + 3.P. Enable UART support 4. Extra apps 4.A. omxplayer 5. Board Configuration
@@ -241,9 +242,15 @@ List of currently supported models: - pitft22 - pitft28r -3.O. Enable UART -=============== +3.O. Misc. display +================== +If you would like to use the Waveshare "C" 1024×600, 7 inch Capacitive Touch +Screen LCD, HDMI interface (http://www.waveshare.com/7inch-HDMI-LCD-C.htm) +Rev 2.1, please set the following in your local.conf +WAVESHARE_1024X600_C_2.1 = "1" +3.P. Enable UART +=============== RaspberryPi 1, 2 and CM will have UART console enabled by default. RaspberryPi 3 does not have the UART enabled by default because this needs a
recipes-bsp/bootfiles/rpi-config_git.bb +10 -0
@@ -110,6 +110,16 @@ do_deploy() { echo "# Enable VC4 Graphics" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt echo "dtoverlay=vc4-kms-v3d,${VC4_CMA_SIZE}" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt fi + + # Waveshare "C" 1024x600 7" Rev2.1 IPS capacitive touch (http://www.waveshare.com/7inch-HDMI-LCD-C.htm) + if [ "${WAVESHARE_1024X600_C_2.1}" = "1" ]; then + echo "# Waveshare \"C\" 1024x600 7\" Rev2.1 IPS capacitive touch screen" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + echo "max_usb_current=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + echo "hdmi_group=2" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + echo "hdmi_mode=87" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + 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 } do_deploy_append_raspberrypi3-64() {
Signature · 1 line
2.12.0.rc1.48.g076c053
Andrei Gherzan
AppliedQuoted 74 lines · Trevor Woerner
Add support for the Waveshare 1024x600 "C" Rev2.1 7" IPS Capacitive Touch Screen LCD with HDMI interface:
http://www.waveshare.com/7inch-HDMI-LCD-C.htm http://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)This product works "out of the box" with the Raspberry Pi. Simply connect the provided HDMI and USB cables between the two devices. The touch<=>mouse integration works automatically.
Tested with a Raspberry Pi 3, with a 32-bit raspberrypi3 build.
Signed-off-by Trevor Woerner <[email protected]>--- README | 13 ++++++++++--- recipes-bsp/bootfiles/rpi-config_git.bb | 10 ++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-)README +10
-3@@ -29,7 +29,8 @@ Contents: 3.L. Enable SPI bus 3.M. Enable I2C 3.N. Enable PiTFT support - 3.O. Enable UART support + 3.O. Misc. display + 3.P. Enable UART support 4. Extra apps 4.A. omxplayer 5. Board Configuration@@ -241,9 +242,15 @@ List of currently supported models: - pitft22 - pitft28r -3.O. Enable UART -=============== +3.O. Misc. display +================== +If you would like to use the Waveshare "C" 1024×600, 7 inch Capacitive Touch +Screen LCD, HDMI interface (http://www.waveshare.com/7inch-HDMI-LCD-C.htm) +Rev 2.1, please set the following in your local.conf +WAVESHARE_1024X600_C_2.1 = "1" +3.P. Enable UART +=============== RaspberryPi 1, 2 and CM will have UART console enabled by default. RaspberryPi 3 does not have the UART enabled by default because this needs arecipes-bsp/bootfiles/rpi-config_git.bb +10
-1@@ -110,6 +110,16 @@ do_deploy() { echo "# Enable VC4 Graphics" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt echo "dtoverlay=vc4-kms-v3d,${VC4_CMA_SIZE}" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt fi + + # Waveshare "C" 1024x600 7" Rev2.1 IPS capacitive touch (http://www.waveshare.com/7inch-HDMI-LCD-C.htm) + if [ "${WAVESHARE_1024X600_C_2.1}" = "1" ]; then + echo "# Waveshare \"C\" 1024x600 7\" Rev2.1 IPS capacitive touch screen" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + echo "max_usb_current=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + echo "hdmi_group=2" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + echo "hdmi_mode=87" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + 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 } do_deploy_append_raspberrypi3-64() { --2.12.0.rc1.48.g076c053
Quoted 5 lines
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Merged to master.
--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan
Quoted 84 lines · Trevor Woerner
Add support for the Waveshare 1024x600 "C" Rev2.1 7" IPS Capacitive Touch Screen LCD with HDMI interface:
http://www.waveshare.com/7inch-HDMI-LCD-C.htm http://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)This product works "out of the box" with the Raspberry Pi. Simply connect the provided HDMI and USB cables between the two devices. The touch<=>mouse integration works automatically.
Tested with a Raspberry Pi 3, with a 32-bit raspberrypi3 build.
Signed-off-by Trevor Woerner <[email protected]>--- README | 13 ++++++++++--- recipes-bsp/bootfiles/rpi-config_git.bb | 10 ++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-)README +5
-3@@ -29,7 +29,8 @@ Contents: 3.L. Enable SPI bus 3.M. Enable I2C 3.N. Enable PiTFT support - 3.O. Enable UART support + 3.O. Misc. display + 3.P. Enable UART support 4. Extra apps 4.A. omxplayer 5. Board Configuration@@ -241,9 +242,15 @@ List of currently supported models: - pitft22 - pitft28r -3.O. Enable UART -=============== +3.O. Misc. display +================== +If you would like to use the Waveshare "C" 1024×600, 7 inch CapacitiveTouch
+Screen LCD, HDMI interface (http://www.waveshare.com/7inch-HDMI-LCD-C.htm
)README +4
-0+Rev 2.1, please set the following in your local.conf +WAVESHARE_1024X600_C_2.1 = "1" +3.P. Enable UART +=============== RaspberryPi 1, 2 and CM will have UART console enabled by default. RaspberryPi 3 does not have the UART enabled by default because thisneeds a
recipes-bsp/bootfiles/rpi-config_git.bb +0
-0@@ -110,6 +110,16 @@ do_deploy() { echo "# Enable VC4 Graphics" >> ${DEPLOYDIR}/bcm2835-
bootfiles/config.txtecho "dtoverlay=vc4-kms-v3d,${VC4_CMA_SIZE}" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txt
firecipes-bsp/bootfiles/rpi-config_git.bb +2
-0+ + # Waveshare "C" 1024x600 7" Rev2.1 IPS capacitive touch (http://www.waveshare.com/7inch-HDMI-LCD-C.htm)
recipes-bsp/bootfiles/rpi-config_git.bb +2
-0+ if [ "${WAVESHARE_1024X600_C_2.1}" = "1" ]; then + echo "# Waveshare \"C\" 1024x600 7\" Rev2.1 IPS capacitive touchscreen" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "max_usb_current=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txtrecipes-bsp/bootfiles/rpi-config_git.bb +3
-0+ echo "hdmi_group=2" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + echo "hdmi_mode=87" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + echo "hdmi_cvt 1024 600 60 6 0 0 0" >> ${DEPLOYDIR}/bcm2835-
bootfiles/config.txtrecipes-bsp/bootfiles/rpi-config_git.bb +2
-1+ echo "hdmi_drive=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi } do_deploy_append_raspberrypi3-64() { --2.12.0.rc1.48.g076c053
Quoted 6 lines
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
After applying this commit the build fails with:
ERROR: rpi-config-git-r5 do_deploy: Function failed: do_deploy (log file is
located at /home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/log.do_deploy.32154)
ERROR: Logfile of failure stored in:/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/log.do_deploy.32154 Log data follows:
| DEBUG: Executing python function sstate_task_prefunc
| DEBUG: Removing manifest:/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/deploy/images/raspberrypi3/bcm2835-bootfiles/config.txt | DEBUG: Removing manifest:/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/deploy/images/raspberrypi3/bcm2835-bootfiles/
| DEBUG: Python function sstate_task_prefunc finished | DEBUG: Executing shell function do_deploy |
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/run.do_deploy.32154:
192:/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/run.do_deploy.32154:
Bad substitution
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_deploy (log file is located at /home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/log.do_deploy.32154)
ERROR: Task (/home/gizero/work/smartliving/distro/repo-master/build-poky/conf/../../layers/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bb:do_deploy) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4857 tasks of which 4855 didn't need to be
rerun and 1 failed.
Still to look at it closer... maybe related to some shell configuration on my side?
Hi,
Quoted 135 lines · Andrea Galbusera
Quoted 1 line · Trevor Woerner
Add support for the Waveshare 1024x600 "C" Rev2.1 7" IPS Capacitive
Touch
Quoted 6 lines
Screen LCD with HDMI interface:
http://www.waveshare.com/7inch-HDMI-LCD-C.htm http://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)This product works "out of the box" with the Raspberry Pi. Simply
connect
Quoted 1 line
the provided HDMI and USB cables between the two devices. The
touch<=>mouse
Quoted 25 lines
integration works automatically.
Tested with a Raspberry Pi 3, with a 32-bit raspberrypi3 build.
Signed-off-by Trevor Woerner <[email protected]>--- README | 13 ++++++++++--- recipes-bsp/bootfiles/rpi-config_git.bb | 10 ++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-)README +2
-1@@ -29,7 +29,8 @@ Contents: 3.L. Enable SPI bus 3.M. Enable I2C 3.N. Enable PiTFT support - 3.O. Enable UART support + 3.O. Misc. display + 3.P. Enable UART support 4. Extra apps 4.A. omxplayer 5. Board ConfigurationREADME List of currently supported models: · line 247
Quoted 8 lines
README +3
-2@@ -241,9 +242,15 @@ List of currently supported models: - pitft22 - pitft28r -3.O. Enable UART -=============== +3.O. Misc. display +================== +If you would like to use the Waveshare "C" 1024×600, 7 inchCapacitive
Quoted 2 lines
Touch
+Screen LCD, HDMI interface(http://www.waveshare.com/7inch-HDMI-LCD-C.htm
Quoted 24 lines
)
README +4
-0+Rev 2.1, please set the following in your local.conf +WAVESHARE_1024X600_C_2.1 = "1" +3.P. Enable UART +=============== RaspberryPi 1, 2 and CM will have UART console enabled by default. RaspberryPi 3 does not have the UART enabled by default because thisneeds a
recipes-bsp/bootfiles/rpi-config_git.bb +0
-0@@ -110,6 +110,16 @@ do_deploy() { echo "# Enable VC4 Graphics" >> ${DEPLOYDIR}/bcm2835-
bootfiles/config.txtecho "dtoverlay=vc4-kms-v3d,${VC4_CMA_SIZE}" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txt
firecipes-bsp/bootfiles/rpi-config_git.bb +2
-0+ + # Waveshare "C" 1024x600 7" Rev2.1 IPS capacitive touch (recipes-bsp/bootfiles/rpi-config_git.bb
Quoted 2 lines
recipes-bsp/bootfiles/rpi-config_git.bb +2
-0+ if [ "${WAVESHARE_1024X600_C_2.1}" = "1" ]; then + echo "# Waveshare \"C\" 1024x600 7\" Rev2.1 IPS capacitivetouch
Quoted 4 lines
screen" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "max_usb_current=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "hdmi_group=2" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 1 line
+ echo "hdmi_mode=87" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 3 lines
+ echo "
hdmi_cvt1024 600 60 6 0 0 0" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "hdmi_drive=1" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 7 lines
+ fi
}do_deploy_append_raspberrypi3-64() {
--
2.12.0.rc1.48.g076c053Quoted 6 lines
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yoctoAfter applying this commit the build fails with:
ERROR: rpi-config-git-r5
do_deploy: Function failed:do_deploy(log
file is
located at/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/log.do_deploy.32154)
ERROR: Logfile of failure stored in:/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/log.do_deploy.32154Log data follows:
| DEBUG: Executing python functionsstate_task_prefunc
| DEBUG: Removing manifest:/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/deploy/images/raspberrypi3/bcm2835-bootfiles/config.txt| DEBUG: Removing manifest:/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/deploy/images/raspberrypi3/bcm2835-bootfiles/| DEBUG: Python function sstate_task_prefunc finished | DEBUG: Executing shell function do_deploy |
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/run.do_deploy.32154:
192:/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/run.do_deploy.32154:
Bad substitution
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed:do_deploy(log file is located at/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/log.do_deploy.32154)
ERROR: Task (/home/gizero/work/smartliving/distro/repo-master/build-poky/conf/../../layers/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bb:do_deploy) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4857 tasks of which 4855 didn't need to
be
rerun and 1 failed.
Quoted 3 lines
Still to look at it closer... maybe related to some shell configuration on
my side?
That is strange. Do you get any additional information? Can't pick anything from the posted log.
Signature · 2 lines
Andrei Gherzan gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan
Quoted 150 lines · Andrei Gherzan
Hi,
Quoted 104 lines · Andrea Galbusera
Quoted 1 line · Trevor Woerner
Add support for the Waveshare 1024x600 "C" Rev2.1 7" IPS Capacitive
Touch
Quoted 6 lines
Screen LCD with HDMI interface:
http://www.waveshare.com/7inch-HDMI-LCD-C.htm http://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)This product works "out of the box" with the Raspberry Pi. Simply
connect
Quoted 1 line
the provided HDMI and USB cables between the two devices. The
touch<=>mouse
Quoted 25 lines
integration works automatically.
Tested with a Raspberry Pi 3, with a 32-bit raspberrypi3 build.
Signed-off-by Trevor Woerner <[email protected]>--- README | 13 ++++++++++--- recipes-bsp/bootfiles/rpi-config_git.bb | 10 ++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-)README +2
-1@@ -29,7 +29,8 @@ Contents: 3.L. Enable SPI bus 3.M. Enable I2C 3.N. Enable PiTFT support - 3.O. Enable UART support + 3.O. Misc. display + 3.P. Enable UART support 4. Extra apps 4.A. omxplayer 5. Board ConfigurationREADME List of currently supported models: · line 247
Quoted 8 lines
README +3
-2@@ -241,9 +242,15 @@ List of currently supported models: - pitft22 - pitft28r -3.O. Enable UART -=============== +3.O. Misc. display +================== +If you would like to use the Waveshare "C" 1024×600, 7 inchCapacitive
Quoted 2 lines
Touch
+Screen LCD, HDMI interface(http://www.waveshare.com/7inch-HDMI-LCD-C.htm
Quoted 24 lines
)
README +4
-0+Rev 2.1, please set the following in your local.conf +WAVESHARE_1024X600_C_2.1 = "1" +3.P. Enable UART +=============== RaspberryPi 1, 2 and CM will have UART console enabled by default. RaspberryPi 3 does not have the UART enabled by default because thisneeds a
recipes-bsp/bootfiles/rpi-config_git.bb +0
-0@@ -110,6 +110,16 @@ do_deploy() { echo "# Enable VC4 Graphics" >> ${DEPLOYDIR}/bcm2835-
bootfiles/config.txtecho "dtoverlay=vc4-kms-v3d,${VC4_CMA_SIZE}" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txt
firecipes-bsp/bootfiles/rpi-config_git.bb +2
-0+ + # Waveshare "C" 1024x600 7" Rev2.1 IPS capacitive touch (recipes-bsp/bootfiles/rpi-config_git.bb
Quoted 2 lines
recipes-bsp/bootfiles/rpi-config_git.bb +2
-0+ if [ "${WAVESHARE_1024X600_C_2.1}" = "1" ]; then + echo "# Waveshare \"C\" 1024x600 7\" Rev2.1 IPS capacitivetouch
Quoted 4 lines
screen" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "max_usb_current=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "hdmi_group=2" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 1 line
+ echo "hdmi_mode=87" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 3 lines
+ echo "
hdmi_cvt1024 600 60 6 0 0 0" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "hdmi_drive=1" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 7 lines
+ fi
}do_deploy_append_raspberrypi3-64() {
--
2.12.0.rc1.48.g076c053Quoted 6 lines
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yoctoQuoted 6 lines
After applying this commit the build fails with:
ERROR: rpi-config-git-r5
do_deploy: Function failed:do_deploy(log file is
located at/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/log.do_deploy.32154)
Quoted 2 lines
ERROR: Logfile of failure stored in:
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/log.do_deploy.32154
Quoted 4 lines
Log data follows:
| DEBUG: Executing python functionsstate_task_prefunc
| DEBUG: Removing manifest:/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/deploy/
images/raspberrypi3/bcm2835-bootfiles/config.txtQuoted 2 lines
| DEBUG: Removing manifest:
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/deploy/images/raspberrypi3/bcm2835-bootfiles/
Quoted 4 lines
| DEBUG: Python function sstate_task_prefunc finished | DEBUG: Executing shell function do_deploy |
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/run.do_deploy.32154:
Quoted 2 lines
192:
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/run.do_deploy.32154:
Quoted 4 lines
Bad substitution
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed:do_deploy(log file is located at/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/log.do_deploy.32154)
Quoted 2 lines
ERROR: Task (
/home/gizero/work/smartliving/distro/repo-master/build-poky/conf/../../layers/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bb:do_deploy)
Quoted 5 lines
failed with exit code '1'
NOTE: Tasks Summary: Attempted 4857 tasks of which 4855 didn't need to be
rerun and 1 failed.
Quoted 7 lines
Quoted 3 lines
Still to look at it closer... maybe related to some shell configuration on
my side?That is strange. Do you get any additional information? Can't pick anything from the posted log.
I nailed it down to the the shell variable WAVESHARE_1024X600_C_2.1 that the patch just introduced.
Quoting bash manpage:
name A word consisting only of alphanumeric characters and under‐
scores, and beginning with an alphabetic character or an under‐ score. Also referred to as an identifier.
Looks like a variable name cannot contain dots. Just replacing the offending '.' solves the issue.
If you agree I can send a patch that s/./_/
Strangely enough all may shells fail in evaluating the following statement. Why don't you guys see the same behavior?
if [ "${WAVESHARE_1024X600_C_2.1}" = "1" ]; then echo "hello!"; fi
Quoted 193 lines · Andrea Galbusera
Quoted 3 lines · Andrei Gherzan
Hi,
On 4 April 2017 09:48:32 BST, Andrea Galbusera <[email protected]>
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 1 line · Trevor Woerner
Add support for the Waveshare 1024x600 "C" Rev2.1 7" IPS
Capacitive
Quoted 46 lines
Quoted 46 lines
Touch
Quoted 6 lines
Screen LCD with HDMI interface:
http://www.waveshare.com/7inch-HDMI-LCD-C.htm http://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)This product works "out of the box" with the Raspberry Pi. Simply
connect
Quoted 1 line
the provided HDMI and USB cables between the two devices. The
touch<=>mouse
Quoted 25 lines
integration works automatically.
Tested with a Raspberry Pi 3, with a 32-bit raspberrypi3 build.
Signed-off-by Trevor Woerner <[email protected]>--- README | 13 ++++++++++--- recipes-bsp/bootfiles/rpi-config_git.bb | 10 ++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-)README +2
-1@@ -29,7 +29,8 @@ Contents: 3.L. Enable SPI bus 3.M. Enable I2C 3.N. Enable PiTFT support - 3.O. Enable UART support + 3.O. Misc. display + 3.P. Enable UART support 4. Extra apps 4.A. omxplayer 5. Board ConfigurationREADME List of currently supported models: · line 247
Quoted 8 lines
README +3
-2@@ -241,9 +242,15 @@ List of currently supported models: - pitft22 - pitft28r -3.O. Enable UART -=============== +3.O. Misc. display +================== +If you would like to use the Waveshare "C" 1024×600, 7 inchCapacitive
Quoted 2 lines
Touch
+Screen LCD, HDMI interfaceQuoted 8 lines
Quoted 8 lines
(http://www.waveshare.com/7inch-HDMI-LCD-C.htm
README List of currently supported models:
Quoted 7 lines
)
README +4
-0+Rev 2.1, please set the following in your local.conf +WAVESHARE_1024X600_C_2.1 = "1" +3.P. Enable UART +=============== RaspberryPi 1, 2 and CM will have UART console enabled bydefault.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
RaspberryPi 3 does not have the UART enabled by default because
this
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
needs a
recipes-bsp/bootfiles/rpi-config_git.bb +0
-0@@ -110,6 +110,16 @@ do_deploy() { echo "# Enable VC4 Graphics" >> ${DEPLOYDIR}/bcm2835-
bootfiles/config.txtQuoted 8 lines
Quoted 8 lines
recipes-bsp/bootfiles/rpi-config_git.bb
Quoted 8 lines
echo "dtoverlay=vc4-kms-v3d,${VC4_CMA_SIZE}" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txt
firecipes-bsp/bootfiles/rpi-config_git.bb +2
-0+ + # Waveshare "C" 1024x600 7" Rev2.1 IPS capacitive touch (http://www.waveshare.com/7inch-HDMI-LCD-C.htm)
recipes-bsp/bootfiles/rpi-config_git.bb +2
-0+ if [ "${WAVESHARE_1024X600_C_2.1}" = "1" ]; then + echo "# Waveshare \"C\" 1024x600 7\" Rev2.1 IPScapacitive
Quoted 9 lines
Quoted 9 lines
touch
Quoted 4 lines
screen" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "max_usb_current=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "hdmi_group=2" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 1 line
+ echo "hdmi_mode=87" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 1 line
+ echo "
hdmi_cvt1024 600 60 6 0 0 0" >>${DEPLOYDIR}/bcm2835-
Quoted 24 lines
Quoted 18 lines
Quoted 2 lines
bootfiles/config.txt
+ echo "hdmi_drive=1" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 7 lines
+ fi
}do_deploy_append_raspberrypi3-64() {
--
2.12.0.rc1.48.g076c053Quoted 6 lines
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yoctoQuoted 5 lines
After applying this commit the build fails with:
ERROR: rpi-config-git-r5
do_deploy: Function failed:do_deploy(log file is
located atQuoted 7 lines
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/log.do_deploy.32154)Quoted 1 line
ERROR: Logfile of failure stored in:
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/log.do_deploy.32154
Quoted 26 lines
Quoted 3 lines
Log data follows:
| DEBUG: Executing python functionsstate_task_prefunc| DEBUG: Removing manifest:
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/deploy/images/raspberrypi3/bcm2835-bootfiles/config.txtQuoted 1 line
| DEBUG: Removing manifest:
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/deploy/images/raspberrypi3/bcm2835-bootfiles/Quoted 3 lines
| DEBUG: Python function sstate_task_prefunc finished | DEBUG: Executing shell function do_deploy |
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/run.do_deploy.32154:Quoted 1 line
192:
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/run.do_deploy.32154:Quoted 3 lines
Bad substitution
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed:do_deploy(log file is located atQuoted 7 lines
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/log.do_deploy.32154)Quoted 1 line
ERROR: Task
(
/home/gizero/work/smartliving/distro/repo-master/build-poky/conf/../../layers/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bb:do_deploy)
Quoted 2 lines
Quoted 2 lines
failed with exit code '1'
NOTE: Tasks Summary: Attempted 4857 tasks of which 4855 didn't needto
Quoted 4 lines
Quoted 4 lines
be
rerun and 1 failed.Still to look at it closer... maybe related to some shell
configuration
Quoted 6 lines
Quoted 2 lines
on
my side?That is strange. Do you get any additional information? Can't pick anything from the posted log.
I nailed it down to the the shell variable WAVESHARE_1024X600_C_2.1 that
the patch just introduced.Quoting bash manpage:
name A word consisting only of alphanumeric characters and under‐
scores, and beginning with an alphabetic character or an under‐
score. Also referred to as an identifier.Looks like a variable name cannot contain dots. Just replacing the offending '.' solves the issue.
If you agree I can send a patch that s/./_/
Quoted 5 lines
Strangely enough all may shells fail in evaluating the following statement.
Why don't you guys see the same behavior?if [ "${WAVESHARE_1024X600_C_2.1}" = "1" ]; then echo "hello!"; fi
Right. Good catch. Fire a patch away. Thanks.
Signature · 2 lines
Andrei Gherzan gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan
Odd... I've been carrying this patch for a month and haven't had issues :-(
Quoted 207 lines · Andrei Gherzan
Quoted 193 lines · Andrea Galbusera
Quoted 3 lines · Andrei Gherzan
Hi,
On 4 April 2017 09:48:32 BST, Andrea Galbusera <[email protected]>
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 1 line · Trevor Woerner
Add support for the Waveshare 1024x600 "C" Rev2.1 7" IPS
Capacitive
Quoted 46 lines
Quoted 46 lines
Touch
Quoted 6 lines
Screen LCD with HDMI interface:
http://www.waveshare.com/7inch-HDMI-LCD-C.htm http://www.waveshare.com/wiki/7inch_HDMI_LCD_(C)This product works "out of the box" with the Raspberry Pi. Simply
connect
Quoted 1 line
the provided HDMI and USB cables between the two devices. The
touch<=>mouse
Quoted 25 lines
integration works automatically.
Tested with a Raspberry Pi 3, with a 32-bit raspberrypi3 build.
Signed-off-by Trevor Woerner <[email protected]>--- README | 13 ++++++++++--- recipes-bsp/bootfiles/rpi-config_git.bb | 10 ++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-)README +2
-1@@ -29,7 +29,8 @@ Contents: 3.L. Enable SPI bus 3.M. Enable I2C 3.N. Enable PiTFT support - 3.O. Enable UART support + 3.O. Misc. display + 3.P. Enable UART support 4. Extra apps 4.A. omxplayer 5. Board ConfigurationREADME List of currently supported models: · line 247
Quoted 8 lines
README +3
-2@@ -241,9 +242,15 @@ List of currently supported models: - pitft22 - pitft28r -3.O. Enable UART -=============== +3.O. Misc. display +================== +If you would like to use the Waveshare "C" 1024×600, 7 inchCapacitive
Quoted 2 lines
Touch
+Screen LCD, HDMI interfaceQuoted 8 lines
Quoted 8 lines
(http://www.waveshare.com/7inch-HDMI-LCD-C.htm
README List of currently supported models:
Quoted 7 lines
)
README +4
-0+Rev 2.1, please set the following in your local.conf +WAVESHARE_1024X600_C_2.1 = "1" +3.P. Enable UART +=============== RaspberryPi 1, 2 and CM will have UART console enabled bydefault.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
RaspberryPi 3 does not have the UART enabled by default because
this
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
needs a
recipes-bsp/bootfiles/rpi-config_git.bb +0
-0@@ -110,6 +110,16 @@ do_deploy() { echo "# Enable VC4 Graphics" >> ${DEPLOYDIR}/bcm2835-
bootfiles/config.txtQuoted 8 lines
Quoted 8 lines
recipes-bsp/bootfiles/rpi-config_git.bb
Quoted 8 lines
echo "dtoverlay=vc4-kms-v3d,${VC4_CMA_SIZE}" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txt
firecipes-bsp/bootfiles/rpi-config_git.bb +2
-0+ + # Waveshare "C" 1024x600 7" Rev2.1 IPS capacitive touch (http://www.waveshare.com/7inch-HDMI-LCD-C.htm)
recipes-bsp/bootfiles/rpi-config_git.bb +2
-0+ if [ "${WAVESHARE_1024X600_C_2.1}" = "1" ]; then + echo "# Waveshare \"C\" 1024x600 7\" Rev2.1 IPScapacitive
Quoted 9 lines
Quoted 9 lines
touch
Quoted 4 lines
screen" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "max_usb_current=1" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
+ echo "hdmi_group=2" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 1 line
+ echo "hdmi_mode=87" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 1 line
+ echo "
hdmi_cvt1024 600 60 6 0 0 0" >>${DEPLOYDIR}/bcm2835-
Quoted 24 lines
Quoted 18 lines
Quoted 2 lines
bootfiles/config.txt
+ echo "hdmi_drive=1" >>
${DEPLOYDIR}/bcm2835-bootfiles/config.txtQuoted 7 lines
+ fi
}do_deploy_append_raspberrypi3-64() {
--
2.12.0.rc1.48.g076c053Quoted 6 lines
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yoctoQuoted 5 lines
After applying this commit the build fails with:
ERROR: rpi-config-git-r5
do_deploy: Function failed:do_deploy(log file is
located atQuoted 7 lines
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/log.do_deploy.32154)Quoted 1 line
ERROR: Logfile of failure stored in:
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/temp/log.do_deploy.32154
Quoted 26 lines
Quoted 3 lines
Log data follows:
| DEBUG: Executing python functionsstate_task_prefunc| DEBUG: Removing manifest:
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/deploy/images/raspberrypi3/bcm2835-bootfiles/config.txtQuoted 1 line
| DEBUG: Removing manifest:
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/deploy/images/raspberrypi3/bcm2835-bootfiles/Quoted 3 lines
| DEBUG: Python function sstate_task_prefunc finished | DEBUG: Executing shell function do_deploy |
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/run.do_deploy.32154:Quoted 1 line
192:
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/run.do_deploy.32154:Quoted 3 lines
Bad substitution
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed:do_deploy(log file is located atQuoted 7 lines
/home/gizero/work/smartliving/distro/repo-master/build-poky/tmp/work/raspberrypi3-poky-linux-gnueabi/rpi-config/git-r5/ temp/log.do_deploy.32154)Quoted 1 line
ERROR: Task
(
/home/gizero/work/smartliving/distro/repo-master/build-poky/conf/../../layers/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bb:do_deploy)
Quoted 2 lines
Quoted 2 lines
failed with exit code '1'
NOTE: Tasks Summary: Attempted 4857 tasks of which 4855 didn't needto
Quoted 4 lines
Quoted 4 lines
be
rerun and 1 failed.Still to look at it closer... maybe related to some shell
configuration
Quoted 6 lines
Quoted 2 lines
on
my side?That is strange. Do you get any additional information? Can't pick anything from the posted log.
I nailed it down to the the shell variable WAVESHARE_1024X600_C_2.1 that
the patch just introduced.Quoting bash manpage:
name A word consisting only of alphanumeric characters and under‐
scores, and beginning with an alphabetic character or an under‐
score. Also referred to as an identifier.Looks like a variable name cannot contain dots. Just replacing the offending '.' solves the issue.
If you agree I can send a patch that s/./_/Quoted 5 lines
Strangely enough all may shells fail in evaluating the following statement.
Why don't you guys see the same behavior?if [ "${WAVESHARE_1024X600_C_2.1}" = "1" ]; then echo "hello!"; fi
Right. Good catch. Fire a patch away. Thanks.
--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan
I see what happened... knowing that I needed those lines set, my bbappend didn't have the "if" line, it simply applied the lines without the check. The check was added when pushing upstream just in case somebody didn't want those lines in their config :-) I should have tested more extensively after adding the line.
Sorry!
Quoted 7 lines · Trevor Woerner
I see what happened... knowing that I needed those lines set, my bbappend didn't have the "if" line, it simply applied the lines without the check. The check was added when pushing upstream just in case somebody didn't want those lines in their config :-) I should have tested more extensively after adding the line.
Sorry!
It happens. Don't worry about it.
--
Andrei Gherzan
gpg: rsa4096/D4D94F67AD0E9640 | t: @agherzan