Skip to contentSkip to conversation

genericx86 BSP

PATCH New Ross Burton 1 participant 6 messages Jul 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 genericx86 BSP

Hi,

This is a slightly tweaked version of my "super BSP" to replace atom-pc in the long-term. More kernel work is pending, but that can wait post-M3.

Ross

#1 lore raw

PATCH 1/5 genericx86: add new BSP

This BSP aims to support "most" contemporary x86 hardware. It's a direct copy of atom-pc initially.

---
 meta-yocto-bsp/conf/machine/genericx86.conf        |   37 +++++++++++
 .../formfactor/formfactor/genericx86/machconfig    |    6 ++
 .../packagegroup-core-tools-profile.bbappend       |    1 +
 .../uclibc/uclibc/genericx86/uClibc.machine        |   69 ++++++++++++++++++++
 .../packagegroup-core-sdk-gmae.bbappend            |    1 +
 ...egroup-core-standalone-gmae-sdk-target.bbappend |    1 +
 .../recipes-kernel/linux/linux-yocto_3.4.bbappend  |    3 +
 .../recipes-kernel/linux/linux-yocto_3.8.bbappend  |    3 +
 8 files changed, 121 insertions(+)
 create mode 100644 meta-yocto-bsp/conf/machine/genericx86.conf
 create mode 100644 meta-yocto-bsp/recipes-bsp/formfactor/formfactor/genericx86/machconfig
 create mode 100644 meta-yocto-bsp/recipes-core/uclibc/uclibc/genericx86/uClibc.machine
 create mode 100644 meta-yocto-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/genericx86/xorg.conf
meta-yocto-bsp/conf/machine/genericx86.conf new file +37 -0
new file mode 100644
index 0000000..5cb2b5b
@@ -0,0 +1,37 @@
+#@TYPE: Machine
+#@NAME: Generic X86.
+
+#@DESCRIPTION: Machine configuration for generic X86 (32-bit) PCs. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
+
+include conf/machine/include/tune-atom.inc
+
+MACHINE_FEATURES = "screen keyboard pci usbhost ext2 ext3 x86 wifi acpi alsa"
+
+KERNEL_IMAGETYPE = "bzImage"
+
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
+PREFERRED_VERSION_linux-yocto ?= "3.8%"
+PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
+XSERVER ?= "xserver-xorg \
+           xserver-xorg-extension-glx \
+           xf86-input-mouse \
+           xf86-input-keyboard \
+           xf86-input-evdev \
+           xf86-input-synaptics \
+           xf86-video-intel \
+           mesa-driver-i915 \
+           mesa-driver-i965"
+
+#MACHINE_EXTRA_RDEPENDS = "rt2860"
+
+MACHINE_EXTRA_RRECOMMENDS = "kernel-modules eee-acpi-scripts"
+
+IMAGE_FSTYPES ?= "ext3 cpio.gz live"
+
+APPEND += "usbcore.autosuspend=1"
+
+GLIBC_ADDONS = "nptl"
+
+EXTRA_OECONF_append_pn-matchbox-panel-2 = " --with-battery=acpi"
+
+ROOTLESS_X = "1"
meta-yocto-bsp/recipes-bsp/formfactor/formfactor/genericx86/machconfig new file +6 -0
new file mode 100644
index 0000000..a81a23b
@@ -0,0 +1,6 @@
+HAVE_TOUCHSCREEN=0
+HAVE_KEYBOARD=1
+
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+DISPLAY_DPI=133
meta-yocto-bsp/recipes-core/packagegroups/packagegroup-core-tools-profile.bbappend +1 -0
index 352c1f9..e3aa5e8 100644
@@ -1,2 +1,3 @@
 RDEPENDS_${PN}_append_atom-pc = " lttng-ust systemtap"
+RDEPENDS_${PN}_append_genericx86 = " lttng-ust systemtap"
 
meta-yocto-bsp/recipes-core/uclibc/uclibc/genericx86/uClibc.machine new file +69 -0

69 lines not on this page · raw message

meta-yocto-bsp/recipes-gnome/packagegroups/packagegroup-core-sdk-gmae.bbappend +1 -0
index 0105ade..d7de19f 100644
@@ -1 +1,2 @@
 SDK-EXTRAS_atom-pc ?= " lttng-ust-dev"
+SDK-EXTRAS_genericx86 ?= " lttng-ust-dev"
meta-yocto-bsp/recipes-gnome/packagegroups/packagegroup-core-standalone-gmae-sdk-target.bbappend +1 -0
index 0105ade..d7de19f 100644
@@ -1 +1,2 @@
 SDK-EXTRAS_atom-pc ?= " lttng-ust-dev"
+SDK-EXTRAS_genericx86 ?= " lttng-ust-dev"
meta-yocto-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config/genericx86/xorg.conf new file +0 -0
new file mode 100644
index 0000000..e69de29
meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend +3 -0
index 9e3efc9..c3d1290 100644
@@ -1,9 +1,11 @@
 KBRANCH_atom-pc  = "standard/common-pc/atom-pc"
+KBRANCH_genericx86  = "standard/common-pc/atom-pc"
 KBRANCH_routerstationpro = "standard/routerstationpro"
 KBRANCH_mpc8315e-rdb = "standard/fsl-mpc8315e-rdb"
 KBRANCH_beagleboard = "standard/beagleboard"
 
 SRCREV_machine_atom-pc ?= "cdd7a546922ca1c46c94adeec3b9c90dc9aaad2d"
