Skip to contentSkip to conversation

wandboard.inc: add file with common settings for wandboard boards

PATCH In review Mario Domenech Goulart 4 participants 8 messages Dec 9, 2013 – Dec 11, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 wandboard.inc: add file with common settings for wandboard boards

Currently the following variables can be shared among all the wandboard models: PREFERRED_PROVIDER_virtual/kernel, SERIAL_CONSOLE and MACHINE_FEATURES. Move them to a include file to avoid code duplication.

---
 conf/machine/include/wandboard.inc |   10 ++++++++++
 conf/machine/wandboard-dual.conf   |    9 ++-------
 conf/machine/wandboard-quad.conf   |    9 ++-------
 conf/machine/wandboard-solo.conf   |    9 +--------
 4 files changed, 15 insertions(+), 22 deletions(-)
 create mode 100644 conf/machine/include/wandboard.inc
conf/machine/include/wandboard.inc new file +10 -0
new file mode 100644
index 0000000..dc64d89
@@ -0,0 +1,10 @@
+# Common settings for wandboard boards
+
+include conf/machine/include/imx-base.inc
+include conf/machine/include/tune-cortexa9.inc
+
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard"
+
+SERIAL_CONSOLE = "115200 ttymxc0"
+
+MACHINE_FEATURES += "pci"
conf/machine/wandboard-dual.conf +2 -7
index 3526790..bf2ba8d 100644
@@ -3,19 +3,14 @@
 #@SOC: i.MX6DL
 #@DESCRIPTION: Machine configuration for i.MX6 Wandboard Duallite
 
-include conf/machine/include/imx-base.inc
-include conf/machine/include/tune-cortexa9.inc
+include include/wandboard.inc
 
 SOC_FAMILY = "mx6:mx6dl:wandboard"
 
-PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard"
-
 UBOOT_MACHINE = "wandboard_dl_config"
 
 KERNEL_DEVICETREE = "imx6dl-wandboard.dtb"
 
-SERIAL_CONSOLE = "115200 ttymxc0"
-
-MACHINE_FEATURES += " pci wifi bluetooth"
+MACHINE_FEATURES += "bluetooth wifi"
 
 MACHINE_EXTRA_RRECOMMENDS += " broadcom-nvram-config"
conf/machine/wandboard-quad.conf +2 -7
index 578dd0d..1523887 100644
@@ -3,19 +3,14 @@
 #@SOC: i.MX6Q
 #@DESCRIPTION: Machine configuration for i.MX6 Wandboard Quad
 
-include conf/machine/include/imx-base.inc
-include conf/machine/include/tune-cortexa9.inc
+include include/wandboard.inc
 
 SOC_FAMILY = "mx6:mx6q:wandboard"
 
-PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard"
-
 UBOOT_MACHINE = "wandboard_quad_config"
 
 KERNEL_DEVICETREE = "imx6q-wandboard.dtb"
 
-SERIAL_CONSOLE = "115200 ttymxc0"
-
-MACHINE_FEATURES += " pci wifi bluetooth"
+MACHINE_FEATURES += "bluetooth wifi"
 
 MACHINE_EXTRA_RRECOMMENDS += " broadcom-nvram-config"
conf/machine/wandboard-solo.conf +1 -8
index aad7876..9696aeb 100644
@@ -3,17 +3,10 @@
 #@SOC: i.MX6S
 #@DESCRIPTION: Machine configuration for i.MX6 Wandboard Solo
 
-include conf/machine/include/imx-base.inc
-include conf/machine/include/tune-cortexa9.inc
+include include/wandboard.inc
 
 SOC_FAMILY = "mx6:mx6s:wandboard"
 
-PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard"
-
 UBOOT_MACHINE = "wandboard_solo_config"
 
 KERNEL_DEVICETREE = "imx6dl-wandboard.dtb"
-
-SERIAL_CONSOLE = "115200 ttymxc0"
-
-MACHINE_FEATURES += " pci wifi"
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v3 2/2 wandboard.inc: add touchscreen support

---
 conf/machine/include/wandboard.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/wandboard.inc +1 -1
index dc64d89..5e83ad5 100644
@@ -7,4 +7,4 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard"
 
 SERIAL_CONSOLE = "115200 ttymxc0"
 
-MACHINE_FEATURES += "pci"
+MACHINE_FEATURES += "pci touchscreen"
Signature · 1 line
1.7.10.4
#2 lore raw

Re: [meta-fsl-arm-extra][PATCH v3 2/2] wandboard.inc: add touchscreen support

Hi Mario,

Quoted 10 lines · Mario Domenech Goulart
---
  conf/machine/include/wandboard.inc |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/wandboard.inc +0 -0
index dc64d89..5e83ad5 100644

conf/machine/include/wandboard.inc PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard" · line 10

Quoted 5 lines
conf/machine/include/wandboard.inc +1 -1
@@ -7,4 +7,4 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard"
 
  SERIAL_CONSOLE = "115200 ttymxc0"
 
-MACHINE_FEATURES += "pci"
+MACHINE_FEATURES += "pci touchscreen"

