mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
Upgrade to Linux 2.6.19
- Includes large parts of the patch from #1021 by dpalffy - Includes RB532 NAND driver changes by n0-1 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5789 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -10,9 +10,9 @@ ARCH:=i386
|
||||
BOARD:=uml
|
||||
BOARDNAME:=User Mode Linux
|
||||
|
||||
LINUX_VERSION:=2.6.17
|
||||
LINUX_VERSION:=2.6.19
|
||||
LINUX_RELEASE:=1
|
||||
LINUX_KERNEL_MD5SUM:=37ddefe96625502161f075b9d907f21e
|
||||
LINUX_KERNEL_MD5SUM:=443c265b57e87eadc0c677c3acc37e20
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-build.mk
|
||||
$(eval $(call BuildKernel))
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
129
target/linux/uml-2.6/config-diff
Normal file
129
target/linux/uml-2.6/config-diff
Normal file
@@ -0,0 +1,129 @@
|
||||
CONFIG_3_LEVEL_PGTABLES=y
|
||||
CONFIG_64BIT=y
|
||||
# CONFIG_ARCH_HAS_SC_SIGNALS is not set
|
||||
# CONFIG_ARCH_REUSE_HOST_VSYSCALL_AREA is not set
|
||||
# CONFIG_ATM is not set
|
||||
CONFIG_BASE_SMALL=0
|
||||
CONFIG_BINFMT_MISC=m
|
||||
CONFIG_BLK_DEV_COW_COMMON=y
|
||||
CONFIG_BLK_DEV_UBD=y
|
||||
CONFIG_BLK_DEV_UBD_SYNC=y
|
||||
# CONFIG_BT is not set
|
||||
CONFIG_CON_CHAN="xterm"
|
||||
CONFIG_CON_ZERO_CHAN="fd:0,fd:1"
|
||||
CONFIG_CRAMFS=y
|
||||
# CONFIG_CRYPTO_AES_X86_64 is not set
|
||||
# CONFIG_CRYPTO_TWOFISH_X86_64 is not set
|
||||
# CONFIG_DEBUG_DRIVER is not set
|
||||
CONFIG_DEBUG_INFO=y
|
||||
CONFIG_DEBUG_KERNEL=y
|
||||
# CONFIG_DEBUG_KOBJECT is not set
|
||||
# CONFIG_DEBUG_LIST is not set
|
||||
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
|
||||
# CONFIG_DEBUG_MUTEXES is not set
|
||||
# CONFIG_DEBUG_RT_MUTEXES is not set
|
||||
# CONFIG_DEBUG_RWSEMS is not set
|
||||
CONFIG_DEBUG_SLAB=y
|
||||
# CONFIG_DEBUG_SLAB_LEAK is not set
|
||||
# CONFIG_DEBUG_SPINLOCK is not set
|
||||
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
|
||||
# CONFIG_DEBUG_VM is not set
|
||||
CONFIG_DEFAULT_AS=y
|
||||
# CONFIG_DEFAULT_DEADLINE is not set
|
||||
CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||
CONFIG_DEFCONFIG_LIST="arch/$ARCH/defconfig"
|
||||
CONFIG_DETECT_SOFTLOCKUP=y
|
||||
CONFIG_DNOTIFY=y
|
||||
CONFIG_ELF_CORE=y
|
||||
# CONFIG_EMBEDDED is not set
|
||||
CONFIG_EXT2_FS=y
|
||||
# CONFIG_FORCED_INLINING is not set
|
||||
CONFIG_FRAME_POINTER=y
|
||||
CONFIG_FS_POSIX_ACL=y
|
||||
# CONFIG_FW_LOADER is not set
|
||||
# CONFIG_GCOV is not set
|
||||
# CONFIG_GPROF is not set
|
||||
# CONFIG_HAMRADIO is not set
|
||||
CONFIG_HOSTAUDIO=m
|
||||
CONFIG_HOSTFS=y
|
||||
# CONFIG_HPPFS is not set
|
||||
# CONFIG_HW_RANDOM is not set
|
||||
# CONFIG_IFB is not set
|
||||
CONFIG_INITRAMFS_SOURCE=""
|
||||
CONFIG_INIT_ENV_ARG_LIMIT=128
|
||||
CONFIG_IOSCHED_AS=y
|
||||
CONFIG_IOSCHED_CFQ=y
|
||||
CONFIG_IPV6_TUNNEL=m
|
||||
# CONFIG_IP_DCCP_DEBUG is not set
|
||||
CONFIG_IRQ_RELEASE_METHOD=y
|
||||
CONFIG_KALLSYMS=y
|
||||
# CONFIG_KALLSYMS_ALL is not set
|
||||
CONFIG_KALLSYMS_EXTRA_PASS=y
|
||||
CONFIG_KERNEL_STACK_ORDER=2
|
||||
CONFIG_LBD=y
|
||||
CONFIG_LD_SCRIPT_DYN=y
|
||||
CONFIG_LEGACY_PTYS=y
|
||||
CONFIG_LEGACY_PTY_COUNT=256
|
||||
# CONFIG_LLC2 is not set
|
||||
# CONFIG_MAC_PARTITION is not set
|
||||
CONFIG_MAGIC_SYSRQ=y
|
||||
CONFIG_MCONSOLE=y
|
||||
CONFIG_MINI_FO=m
|
||||
# CONFIG_MMAPPER is not set
|
||||
CONFIG_MODE_SKAS=y
|
||||
CONFIG_NEST_LEVEL=0
|
||||
# CONFIG_NET_RADIO is not set
|
||||
CONFIG_NET_SCH_CLK_GETTIMEOFDAY=y
|
||||
# CONFIG_NET_SCH_CLK_JIFFIES is not set
|
||||
CONFIG_NOCONFIG_CHAN=y
|
||||
# CONFIG_NULL_CHAN is not set
|
||||
CONFIG_PORT_CHAN=y
|
||||
CONFIG_POSIX_MQUEUE=y
|
||||
# CONFIG_PPP_MULTILINK is not set
|
||||
CONFIG_PTY_CHAN=y
|
||||
# CONFIG_RCU_TORTURE_TEST is not set
|
||||
CONFIG_RELAY=y
|
||||
CONFIG_RESOURCES_64BIT=y
|
||||
# CONFIG_RT_MUTEX_TESTER is not set
|
||||
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
||||
# CONFIG_SCHEDSTATS is not set
|
||||
CONFIG_SEMAPHORE_SLEEPERS=y
|
||||
CONFIG_SLIP=m
|
||||
# CONFIG_SLIP_COMPRESSED is not set
|
||||
# CONFIG_SLIP_MODE_SLIP6 is not set
|
||||
# CONFIG_SLIP_SMART is not set
|
||||
CONFIG_SMP_BROKEN=y
|
||||
CONFIG_SOFT_WATCHDOG=m
|
||||
# CONFIG_SPARSEMEM_STATIC is not set
|
||||
CONFIG_SSL=y
|
||||
CONFIG_SSL_CHAN="pty"
|
||||
# CONFIG_STATIC_LINK is not set
|
||||
CONFIG_STDERR_CONSOLE=y
|
||||
CONFIG_STDIO_CONSOLE=y
|
||||
CONFIG_STUB_CODE=0x7fbfffe000
|
||||
CONFIG_STUB_DATA=0x7fbffff000
|
||||
CONFIG_STUB_START=0x7fbfffe000
|
||||
CONFIG_TOP_ADDR=0x80000000
|
||||
# CONFIG_TRACE_IRQFLAGS_SUPPORT is not set
|
||||
CONFIG_TTY_CHAN=y
|
||||
CONFIG_UID16=y
|
||||
CONFIG_UML=y
|
||||
CONFIG_UML_NET=y
|
||||
CONFIG_UML_NET_DAEMON=y
|
||||
CONFIG_UML_NET_ETHERTAP=y
|
||||
CONFIG_UML_NET_MCAST=y
|
||||
# CONFIG_UML_NET_PCAP is not set
|
||||
CONFIG_UML_NET_SLIP=y
|
||||
CONFIG_UML_NET_SLIRP=y
|
||||
CONFIG_UML_NET_TUNTAP=y
|
||||
CONFIG_UML_RANDOM=y
|
||||
CONFIG_UML_REAL_TIME_CLOCK=y
|
||||
CONFIG_UML_SOUND=m
|
||||
CONFIG_UML_WATCHDOG=m
|
||||
CONFIG_UML_X86=y
|
||||
# CONFIG_UNUSED_SYMBOLS is not set
|
||||
CONFIG_UNWIND_INFO=y
|
||||
CONFIG_VM_EVENT_COUNTERS=y
|
||||
CONFIG_WATCHDOG_NOWAYOUT=y
|
||||
CONFIG_XTERM_CHAN=y
|
||||
CONFIG_ZLIB_DEFLATE=m
|
||||
@@ -1,71 +0,0 @@
|
||||
# Since the syscallx macros seem to be under threat, this patch stops
|
||||
# using them, using syscall instead.
|
||||
|
||||
Index: linux-2.6.17/arch/um/os-Linux/process.c
|
||||
===================================================================
|
||||
--- linux-2.6.17.orig/arch/um/os-Linux/process.c 2006-09-20 11:15:08.000000000 -0400
|
||||
+++ linux-2.6.17/arch/um/os-Linux/process.c 2006-09-20 13:35:24.000000000 -0400
|
||||
@@ -140,11 +140,9 @@ void os_usr1_process(int pid)
|
||||
* syscalls, and also breaks with clone(), which does not unshare the TLS.
|
||||
*/
|
||||
|
||||
-inline _syscall0(pid_t, getpid)
|
||||
-
|
||||
int os_getpid(void)
|
||||
{
|
||||
- return(getpid());
|
||||
+ return syscall(__NR_getpid);
|
||||
}
|
||||
|
||||
int os_getpgrp(void)
|
||||
Index: linux-2.6.17/arch/um/os-Linux/sys-i386/tls.c
|
||||
===================================================================
|
||||
--- linux-2.6.17.orig/arch/um/os-Linux/sys-i386/tls.c 2006-06-18 13:49:35.000000000 -0400
|
||||
+++ linux-2.6.17/arch/um/os-Linux/sys-i386/tls.c 2006-09-20 13:37:27.000000000 -0400
|
||||
@@ -3,8 +3,6 @@
|
||||
#include "sysdep/tls.h"
|
||||
#include "user_util.h"
|
||||
|
||||
-static _syscall1(int, get_thread_area, user_desc_t *, u_info);
|
||||
-
|
||||
/* Checks whether host supports TLS, and sets *tls_min according to the value
|
||||
* valid on the host.
|
||||
* i386 host have it == 6; x86_64 host have it == 12, for i386 emulation. */
|
||||
@@ -17,7 +15,7 @@ void check_host_supports_tls(int *suppor
|
||||
user_desc_t info;
|
||||
info.entry_number = val[i];
|
||||
|
||||
- if (get_thread_area(&info) == 0) {
|
||||
+ if(syscall(__NR_get_thread_area, &info) == 0){
|
||||
*tls_min = val[i];
|
||||
*supports_tls = 1;
|
||||
return;
|
||||
Index: linux-2.6.17/arch/um/os-Linux/tls.c
|
||||
===================================================================
|
||||
--- linux-2.6.17.orig/arch/um/os-Linux/tls.c 2006-08-15 21:59:56.000000000 -0400
|
||||
+++ linux-2.6.17/arch/um/os-Linux/tls.c 2006-09-20 13:37:14.000000000 -0400
|
||||
@@ -48,14 +48,11 @@ int os_get_thread_area(user_desc_t *info
|
||||
#ifdef UML_CONFIG_MODE_TT
|
||||
#include "linux/unistd.h"
|
||||
|
||||
-static _syscall1(int, get_thread_area, user_desc_t *, u_info);
|
||||
-static _syscall1(int, set_thread_area, user_desc_t *, u_info);
|
||||
-
|
||||
int do_set_thread_area_tt(user_desc_t *info)
|
||||
{
|
||||
int ret;
|
||||
|
||||
- ret = set_thread_area(info);
|
||||
+ ret = syscall(__NR_set_thread_area, info);
|
||||
if (ret < 0) {
|
||||
ret = -errno;
|
||||
}
|
||||
@@ -66,7 +63,7 @@ int do_get_thread_area_tt(user_desc_t *i
|
||||
{
|
||||
int ret;
|
||||
|
||||
- ret = get_thread_area(info);
|
||||
+ ret = syscall(__NR_get_thread_area, info);
|
||||
if (ret < 0) {
|
||||
ret = -errno;
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
# Newer libcs don't define the JB_* jmp_buf access macros. If this is
|
||||
# the case, we provide values ourselves.
|
||||
Index: linux-2.6.15/arch/um/os-Linux/sys-i386/registers.c
|
||||
===================================================================
|
||||
--- linux-2.6.15.orig/arch/um/os-Linux/sys-i386/registers.c 2006-02-13 13:00:06.000000000 -0500
|
||||
+++ linux-2.6.15/arch/um/os-Linux/sys-i386/registers.c 2006-02-13 13:04:07.000000000 -0500
|
||||
@@ -130,6 +130,12 @@ void get_safe_registers(unsigned long *r
|
||||
HOST_FP_SIZE * sizeof(unsigned long));
|
||||
}
|
||||
|
||||
+#ifndef JB_PC
|
||||
+#define JB_PC 5
|
||||
+#define JB_SP 4
|
||||
+#define JB_BP 3
|
||||
+#endif
|
||||
+
|
||||
void get_thread_regs(union uml_pt_regs *uml_regs, void *buffer)
|
||||
{
|
||||
struct __jmp_buf_tag *jmpbuf = buffer;
|
||||
Index: linux-2.6.15/arch/um/os-Linux/sys-x86_64/registers.c
|
||||
===================================================================
|
||||
--- linux-2.6.15.orig/arch/um/os-Linux/sys-x86_64/registers.c 2006-02-13 13:00:06.000000000 -0500
|
||||
+++ linux-2.6.15/arch/um/os-Linux/sys-x86_64/registers.c 2006-02-13 13:04:07.000000000 -0500
|
||||
@@ -78,6 +78,12 @@ void get_safe_registers(unsigned long *r
|
||||
HOST_FP_SIZE * sizeof(unsigned long));
|
||||
}
|
||||
|
||||
+#ifndef JB_PC
|
||||
+#define JB_PC 7
|
||||
+#define JB_RSP 6
|
||||
+#define JB_RBP 1
|
||||
+#endif
|
||||
+
|
||||
void get_thread_regs(union uml_pt_regs *uml_regs, void *buffer)
|
||||
{
|
||||
struct __jmp_buf_tag *jmpbuf = buffer;
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
--- linux-2.6.17.orig/arch/um/os-Linux/skas/process.c 2006-06-18 02:49:35.000000000 +0100
|
||||
+++ linux-2.6.17/arch/um/os-Linux/skas/process.c 2006-11-13 15:34:43.087105285 +0000
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <sys/user.h>
|
||||
#include <sys/time.h>
|
||||
#include <asm/unistd.h>
|
||||
+#include <asm/page.h>
|
||||
#include <asm/types.h>
|
||||
#include "user.h"
|
||||
#include "sysdep/ptrace.h"
|
||||
Reference in New Issue
Block a user