Skip to contentSkip to conversation

New x86 Super BSP

RFC In review Ross Burton 2 participants 9 messages Jul 25, 2013 – Jul 29, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

This is a RFC and not for merging just yet. The goal is a BSP in meta-yocto-bsp to replace atom-pc that supports "most" comtempory x86 hardware. It starts off as atom-pc but adds more X drivers, more firmware, and more framebuffer kernel drivers. Next up, more network drivers, more open X drivers and [handwaves] stuff. The precise set of hardware that this is expected to mostly work on isn't settled on yet so feedback and boot testing is welcome.

Ross

#1 lore raw

PATCH 1/6 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..6318d60
@@ -0,0 +1,37 @@
+#@TYPE: Machine
+#@NAME: Atom-PC
+
+#@DESCRIPTION: Machine configuration for Intel Atom based PCs. Currently supported machines are the Asus eee901, Acer Aspire One, Toshiba NB305, and Intel BlackSand development board.
+
+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..bef4ce3
@@ -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/6 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/6 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 6318d60..2154943 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/6 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 2154943..572a480 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

Re: [PATCH 4/6] genericx86: disable rootless X

Quoted 2 lines · Ross Burton

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

Which drivers do you have in mind here? AFAICT this patch set / BSP only supports the i9x5 family of drivers out of the box, where this is not an issue. In this day and age rootless X should be the norm, not the exception, so I think it would be preferable to document the need to disable rootless X with any such substandard drivers rather than have a suboptimal lowest common denominator for the generic x86 machine.

Tomas

--
http://sleepfive.com

#6 lore raw

Re: [PATCH 4/6] genericx86: disable rootless X

Quoted 10 lines · Tomas Frydrych
Quoted 2 lines · Ross Burton

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

Which drivers do you have in mind here? AFAICT this patch set / BSP only supports the i9x5 family of drivers out of the box, where this is not an issue. In this day and age rootless X should be the norm, not the exception, so I think it would be preferable to document the need to disable rootless X with any such substandard drivers rather than have a suboptimal lowest common denominator for the generic x86 machine.

In X is supports Intel gen hardware directly, and anything that it has framebuffer or modesetting kernel drivers for (so anything with a plain vesa framebuffer *should* work).

There's also a big difference between running X as root and the session as root. I've been meaning for a long time to implement that split in the session scripts so that we're not by default running Sato as root, just the X server.

Ross

#7 lore raw

PATCH 5/6 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 572a480..fbe818c 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
#8 lore raw

PATCH 6/6 linux-yocto: enable more framebuffers on genericx86

In reply to Ross Burton
---
 meta-yocto-bsp/recipes-kernel/linux/files/framebuffers.cfg   |    5 +++++
 meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.8.bbappend |    3 +++
 2 files changed, 8 insertions(+)
 create mode 100644 meta-yocto-bsp/recipes-kernel/linux/files/framebuffers.cfg
meta-yocto-bsp/recipes-kernel/linux/files/framebuffers.cfg new file +5 -0
new file mode 100644
index 0000000..162e103
@@ -0,0 +1,5 @@
+CONFIG_FB_UVESA=m
+CONFIG_FB_EFI=m
+CONFIG_FB_NVIDIA=m
+CONFIG_FB_INTEL=m
+CONFIG_FB_RADEON=m
meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.8.bbappend +3 -0
index c4c005d..d660450 100644
@@ -18,3 +18,6 @@ COMPATIBLE_MACHINE_genericx86 = "genericx86"
 
 # routerstationpro has a flash size of 16mb
 KERNEL_IMAGE_MAXSIZE_routerstationpro = "16777216"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+SRC_URI_append_genericx86 = " file://framebuffers.cfg"
Signature · 1 line
1.7.10.4