[oe] [PATCH] linux_2.6.38: update support for PcontrolG20 HW rev 2

Peter Gsellmann pgsellmann at portner-elektronik.at
Mon May 16 13:47:55 UTC 2011


Hi Eric!
Patch is based on 34cb3c31bfd81035870a8242850884edac80aa11

Am Montag 16 Mai 2011, 12:29:32 schrieb Eric Bénard:
> Hi Peter,
> 
> On 16/05/2011 11:55, Peter Gsellmann wrote:
> > Am Samstag 14 Mai 2011, 19:06:24 schrieb Eric Bénard:
> >> On 29/04/2011 11:45, Peter Gsellmann wrote:
> >>> All prototypes hardware rev 1 are drawn back
> >>> so default should be rev 2
> >>>
> >>> Signed-off-by: Peter Gsellmann<pgsellmann at portner-elektronik.at>
> >>> ---
> >>>    recipes/linux/linux-2.6.38/pcontrolg20/defconfig   | 1761 ++++++++++++++++++++
> >>>    .../pcontrolg20/pcontrolg20_2.6.38.patch           |  235 +++
> >>>    recipes/linux/linux_2.6.38.bb                      |    2 +
> >>>    3 files changed, 1998 insertions(+), 0 deletions(-)
> >>>    create mode 100644 recipes/linux/linux-2.6.38/pcontrolg20/defconfig
> >>>    create mode 100644 recipes/linux/linux-2.6.38/pcontrolg20/pcontrolg20_2.6.38.patch
> >>>
> >> I applied this patch and tried to build the kernel but it seems there is no
> >> machine definition for pcontrolg20 : can you please resend a patch serie to
> >> add the kernel support and the machine conf file.
> > the machine configuration for pcontrolg20 is still not in a stable state:
> > At least the kernel patch is stable, but for the at91bootstrap i have made changes for lowlevel initialization and memory detection which i have to bring in sync with mainline; right now my at91bootstrap patch looks ugly and would be rejected deservedly.
> > Same is for U-boot. I patched a specific git-revision with a number of additional commands i need for factory testing.
> > Even worse, the perpetual discussions about kernel relocation/decompression convinced me to evaluate alternatives like barebox.
> >
> good choice ;-)
> 
> > So my ToDo-list is:
> > (*) commit kernel.patch
> > * commit at91bootstrap.patch
> > * commit U-boot or Barebox patches
> > * commit conf/machine/pcontrolg20.conf
> > * commit recipes/pcontrolg20-image.bb
> >
> > If its ok for you this would be the first commit.
> >
> > I could commit the pcontrolg20.conf also, but the entries for at91boosttrap and u-boot would be commented out.
> 
> yes a kernel recipe without the machine conf file can't be tested : please 
> send the 2 patches (kernel + conf file), then you will be able to add entries 
> for at91bootstrap & u-boot to the conf file later when you add the support for 
> you board in their respective recipes.

From 69cc3b9bcef7534a18dc780506e5678e0538eb58 Mon Sep 17 00:00:00 2001
From: Peter Gsellmann <pgsellmann at portner-elektronik.at>
Date: Mon, 16 May 2011 12:01:43 +0200
Subject: [PATCH] adding machine PControlG20

This is a no-screen machine.
Featuring NV-RAM, Isolated RS485 (Modbus-RTU), Ethernet switch, ...

Signed-off-by: Peter Gsellmann <pgsellmann at portner-elektronik.at>
---
 conf/machine/pcontrolg20.conf |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)
 create mode 100644 conf/machine/pcontrolg20.conf

diff --git a/conf/machine/pcontrolg20.conf b/conf/machine/pcontrolg20.conf
new file mode 100644
index 0000000..9710de9
--- /dev/null
+++ b/conf/machine/pcontrolg20.conf
@@ -0,0 +1,39 @@
+#@TYPE: Machine
+#@Name: PControl G20
+#@DESCRIPTION: Machine configuration for the PControl_G20 with Taskit Stamp9g20.
+
+TARGET_ARCH = "arm"
+
+MACHINE_FEATURES = "kernel26 ext2 ethernet serial mmc"
+MACHINE_FEATURES += "usbhost usbgadget"
+
+GUI_MACHINE_CLASS = "noscreen"
+
+PREFERRED_PROVIDER_virtual/kernel = "linux"
+
+MACHINE_EXTRA_RRECOMMENDS = " \
+    "
+
+PREFERRED_PROVIDER_xserver = "xserver-kdrive"
+
+KERNEL_IMAGETYPE = "uImage"
+
+PREFERRED_PROVIDER_classpath = "classpath-minimal"
+PREFERRED_PROVIDER_virtual/java-initial = "jamvm-initial"
+
+#don't try to access tty1
+USE_VT = "0"
+
+SERIAL_CONSOLE = "115200 ttyS0"
+
+IMAGE_FSTYPES = "tar.gz jffs2"
+
+IMAGE_ROOTFS_SIZE = "1927168"
+
+module_autoload_plat_ram   = "plat_ram"
+module_autoload_uio_pdrv   = "uio_pdrv"
+module_autoload_w1_gpio    = "w1_gpio"
+module_autoload_i2c_gpio   = "i2c_gpio"
+module_autoload_g_ether    = "g_ether"
+
+require conf/machine/include/tune-arm926ejs.inc
-- 
1.7.2.3






More information about the Openembedded-devel mailing list