What does the touchscreen feature add? In the case of headless systems, how would a developer override this setting if they want to create an image without touch support? Would something like MACHINE_FEATURES_remove = "touchscreen" work?

#3 lore raw

Re: [meta-fsl-arm-extra][PATCH v3 2/2] wandboard.inc: add touchscreen support

Hello John,

Quoted 16 lines · John Weber

conf/machine/include/wandboard.inc PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard" · line 9

Quoted 10 lines · Mario Domenech Goulart
conf/machine/include/wandboard.inc +1 -0
index dc64d89..5e83ad5 100644
@@ -7,4 +7,4 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard"
    SERIAL_CONSOLE = "115200 ttymxc0"
  -MACHINE_FEATURES += "pci"
+MACHINE_FEATURES += "pci touchscreen"

What does the touchscreen feature add? In the case of headless systems, how would a developer override this setting if they want to create an image without touch support? Would something like MACHINE_FEATURES_remove = "touchscreen" work?

It allows calibration for the images which supports it. This so depends on the image it is uses.

The _remove is supported by bitbake so it does work.

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

Re: [meta-fsl-arm-extra][PATCH v3 2/2] wandboard.inc: add touchscreen support

Quoted 18 lines · Otavio Salvador

Hello John,

Quoted 15 lines · John Weber

conf/machine/include/wandboard.inc PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard" · line 9

Quoted 10 lines · Mario Domenech Goulart
conf/machine/include/wandboard.inc +1 -0
index dc64d89..5e83ad5 100644
@@ -7,4 +7,4 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard"
     SERIAL_CONSOLE = "115200 ttymxc0"
   -MACHINE_FEATURES += "pci"
+MACHINE_FEATURES += "pci touchscreen"

What does the touchscreen feature add? In the case of headless systems, how would a developer override this setting if they want to create an image without touch support? Would something like MACHINE_FEATURES_remove = "touchscreen" work?

Quoted 5 lines

It allows calibration for the images which supports it. This so depends on the image it is uses.

The _remove is supported by bitbake so it does work.

OK. No problem. Thanks.

#5 lore raw

Re: [meta-fsl-arm-extra][PATCH v3 2/2] wandboard.inc: add touchscreen support

In reply to Mario Domenech Goulart

Hi Mario,

Quoted 10 lines · Mario Domenech Goulart
---
 conf/machine/include/wandboard.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/wandboard.inc +0 -0
index dc64d89..5e83ad5 100644

conf/machine/include/wandboard.inc PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard" · line 10

Quoted 5 lines
conf/machine/include/wandboard.inc +1 -1
@@ -7,4 +7,4 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard"
 
 SERIAL_CONSOLE = "115200 ttymxc0"
 
-MACHINE_FEATURES += "pci"
+MACHINE_FEATURES += "pci touchscreen"

where is the touchscreen interface on the wandboard ?

Eric

#6 lore raw

Re: [meta-fsl-arm-extra][PATCH v3 2/2] wandboard.inc: add touchscreen support

Hello Eric,

Quoted 14 lines · Eric Bénard
Quoted 11 lines · Mario Domenech Goulart
---
 conf/machine/include/wandboard.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/wandboard.inc +0 -0
index dc64d89..5e83ad5 100644
@@ -7,4 +7,4 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard"
 
Quoted 6 lines

conf/machine/include/wandboard.inc PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard" · line 10

Quoted 4 lines
conf/machine/include/wandboard.inc +1 -1
 SERIAL_CONSOLE = "115200 ttymxc0"
 
-MACHINE_FEATURES += "pci"
+MACHINE_FEATURES += "pci touchscreen"

where is the touchscreen interface on the wandboard ?

This allow used with the adapters which provide support for it.

For reference, Future Eletronics provide one:

http://www.futureelectronics.com/en/technologies/development-tools/development-tool-hardware/Pages/9032471-FWBADAPT-7WVGA-PCAP.aspx?IM=0

This is the one we used for testing.

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

Re: [meta-fsl-arm-extra][PATCH v3 2/2] wandboard.inc: add touchscreen support

Quoted 24 lines · Otavio Salvador

Hello Eric,

Quoted 14 lines · Eric Bénard
Quoted 11 lines · Mario Domenech Goulart
---
 conf/machine/include/wandboard.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/wandboard.inc +0 -0
index dc64d89..5e83ad5 100644
@@ -7,4 +7,4 @@ PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard"
 
Quoted 6 lines

conf/machine/include/wandboard.inc PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard" · line 10

Quoted 4 lines
conf/machine/include/wandboard.inc +1 -1
 SERIAL_CONSOLE = "115200 ttymxc0"
 
-MACHINE_FEATURES += "pci"
+MACHINE_FEATURES += "pci touchscreen"

where is the touchscreen interface on the wandboard ?

Quoted 8 lines

This allow used with the adapters which provide support for it.

For reference, Future Eletronics provide one:

http://www.futureelectronics.com/en/technologies/development-tools/development-tool-hardware/Pages/9032471-FWBADAPT-7WVGA-PCAP.aspx?IM=0

This is the one we used for testing.

OK not really a wandboard.inc MACHINE_FEATURE then ;-)

Eric