[meta-intel] [PATCH 26/31] machinesetuptool: add crownbay machine config to the intel-core2-32 BSP
nitin.a.kamble at intel.com
nitin.a.kamble at intel.com
Thu Sep 18 17:35:46 PDT 2014
From: Nitin A Kamble <nitin.a.kamble at intel.com>
Add machine configuration for the Crownbay platform in the intel-core2-32 BSP image.
Signed-off-by: Nitin A Kamble <nitin.a.kamble at intel.com>
---
.../intel-core2-32/crownbay-noemgd-alsa.conf | 1 +
.../intel-core2-32/crownbay-noemgd-alsa.state | 684 +++++++++++++++++++++
.../crownbay-noemgd-formfactor.machconfig | 3 +
.../crownbay-noemgd-network.interfaces | 31 +
.../intel-core2-32/crownbay-noemgd.vars | 14 +
.../machinesetuptool/machinesetuptool_git.bbappend | 11 +-
6 files changed, 743 insertions(+), 1 deletion(-)
create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-alsa.conf
create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-alsa.state
create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-formfactor.machconfig
create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-network.interfaces
create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd.vars
diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-alsa.conf b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-alsa.conf
new file mode 100644
index 0000000..03653cf
--- /dev/null
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-alsa.conf
@@ -0,0 +1 @@
+# Global alsa-lib configuration
diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-alsa.state b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-alsa.state
new file mode 100644
index 0000000..bd57679
--- /dev/null
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-alsa.state
@@ -0,0 +1,684 @@
+state.MID {
+ control.1 {
+ iface MIXER
+ name 'Front Playback Volume'
+ value.0 31
+ value.1 31
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 31'
+ dbmin -4650
+ dbmax 0
+ dbvalue.0 0
+ dbvalue.1 0
+ }
+ }
+ control.2 {
+ iface MIXER
+ name 'Front Playback Switch'
+ value.0 true
+ value.1 true
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 2
+ }
+ }
+ control.3 {
+ iface MIXER
+ name 'Surround Playback Volume'
+ value.0 31
+ value.1 31
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 31'
+ dbmin -4650
+ dbmax 0
+ dbvalue.0 0
+ dbvalue.1 0
+ }
+ }
+ control.4 {
+ iface MIXER
+ name 'Surround Playback Switch'
+ value.0 true
+ value.1 true
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 2
+ }
+ }
+ control.5 {
+ iface MIXER
+ name 'Center Playback Volume'
+ value 31
+ comment {
+ access 'read write'
+ type INTEGER
+ count 1
+ range '0 - 31'
+ dbmin -4650
+ dbmax 0
+ dbvalue.0 0
+ }
+ }
+ control.6 {
+ iface MIXER
+ name 'LFE Playback Volume'
+ value 31
+ comment {
+ access 'read write'
+ type INTEGER
+ count 1
+ range '0 - 31'
+ dbmin -4650
+ dbmax 0
+ dbvalue.0 0
+ }
+ }
+ control.7 {
+ iface MIXER
+ name 'Center Playback Switch'
+ value true
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.8 {
+ iface MIXER
+ name 'LFE Playback Switch'
+ value true
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.9 {
+ iface MIXER
+ name 'Side Playback Volume'
+ value.0 31
+ value.1 31
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 31'
+ dbmin -4650
+ dbmax 0
+ dbvalue.0 0
+ dbvalue.1 0
+ }
+ }
+ control.10 {
+ iface MIXER
+ name 'Side Playback Switch'
+ value.0 true
+ value.1 true
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 2
+ }
+ }
+ control.11 {
+ iface MIXER
+ name 'Headphone Playback Volume'
+ value.0 31
+ value.1 31
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 31'
+ dbmin -4650
+ dbmax 0
+ dbvalue.0 0
+ dbvalue.1 0
+ }
+ }
+ control.12 {
+ iface MIXER
+ name 'Headphone Playback Switch'
+ value.0 true
+ value.1 true
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 2
+ }
+ }
+ control.13 {
+ iface MIXER
+ name 'Rear Mic Playback Volume'
+ value.0 0
+ value.1 0
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 31'
+ dbmin -3450
+ dbmax 1200
+ dbvalue.0 -3450
+ dbvalue.1 -3450
+ }
+ }
+ control.14 {
+ iface MIXER
+ name 'Rear Mic Playback Switch'
+ value.0 false
+ value.1 false
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 2
+ }
+ }
+ control.15 {
+ iface MIXER
+ name 'Front Mic Playback Volume'
+ value.0 0
+ value.1 0
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 31'
+ dbmin -3450
+ dbmax 1200
+ dbvalue.0 -3450
+ dbvalue.1 -3450
+ }
+ }
+ control.16 {
+ iface MIXER
+ name 'Front Mic Playback Switch'
+ value.0 false
+ value.1 false
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 2
+ }
+ }
+ control.17 {
+ iface MIXER
+ name 'Line Playback Volume'
+ value.0 0
+ value.1 0
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 31'
+ dbmin -3450
+ dbmax 1200
+ dbvalue.0 -3450
+ dbvalue.1 -3450
+ }
+ }
+ control.18 {
+ iface MIXER
+ name 'Line Playback Switch'
+ value.0 false
+ value.1 false
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 2
+ }
+ }
+ control.19 {
+ iface MIXER
+ name 'CD Playback Volume'
+ value.0 0
+ value.1 0
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 31'
+ dbmin -3450
+ dbmax 1200
+ dbvalue.0 -3450
+ dbvalue.1 -3450
+ }
+ }
+ control.20 {
+ iface MIXER
+ name 'CD Playback Switch'
+ value.0 false
+ value.1 false
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 2
+ }
+ }
+ control.21 {
+ iface MIXER
+ name 'Auto-Mute Mode'
+ value Enabled
+ comment {
+ access 'read write'
+ type ENUMERATED
+ count 1
+ item.0 Disabled
+ item.1 Enabled
+ }
+ }
+ control.22 {
+ iface MIXER
+ name 'Input Source'
+ value 'Rear Mic'
+ comment {
+ access 'read write'
+ type ENUMERATED
+ count 1
+ item.0 'Rear Mic'
+ item.1 'Front Mic'
+ item.2 Line
+ item.3 CD
+ }
+ }
+ control.23 {
+ iface MIXER
+ name 'Input Source'
+ index 1
+ value 'Rear Mic'
+ comment {
+ access 'read write'
+ type ENUMERATED
+ count 1
+ item.0 'Rear Mic'
+ item.1 'Front Mic'
+ item.2 Line
+ item.3 CD
+ }
+ }
+ control.24 {
+ iface MIXER
+ name 'Capture Volume'
+ value.0 19
+ value.1 19
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 31'
+ dbmin -1650
+ dbmax 3000
+ dbvalue.0 1200
+ dbvalue.1 1200
+ }
+ }
+ control.25 {
+ iface MIXER
+ name 'Capture Switch'
+ value.0 true
+ value.1 true
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 2
+ }
+ }
+ control.26 {
+ iface MIXER
+ name 'Capture Volume'
+ index 1
+ value.0 0
+ value.1 0
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 31'
+ dbmin -1650
+ dbmax 3000
+ dbvalue.0 -1650
+ dbvalue.1 -1650
+ }
+ }
+ control.27 {
+ iface MIXER
+ name 'Capture Switch'
+ index 1
+ value.0 false
+ value.1 false
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 2
+ }
+ }
+ control.28 {
+ iface MIXER
+ name 'Rear Mic Boost Volume'
+ value.0 0
+ value.1 0
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 3'
+ dbmin 0
+ dbmax 3000
+ dbvalue.0 0
+ dbvalue.1 0
+ }
+ }
+ control.29 {
+ iface MIXER
+ name 'Front Mic Boost Volume'
+ value.0 0
+ value.1 0
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 3'
+ dbmin 0
+ dbmax 3000
+ dbvalue.0 0
+ dbvalue.1 0
+ }
+ }
+ control.30 {
+ iface MIXER
+ name 'Line Boost Volume'
+ value.0 0
+ value.1 0
+ comment {
+ access 'read write'
+ type INTEGER
+ count 2
+ range '0 - 3'
+ dbmin 0
+ dbmax 3000
+ dbvalue.0 0
+ dbvalue.1 0
+ }
+ }
+ control.31 {
+ iface MIXER
+ name 'IEC958 Playback Con Mask'
+ value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+ comment {
+ access read
+ type IEC958
+ count 1
+ }
+ }
+ control.32 {
+ iface MIXER
+ name 'IEC958 Playback Pro Mask'
+ value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+ comment {
+ access read
+ type IEC958
+ count 1
+ }
+ }
+ control.33 {
+ iface MIXER
+ name 'IEC958 Playback Default'
+ value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+ comment {
+ access 'read write'
+ type IEC958
+ count 1
+ }
+ }
+ control.34 {
+ iface MIXER
+ name 'IEC958 Playback Switch'
+ value false
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.35 {
+ iface MIXER
+ name 'IEC958 Default PCM Playback Switch'
+ value true
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.36 {
+ iface MIXER
+ name 'IEC958 Capture Switch'
+ value false
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.37 {
+ iface MIXER
+ name 'IEC958 Capture Default'
+ value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+ comment {
+ access read
+ type IEC958
+ count 1
+ }
+ }
+ control.38 {
+ iface MIXER
+ name 'Master Playback Volume'
+ value 17
+ comment {
+ access 'read write'
+ type INTEGER
+ count 1
+ range '0 - 31'
+ dbmin -4650
+ dbmax 0
+ dbvalue.0 -2100
+ }
+ }
+ control.39 {
+ iface MIXER
+ name 'Master Playback Switch'
+ value true
+ comment {
+ access 'read write'
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.40 {
+ iface CARD
+ name 'Rear Mic Jack'
+ value false
+ comment {
+ access read
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.41 {
+ iface CARD
+ name 'Front Mic Jack'
+ value false
+ comment {
+ access read
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.42 {
+ iface CARD
+ name 'Line Jack'
+ value false
+ comment {
+ access read
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.43 {
+ iface CARD
+ name 'CD Phantom Jack'
+ value true
+ comment {
+ access read
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.44 {
+ iface CARD
+ name 'Line Out Front Jack'
+ value true
+ comment {
+ access read
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.45 {
+ iface CARD
+ name 'Line Out Surround Jack'
+ value false
+ comment {
+ access read
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.46 {
+ iface CARD
+ name 'Line Out CLFE Jack'
+ value false
+ comment {
+ access read
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.47 {
+ iface CARD
+ name 'Line Out Side Jack'
+ value false
+ comment {
+ access read
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.48 {
+ iface CARD
+ name 'Front Headphone Jack'
+ value false
+ comment {
+ access read
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.49 {
+ iface CARD
+ name 'SPDIF Phantom Jack'
+ value true
+ comment {
+ access read
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.50 {
+ iface CARD
+ name 'SPDIF In Phantom Jack'
+ value true
+ comment {
+ access read
+ type BOOLEAN
+ count 1
+ }
+ }
+ control.51 {
+ iface PCM
+ name 'Playback Channel Map'
+ value.0 0
+ value.1 0
+ value.2 0
+ value.3 0
+ value.4 0
+ value.5 0
+ value.6 0
+ value.7 0
+ comment {
+ access read
+ type INTEGER
+ count 8
+ range '0 - 36'
+ }
+ }
+ control.52 {
+ iface PCM
+ name 'Capture Channel Map'
+ value.0 0
+ value.1 0
+ comment {
+ access read
+ type INTEGER
+ count 2
+ range '0 - 36'
+ }
+ }
+ control.53 {
+ iface PCM
+ device 1
+ name 'Playback Channel Map'
+ value.0 0
+ value.1 0
+ comment {
+ access read
+ type INTEGER
+ count 2
+ range '0 - 36'
+ }
+ }
+ control.54 {
+ iface PCM
+ device 1
+ name 'Capture Channel Map'
+ value.0 0
+ value.1 0
+ comment {
+ access read
+ type INTEGER
+ count 2
+ range '0 - 36'
+ }
+ }
+ control.55 {
+ iface PCM
+ device 2
+ name 'Capture Channel Map'
+ value.0 0
+ value.1 0
+ comment {
+ access read
+ type INTEGER
+ count 2
+ range '0 - 36'
+ }
+ }
+}
diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-formfactor.machconfig b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-formfactor.machconfig
new file mode 100644
index 0000000..ffce012
--- /dev/null
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-formfactor.machconfig
@@ -0,0 +1,3 @@
+# Assume a USB mouse and keyboard are connected
+HAVE_TOUCHSCREEN=0
+HAVE_KEYBOARD=1
diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-network.interfaces b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-network.interfaces
new file mode 100644
index 0000000..0acf4cf
--- /dev/null
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd-network.interfaces
@@ -0,0 +1,31 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Wireless interfaces
+iface wlan0 inet dhcp
+ wireless_mode managed
+ wireless_essid any
+ wpa-driver wext
+ wpa-conf /etc/wpa_supplicant.conf
+
+iface atml0 inet dhcp
+
+# Wired or wireless interfaces
+auto eth0
+iface eth0 inet dhcp
+iface eth1 inet dhcp
+
+# Ethernet/RNDIS gadget (g_ether)
+# ... or on host side, usbnet and random hwaddr
+iface usb0 inet static
+ address 192.168.7.2
+ netmask 255.255.255.0
+ network 192.168.7.0
+ gateway 192.168.7.1
+
+# Bluetooth networking
+iface bnep0 inet dhcp
+
diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd.vars b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd.vars
new file mode 100644
index 0000000..64f27d8
--- /dev/null
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay-noemgd.vars
@@ -0,0 +1,14 @@
+FORMFACTOR_FILE="crownbay-noemgd-formfactor.machconfig"
+ALSA_CONFIG_FILE="crownbay-noemgd-alsa.conf"
+ALSA_STATE_FILE="crownbay-noemgd-alsa.state"
+XORG_CONFIG_FILE=""
+NETWORK_INTERFACES_FILE="crownbay-noemgd-network.interfaces"
+AUTOLOAD_KERNEL_MODULES=""
+PROHIBIT_KERNEL_MODULES=""
+EXTRA_KERNEL_PARAMETERS="console=ttyS0,115200 console=tty0 video=vesafb vga=0x318"
+SYSLINUX_SERIAL_CONFIG="SERIAL 0 115200"
+GRUB_SERIAL_CONFIG=""
+GETTY_SERIAL_CONSOLES="115200;ttyS0"
+SETUP_SCRIPTS=""
+BOOT_SCRIPTS=""
+REBOOT_AFTER_SETUP="no"
diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend b/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend
index 7fc1147..256d9a5 100644
--- a/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend
@@ -12,10 +12,11 @@ MACHINE_CONFIG_FILES_intel-corei7-64 = " \
DEFAULT_MACHINE_SELECTION_intel-core2-32 = "emenlow-noemgd"
-SUPPORTED_MACHINES_intel-core2-32 = "emenlow-noemgd"
+SUPPORTED_MACHINES_intel-core2-32 = "emenlow-noemg crownbay-noemgdd"
MACHINE_CONFIG_FILES_intel-core2-32 = " \
${EMENLOW-NOEMGD_MACHINE_CONFIG_FILES} \
+ ${CROWNBAY-NOEMGD_MACHINE_CONFIG_FILES} \
"
NUC_MACHINE_CONFIG_FILES = " \
@@ -50,3 +51,11 @@ EMENLOW-NOEMGD_MACHINE_CONFIG_FILES = " \
emenlow-noemgd-network.interfaces \
emenlow-noemgd-xorg.conf \
"
+
+CROWNBAY-NOEMGD_MACHINE_CONFIG_FILES = " \
+ crownbay-noemgd.vars \
+ crownbay-noemgd-formfactor.machconfig \
+ crownbay-noemgd-alsa.conf \
+ crownbay-noemgd-alsa.state \
+ crownbay-noemgd-network.interfaces \
+ "
--
1.8.1.4
More information about the meta-intel
mailing list