* [PATCH 1/2] sarge-at91: fix kernel build
@ 2010-11-23 16:53 Eric Bénard
2010-11-23 16:53 ` [PATCH 2/2] mx31ads: make linux 2.6.36 compile Eric Bénard
0 siblings, 1 reply; 3+ messages in thread
From: Eric Bénard @ 2010-11-23 16:53 UTC (permalink / raw)
To: openembedded-devel
without this fix, the kernel can't build for sarge-at91,
tested with angstrom-2010.x and minimal distros.
http://tinderbox.openembedded.net/public/logs/task/10846611.txt
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
recipes/linux/linux-2.6.21/sumversionfix.patch | 12 ++++++++++++
recipes/linux/linux_2.6.21.bb | 1 +
2 files changed, 13 insertions(+), 0 deletions(-)
create mode 100644 recipes/linux/linux-2.6.21/sumversionfix.patch
diff --git a/recipes/linux/linux-2.6.21/sumversionfix.patch b/recipes/linux/linux-2.6.21/sumversionfix.patch
new file mode 100644
index 0000000..78461cb
--- /dev/null
+++ b/recipes/linux/linux-2.6.21/sumversionfix.patch
@@ -0,0 +1,12 @@
+diff --git a/scripts/mod/sumversion.c b/scripts/mod/sumversion.c
+index 8a28756..bd2981b 100644
+--- a/scripts/mod/sumversion.c
++++ b/scripts/mod/sumversion.c
+@@ -7,6 +7,7 @@
+ #include <ctype.h>
+ #include <errno.h>
+ #include <string.h>
++#include <linux/limits.h>
+ #include "modpost.h"
+
+ /*
diff --git a/recipes/linux/linux_2.6.21.bb b/recipes/linux/linux_2.6.21.bb
index 4aefbd1..97a6c03 100644
--- a/recipes/linux/linux_2.6.21.bb
+++ b/recipes/linux/linux_2.6.21.bb
@@ -12,6 +12,7 @@ SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2;name=ke
file://tsc2003.c \
file://tsc2003-config.diff \
file://defconfig \
+ file://sumversionfix.patch \
"
SRC_URI_append_simpad = "\
--
1.6.3.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] mx31ads: make linux 2.6.36 compile
2010-11-23 16:53 [PATCH 1/2] sarge-at91: fix kernel build Eric Bénard
@ 2010-11-23 16:53 ` Eric Bénard
2010-11-23 17:06 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Eric Bénard @ 2010-11-23 16:53 UTC (permalink / raw)
To: openembedded-devel
and set this kernel as default version for now.
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
.../mx31ads/0001-add-missing-include.patch | 52 ++++++++++++++++++++
recipes/linux/linux_2.6.36.bb | 3 +
2 files changed, 55 insertions(+), 0 deletions(-)
create mode 100644 recipes/linux/linux-2.6.36/mx31ads/0001-add-missing-include.patch
diff --git a/recipes/linux/linux-2.6.36/mx31ads/0001-add-missing-include.patch b/recipes/linux/linux-2.6.36/mx31ads/0001-add-missing-include.patch
new file mode 100644
index 0000000..c76b987
--- /dev/null
+++ b/recipes/linux/linux-2.6.36/mx31ads/0001-add-missing-include.patch
@@ -0,0 +1,52 @@
+From d123b6ce668fe331c31c504e8d611d0cf7f48a39 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com>
+Date: Mon, 22 Nov 2010 21:37:50 +0100
+Subject: [PATCH] add missing include
+
+---
+ arch/arm/plat-mxc/include/mach/board-mx31ads.h | 33 +++++++++++++++++++++++++++++
+ 1 files changed, 33 insertions(+), 0 deletions(-)
+ create mode 100644 arch/arm/plat-mxc/include/mach/board-mx31ads.h
+
+diff --git a/arch/arm/plat-mxc/include/mach/board-mx31ads.h b/arch/arm/plat-mxc/include/mach/board-mx31ads.h
+new file mode 100644
+index 0000000..94b60dd
+--- /dev/null
++++ b/arch/arm/plat-mxc/include/mach/board-mx31ads.h
+@@ -0,0 +1,33 @@
++/*
++ * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved.
++ */
++
++/*
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License version 2 as
++ * published by the Free Software Foundation.
++ */
++
++#ifndef __ASM_ARCH_MXC_BOARD_MX31ADS_H__
++#define __ASM_ARCH_MXC_BOARD_MX31ADS_H__
++
++#include <mach/hardware.h>
++
++/*
++ * These symbols are used by drivers/net/cs89x0.c.
++ * This is ugly as hell, but we have to provide them until
++ * someone fixed the driver.
++ */
++
++/* Base address of PBC controller */
++#define PBC_BASE_ADDRESS MX31_CS4_BASE_ADDR_VIRT
++/* Offsets for the PBC Controller register */
++
++/* Ethernet Controller IO base address */
++#define PBC_CS8900A_IOBASE 0x020000
++
++#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START)
++
++#define EXPIO_INT_ENET_INT (MXC_EXP_IO_BASE + 8)
++
++#endif /* __ASM_ARCH_MXC_BOARD_MX31ADS_H__ */
+--
+1.7.2.3
+
diff --git a/recipes/linux/linux_2.6.36.bb b/recipes/linux/linux_2.6.36.bb
index d15dcee..a395c04 100644
--- a/recipes/linux/linux_2.6.36.bb
+++ b/recipes/linux/linux_2.6.36.bb
@@ -2,9 +2,12 @@ require linux.inc
# Mark archs/machines that this kernel supports
DEFAULT_PREFERENCE = "-1"
+DEFAULT_PREFERENCE_mx31ads = "1"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/${P}.tar.bz2;name=kernel \
file://defconfig "
+SRC_URI_append_mx31ads = "file://0001-add-missing-include.patch"
+
SRC_URI[kernel.md5sum] = "61f3739a73afb6914cb007f37fb09b62"
SRC_URI[kernel.sha256sum] = "15a076d1a435a6bf8e92834eba4b390b4ec094ce06d47f89d071ca9e5788ce04"
--
1.6.3.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] mx31ads: make linux 2.6.36 compile
2010-11-23 16:53 ` [PATCH 2/2] mx31ads: make linux 2.6.36 compile Eric Bénard
@ 2010-11-23 17:06 ` Khem Raj
0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2010-11-23 17:06 UTC (permalink / raw)
To: openembedded-devel
On Tue, Nov 23, 2010 at 8:53 AM, Eric Bénard <eric@eukrea.com> wrote:
> and set this kernel as default version for now.
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
looks ok
Acked-by: Khem Raj <raj.khem@gmail.com>
> ---
> .../mx31ads/0001-add-missing-include.patch | 52 ++++++++++++++++++++
> recipes/linux/linux_2.6.36.bb | 3 +
> 2 files changed, 55 insertions(+), 0 deletions(-)
> create mode 100644 recipes/linux/linux-2.6.36/mx31ads/0001-add-missing-include.patch
>
> diff --git a/recipes/linux/linux-2.6.36/mx31ads/0001-add-missing-include.patch b/recipes/linux/linux-2.6.36/mx31ads/0001-add-missing-include.patch
> new file mode 100644
> index 0000000..c76b987
> --- /dev/null
> +++ b/recipes/linux/linux-2.6.36/mx31ads/0001-add-missing-include.patch
> @@ -0,0 +1,52 @@
> +From d123b6ce668fe331c31c504e8d611d0cf7f48a39 Mon Sep 17 00:00:00 2001
> +From: =?UTF-8?q?Eric=20B=C3=A9nard?= <eric@eukrea.com>
> +Date: Mon, 22 Nov 2010 21:37:50 +0100
> +Subject: [PATCH] add missing include
> +
> +---
> + arch/arm/plat-mxc/include/mach/board-mx31ads.h | 33 +++++++++++++++++++++++++++++
> + 1 files changed, 33 insertions(+), 0 deletions(-)
> + create mode 100644 arch/arm/plat-mxc/include/mach/board-mx31ads.h
> +
> +diff --git a/arch/arm/plat-mxc/include/mach/board-mx31ads.h b/arch/arm/plat-mxc/include/mach/board-mx31ads.h
> +new file mode 100644
> +index 0000000..94b60dd
> +--- /dev/null
> ++++ b/arch/arm/plat-mxc/include/mach/board-mx31ads.h
> +@@ -0,0 +1,33 @@
> ++/*
> ++ * Copyright 2005-2007 Freescale Semiconductor, Inc. All Rights Reserved.
> ++ */
> ++
> ++/*
> ++ * This program is free software; you can redistribute it and/or modify
> ++ * it under the terms of the GNU General Public License version 2 as
> ++ * published by the Free Software Foundation.
> ++ */
> ++
> ++#ifndef __ASM_ARCH_MXC_BOARD_MX31ADS_H__
> ++#define __ASM_ARCH_MXC_BOARD_MX31ADS_H__
> ++
> ++#include <mach/hardware.h>
> ++
> ++/*
> ++ * These symbols are used by drivers/net/cs89x0.c.
> ++ * This is ugly as hell, but we have to provide them until
> ++ * someone fixed the driver.
> ++ */
> ++
> ++/* Base address of PBC controller */
> ++#define PBC_BASE_ADDRESS MX31_CS4_BASE_ADDR_VIRT
> ++/* Offsets for the PBC Controller register */
> ++
> ++/* Ethernet Controller IO base address */
> ++#define PBC_CS8900A_IOBASE 0x020000
> ++
> ++#define MXC_EXP_IO_BASE (MXC_BOARD_IRQ_START)
> ++
> ++#define EXPIO_INT_ENET_INT (MXC_EXP_IO_BASE + 8)
> ++
> ++#endif /* __ASM_ARCH_MXC_BOARD_MX31ADS_H__ */
> +--
> +1.7.2.3
> +
> diff --git a/recipes/linux/linux_2.6.36.bb b/recipes/linux/linux_2.6.36.bb
> index d15dcee..a395c04 100644
> --- a/recipes/linux/linux_2.6.36.bb
> +++ b/recipes/linux/linux_2.6.36.bb
> @@ -2,9 +2,12 @@ require linux.inc
>
> # Mark archs/machines that this kernel supports
> DEFAULT_PREFERENCE = "-1"
> +DEFAULT_PREFERENCE_mx31ads = "1"
>
> SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/${P}.tar.bz2;name=kernel \
> file://defconfig "
>
> +SRC_URI_append_mx31ads = "file://0001-add-missing-include.patch"
> +
> SRC_URI[kernel.md5sum] = "61f3739a73afb6914cb007f37fb09b62"
> SRC_URI[kernel.sha256sum] = "15a076d1a435a6bf8e92834eba4b390b4ec094ce06d47f89d071ca9e5788ce04"
> --
> 1.6.3.3
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-23 17:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 16:53 [PATCH 1/2] sarge-at91: fix kernel build Eric Bénard
2010-11-23 16:53 ` [PATCH 2/2] mx31ads: make linux 2.6.36 compile Eric Bénard
2010-11-23 17:06 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox