mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 00:32:13 +02:00
Add linux-omap-2.6.24.7 based on the ldp 1.4 kernel
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5007 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
47
meta/packages/linux/linux-omap-2.6.24.7/add_rootwait.patch
vendored
Normal file
47
meta/packages/linux/linux-omap-2.6.24.7/add_rootwait.patch
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
Index: linux-2.6.22.19/init/do_mounts.c
|
||||
===================================================================
|
||||
--- linux-2.6.22.19.orig/init/do_mounts.c 2008-07-25 17:29:47.000000000 +0100
|
||||
+++ linux-2.6.22.19/init/do_mounts.c 2008-07-25 17:31:17.000000000 +0100
|
||||
@@ -25,6 +25,7 @@
|
||||
int root_mountflags = MS_RDONLY | MS_SILENT;
|
||||
char * __initdata root_device_name;
|
||||
static char __initdata saved_root_name[64];
|
||||
+static int __initdata root_wait;
|
||||
|
||||
dev_t ROOT_DEV;
|
||||
|
||||
@@ -216,6 +217,16 @@
|
||||
|
||||
__setup("root=", root_dev_setup);
|
||||
|
||||
+static int __init rootwait_setup(char *str)
|
||||
+{
|
||||
+ if (*str)
|
||||
+ return 0;
|
||||
+ root_wait = 1;
|
||||
+ return 1;
|
||||
+}
|
||||
+
|
||||
+__setup("rootwait", rootwait_setup);
|
||||
+
|
||||
static char * __initdata root_mount_data;
|
||||
static int __init root_data_setup(char *str)
|
||||
{
|
||||
@@ -443,6 +454,17 @@
|
||||
if (initrd_load())
|
||||
goto out;
|
||||
|
||||
+ /* wait for any asynchronous scanning to complete */
|
||||
+ if ((ROOT_DEV == 0) && root_wait) {
|
||||
+ printk(KERN_INFO "Waiting for root device %s...\n",
|
||||
+ saved_root_name);
|
||||
+ while (driver_probe_done() != 0 ||
|
||||
+ (ROOT_DEV = name_to_dev_t(saved_root_name)) == 0)
|
||||
+ msleep(100);
|
||||
+ }
|
||||
+
|
||||
+ is_floppy = MAJOR(ROOT_DEV) == FLOPPY_MAJOR;
|
||||
+
|
||||
if (is_floppy && rd_doload && rd_load_disk(0))
|
||||
ROOT_DEV = Root_RAM0;
|
||||
|
||||
1575
meta/packages/linux/linux-omap-2.6.24.7/defconfig-omap-3430ldp
vendored
Normal file
1575
meta/packages/linux/linux-omap-2.6.24.7/defconfig-omap-3430ldp
vendored
Normal file
File diff suppressed because it is too large
Load Diff
51
meta/packages/linux/linux-omap-2.6.24.7/fixes.patch
vendored
Normal file
51
meta/packages/linux/linux-omap-2.6.24.7/fixes.patch
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
Index: 2.6_kernel/arch/arm/Makefile
|
||||
===================================================================
|
||||
--- 2.6_kernel.orig/arch/arm/Makefile 2008-05-07 20:10:22.000000000 +0100
|
||||
+++ 2.6_kernel/arch/arm/Makefile 2008-07-23 17:40:35.000000000 +0100
|
||||
@@ -47,7 +47,7 @@
|
||||
# Note that GCC does not numerically define an architecture version
|
||||
# macro, but instead defines a whole series of macros which makes
|
||||
# testing for a specific architecture or later rather impossible.
|
||||
-arch-$(CONFIG_CPU_32v7) :=-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7a,-march=armv5t -Wa$(comma)-march=armv7a)
|
||||
+arch-$(CONFIG_CPU_32v7) :=-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)
|
||||
arch-$(CONFIG_CPU_32v6) :=-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6)
|
||||
# Only override the compiler option if ARMv6. The ARMv6K extensions are
|
||||
# always available in ARMv7
|
||||
Index: 2.6_kernel/drivers/video/omap/omap_disp_out.c
|
||||
===================================================================
|
||||
--- 2.6_kernel.orig/drivers/video/omap/omap_disp_out.c 2008-06-13 14:37:02.000000000 +0100
|
||||
+++ 2.6_kernel/drivers/video/omap/omap_disp_out.c 2008-07-23 17:40:35.000000000 +0100
|
||||
@@ -81,7 +81,7 @@
|
||||
#ifdef CONFIG_FB_OMAP_LCD_VGA
|
||||
#define H4_LCD_XRES 480
|
||||
#define H4_LCD_YRES 640
|
||||
-#define H4_LCD_PIXCLOCK_MAX 41700 /* in pico seconds */
|
||||
+#define H4_LCD_PIXCLOCK_MAX 46295 /* in pico seconds */
|
||||
#define H4_LCD_PIXCLOCK_MIN 38000 /* in pico seconds */
|
||||
#else
|
||||
#ifdef CONFIG_OMAP3430_ES2
|
||||
Index: 2.6_kernel/include/asm-arm/processor.h
|
||||
===================================================================
|
||||
--- 2.6_kernel.orig/include/asm-arm/processor.h 2008-04-04 02:30:30.000000000 +0100
|
||||
+++ 2.6_kernel/include/asm-arm/processor.h 2008-07-23 17:40:35.000000000 +0100
|
||||
@@ -103,14 +103,16 @@
|
||||
#if __LINUX_ARM_ARCH__ >= 5
|
||||
|
||||
#define ARCH_HAS_PREFETCH
|
||||
-static inline void prefetch(const void *ptr)
|
||||
+#define prefetch(ptr) __builtin_prefetch(ptr)
|
||||
+
|
||||
+/*static inline void prefetch(const void *ptr)
|
||||
{
|
||||
__asm__ __volatile__(
|
||||
- "pld\t%0"
|
||||
+ "pld\ta%0"
|
||||
:
|
||||
- : "o" (*(char *)ptr)
|
||||
+ : "p" (ptr)
|
||||
: "cc");
|
||||
-}
|
||||
+}*/
|
||||
|
||||
#define ARCH_HAS_PREFETCHW
|
||||
#define prefetchw(ptr) prefetch(ptr)
|
||||
BIN
meta/packages/linux/linux-omap-2.6.24.7/linux-2.6.24.7-ldp-v1.4.patch.gz
vendored
Normal file
BIN
meta/packages/linux/linux-omap-2.6.24.7/linux-2.6.24.7-ldp-v1.4.patch.gz
vendored
Normal file
Binary file not shown.
16
meta/packages/linux/linux-omap-2.6.24.7/module_fix.patch
vendored
Normal file
16
meta/packages/linux/linux-omap-2.6.24.7/module_fix.patch
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
Index: linux-2.6.24/arch/arm/plat-omap/resource.c
|
||||
===================================================================
|
||||
--- linux-2.6.24.orig/arch/arm/plat-omap/resource.c 2008-08-02 18:34:26.000000000 +0100
|
||||
+++ linux-2.6.24/arch/arm/plat-omap/resource.c 2008-08-02 18:35:28.000000000 +0100
|
||||
@@ -174,6 +174,11 @@
|
||||
return res;
|
||||
}
|
||||
|
||||
+EXPORT_SYMBOL(resource_put);
|
||||
+EXPORT_SYMBOL(resource_get);
|
||||
+EXPORT_SYMBOL(resource_request);
|
||||
+EXPORT_SYMBOL(resource_release);
|
||||
+
|
||||
/* Adds the request to the list of requests for the given resource.*/
|
||||
/*Recalulates the target level to be set for the resource and updates */
|
||||
/*it if not same as the current level. Also calls notification functions */
|
||||
14
meta/packages/linux/linux-omap_2.6.24.7.bb
Normal file
14
meta/packages/linux/linux-omap_2.6.24.7.bb
Normal file
@@ -0,0 +1,14 @@
|
||||
require linux-omap.inc
|
||||
PR = "r0"
|
||||
COMPATIBLE_MACHINE = "omap-3430ldp"
|
||||
#http://omapzoom.org/gf/download/frsrelease/110/425/linux-ldp-v1.4.tar
|
||||
|
||||
SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2 \
|
||||
http://kernel.org/pub/linux/kernel/v2.6/patch-2.6.24.7.bz2;patch=1 \
|
||||
file://linux-2.6.24.7-ldp-v1.4.patch.gz;patch=1 \
|
||||
file://fixes.patch;patch=1 \
|
||||
file://module_fix.patch;patch=1 \
|
||||
file://defconfig-omap-3430ldp"
|
||||
|
||||
S = "${WORKDIR}/linux-2.6.24"
|
||||
|
||||
Reference in New Issue
Block a user