+SRCREV_machine_genericx86 ?= "cdd7a546922ca1c46c94adeec3b9c90dc9aaad2d"
 SRCREV_machine_routerstationpro ?= "62b86dc8ac794cd97c61a99418d7429e6a83ec1a"
 SRCREV_machine_mpc8315e-rdb ?= "b2f78892b3ff6cc940e4661f7b2017a73b289c73"
 SRCREV_machine_beagleboard ?= "cdd7a546922ca1c46c94adeec3b9c90dc9aaad2d"
@@ -12,6 +14,7 @@ COMPATIBLE_MACHINE_mpc8315e-rdb = "mpc8315e-rdb"
 COMPATIBLE_MACHINE_routerstationpro = "routerstationpro"
 COMPATIBLE_MACHINE_beagleboard = "beagleboard"
 COMPATIBLE_MACHINE_atom-pc = "atom-pc"
+COMPATIBLE_MACHINE_genericx86 = "genericx86"
 
 # routerstationpro has a flash size of 16mb
 KERNEL_IMAGE_MAXSIZE_append_routerstationpro = "16777216"
meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.8.bbappend +3 -0
index 0686d4b..c4c005d 100644
@@ -1,9 +1,11 @@
 KBRANCH_atom-pc  = "standard/common-pc/atom-pc"
+KBRANCH_genericx86  = "standard/common-pc/atom-pc"
 KBRANCH_routerstationpro = "standard/routerstationpro"
 KBRANCH_mpc8315e-rdb = "standard/fsl-mpc8315e-rdb"
 KBRANCH_beagleboard = "standard/beagleboard"
 
 SRCREV_machine_atom-pc ?= "f20047520a57322f05d95a18a5fbd082fb15cb87"
+SRCREV_machine_genericx86 ?= "f20047520a57322f05d95a18a5fbd082fb15cb87"
 SRCREV_machine_routerstationpro ?= "4a94f39d429fa284ce69b13bb635b29b1319e372"
 SRCREV_machine_mpc8315e-rdb ?= "f467c72937de0e4a2a66e21b9855c4aee844f936"
 SRCREV_machine_beagleboard ?= "f20047520a57322f05d95a18a5fbd082fb15cb87"
@@ -12,6 +14,7 @@ COMPATIBLE_MACHINE_mpc8315e-rdb = "mpc8315e-rdb"
 COMPATIBLE_MACHINE_routerstationpro = "routerstationpro"
 COMPATIBLE_MACHINE_beagleboard = "beagleboard"
 COMPATIBLE_MACHINE_atom-pc = "atom-pc"
+COMPATIBLE_MACHINE_genericx86 = "genericx86"
 
 # routerstationpro has a flash size of 16mb
 KERNEL_IMAGE_MAXSIZE_routerstationpro = "16777216"
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 2/5 local.conf.sample: add genericx86 reference

In reply to Ross Burton
---
 meta-yocto/conf/local.conf.sample |    1 +
 1 file changed, 1 insertion(+)
meta-yocto/conf/local.conf.sample +1 -0
index 2d89282..b6c26d5 100644
@@ -44,6 +44,7 @@
 #
 #MACHINE ?= "atom-pc"
 #MACHINE ?= "beagleboard"
+#MACHINE ?= "genericx86"
 #MACHINE ?= "mpc8315e-rdb"
 #MACHINE ?= "routerstationpro"
 #
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH 3/5 genericx86: add fbdev, modesettings and vesa Xorg drivers

In reply to Ross Burton

This should ensure that X can start on more hardware. The range of hardware is still small as the atom-pc kernel only has limited framebuffer devices currently (e.g. no nVidia).

---
 meta-yocto-bsp/conf/machine/genericx86.conf |    3 +++
 1 file changed, 3 insertions(+)
meta-yocto-bsp/conf/machine/genericx86.conf +3 -0
index 5cb2b5b..19f5f75 100644
@@ -18,6 +18,9 @@ XSERVER ?= "xserver-xorg \
            xf86-input-keyboard \
            xf86-input-evdev \
            xf86-input-synaptics \
+           xf86-video-fbdev \
+           xf86-video-modesetting \
+           xf86-video-vesa \
            xf86-video-intel \
            mesa-driver-i915 \
            mesa-driver-i965"
Signature · 1 line
1.7.10.4
#4 lore raw

PATCH 4/5 genericx86: disable rootless X

In reply to Ross Burton

Not all video drivers support rootless X and this BSP aims to have broader support than atom-pc.

---
 meta-yocto-bsp/conf/machine/genericx86.conf |    2 --
 1 file changed, 2 deletions(-)
meta-yocto-bsp/conf/machine/genericx86.conf +0 -2
index 19f5f75..e37f3662 100644
@@ -36,5 +36,3 @@ APPEND += "usbcore.autosuspend=1"
 GLIBC_ADDONS = "nptl"
 
 EXTRA_OECONF_append_pn-matchbox-panel-2 = " --with-battery=acpi"
-
-ROOTLESS_X = "1"
Signature · 1 line
1.7.10.4
#5 lore raw

PATCH 5/5 genericx86: ship all the driver firmware by default

In reply to Ross Burton

By shipping all firmware, hopefully more hardware will work out of the box.

---
 meta-yocto-bsp/conf/machine/genericx86.conf |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericx86.conf +1 -1
index e37f3662..88464fa 100644
@@ -27,7 +27,7 @@ XSERVER ?= "xserver-xorg \
 
 #MACHINE_EXTRA_RDEPENDS = "rt2860"
 
-MACHINE_EXTRA_RRECOMMENDS = "kernel-modules eee-acpi-scripts"
+MACHINE_EXTRA_RRECOMMENDS = "kernel-modules eee-acpi-scripts linux-firmware"
 
 IMAGE_FSTYPES ?= "ext3 cpio.gz live"
 
Signature · 1 line
1.7.10.4