Changeset 31c8179 in freewrt


Ignore:
Timestamp:
Dec 18, 2006, 11:32:43 PM (19 years ago)
Author:
Phil Sutter <n0-1@…>
Children:
60bcca8
Parents:
495b814
Message:

upgraded rb-2.6 to 2.6.19.1

As there is (officially) no other platform supporting
kernel-2.6, there were no changes taken to different platforms.
Getting YAFFS2 to run was a little tricky:

  • first patch with patch-ker.sh from current cvs
  • then apply a patch of Vitaly Wool <vitalywool@…>
  • manually fix references to <linux/config.h> at two places

I put all changes mentioned above into 140-yaffs2.patch, so
its no longer a simple patch from current cvs!
There were also some minor incompatibilities like wrong syntax
of plat_irq_dispatch().

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1339 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
target/linux/rb-2.6
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • target/linux/rb-2.6/Makefile

    r495b814 r31c8179  
    77include $(TOPDIR)/rules.mk
    88
    9 LINUX_VERSION:=2.6.18.2
     9LINUX_VERSION:=2.6.19.1
    1010LINUX_RELEASE:=1
    11 LINUX_KERNEL_MD5SUM:=a93293f01307c47589ebdcafea311c66
     11LINUX_KERNEL_MD5SUM:=2ab08fdfddc00e09b3d5bc7397d3c8be
    1212
    1313include $(TOPDIR)/mk/kernel.mk
  • target/linux/rb-2.6/nfs/config/config.nfs

    r495b814 r31c8179  
    11#
    22# Automatically generated make config: don't edit
    3 # Linux kernel version: 2.6.18.2
    4 # Mon Dec 11 17:51:21 2006
     3# Linux kernel version: 2.6.19.1
     4# Mon Dec 18 23:04:40 2006
    55#
    66CONFIG_MIPS=y
     
    2626# CONFIG_MACH_DECSTATION is not set
    2727# CONFIG_MIPS_EV64120 is not set
    28 # CONFIG_MIPS_EV96100 is not set
    29 # CONFIG_MIPS_IVR is not set
    30 # CONFIG_MIPS_ITE8172 is not set
    3128# CONFIG_MACH_JAZZ is not set
    3229# CONFIG_LASAT is not set
     
    7067CONFIG_GENERIC_HWEIGHT=y
    7168CONFIG_GENERIC_CALIBRATE_DELAY=y
     69CONFIG_GENERIC_TIME=y
    7270CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
    7371CONFIG_DMA_NONCOHERENT=y
     
    119117CONFIG_CPU_HAS_PREFETCH=y
    120118CONFIG_MIPS_MT_DISABLED=y
     119# CONFIG_MIPS_MT_SMP is not set
    121120# CONFIG_MIPS_MT_SMTC is not set
    122 # CONFIG_MIPS_MT_SMP is not set
    123121# CONFIG_MIPS_VPE_LOADER is not set
    124122# CONFIG_64BIT_PHYS_ADDR is not set
     
    150148# CONFIG_PREEMPT_VOLUNTARY is not set
    151149# CONFIG_PREEMPT is not set
     150CONFIG_LOCKDEP_SUPPORT=y
     151CONFIG_STACKTRACE_SUPPORT=y
    152152CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
    153153
     
    166166CONFIG_SWAP=y
    167167CONFIG_SYSVIPC=y
     168# CONFIG_IPC_NS is not set
    168169CONFIG_POSIX_MQUEUE=y
    169170# CONFIG_BSD_PROCESS_ACCT is not set
    170171# CONFIG_TASKSTATS is not set
     172# CONFIG_UTS_NS is not set
    171173# CONFIG_AUDIT is not set
    172174CONFIG_IKCONFIG=y
     
    175177CONFIG_INITRAMFS_SOURCE=""
    176178CONFIG_CC_OPTIMIZE_FOR_SIZE=y
     179CONFIG_SYSCTL=y
    177180CONFIG_EMBEDDED=y
    178 CONFIG_SYSCTL=y
     181CONFIG_SYSCTL_SYSCALL=y
    179182# CONFIG_KALLSYMS is not set
    180183CONFIG_HOTPLUG=y
     
    206209# Block layer
    207210#
     211CONFIG_BLOCK=y
    208212# CONFIG_LBD is not set
    209213# CONFIG_BLK_DEV_IO_TRACE is not set
     
    279283CONFIG_XFRM=y
    280284# CONFIG_XFRM_USER is not set
     285# CONFIG_XFRM_SUB_POLICY is not set
    281286# CONFIG_NET_KEY is not set
    282287CONFIG_INET=y
     
    308313# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
    309314# CONFIG_INET_XFRM_MODE_TUNNEL is not set
     315CONFIG_INET_XFRM_MODE_BEET=m
    310316# CONFIG_INET_DIAG is not set
    311317# CONFIG_TCP_CONG_ADVANCED is not set
    312 CONFIG_TCP_CONG_BIC=y
     318CONFIG_TCP_CONG_CUBIC=y
     319CONFIG_DEFAULT_TCP_CONG="cubic"
    313320
    314321#
     
    352359CONFIG_INET6_ESP=m
    353360CONFIG_INET6_IPCOMP=m
     361# CONFIG_IPV6_MIP6 is not set
    354362CONFIG_INET6_XFRM_TUNNEL=m
    355363CONFIG_INET6_TUNNEL=m
    356364CONFIG_INET6_XFRM_MODE_TRANSPORT=m
    357365CONFIG_INET6_XFRM_MODE_TUNNEL=m
     366CONFIG_INET6_XFRM_MODE_BEET=m
     367CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=m
     368CONFIG_IPV6_SIT=m
    358369CONFIG_IPV6_TUNNEL=m
     370# CONFIG_IPV6_MULTIPLE_TABLES is not set
    359371# CONFIG_NETWORK_SECMARK is not set
    360372CONFIG_NETFILTER=y
     
    371383CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m
    372384CONFIG_NETFILTER_XT_TARGET_CONNMARK=m
     385CONFIG_NETFILTER_XT_TARGET_DSCP=m
    373386CONFIG_NETFILTER_XT_TARGET_MARK=m
    374387CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m
     
    379392CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
    380393CONFIG_NETFILTER_XT_MATCH_DCCP=m
     394CONFIG_NETFILTER_XT_MATCH_DSCP=m
    381395CONFIG_NETFILTER_XT_MATCH_ESP=m
    382396CONFIG_NETFILTER_XT_MATCH_HELPER=m
     
    420434CONFIG_IP_NF_MATCH_RECENT=m
    421435CONFIG_IP_NF_MATCH_ECN=m
    422 CONFIG_IP_NF_MATCH_DSCP=m
    423436CONFIG_IP_NF_MATCH_AH=m
    424437CONFIG_IP_NF_MATCH_TTL=m
     
    448461CONFIG_IP_NF_TARGET_TOS=m
    449462CONFIG_IP_NF_TARGET_ECN=m
    450 CONFIG_IP_NF_TARGET_DSCP=m
    451463CONFIG_IP_NF_TARGET_TTL=m
    452464CONFIG_IP_NF_TARGET_CLUSTERIP=m
     
    592604# CONFIG_IEEE80211 is not set
    593605CONFIG_WIRELESS_EXT=y
     606CONFIG_FIB_RULES=y
    594607
    595608#
     
    629642# CONFIG_INFTL is not set
    630643# CONFIG_RFD_FTL is not set
     644# CONFIG_SSFDC is not set
    631645
    632646#
     
    727741
    728742#
     743# Misc devices
     744#
     745# CONFIG_SGI_IOC4 is not set
     746# CONFIG_TIFM_CORE is not set
     747CONFIG_RB_DIAG=y
     748
     749#
    729750# ATA/ATAPI/MFM/RLL support
    730751#
     
    736757# CONFIG_RAID_ATTRS is not set
    737758# CONFIG_SCSI is not set
     759# CONFIG_SCSI_NETLINK is not set
     760
     761#
     762# Serial ATA (prod) and Parallel ATA (experimental) drivers
     763#
     764# CONFIG_ATA is not set
    738765
    739766#
     
    834861# CONFIG_TIGON3 is not set
    835862# CONFIG_BNX2 is not set
     863# CONFIG_QLA3XXX is not set
    836864
    837865#
     
    914942# CONFIG_PPP is not set
    915943# CONFIG_SLIP is not set
     944CONFIG_SLHC=m
    916945# CONFIG_SHAPER is not set
    917946# CONFIG_NETCONSOLE is not set
     
    9821011# CONFIG_HISAX_W6692 is not set
    9831012# CONFIG_HISAX_HFC_SX is not set
    984 # CONFIG_HISAX_ENTERNOW_PCI is not set
    9851013# CONFIG_HISAX_DEBUG is not set
    9861014
     
    10981126#
    10991127# CONFIG_TCG_TPM is not set
    1100 # CONFIG_TELCLOCK is not set
    11011128
    11021129#
     
    11141141# Dallas's 1-wire bus
    11151142#
     1143# CONFIG_W1 is not set
    11161144
    11171145#
     
    11221150
    11231151#
    1124 # Misc devices
    1125 #
    1126 CONFIG_RB_DIAG=y
    1127 
    1128 #
    11291152# Multimedia devices
    11301153#
    11311154# CONFIG_VIDEO_DEV is not set
    1132 CONFIG_VIDEO_V4L2=y
    11331155
    11341156#
     
    12191241CONFIG_EXT3_FS=m
    12201242# CONFIG_EXT3_FS_XATTR is not set
     1243CONFIG_EXT4DEV_FS=m
     1244# CONFIG_EXT4DEV_FS_XATTR is not set
    12211245CONFIG_JBD=m
    12221246# CONFIG_JBD_DEBUG is not set
     1247CONFIG_JBD2=m
     1248# CONFIG_JBD2_DEBUG is not set
    12231249CONFIG_REISERFS_FS=m
    12241250# CONFIG_REISERFS_CHECK is not set
     
    12361262# CONFIG_XFS_POSIX_ACL is not set
    12371263# CONFIG_XFS_RT is not set
     1264# CONFIG_GFS2_FS is not set
    12381265# CONFIG_OCFS2_FS is not set
    12391266CONFIG_MINIX_FS=m
     
    12741301CONFIG_PROC_FS=y
    12751302# CONFIG_PROC_KCORE is not set
     1303CONFIG_PROC_SYSCTL=y
    12761304CONFIG_SYSFS=y
    12771305CONFIG_TMPFS=y
     1306# CONFIG_TMPFS_POSIX_ACL is not set
    12781307# CONFIG_HUGETLB_PAGE is not set
    12791308CONFIG_RAMFS=y
     
    14131442CONFIG_TRACE_IRQFLAGS_SUPPORT=y
    14141443# CONFIG_PRINTK_TIME is not set
     1444# CONFIG_ENABLE_MUST_CHECK is not set
    14151445# CONFIG_MAGIC_SYSRQ is not set
    14161446# CONFIG_UNUSED_SYMBOLS is not set
     
    14181448CONFIG_LOG_BUF_SHIFT=14
    14191449# CONFIG_DEBUG_FS is not set
     1450# CONFIG_HEADERS_CHECK is not set
    14201451CONFIG_CROSSCOMPILE=y
    14211452CONFIG_CMDLINE="init=/etc/preinit root=/dev/nfs ip=dhcp"
     
    14311462#
    14321463CONFIG_CRYPTO=y
     1464CONFIG_CRYPTO_ALGAPI=y
     1465CONFIG_CRYPTO_BLKCIPHER=y
     1466CONFIG_CRYPTO_HASH=y
     1467CONFIG_CRYPTO_MANAGER=y
    14331468CONFIG_CRYPTO_HMAC=y
    14341469# CONFIG_CRYPTO_NULL is not set
     
    14401475# CONFIG_CRYPTO_WP512 is not set
    14411476# CONFIG_CRYPTO_TGR192 is not set
     1477# CONFIG_CRYPTO_ECB is not set
     1478CONFIG_CRYPTO_CBC=y
    14421479CONFIG_CRYPTO_DES=y
    14431480# CONFIG_CRYPTO_BLOWFISH is not set
  • target/linux/rb-2.6/patches/100-rb5xx_support.patch

    r495b814 r31c8179  
    1 diff -Naurp linux-2.6.18.2/arch/mips/Kconfig linux-2.6.18.2.patched/arch/mips/Kconfig
    2 --- linux-2.6.18.2/arch/mips/Kconfig    2006-11-04 02:33:58.000000000 +0100
    3 +++ linux-2.6.18.2.patched/arch/mips/Kconfig    2006-12-18 17:16:35.000000000 +0100
    4 @@ -782,6 +782,19 @@ config TOSHIBA_JMR3927
     1diff -Naurp linux-2.6.19.1/arch/mips/Kconfig linux-2.6.19.1.patched/arch/mips/Kconfig
     2--- linux-2.6.19.1/arch/mips/Kconfig    2006-12-11 20:32:53.000000000 +0100
     3+++ linux-2.6.19.1.patched/arch/mips/Kconfig    2006-12-18 22:36:01.000000000 +0100
     4@@ -728,6 +728,19 @@ config TOSHIBA_JMR3927
    55        select SYS_SUPPORTS_BIG_ENDIAN
    66        select TOSHIBA_BOARDS
     
    2222        bool "Toshiba TBTX49[23]7 board"
    2323        select DMA_NONCOHERENT
    24 @@ -1073,7 +1086,7 @@ config BOOT_ELF32
     24@@ -1015,7 +1028,7 @@ config BOOT_ELF32
    2525 
    2626 config MIPS_L1_CACHE_SHIFT
     
    3131        default "5"
    3232 
    33 diff -Naurp linux-2.6.18.2/arch/mips/Makefile linux-2.6.18.2.patched/arch/mips/Makefile
    34 --- linux-2.6.18.2/arch/mips/Makefile   2006-11-04 02:33:58.000000000 +0100
    35 +++ linux-2.6.18.2.patched/arch/mips/Makefile   2006-12-18 17:16:35.000000000 +0100
    36 @@ -594,6 +594,13 @@ cflags-$(CONFIG_TOSHIBA_JMR3927) += -Iin
     33diff -Naurp linux-2.6.19.1/arch/mips/Makefile linux-2.6.19.1.patched/arch/mips/Makefile
     34--- linux-2.6.19.1/arch/mips/Makefile   2006-12-11 20:32:53.000000000 +0100
     35+++ linux-2.6.19.1.patched/arch/mips/Makefile   2006-12-18 22:36:01.000000000 +0100
     36@@ -586,6 +586,13 @@ cflags-$(CONFIG_TOSHIBA_JMR3927) += -Iin
    3737 load-$(CONFIG_TOSHIBA_JMR3927) += 0xffffffff80050000
    3838 
     
    4848 # Toshiba RBTX4937 board
    4949 #
    50 diff -Naurp linux-2.6.18.2/arch/mips/mm/tlbex.c linux-2.6.18.2.patched/arch/mips/mm/tlbex.c
    51 --- linux-2.6.18.2/arch/mips/mm/tlbex.c 2006-11-04 02:33:58.000000000 +0100
    52 +++ linux-2.6.18.2.patched/arch/mips/mm/tlbex.c 2006-12-18 17:16:35.000000000 +0100
    53 @@ -872,7 +872,6 @@ static __init void build_tlb_write_entry
     50diff -Naurp linux-2.6.19.1/arch/mips/mm/tlbex.c linux-2.6.19.1.patched/arch/mips/mm/tlbex.c
     51--- linux-2.6.19.1/arch/mips/mm/tlbex.c 2006-12-11 20:32:53.000000000 +0100
     52+++ linux-2.6.19.1.patched/arch/mips/mm/tlbex.c 2006-12-18 22:36:01.000000000 +0100
     53@@ -874,7 +874,6 @@ static __init void build_tlb_write_entry
    5454        case CPU_R10000:
    5555        case CPU_R12000:
     
    5959        case CPU_SB1A:
    6060        case CPU_4KSC:
    61 @@ -900,6 +899,7 @@ static __init void build_tlb_write_entry
     61@@ -902,6 +901,7 @@ static __init void build_tlb_write_entry
    6262                tlbw(p);
    6363                break;
     
    6767        case CPU_24K:
    6868        case CPU_34K:
    69 diff -Naurp linux-2.6.18.2/arch/mips/pci/fixup-rc32434.c linux-2.6.18.2.patched/arch/mips/pci/fixup-rc32434.c
    70 --- linux-2.6.18.2/arch/mips/pci/fixup-rc32434.c        1970-01-01 01:00:00.000000000 +0100
    71 +++ linux-2.6.18.2.patched/arch/mips/pci/fixup-rc32434.c        2006-12-18 17:16:35.000000000 +0100
     69diff -Naurp linux-2.6.19.1/arch/mips/pci/fixup-rc32434.c linux-2.6.19.1.patched/arch/mips/pci/fixup-rc32434.c
     70--- linux-2.6.19.1/arch/mips/pci/fixup-rc32434.c        1970-01-01 01:00:00.000000000 +0100
     71+++ linux-2.6.19.1.patched/arch/mips/pci/fixup-rc32434.c        2006-12-18 22:36:01.000000000 +0100
    7272@@ -0,0 +1,60 @@
    7373+/*
     
    131131+       return 0;
    132132+}
    133 diff -Naurp linux-2.6.18.2/arch/mips/pci/Makefile linux-2.6.18.2.patched/arch/mips/pci/Makefile
    134 --- linux-2.6.18.2/arch/mips/pci/Makefile       2006-11-04 02:33:58.000000000 +0100
    135 +++ linux-2.6.18.2.patched/arch/mips/pci/Makefile       2006-12-18 17:16:35.000000000 +0100
    136 @@ -58,3 +58,4 @@ obj-$(CONFIG_TOSHIBA_RBTX4938)        += fixup-
     133diff -Naurp linux-2.6.19.1/arch/mips/pci/Makefile linux-2.6.19.1.patched/arch/mips/pci/Makefile
     134--- linux-2.6.19.1/arch/mips/pci/Makefile       2006-12-11 20:32:53.000000000 +0100
     135+++ linux-2.6.19.1.patched/arch/mips/pci/Makefile       2006-12-18 22:36:01.000000000 +0100
     136@@ -53,3 +53,4 @@ obj-$(CONFIG_TOSHIBA_RBTX4938)        += fixup-
    137137 obj-$(CONFIG_VICTOR_MPC30X)    += fixup-mpc30x.o
    138138 obj-$(CONFIG_ZAO_CAPCELLA)     += fixup-capcella.o
    139139 obj-$(CONFIG_WR_PPMC)          += fixup-wrppmc.o
    140140+obj-$(CONFIG_MIKROTIK_RB500)   += pci-rc32434.o ops-rc32434.o fixup-rc32434.o
    141 diff -Naurp linux-2.6.18.2/arch/mips/pci/ops-rc32434.c linux-2.6.18.2.patched/arch/mips/pci/ops-rc32434.c
    142 --- linux-2.6.18.2/arch/mips/pci/ops-rc32434.c  1970-01-01 01:00:00.000000000 +0100
    143 +++ linux-2.6.18.2.patched/arch/mips/pci/ops-rc32434.c  2006-12-18 17:18:08.000000000 +0100
     141diff -Naurp linux-2.6.19.1/arch/mips/pci/ops-rc32434.c linux-2.6.19.1.patched/arch/mips/pci/ops-rc32434.c
     142--- linux-2.6.19.1/arch/mips/pci/ops-rc32434.c  1970-01-01 01:00:00.000000000 +0100
     143+++ linux-2.6.19.1.patched/arch/mips/pci/ops-rc32434.c  2006-12-18 22:36:01.000000000 +0100
    144144@@ -0,0 +1,202 @@
    145145+/**************************************************************************
     
    345345+       .write = pci_config_write,
    346346+};
    347 diff -Naurp linux-2.6.18.2/arch/mips/pci/pci-rc32434.c linux-2.6.18.2.patched/arch/mips/pci/pci-rc32434.c
    348 --- linux-2.6.18.2/arch/mips/pci/pci-rc32434.c  1970-01-01 01:00:00.000000000 +0100
    349 +++ linux-2.6.18.2.patched/arch/mips/pci/pci-rc32434.c  2006-12-18 17:16:35.000000000 +0100
     347diff -Naurp linux-2.6.19.1/arch/mips/pci/pci-rc32434.c linux-2.6.19.1.patched/arch/mips/pci/pci-rc32434.c
     348--- linux-2.6.19.1/arch/mips/pci/pci-rc32434.c  1970-01-01 01:00:00.000000000 +0100
     349+++ linux-2.6.19.1.patched/arch/mips/pci/pci-rc32434.c  2006-12-18 22:36:01.000000000 +0100
    350350@@ -0,0 +1,226 @@
    351351+/**************************************************************************
     
    575575+
    576576+arch_initcall(rc32434_pci_init);
    577 diff -Naurp linux-2.6.18.2/arch/mips/rb500/devices.c linux-2.6.18.2.patched/arch/mips/rb500/devices.c
    578 --- linux-2.6.18.2/arch/mips/rb500/devices.c    1970-01-01 01:00:00.000000000 +0100
    579 +++ linux-2.6.18.2.patched/arch/mips/rb500/devices.c    2006-12-18 17:16:35.000000000 +0100
     577diff -Naurp linux-2.6.19.1/arch/mips/rb500/devices.c linux-2.6.19.1.patched/arch/mips/rb500/devices.c
     578--- linux-2.6.19.1/arch/mips/rb500/devices.c    1970-01-01 01:00:00.000000000 +0100
     579+++ linux-2.6.19.1.patched/arch/mips/rb500/devices.c    2006-12-18 22:36:01.000000000 +0100
    580580@@ -0,0 +1,200 @@
    581581+#include <linux/kernel.h>
     
    779779+
    780780+#endif
    781 diff -Naurp linux-2.6.18.2/arch/mips/rb500/early_serial.c linux-2.6.18.2.patched/arch/mips/rb500/early_serial.c
    782 --- linux-2.6.18.2/arch/mips/rb500/early_serial.c       1970-01-01 01:00:00.000000000 +0100
    783 +++ linux-2.6.18.2.patched/arch/mips/rb500/early_serial.c       2006-12-18 17:16:35.000000000 +0100
     781diff -Naurp linux-2.6.19.1/arch/mips/rb500/early_serial.c linux-2.6.19.1.patched/arch/mips/rb500/early_serial.c
     782--- linux-2.6.19.1/arch/mips/rb500/early_serial.c       1970-01-01 01:00:00.000000000 +0100
     783+++ linux-2.6.19.1.patched/arch/mips/rb500/early_serial.c       2006-12-18 22:36:01.000000000 +0100
    784784@@ -0,0 +1,198 @@
    785785+/**************************************************************************
     
    981981+       *(port + (UART_MCR << s)) = 0;
    982982+}
    983 diff -Naurp linux-2.6.18.2/arch/mips/rb500/irq.c linux-2.6.18.2.patched/arch/mips/rb500/irq.c
    984 --- linux-2.6.18.2/arch/mips/rb500/irq.c        1970-01-01 01:00:00.000000000 +0100
    985 +++ linux-2.6.18.2.patched/arch/mips/rb500/irq.c        2006-12-18 17:16:35.000000000 +0100
     983diff -Naurp linux-2.6.19.1/arch/mips/rb500/irq.c linux-2.6.19.1.patched/arch/mips/rb500/irq.c
     984--- linux-2.6.19.1/arch/mips/rb500/irq.c        1970-01-01 01:00:00.000000000 +0100
     985+++ linux-2.6.19.1.patched/arch/mips/rb500/irq.c        2006-12-18 22:36:01.000000000 +0100
    986986@@ -0,0 +1,270 @@
    987987+/*
     
    12361236+
    12371237+/* Main Interrupt dispatcher */
    1238 +asmlinkage void plat_irq_dispatch(struct pt_regs *regs)
     1238+asmlinkage void plat_irq_dispatch(void)
    12391239+{
    12401240+       unsigned int ip, pend, group;
     
    12431243+
    12441244+       if (cp0_cause & CAUSEF_IP7) {
    1245 +               ll_timer_interrupt(7, regs);
     1245+               ll_timer_interrupt(7);
    12461246+       } else if ((ip = (cp0_cause & 0x7c00))) {
    12471247+               group = 21 - rc32434_clz(ip);
     
    12521252+               pend &= ~READ_MASK(addr);       // only unmasked interrupts
    12531253+               pend = 39 - rc32434_clz(pend);
    1254 +               do_IRQ((group << 5) + pend, regs);
     1254+               do_IRQ((group << 5) + pend);
    12551255+       }
    12561256+}
    1257 diff -Naurp linux-2.6.18.2/arch/mips/rb500/Makefile linux-2.6.18.2.patched/arch/mips/rb500/Makefile
    1258 --- linux-2.6.18.2/arch/mips/rb500/Makefile     1970-01-01 01:00:00.000000000 +0100
    1259 +++ linux-2.6.18.2.patched/arch/mips/rb500/Makefile     2006-12-18 17:16:35.000000000 +0100
     1257diff -Naurp linux-2.6.19.1/arch/mips/rb500/Makefile linux-2.6.19.1.patched/arch/mips/rb500/Makefile
     1258--- linux-2.6.19.1/arch/mips/rb500/Makefile     1970-01-01 01:00:00.000000000 +0100
     1259+++ linux-2.6.19.1.patched/arch/mips/rb500/Makefile     2006-12-18 22:36:01.000000000 +0100
    12601260@@ -0,0 +1,5 @@
    12611261+#
     
    12641264+
    12651265+obj-y   += irq.o time.o setup.o serial.o early_serial.o prom.o misc.o devices.o
    1266 diff -Naurp linux-2.6.18.2/arch/mips/rb500/misc.c linux-2.6.18.2.patched/arch/mips/rb500/misc.c
    1267 --- linux-2.6.18.2/arch/mips/rb500/misc.c       1970-01-01 01:00:00.000000000 +0100
    1268 +++ linux-2.6.18.2.patched/arch/mips/rb500/misc.c       2006-12-18 17:16:35.000000000 +0100
     1266diff -Naurp linux-2.6.19.1/arch/mips/rb500/misc.c linux-2.6.19.1.patched/arch/mips/rb500/misc.c
     1267--- linux-2.6.19.1/arch/mips/rb500/misc.c       1970-01-01 01:00:00.000000000 +0100
     1268+++ linux-2.6.19.1.patched/arch/mips/rb500/misc.c       2006-12-18 22:36:01.000000000 +0100
    12691269@@ -0,0 +1,67 @@
    12701270+#include <linux/module.h>
     
    13351335+EXPORT_SYMBOL(changeLatchU5);
    13361336+EXPORT_SYMBOL(getLatchU5State);
    1337 diff -Naurp linux-2.6.18.2/arch/mips/rb500/prom.c linux-2.6.18.2.patched/arch/mips/rb500/prom.c
    1338 --- linux-2.6.18.2/arch/mips/rb500/prom.c       1970-01-01 01:00:00.000000000 +0100
    1339 +++ linux-2.6.18.2.patched/arch/mips/rb500/prom.c       2006-12-18 17:16:35.000000000 +0100
     1337diff -Naurp linux-2.6.19.1/arch/mips/rb500/prom.c linux-2.6.19.1.patched/arch/mips/rb500/prom.c
     1338--- linux-2.6.19.1/arch/mips/rb500/prom.c       1970-01-01 01:00:00.000000000 +0100
     1339+++ linux-2.6.19.1.patched/arch/mips/rb500/prom.c       2006-12-18 22:36:01.000000000 +0100
    13401340@@ -0,0 +1,194 @@
    13411341+/*
     
    15331533+       strcpy(arcs_cmdline, cmd_line);
    15341534+}
    1535 diff -Naurp linux-2.6.18.2/arch/mips/rb500/serial.c linux-2.6.18.2.patched/arch/mips/rb500/serial.c
    1536 --- linux-2.6.18.2/arch/mips/rb500/serial.c     1970-01-01 01:00:00.000000000 +0100
    1537 +++ linux-2.6.18.2.patched/arch/mips/rb500/serial.c     2006-12-18 17:16:35.000000000 +0100
     1535diff -Naurp linux-2.6.19.1/arch/mips/rb500/serial.c linux-2.6.19.1.patched/arch/mips/rb500/serial.c
     1536--- linux-2.6.19.1/arch/mips/rb500/serial.c     1970-01-01 01:00:00.000000000 +0100
     1537+++ linux-2.6.19.1.patched/arch/mips/rb500/serial.c     2006-12-18 22:36:01.000000000 +0100
    15381538@@ -0,0 +1,78 @@
    15391539+/**************************************************************************
     
    16151615+       return (0);
    16161616+}
    1617 diff -Naurp linux-2.6.18.2/arch/mips/rb500/setup.c linux-2.6.18.2.patched/arch/mips/rb500/setup.c
    1618 --- linux-2.6.18.2/arch/mips/rb500/setup.c      1970-01-01 01:00:00.000000000 +0100
    1619 +++ linux-2.6.18.2.patched/arch/mips/rb500/setup.c      2006-12-18 17:16:35.000000000 +0100
     1617diff -Naurp linux-2.6.19.1/arch/mips/rb500/setup.c linux-2.6.19.1.patched/arch/mips/rb500/setup.c
     1618--- linux-2.6.19.1/arch/mips/rb500/setup.c      1970-01-01 01:00:00.000000000 +0100
     1619+++ linux-2.6.19.1.patched/arch/mips/rb500/setup.c      2006-12-18 22:36:01.000000000 +0100
    16201620@@ -0,0 +1,83 @@
    16211621+/*
     
    17021702+       return "MIPS RB500";
    17031703+}
    1704 diff -Naurp linux-2.6.18.2/arch/mips/rb500/time.c linux-2.6.18.2.patched/arch/mips/rb500/time.c
    1705 --- linux-2.6.18.2/arch/mips/rb500/time.c       1970-01-01 01:00:00.000000000 +0100
    1706 +++ linux-2.6.18.2.patched/arch/mips/rb500/time.c       2006-12-18 17:16:35.000000000 +0100
     1704diff -Naurp linux-2.6.19.1/arch/mips/rb500/time.c linux-2.6.19.1.patched/arch/mips/rb500/time.c
     1705--- linux-2.6.19.1/arch/mips/rb500/time.c       1970-01-01 01:00:00.000000000 +0100
     1706+++ linux-2.6.19.1.patched/arch/mips/rb500/time.c       2006-12-18 22:36:01.000000000 +0100
    17071707@@ -0,0 +1,92 @@
    17081708+/*
     
    17981798+       write_c0_compare(r4k_cur);
    17991799+}
    1800 diff -Naurp linux-2.6.18.2/drivers/pci/Makefile linux-2.6.18.2.patched/drivers/pci/Makefile
    1801 --- linux-2.6.18.2/drivers/pci/Makefile 2006-11-04 02:33:58.000000000 +0100
    1802 +++ linux-2.6.18.2.patched/drivers/pci/Makefile 2006-12-18 17:16:35.000000000 +0100
    1803 @@ -32,6 +32,7 @@ msiobj-$(CONFIG_IA64_GENERIC) += msi-alt
    1804  msiobj-$(CONFIG_IA64_SGI_SN2) += msi-altix.o
    1805  obj-$(CONFIG_PCI_MSI) += $(msiobj-y)
     1800diff -Naurp linux-2.6.19.1/drivers/pci/Makefile linux-2.6.19.1.patched/drivers/pci/Makefile
     1801--- linux-2.6.19.1/drivers/pci/Makefile 2006-12-11 20:32:53.000000000 +0100
     1802+++ linux-2.6.19.1.patched/drivers/pci/Makefile 2006-12-18 22:36:01.000000000 +0100
     1803@@ -33,6 +33,7 @@ obj-$(CONFIG_PPC64) += setup-bus.o
     1804 obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
     1805 obj-$(CONFIG_X86_VISWS) += setup-irq.o
    18061806 
    18071807+obj-$(CONFIG_MIKROTIK_RB500) += setup-irq.o
     
    18091809 # ACPI Related PCI FW Functions
    18101810 #
    1811 diff -Naurp linux-2.6.18.2/include/asm-mips/bootinfo.h linux-2.6.18.2.patched/include/asm-mips/bootinfo.h
    1812 --- linux-2.6.18.2/include/asm-mips/bootinfo.h  2006-11-04 02:33:58.000000000 +0100
    1813 +++ linux-2.6.18.2.patched/include/asm-mips/bootinfo.h  2006-12-18 17:16:35.000000000 +0100
     1811diff -Naurp linux-2.6.19.1/include/asm-mips/bootinfo.h linux-2.6.19.1.patched/include/asm-mips/bootinfo.h
     1812--- linux-2.6.19.1/include/asm-mips/bootinfo.h  2006-12-11 20:32:53.000000000 +0100
     1813+++ linux-2.6.19.1.patched/include/asm-mips/bootinfo.h  2006-12-18 22:36:01.000000000 +0100
    18141814@@ -23,72 +23,72 @@
    18151815 /*
     
    19091909 #define  MACH_NEC_DDB5476      1       /* NEC DDB Vrc-5476 */
    19101910 #define  MACH_NEC_DDB5477      2       /* NEC DDB Vrc-5477 */
    1911 @@ -98,27 +98,27 @@
    1912  /*
    1913   * Valid machtype for group BAGET
    1914   */
    1915 -#define MACH_GROUP_BAGET       9       /* Baget                        */
    1916 +#define MACH_GROUP_BAGET       9       /* Baget                        */
    1917  #define  MACH_BAGET201         0       /* BT23-201 */
    1918  #define  MACH_BAGET202         1       /* BT23-202 */
    1919  
    1920  /*
    1921   * Cosine boards.
    1922   */
    1923 -#define MACH_GROUP_COSINE      10      /* CoSine Orion                 */
    1924 +#define MACH_GROUP_COSINE      10      /* CoSine Orion                 */
    1925  #define  MACH_COSINE_ORION     0
    1926  
    1927  /*
    1928   * Valid machtype for group GALILEO
    1929   */
    1930 -#define MACH_GROUP_GALILEO     11      /* Galileo Eval Boards          */
    1931 +#define MACH_GROUP_GALILEO     11      /* Galileo Eval Boards          */
    1932  #define  MACH_EV96100          0       /* EV96100 */
    1933  #define  MACH_EV64120A         1       /* EV64120A */
    1934  
    1935  /*
    1936   * Valid machtype for group MOMENCO
    1937   */
    1938 -#define MACH_GROUP_MOMENCO     12      /* Momentum Boards              */
    1939 +#define MACH_GROUP_MOMENCO     12      /* Momentum Boards              */
    1940  #define  MACH_MOMENCO_OCELOT   0
    1941  #define  MACH_MOMENCO_OCELOT_G 1
    1942  #define  MACH_MOMENCO_OCELOT_C 2
    1943 @@ -128,7 +128,7 @@
    1944  /*
    1945   * Valid machtype for group ITE
    1946   */
    1947 -#define MACH_GROUP_ITE         13      /* ITE Semi Eval Boards         */
    1948 +#define MACH_GROUP_ITE         13      /* ITE Semi Eval Boards         */
    1949  #define  MACH_QED_4N_S01B      0       /* ITE8172 based eval board */
    1950  
    1951  /*
    1952 @@ -154,7 +154,7 @@
     1911@@ -141,7 +141,7 @@
    19531912 /*
    19541913  * Valid machtypes for group Toshiba
     
    19591918 #define  MACH_TOPAS            1
    19601919 #define  MACH_JMR              2
    1961 @@ -169,19 +169,19 @@
     1920@@ -156,19 +156,19 @@
    19621921 /*
    19631922  * Valid machtype for group Alchemy
     
    19891948 /*
    19901949  * Valid machtype for group NEC_VR41XX
    1991 @@ -202,7 +202,7 @@
     1950@@ -189,7 +189,7 @@
    19921951 #define  MACH_TANBAC_TB0229    7       /* TANBAC TB0229 (VR4131DIMM) */
    19931952 #define  MACH_NEC_CMBVR4133    8       /* CMB VR4133 Board */
     
    19981957 
    19991958 /*
    2000 @@ -215,15 +215,17 @@
     1959@@ -202,15 +202,17 @@
    20011960 /*
    20021961  * Valid machtype for group TITAN
     
    20211980 #define CL_SIZE                        COMMAND_LINE_SIZE
    20221981 
    2023 @@ -246,7 +248,7 @@ struct boot_mem_map {
     1982@@ -233,7 +235,7 @@ struct boot_mem_map {
    20241983        struct boot_mem_map_entry {
    20251984                phys_t addr;    /* start of memory segment */
     
    20301989 };
    20311990 
    2032 @@ -271,4 +273,4 @@ extern unsigned long fw_arg0, fw_arg1, f
     1991@@ -258,4 +260,4 @@ extern unsigned long fw_arg0, fw_arg1, f
    20331992  */
    20341993 extern void plat_mem_setup(void);
     
    20361995-#endif /* _ASM_BOOTINFO_H */
    20371996+#endif                         /* _ASM_BOOTINFO_H */
    2038 diff -Naurp linux-2.6.18.2/include/asm-mips/cpu.h linux-2.6.18.2.patched/include/asm-mips/cpu.h
    2039 --- linux-2.6.18.2/include/asm-mips/cpu.h       2006-11-04 02:33:58.000000000 +0100
    2040 +++ linux-2.6.18.2.patched/include/asm-mips/cpu.h       2006-12-18 17:16:35.000000000 +0100
     1997diff -Naurp linux-2.6.19.1/include/asm-mips/cpu.h linux-2.6.19.1.patched/include/asm-mips/cpu.h
     1998--- linux-2.6.19.1/include/asm-mips/cpu.h       2006-12-11 20:32:53.000000000 +0100
     1999+++ linux-2.6.19.1.patched/include/asm-mips/cpu.h       2006-12-18 22:36:01.000000000 +0100
    20412000@@ -43,8 +43,8 @@
    20422001 #define PRID_IMP_R2000         0x0100
     
    21442103-#endif /* _ASM_CPU_H */
    21452104+#endif                         /* _ASM_CPU_H */
    2146 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/ddr.h linux-2.6.18.2.patched/include/asm-mips/rc32434/ddr.h
    2147 --- linux-2.6.18.2/include/asm-mips/rc32434/ddr.h       1970-01-01 01:00:00.000000000 +0100
    2148 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/ddr.h       2006-12-18 17:16:35.000000000 +0100
     2105diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/ddr.h linux-2.6.19.1.patched/include/asm-mips/rc32434/ddr.h
     2106--- linux-2.6.19.1/include/asm-mips/rc32434/ddr.h       1970-01-01 01:00:00.000000000 +0100
     2107+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/ddr.h       2006-12-18 22:36:01.000000000 +0100
    21492108@@ -0,0 +1,172 @@
    21502109+#ifndef __IDT_DDR_H__
     
    23202279+
    23212280+#endif                         // __IDT_DDR_H__
    2322 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/dma.h linux-2.6.18.2.patched/include/asm-mips/rc32434/dma.h
    2323 --- linux-2.6.18.2/include/asm-mips/rc32434/dma.h       1970-01-01 01:00:00.000000000 +0100
    2324 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/dma.h       2006-12-18 17:16:35.000000000 +0100
     2281diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/dma.h linux-2.6.19.1.patched/include/asm-mips/rc32434/dma.h
     2282--- linux-2.6.19.1/include/asm-mips/rc32434/dma.h       1970-01-01 01:00:00.000000000 +0100
     2283+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/dma.h       2006-12-18 22:36:01.000000000 +0100
    23252284@@ -0,0 +1,193 @@
    23262285+#ifndef __IDT_DMA_H__
     
    25172476+
    25182477+#endif                         // __IDT_DMA_H__
    2519 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/dma_v.h linux-2.6.18.2.patched/include/asm-mips/rc32434/dma_v.h
    2520 --- linux-2.6.18.2/include/asm-mips/rc32434/dma_v.h     1970-01-01 01:00:00.000000000 +0100
    2521 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/dma_v.h     2006-12-18 17:16:35.000000000 +0100
     2478diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/dma_v.h linux-2.6.19.1.patched/include/asm-mips/rc32434/dma_v.h
     2479--- linux-2.6.19.1/include/asm-mips/rc32434/dma_v.h     1970-01-01 01:00:00.000000000 +0100
     2480+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/dma_v.h     2006-12-18 22:36:01.000000000 +0100
    25222481@@ -0,0 +1,66 @@
    25232482+#ifndef __IDT_DMA_V_H__
     
    25872546+
    25882547+#endif                         // __IDT_DMA_V_H__
    2589 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/eth.h linux-2.6.18.2.patched/include/asm-mips/rc32434/eth.h
    2590 --- linux-2.6.18.2/include/asm-mips/rc32434/eth.h       1970-01-01 01:00:00.000000000 +0100
    2591 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/eth.h       2006-12-18 17:16:35.000000000 +0100
     2548diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/eth.h linux-2.6.19.1.patched/include/asm-mips/rc32434/eth.h
     2549--- linux-2.6.19.1/include/asm-mips/rc32434/eth.h       1970-01-01 01:00:00.000000000 +0100
     2550+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/eth.h       2006-12-18 22:36:01.000000000 +0100
    25922551@@ -0,0 +1,314 @@
    25932552+#ifndef        __IDT_ETH_H__
     
    29052864+
    29062865+#endif                         // __IDT_ETH_H__
    2907 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/eth_v.h linux-2.6.18.2.patched/include/asm-mips/rc32434/eth_v.h
    2908 --- linux-2.6.18.2/include/asm-mips/rc32434/eth_v.h     1970-01-01 01:00:00.000000000 +0100
    2909 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/eth_v.h     2006-12-18 17:16:35.000000000 +0100
     2866diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/eth_v.h linux-2.6.19.1.patched/include/asm-mips/rc32434/eth_v.h
     2867--- linux-2.6.19.1/include/asm-mips/rc32434/eth_v.h     1970-01-01 01:00:00.000000000 +0100
     2868+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/eth_v.h     2006-12-18 22:36:01.000000000 +0100
    29102869@@ -0,0 +1,59 @@
    29112870+#ifndef        __IDT_ETH_V_H__
     
    29682927+#define RCVPKT_LENGTH(X)     (((X) & ETHRX_length_m) >> ETHRX_length_b)        /* Length of the received packet */
    29692928+#endif                         // __IDT_ETH_V_H__
    2970 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/gpio.h linux-2.6.18.2.patched/include/asm-mips/rc32434/gpio.h
    2971 --- linux-2.6.18.2/include/asm-mips/rc32434/gpio.h      1970-01-01 01:00:00.000000000 +0100
    2972 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/gpio.h      2006-12-18 17:16:35.000000000 +0100
     2929diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/gpio.h linux-2.6.19.1.patched/include/asm-mips/rc32434/gpio.h
     2930--- linux-2.6.19.1/include/asm-mips/rc32434/gpio.h      1970-01-01 01:00:00.000000000 +0100
     2931+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/gpio.h      2006-12-18 22:36:01.000000000 +0100
    29732932@@ -0,0 +1,178 @@
    29742933+#ifndef __IDT_GPIO_H__
     
    31503109+
    31513110+#endif                         // __IDT_GPIO_H__
    3152 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/irq.h linux-2.6.18.2.patched/include/asm-mips/rc32434/irq.h
    3153 --- linux-2.6.18.2/include/asm-mips/rc32434/irq.h       1970-01-01 01:00:00.000000000 +0100
    3154 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/irq.h       2006-12-18 17:16:35.000000000 +0100
     3111diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/irq.h linux-2.6.19.1.patched/include/asm-mips/rc32434/irq.h
     3112--- linux-2.6.19.1/include/asm-mips/rc32434/irq.h       1970-01-01 01:00:00.000000000 +0100
     3113+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/irq.h       2006-12-18 22:36:01.000000000 +0100
    31553114@@ -0,0 +1,6 @@
    31563115+#ifndef __ASM_MACH_MIPS_IRQ_H
     
    31603119+
    31613120+#endif                         /* __ASM_MACH_MIPS_IRQ_H */
    3162 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/pci.h linux-2.6.18.2.patched/include/asm-mips/rc32434/pci.h
    3163 --- linux-2.6.18.2/include/asm-mips/rc32434/pci.h       1970-01-01 01:00:00.000000000 +0100
    3164 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/pci.h       2006-12-18 17:16:35.000000000 +0100
     3121diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/pci.h linux-2.6.19.1.patched/include/asm-mips/rc32434/pci.h
     3122--- linux-2.6.19.1/include/asm-mips/rc32434/pci.h       1970-01-01 01:00:00.000000000 +0100
     3123+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/pci.h       2006-12-18 22:36:01.000000000 +0100
    31653124@@ -0,0 +1,681 @@
    31663125+/**************************************************************************
     
    38453804+
    38463805+#endif                         // __IDT_PCI_H__
    3847 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/rb.h linux-2.6.18.2.patched/include/asm-mips/rc32434/rb.h
    3848 --- linux-2.6.18.2/include/asm-mips/rc32434/rb.h        1970-01-01 01:00:00.000000000 +0100
    3849 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/rb.h        2006-12-18 17:16:35.000000000 +0100
     3806diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/rb.h linux-2.6.19.1.patched/include/asm-mips/rc32434/rb.h
     3807--- linux-2.6.19.1/include/asm-mips/rc32434/rb.h        1970-01-01 01:00:00.000000000 +0100
     3808+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/rb.h        2006-12-18 22:36:01.000000000 +0100
    38503809@@ -0,0 +1,70 @@
    38513810+#ifndef __MIPS_RB_H__
     
    39193878+
    39203879+#endif
    3921 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/rc32434.h linux-2.6.18.2.patched/include/asm-mips/rc32434/rc32434.h
    3922 --- linux-2.6.18.2/include/asm-mips/rc32434/rc32434.h   1970-01-01 01:00:00.000000000 +0100
    3923 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/rc32434.h   2006-12-18 17:16:35.000000000 +0100
     3880diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/rc32434.h linux-2.6.19.1.patched/include/asm-mips/rc32434/rc32434.h
     3881--- linux-2.6.19.1/include/asm-mips/rc32434/rc32434.h   1970-01-01 01:00:00.000000000 +0100
     3882+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/rc32434.h   2006-12-18 22:36:01.000000000 +0100
    39243883@@ -0,0 +1,119 @@
    39253884+/*
     
    40424001+
    40434002+#endif                         /* _RC32434_H_ */
    4044 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/timer.h linux-2.6.18.2.patched/include/asm-mips/rc32434/timer.h
    4045 --- linux-2.6.18.2/include/asm-mips/rc32434/timer.h     1970-01-01 01:00:00.000000000 +0100
    4046 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/timer.h     2006-12-18 17:16:35.000000000 +0100
     4003diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/timer.h linux-2.6.19.1.patched/include/asm-mips/rc32434/timer.h
     4004--- linux-2.6.19.1/include/asm-mips/rc32434/timer.h     1970-01-01 01:00:00.000000000 +0100
     4005+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/timer.h     2006-12-18 22:36:01.000000000 +0100
    40474006@@ -0,0 +1,85 @@
    40484007+/**************************************************************************
     
    41314090+};
    41324091+#endif                         // __IDT_TIM_H__
    4133 diff -Naurp linux-2.6.18.2/include/asm-mips/rc32434/types.h linux-2.6.18.2.patched/include/asm-mips/rc32434/types.h
    4134 --- linux-2.6.18.2/include/asm-mips/rc32434/types.h     1970-01-01 01:00:00.000000000 +0100
    4135 +++ linux-2.6.18.2.patched/include/asm-mips/rc32434/types.h     2006-12-18 17:16:35.000000000 +0100
    4136 @@ -0,0 +1,39 @@
     4092diff -Naurp linux-2.6.19.1/include/asm-mips/rc32434/types.h linux-2.6.19.1.patched/include/asm-mips/rc32434/types.h
     4093--- linux-2.6.19.1/include/asm-mips/rc32434/types.h     1970-01-01 01:00:00.000000000 +0100
     4094+++ linux-2.6.19.1.patched/include/asm-mips/rc32434/types.h     2006-12-18 22:36:36.000000000 +0100
     4095@@ -0,0 +1,35 @@
    41374096+#ifndef __IDT_TYPES_H__
    41384097+#define __IDT_TYPES_H__
     
    41694128+typedef signed long long S64;
    41704129+
    4171 +#ifndef __cplusplus
    4172 +typedef U32 bool;              // (false == 0), (true is != false)
    4173 +#endif                         // __cplusplus
    4174 +
    41754130+#endif                         // __IDT_TYPES_H__
  • target/linux/rb-2.6/patches/110-korina_ethernet.patch

    r495b814 r31c8179  
    1 diff -Naurp linux-2.6.18.2/drivers/net/Kconfig linux-2.6.18.2.patched/drivers/net/Kconfig
    2 --- linux-2.6.18.2/drivers/net/Kconfig  2006-11-04 02:33:58.000000000 +0100
    3 +++ linux-2.6.18.2.patched/drivers/net/Kconfig  2006-12-17 19:22:08.158597070 +0100
    4 @@ -187,6 +187,13 @@ config MII
     1diff -Naurp linux-2.6.19.1/drivers/net/Kconfig linux-2.6.19.1.patched/drivers/net/Kconfig
     2--- linux-2.6.19.1/drivers/net/Kconfig  2006-12-11 20:32:53.000000000 +0100
     3+++ linux-2.6.19.1.patched/drivers/net/Kconfig  2006-12-18 18:53:20.000000000 +0100
     4@@ -190,6 +190,13 @@ config MII
    55 
    66 source "drivers/net/arm/Kconfig"
     
    1616        tristate "MACE (Power Mac ethernet) support"
    1717        depends on NET_ETHERNET && PPC_PMAC && PPC32
    18 diff -Naurp linux-2.6.18.2/drivers/net/Makefile linux-2.6.18.2.patched/drivers/net/Makefile
    19 --- linux-2.6.18.2/drivers/net/Makefile 2006-11-04 02:33:58.000000000 +0100
    20 +++ linux-2.6.18.2.patched/drivers/net/Makefile 2006-12-17 19:22:08.159596918 +0100
    21 @@ -26,6 +26,8 @@ ucc_geth_driver-objs := ucc_geth.o ucc_g
    22  #
    23  obj-$(CONFIG_PLIP) += plip.o
    24  
    25 +obj-$(CONFIG_KORINA) += korina.o
    26 +
    27  obj-$(CONFIG_ROADRUNNER) += rrunner.o
    28  
    29  obj-$(CONFIG_HAPPYMEAL) += sunhme.o
    30 diff -Naurp linux-2.6.18.2/drivers/net/korina.c linux-2.6.18.2.patched/drivers/net/korina.c
    31 --- linux-2.6.18.2/drivers/net/korina.c 1970-01-01 01:00:00.000000000 +0100
    32 +++ linux-2.6.18.2.patched/drivers/net/korina.c 2006-12-17 19:25:02.387110310 +0100
     18diff -Naurp linux-2.6.19.1/drivers/net/korina.c linux-2.6.19.1.patched/drivers/net/korina.c
     19--- linux-2.6.19.1/drivers/net/korina.c 1970-01-01 01:00:00.000000000 +0100
     20+++ linux-2.6.19.1.patched/drivers/net/korina.c 2006-12-18 18:53:20.000000000 +0100
    3321@@ -0,0 +1,1188 @@
    3422+/**************************************************************************
     
    12201208+module_init(rc32434_init_module);
    12211209+module_exit(rc32434_cleanup_module);
    1222 diff -Naurp linux-2.6.18.2/drivers/net/rc32434_eth.h linux-2.6.18.2.patched/drivers/net/rc32434_eth.h
    1223 --- linux-2.6.18.2/drivers/net/rc32434_eth.h    1970-01-01 01:00:00.000000000 +0100
    1224 +++ linux-2.6.18.2.patched/drivers/net/rc32434_eth.h    2006-12-17 19:22:08.310573966 +0100
     1210diff -Naurp linux-2.6.19.1/drivers/net/Makefile linux-2.6.19.1.patched/drivers/net/Makefile
     1211--- linux-2.6.19.1/drivers/net/Makefile 2006-12-11 20:32:53.000000000 +0100
     1212+++ linux-2.6.19.1.patched/drivers/net/Makefile 2006-12-18 18:53:20.000000000 +0100
     1213@@ -23,6 +23,8 @@ ucc_geth_driver-objs := ucc_geth.o ucc_g
     1214 #
     1215 obj-$(CONFIG_PLIP) += plip.o
     1216 
     1217+obj-$(CONFIG_KORINA) += korina.o
     1218+
     1219 obj-$(CONFIG_ROADRUNNER) += rrunner.o
     1220 
     1221 obj-$(CONFIG_HAPPYMEAL) += sunhme.o
     1222diff -Naurp linux-2.6.19.1/drivers/net/rc32434_eth.h linux-2.6.19.1.patched/drivers/net/rc32434_eth.h
     1223--- linux-2.6.19.1/drivers/net/rc32434_eth.h    1970-01-01 01:00:00.000000000 +0100
     1224+++ linux-2.6.19.1.patched/drivers/net/rc32434_eth.h    2006-12-18 18:53:20.000000000 +0100
    12251225@@ -0,0 +1,184 @@
    12261226+/**************************************************************************
  • target/linux/rb-2.6/patches/120-cf.patch

    r495b814 r31c8179  
    1 diff -Naurp linux-2.6.18.2/drivers/block/Kconfig linux-2.6.18.2.patched/drivers/block/Kconfig
    2 --- linux-2.6.18.2/drivers/block/Kconfig        2006-11-04 02:33:58.000000000 +0100
    3 +++ linux-2.6.18.2.patched/drivers/block/Kconfig        2006-12-17 19:32:07.668457718 +0100
    4 @@ -467,4 +467,12 @@ config ATA_OVER_ETH
     1diff -Naurp linux-2.6.19.1/drivers/block/Kconfig linux-2.6.19.1.patched/drivers/block/Kconfig
     2--- linux-2.6.19.1/drivers/block/Kconfig        2006-12-11 20:32:53.000000000 +0100
     3+++ linux-2.6.19.1.patched/drivers/block/Kconfig        2006-12-18 18:57:31.000000000 +0100
     4@@ -469,6 +469,14 @@ config ATA_OVER_ETH
    55        This driver provides Support for ATA over Ethernet block
    66        devices like the Coraid EtherDrive (R) Storage Blade.
     
    1515+
    1616 endmenu
    17 diff -Naurp linux-2.6.18.2/drivers/block/Makefile linux-2.6.18.2.patched/drivers/block/Makefile
    18 --- linux-2.6.18.2/drivers/block/Makefile       2006-11-04 02:33:58.000000000 +0100
    19 +++ linux-2.6.18.2.patched/drivers/block/Makefile       2006-12-17 19:32:07.675456654 +0100
     17 
     18 endif
     19diff -Naurp linux-2.6.19.1/drivers/block/Makefile linux-2.6.19.1.patched/drivers/block/Makefile
     20--- linux-2.6.19.1/drivers/block/Makefile       2006-12-11 20:32:53.000000000 +0100
     21+++ linux-2.6.19.1.patched/drivers/block/Makefile       2006-12-18 18:57:31.000000000 +0100
    2022@@ -29,4 +29,5 @@ obj-$(CONFIG_BLK_DEV_CRYPTOLOOP) += cryp
    2123 obj-$(CONFIG_VIODASD)          += viodasd.o
     
    2426+obj-$(CONFIG_BLK_DEV_CF_MIPS)  += rb500/
    2527 
    26 diff -Naurp linux-2.6.18.2/drivers/block/rb500/Makefile linux-2.6.18.2.patched/drivers/block/rb500/Makefile
    27 --- linux-2.6.18.2/drivers/block/rb500/Makefile 1970-01-01 01:00:00.000000000 +0100
    28 +++ linux-2.6.18.2.patched/drivers/block/rb500/Makefile 2006-12-17 19:32:07.808436438 +0100
    29 @@ -0,0 +1,3 @@
    30 +## Makefile for the RB532 CF port
    31 +
    32 +obj-y          += bdev.o ata.o
    33 diff -Naurp linux-2.6.18.2/drivers/block/rb500/ata.c linux-2.6.18.2.patched/drivers/block/rb500/ata.c
    34 --- linux-2.6.18.2/drivers/block/rb500/ata.c    1970-01-01 01:00:00.000000000 +0100
    35 +++ linux-2.6.18.2.patched/drivers/block/rb500/ata.c    2006-12-17 19:45:49.136575582 +0100
     28diff -Naurp linux-2.6.19.1/drivers/block/rb500/ata.c linux-2.6.19.1.patched/drivers/block/rb500/ata.c
     29--- linux-2.6.19.1/drivers/block/rb500/ata.c    1970-01-01 01:00:00.000000000 +0100
     30+++ linux-2.6.19.1.patched/drivers/block/rb500/ata.c    2006-12-18 18:57:32.000000000 +0100
    3631@@ -0,0 +1,502 @@
    3732+#include <linux/kernel.h>      /* printk() */
     
    537532+
    538533+/*eof*/
    539 diff -Naurp linux-2.6.18.2/drivers/block/rb500/ata.h linux-2.6.18.2.patched/drivers/block/rb500/ata.h
    540 --- linux-2.6.18.2/drivers/block/rb500/ata.h    1970-01-01 01:00:00.000000000 +0100
    541 +++ linux-2.6.18.2.patched/drivers/block/rb500/ata.h    2006-12-17 19:45:57.233344686 +0100
     534diff -Naurp linux-2.6.19.1/drivers/block/rb500/ata.h linux-2.6.19.1.patched/drivers/block/rb500/ata.h
     535--- linux-2.6.19.1/drivers/block/rb500/ata.h    1970-01-01 01:00:00.000000000 +0100
     536+++ linux-2.6.19.1.patched/drivers/block/rb500/ata.h    2006-12-18 18:57:32.000000000 +0100
    542537@@ -0,0 +1,132 @@
    543538+#ifndef __CFMIPS_ATA_H__
     
    673668+
    674669+#endif
    675 diff -Naurp linux-2.6.18.2/drivers/block/rb500/bdev.c linux-2.6.18.2.patched/drivers/block/rb500/bdev.c
    676 --- linux-2.6.18.2/drivers/block/rb500/bdev.c   1970-01-01 01:00:00.000000000 +0100
    677 +++ linux-2.6.18.2.patched/drivers/block/rb500/bdev.c   2006-12-17 19:46:02.228585294 +0100
     670diff -Naurp linux-2.6.19.1/drivers/block/rb500/bdev.c linux-2.6.19.1.patched/drivers/block/rb500/bdev.c
     671--- linux-2.6.19.1/drivers/block/rb500/bdev.c   1970-01-01 01:00:00.000000000 +0100
     672+++ linux-2.6.19.1.patched/drivers/block/rb500/bdev.c   2006-12-18 18:57:32.000000000 +0100
    678673@@ -0,0 +1,349 @@
    679674+/* CF-mips driver
     
    10261021+       spin_unlock(&dev->lock);
    10271022+}
     1023diff -Naurp linux-2.6.19.1/drivers/block/rb500/Makefile linux-2.6.19.1.patched/drivers/block/rb500/Makefile
     1024--- linux-2.6.19.1/drivers/block/rb500/Makefile 1970-01-01 01:00:00.000000000 +0100
     1025+++ linux-2.6.19.1.patched/drivers/block/rb500/Makefile 2006-12-18 18:57:32.000000000 +0100
     1026@@ -0,0 +1,3 @@
     1027+## Makefile for the RB532 CF port
     1028+
     1029+obj-y          += bdev.o ata.o
  • target/linux/rb-2.6/patches/130-rbmipsnand.patch

    r495b814 r31c8179  
    1 diff -NaurB linux-2.6.18.2/drivers/mtd/nand/Kconfig linux-2.6.18.2.patched/drivers/mtd/nand/Kconfig
    2 --- linux-2.6.18.2/drivers/mtd/nand/Kconfig     2006-11-04 02:33:58.000000000 +0100
    3 +++ linux-2.6.18.2.patched/drivers/mtd/nand/Kconfig     2006-12-12 15:02:30.353515367 +0100
    4 @@ -75,6 +75,12 @@
     1diff -Naurp linux-2.6.19.1/drivers/mtd/nand/Kconfig linux-2.6.19.1.patched/drivers/mtd/nand/Kconfig
     2--- linux-2.6.19.1/drivers/mtd/nand/Kconfig     2006-12-11 20:32:53.000000000 +0100
     3+++ linux-2.6.19.1.patched/drivers/mtd/nand/Kconfig     2006-12-18 19:18:10.000000000 +0100
     4@@ -75,6 +75,12 @@ config MTD_NAND_TS7250
    55        help
    66          Support for NAND flash on Technologic Systems TS-7250 platform.
     
    1515        tristate
    1616 
    17 diff -NaurB linux-2.6.18.2/drivers/mtd/nand/Makefile linux-2.6.18.2.patched/drivers/mtd/nand/Makefile
    18 --- linux-2.6.18.2/drivers/mtd/nand/Makefile    2006-11-04 02:33:58.000000000 +0100
    19 +++ linux-2.6.18.2.patched/drivers/mtd/nand/Makefile    2006-12-12 15:02:30.377511719 +0100
    20 @@ -9,6 +9,7 @@
     17diff -Naurp linux-2.6.19.1/drivers/mtd/nand/Makefile linux-2.6.19.1.patched/drivers/mtd/nand/Makefile
     18--- linux-2.6.19.1/drivers/mtd/nand/Makefile    2006-12-11 20:32:53.000000000 +0100
     19+++ linux-2.6.19.1.patched/drivers/mtd/nand/Makefile    2006-12-18 19:18:10.000000000 +0100
     20@@ -9,6 +9,7 @@ obj-$(CONFIG_MTD_NAND_IDS)              += nand_ids.
    2121 obj-$(CONFIG_MTD_NAND_SPIA)            += spia.o
    2222 obj-$(CONFIG_MTD_NAND_AMS_DELTA)       += ams-delta.o
     
    2626 obj-$(CONFIG_MTD_NAND_EDB7312)         += edb7312.o
    2727 obj-$(CONFIG_MTD_NAND_AU1550)          += au1550nd.o
    28 diff -NaurB linux-2.6.18.2/drivers/mtd/nand/rbmipsnand.c linux-2.6.18.2.patched/drivers/mtd/nand/rbmipsnand.c
    29 --- linux-2.6.18.2/drivers/mtd/nand/rbmipsnand.c        1970-01-01 01:00:00.000000000 +0100
    30 +++ linux-2.6.18.2.patched/drivers/mtd/nand/rbmipsnand.c        2006-12-12 15:02:38.845224431 +0100
     28diff -Naurp linux-2.6.19.1/drivers/mtd/nand/rbmipsnand.c linux-2.6.19.1.patched/drivers/mtd/nand/rbmipsnand.c
     29--- linux-2.6.19.1/drivers/mtd/nand/rbmipsnand.c        1970-01-01 01:00:00.000000000 +0100
     30+++ linux-2.6.19.1.patched/drivers/mtd/nand/rbmipsnand.c        2006-12-18 19:18:10.000000000 +0100
    3131@@ -0,0 +1,137 @@
    3232+#include <linux/init.h>
  • target/linux/rb-2.6/patches/140-yaffs2.patch

    r495b814 r31c8179  
    1 diff -NaurB linux-2.6.18.2/fs/Kconfig linux-2.6.18.2.patched/fs/Kconfig
    2 --- linux-2.6.18.2/fs/Kconfig   2006-11-04 02:33:58.000000000 +0100
    3 +++ linux-2.6.18.2.patched/fs/Kconfig   2006-12-11 13:10:48.000000000 +0100
    4 @@ -1045,6 +1045,10 @@
     1diff -Naurp linux-2.6.19.1/fs/Kconfig linux-2.6.19.1.patched/fs/Kconfig
     2--- linux-2.6.19.1/fs/Kconfig   2006-12-11 20:32:53.000000000 +0100
     3+++ linux-2.6.19.1.patched/fs/Kconfig   2006-12-18 22:07:31.000000000 +0100
     4@@ -1202,6 +1202,10 @@ config EFS_FS
    55          To compile the EFS file system support as a module, choose M here: the
    66          module will be called efs.
     
    1212 config JFFS_FS
    1313        tristate "Journalling Flash File System (JFFS) support"
    14         depends on MTD
    15 diff -NaurB linux-2.6.18.2/fs/Makefile linux-2.6.18.2.patched/fs/Makefile
    16 --- linux-2.6.18.2/fs/Makefile  2006-11-04 02:33:58.000000000 +0100
    17 +++ linux-2.6.18.2.patched/fs/Makefile  2006-12-11 13:10:48.000000000 +0100
    18 @@ -102,3 +102,6 @@
    19  obj-$(CONFIG_HPPFS)            += hppfs/
     14        depends on MTD && BLOCK
     15diff -Naurp linux-2.6.19.1/fs/Makefile linux-2.6.19.1.patched/fs/Makefile
     16--- linux-2.6.19.1/fs/Makefile  2006-12-11 20:32:53.000000000 +0100
     17+++ linux-2.6.19.1.patched/fs/Makefile  2006-12-18 22:07:31.000000000 +0100
     18@@ -114,3 +114,6 @@ obj-$(CONFIG_HPPFS)         += hppfs/
    2019 obj-$(CONFIG_DEBUG_FS)         += debugfs/
    2120 obj-$(CONFIG_OCFS2_FS)         += ocfs2/
     21 obj-$(CONFIG_GFS2_FS)           += gfs2/
    2222+
    2323+# Patched by YAFFS
    2424+obj-$(CONFIG_YAFFS_FS)         += yaffs2/
    25 diff -NaurB linux-2.6.18.2/fs/yaffs2/devextras.h linux-2.6.18.2.patched/fs/yaffs2/devextras.h
    26 --- linux-2.6.18.2/fs/yaffs2/devextras.h        1970-01-01 01:00:00.000000000 +0100
    27 +++ linux-2.6.18.2.patched/fs/yaffs2/devextras.h        2006-12-11 13:10:48.000000000 +0100
     25diff -Naurp linux-2.6.19.1/fs/yaffs2/devextras.h linux-2.6.19.1.patched/fs/yaffs2/devextras.h
     26--- linux-2.6.19.1/fs/yaffs2/devextras.h        1970-01-01 01:00:00.000000000 +0100
     27+++ linux-2.6.19.1.patched/fs/yaffs2/devextras.h        2006-12-18 22:07:31.000000000 +0100
    2828@@ -0,0 +1,265 @@
    2929+/*
     
    292292+
    293293+#endif
    294 diff -NaurB linux-2.6.18.2/fs/yaffs2/Kconfig linux-2.6.18.2.patched/fs/yaffs2/Kconfig
    295 --- linux-2.6.18.2/fs/yaffs2/Kconfig    1970-01-01 01:00:00.000000000 +0100
    296 +++ linux-2.6.18.2.patched/fs/yaffs2/Kconfig    2006-12-11 13:10:48.000000000 +0100
     294diff -Naurp linux-2.6.19.1/fs/yaffs2/Kconfig linux-2.6.19.1.patched/fs/yaffs2/Kconfig
     295--- linux-2.6.19.1/fs/yaffs2/Kconfig    1970-01-01 01:00:00.000000000 +0100
     296+++ linux-2.6.19.1.patched/fs/yaffs2/Kconfig    2006-12-18 22:07:31.000000000 +0100
    297297@@ -0,0 +1,135 @@
    298298+#
     
    431431+
    432432+         If unsure, say Y.
    433 diff -NaurB linux-2.6.18.2/fs/yaffs2/Makefile linux-2.6.18.2.patched/fs/yaffs2/Makefile
    434 --- linux-2.6.18.2/fs/yaffs2/Makefile   1970-01-01 01:00:00.000000000 +0100
    435 +++ linux-2.6.18.2.patched/fs/yaffs2/Makefile   2006-12-11 13:10:48.000000000 +0100
     433diff -Naurp linux-2.6.19.1/fs/yaffs2/Makefile linux-2.6.19.1.patched/fs/yaffs2/Makefile
     434--- linux-2.6.19.1/fs/yaffs2/Makefile   1970-01-01 01:00:00.000000000 +0100
     435+++ linux-2.6.19.1.patched/fs/yaffs2/Makefile   2006-12-18 22:07:31.000000000 +0100
    436436@@ -0,0 +1,10 @@
    437437+#
     
    445445+yaffs-y += yaffs_tagscompat.o yaffs_tagsvalidity.o
    446446+yaffs-y += yaffs_mtdif.o yaffs_mtdif2.o
    447 diff -NaurB linux-2.6.18.2/fs/yaffs2/moduleconfig.h linux-2.6.18.2.patched/fs/yaffs2/moduleconfig.h
    448 --- linux-2.6.18.2/fs/yaffs2/moduleconfig.h     1970-01-01 01:00:00.000000000 +0100
    449 +++ linux-2.6.18.2.patched/fs/yaffs2/moduleconfig.h     2006-12-11 13:10:48.000000000 +0100
     447diff -Naurp linux-2.6.19.1/fs/yaffs2/moduleconfig.h linux-2.6.19.1.patched/fs/yaffs2/moduleconfig.h
     448--- linux-2.6.19.1/fs/yaffs2/moduleconfig.h     1970-01-01 01:00:00.000000000 +0100
     449+++ linux-2.6.19.1.patched/fs/yaffs2/moduleconfig.h     2006-12-18 22:07:31.000000000 +0100
    450450@@ -0,0 +1,32 @@
    451451+#ifndef __YAFFS_CONFIG_H__
     
    481481+
    482482+#endif /* __YAFFS_CONFIG_H__ */
    483 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_checkptrw.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_checkptrw.c
    484 --- linux-2.6.18.2/fs/yaffs2/yaffs_checkptrw.c  1970-01-01 01:00:00.000000000 +0100
    485 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_checkptrw.c  2006-12-11 13:10:48.000000000 +0100
     483diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_checkptrw.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_checkptrw.c
     484--- linux-2.6.19.1/fs/yaffs2/yaffs_checkptrw.c  1970-01-01 01:00:00.000000000 +0100
     485+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_checkptrw.c  2006-12-18 22:07:31.000000000 +0100
    486486@@ -0,0 +1,384 @@
    487487+/* YAFFS: Yet another FFS. A NAND-flash specific file system.
     
    869869+
    870870+
    871 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_checkptrw.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_checkptrw.h
    872 --- linux-2.6.18.2/fs/yaffs2/yaffs_checkptrw.h  1970-01-01 01:00:00.000000000 +0100
    873 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_checkptrw.h  2006-12-11 13:10:48.000000000 +0100
     871diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_checkptrw.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_checkptrw.h
     872--- linux-2.6.19.1/fs/yaffs2/yaffs_checkptrw.h  1970-01-01 01:00:00.000000000 +0100
     873+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_checkptrw.h  2006-12-18 22:07:31.000000000 +0100
    874874@@ -0,0 +1,18 @@
    875875+#ifndef __YAFFS_CHECKPTRW_H__
     
    891891+#endif
    892892+
    893 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_ecc.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_ecc.c
    894 --- linux-2.6.18.2/fs/yaffs2/yaffs_ecc.c        1970-01-01 01:00:00.000000000 +0100
    895 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_ecc.c        2006-12-11 13:10:48.000000000 +0100
     893diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_ecc.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_ecc.c
     894--- linux-2.6.19.1/fs/yaffs2/yaffs_ecc.c        1970-01-01 01:00:00.000000000 +0100
     895+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_ecc.c        2006-12-18 22:07:31.000000000 +0100
    896896@@ -0,0 +1,333 @@
    897897+/*
     
    12281228+}
    12291229+
    1230 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_ecc.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_ecc.h
    1231 --- linux-2.6.18.2/fs/yaffs2/yaffs_ecc.h        1970-01-01 01:00:00.000000000 +0100
    1232 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_ecc.h        2006-12-11 13:10:48.000000000 +0100
     1230diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_ecc.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_ecc.h
     1231--- linux-2.6.19.1/fs/yaffs2/yaffs_ecc.h        1970-01-01 01:00:00.000000000 +0100
     1232+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_ecc.h        2006-12-18 22:07:31.000000000 +0100
    12331233@@ -0,0 +1,44 @@
    12341234+/*
     
    12761276+                         const yaffs_ECCOther * test_ecc);
    12771277+#endif
    1278 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_fs.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_fs.c
    1279 --- linux-2.6.18.2/fs/yaffs2/yaffs_fs.c 1970-01-01 01:00:00.000000000 +0100
    1280 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_fs.c 2006-12-11 13:10:48.000000000 +0100
    1281 @@ -0,0 +1,2116 @@
     1278diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_fs.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_fs.c
     1279--- linux-2.6.19.1/fs/yaffs2/yaffs_fs.c 1970-01-01 01:00:00.000000000 +0100
     1280+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_fs.c 2006-12-18 22:07:55.000000000 +0100
     1281@@ -0,0 +1,2136 @@
    12821282+/*
    12831283+ * YAFFS: Yet another FFS. A NAND-flash specific file system.
     
    13161316+extern const char *yaffs_guts_c_version;
    13171317+
    1318 +#include <linux/config.h>
    13191318+#include <linux/kernel.h>
    13201319+#include <linux/module.h>
     
    13611360+
    13621361+unsigned yaffs_traceMask = YAFFS_TRACE_ALWAYS |
    1363 +                          YAFFS_TRACE_BAD_BLOCKS |
    1364 +                          YAFFS_TRACE_CHECKPOINT
     1362+                          YAFFS_TRACE_BAD_BLOCKS
     1363+                          /* | YAFFS_TRACE_CHECKPOINT */
    13651364+                          /* | 0xFFFFFFFF */;
    13661365+
     
    13711370+/*#define T(x) printk x */
    13721371+
     1372+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18))
     1373+#define yaffs_InodeToObject(iptr) ((yaffs_Object *)((iptr)->i_private))
     1374+#else
    13731375+#define yaffs_InodeToObject(iptr) ((yaffs_Object *)((iptr)->u.generic_ip))
     1376+#endif
    13741377+#define yaffs_DentryToObject(dptr) yaffs_InodeToObject((dptr)->d_inode)
    13751378+
     
    14711474+
    14721475+static struct file_operations yaffs_file_operations = {
     1476+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18))
     1477+       .read = do_sync_read,
     1478+       .write = do_sync_write,
     1479+       .aio_read = generic_file_aio_read,
     1480+       .aio_write = generic_file_aio_write,
     1481+#else
    14731482+       .read = generic_file_read,
    14741483+       .write = generic_file_write,
     1484+#endif
    14751485+       .mmap = generic_file_mmap,
    14761486+       .flush = yaffs_file_flush,
     
    16901700+                */
    16911701+               obj->myInode = NULL;
     1702+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18))
     1703+               inode->i_private = NULL;
     1704+#else
    16921705+               inode->u.generic_ip = NULL;
     1706+#endif
    16931707+
    16941708+               /* If the object freeing was deferred, then the real
     
    19862000+               inode->i_uid = obj->yst_uid;
    19872001+               inode->i_gid = obj->yst_gid;
     2002+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19))
    19882003+               inode->i_blksize = inode->i_sb->s_blocksize;
     2004+#endif
    19892005+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
    19902006+
     
    20382054+               }
    20392055+
     2056+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,18))
     2057+               inode->i_private = obj;
     2058+#else
    20402059+               inode->u.generic_ip = obj;
     2060+#endif
    20412061+               obj->myInode = inode;
    20422062+
     
    33963416+MODULE_AUTHOR("Charles Manning, Aleph One Ltd., 2002-2006");
    33973417+MODULE_LICENSE("GPL");
    3398 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_guts.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_guts.c
    3399 --- linux-2.6.18.2/fs/yaffs2/yaffs_guts.c       1970-01-01 01:00:00.000000000 +0100
    3400 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_guts.c       2006-12-11 13:10:48.000000000 +0100
     3418diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_guts.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_guts.c
     3419--- linux-2.6.19.1/fs/yaffs2/yaffs_guts.c       1970-01-01 01:00:00.000000000 +0100
     3420+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_guts.c       2006-12-18 22:07:31.000000000 +0100
    34013421@@ -0,0 +1,6675 @@
    34023422+/*
     
    1007510095+           return YAFFS_OK;
    1007610096+}
    10077 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_guts.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_guts.h
    10078 --- linux-2.6.18.2/fs/yaffs2/yaffs_guts.h       1970-01-01 01:00:00.000000000 +0100
    10079 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_guts.h       2006-12-11 13:10:48.000000000 +0100
     10097diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_guts.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_guts.h
     10098--- linux-2.6.19.1/fs/yaffs2/yaffs_guts.h       1970-01-01 01:00:00.000000000 +0100
     10099+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_guts.h       2006-12-18 22:07:31.000000000 +0100
    1008010100@@ -0,0 +1,893 @@
    1008110101+/*
     
    1097210992+
    1097310993+#endif
    10974 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffsinterface.h linux-2.6.18.2.patched/fs/yaffs2/yaffsinterface.h
    10975 --- linux-2.6.18.2/fs/yaffs2/yaffsinterface.h   1970-01-01 01:00:00.000000000 +0100
    10976 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffsinterface.h   2006-12-11 13:10:48.000000000 +0100
     10994diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffsinterface.h linux-2.6.19.1.patched/fs/yaffs2/yaffsinterface.h
     10995--- linux-2.6.19.1/fs/yaffs2/yaffsinterface.h   1970-01-01 01:00:00.000000000 +0100
     10996+++ linux-2.6.19.1.patched/fs/yaffs2/yaffsinterface.h   2006-12-18 22:07:31.000000000 +0100
    1097710997@@ -0,0 +1,23 @@
    1097810998+/*
     
    1099911019+
    1100011020+#endif
    11001 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_mtdif2.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_mtdif2.c
    11002 --- linux-2.6.18.2/fs/yaffs2/yaffs_mtdif2.c     1970-01-01 01:00:00.000000000 +0100
    11003 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_mtdif2.c     2006-12-11 13:10:48.000000000 +0100
     11021diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_mtdif2.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_mtdif2.c
     11022--- linux-2.6.19.1/fs/yaffs2/yaffs_mtdif2.c     1970-01-01 01:00:00.000000000 +0100
     11023+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_mtdif2.c     2006-12-18 22:07:31.000000000 +0100
    1100411024@@ -0,0 +1,234 @@
    1100511025+/*
     
    1123711257+}
    1123811258+
    11239 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_mtdif2.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_mtdif2.h
    11240 --- linux-2.6.18.2/fs/yaffs2/yaffs_mtdif2.h     1970-01-01 01:00:00.000000000 +0100
    11241 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_mtdif2.h     2006-12-11 13:10:48.000000000 +0100
     11259diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_mtdif2.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_mtdif2.h
     11260--- linux-2.6.19.1/fs/yaffs2/yaffs_mtdif2.h     1970-01-01 01:00:00.000000000 +0100
     11261+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_mtdif2.h     2006-12-18 22:07:31.000000000 +0100
    1124211262@@ -0,0 +1,29 @@
    1124311263+/*
     
    1127011290+
    1127111291+#endif
    11272 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_mtdif.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_mtdif.c
    11273 --- linux-2.6.18.2/fs/yaffs2/yaffs_mtdif.c      1970-01-01 01:00:00.000000000 +0100
    11274 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_mtdif.c      2006-12-11 13:10:48.000000000 +0100
     11292diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_mtdif.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_mtdif.c
     11293--- linux-2.6.19.1/fs/yaffs2/yaffs_mtdif.c      1970-01-01 01:00:00.000000000 +0100
     11294+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_mtdif.c      2006-12-18 22:07:31.000000000 +0100
    1127511295@@ -0,0 +1,243 @@
    1127611296+/*
     
    1151711537+}
    1151811538+
    11519 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_mtdif.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_mtdif.h
    11520 --- linux-2.6.18.2/fs/yaffs2/yaffs_mtdif.h      1970-01-01 01:00:00.000000000 +0100
    11521 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_mtdif.h      2006-12-11 13:10:48.000000000 +0100
     11539diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_mtdif.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_mtdif.h
     11540--- linux-2.6.19.1/fs/yaffs2/yaffs_mtdif.h      1970-01-01 01:00:00.000000000 +0100
     11541+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_mtdif.h      2006-12-18 22:07:31.000000000 +0100
    1152211542@@ -0,0 +1,31 @@
    1152311543+/*
     
    1155211572+int nandmtd_InitialiseNAND(yaffs_Device * dev);
    1155311573+#endif
    11554 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_nand.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_nand.c
    11555 --- linux-2.6.18.2/fs/yaffs2/yaffs_nand.c       1970-01-01 01:00:00.000000000 +0100
    11556 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_nand.c       2006-12-11 13:10:48.000000000 +0100
     11574diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_nand.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_nand.c
     11575--- linux-2.6.19.1/fs/yaffs2/yaffs_nand.c       1970-01-01 01:00:00.000000000 +0100
     11576+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_nand.c       2006-12-18 22:07:31.000000000 +0100
    1155711577@@ -0,0 +1,135 @@
    1155811578+/*
     
    1169111711+
    1169211712+
    11693 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_nandemul2k.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_nandemul2k.h
    11694 --- linux-2.6.18.2/fs/yaffs2/yaffs_nandemul2k.h 1970-01-01 01:00:00.000000000 +0100
    11695 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_nandemul2k.h 2006-12-11 13:10:48.000000000 +0100
     11713diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_nandemul2k.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_nandemul2k.h
     11714--- linux-2.6.19.1/fs/yaffs2/yaffs_nandemul2k.h 1970-01-01 01:00:00.000000000 +0100
     11715+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_nandemul2k.h 2006-12-18 22:07:31.000000000 +0100
    1169611716@@ -0,0 +1,42 @@
    1169711717+/*
     
    1173711757+
    1173811758+#endif
    11739 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_nand.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_nand.h
    11740 --- linux-2.6.18.2/fs/yaffs2/yaffs_nand.h       1970-01-01 01:00:00.000000000 +0100
    11741 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_nand.h       2006-12-11 13:10:48.000000000 +0100
     11759diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_nand.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_nand.h
     11760--- linux-2.6.19.1/fs/yaffs2/yaffs_nand.h       1970-01-01 01:00:00.000000000 +0100
     11761+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_nand.h       2006-12-18 22:07:31.000000000 +0100
    1174211762@@ -0,0 +1,43 @@
    1174311763+/*
     
    1178411804+#endif
    1178511805+
    11786 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_packedtags1.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_packedtags1.c
    11787 --- linux-2.6.18.2/fs/yaffs2/yaffs_packedtags1.c        1970-01-01 01:00:00.000000000 +0100
    11788 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_packedtags1.c        2006-12-11 13:10:48.000000000 +0100
     11806diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_packedtags1.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_packedtags1.c
     11807--- linux-2.6.19.1/fs/yaffs2/yaffs_packedtags1.c        1970-01-01 01:00:00.000000000 +0100
     11808+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_packedtags1.c        2006-12-18 22:07:31.000000000 +0100
    1178911809@@ -0,0 +1,39 @@
    1179011810+#include "yaffs_packedtags1.h"
     
    1182711847+       }
    1182811848+}
    11829 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_packedtags1.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_packedtags1.h
    11830 --- linux-2.6.18.2/fs/yaffs2/yaffs_packedtags1.h        1970-01-01 01:00:00.000000000 +0100
    11831 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_packedtags1.h        2006-12-11 13:10:48.000000000 +0100
     11849diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_packedtags1.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_packedtags1.h
     11850--- linux-2.6.19.1/fs/yaffs2/yaffs_packedtags1.h        1970-01-01 01:00:00.000000000 +0100
     11851+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_packedtags1.h        2006-12-18 22:07:31.000000000 +0100
    1183211852@@ -0,0 +1,22 @@
    1183311853+// This is used to pack YAFFS1 tags, not YAFFS2 tags.
     
    1185311873+void yaffs_UnpackTags1(yaffs_ExtendedTags * t, const yaffs_PackedTags1 * pt);
    1185411874+#endif
    11855 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_packedtags2.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_packedtags2.c
    11856 --- linux-2.6.18.2/fs/yaffs2/yaffs_packedtags2.c        1970-01-01 01:00:00.000000000 +0100
    11857 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_packedtags2.c        2006-12-11 13:10:48.000000000 +0100
     11875diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_packedtags2.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_packedtags2.c
     11876--- linux-2.6.19.1/fs/yaffs2/yaffs_packedtags2.c        1970-01-01 01:00:00.000000000 +0100
     11877+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_packedtags2.c        2006-12-18 22:07:31.000000000 +0100
    1185811878@@ -0,0 +1,184 @@
    1185911879+/*
     
    1204112061+
    1204212062+}
    12043 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_packedtags2.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_packedtags2.h
    12044 --- linux-2.6.18.2/fs/yaffs2/yaffs_packedtags2.h        1970-01-01 01:00:00.000000000 +0100
    12045 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_packedtags2.h        2006-12-11 13:10:48.000000000 +0100
     12063diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_packedtags2.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_packedtags2.h
     12064--- linux-2.6.19.1/fs/yaffs2/yaffs_packedtags2.h        1970-01-01 01:00:00.000000000 +0100
     12065+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_packedtags2.h        2006-12-18 22:07:31.000000000 +0100
    1204612066@@ -0,0 +1,23 @@
    1204712067+/* This is used to pack YAFFS2 tags, not YAFFS1tags. */
     
    1206812088+void yaffs_UnpackTags2(yaffs_ExtendedTags * t, yaffs_PackedTags2 * pt);
    1206912089+#endif
    12070 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_qsort.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_qsort.c
    12071 --- linux-2.6.18.2/fs/yaffs2/yaffs_qsort.c      1970-01-01 01:00:00.000000000 +0100
    12072 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_qsort.c      2006-12-11 13:10:48.000000000 +0100
     12090diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_qsort.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_qsort.c
     12091--- linux-2.6.19.1/fs/yaffs2/yaffs_qsort.c      1970-01-01 01:00:00.000000000 +0100
     12092+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_qsort.c      2006-12-18 22:07:31.000000000 +0100
    1207312093@@ -0,0 +1,156 @@
    1207412094+/*
     
    1222812248+/*             qsort(pn - r, r / es, es, cmp);*/
    1222912249+}
    12230 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_qsort.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_qsort.h
    12231 --- linux-2.6.18.2/fs/yaffs2/yaffs_qsort.h      1970-01-01 01:00:00.000000000 +0100
    12232 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_qsort.h      2006-12-11 13:10:48.000000000 +0100
     12250diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_qsort.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_qsort.h
     12251--- linux-2.6.19.1/fs/yaffs2/yaffs_qsort.h      1970-01-01 01:00:00.000000000 +0100
     12252+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_qsort.h      2006-12-18 22:07:31.000000000 +0100
    1223312253@@ -0,0 +1,23 @@
    1223412254+/*
     
    1225512275+
    1225612276+#endif
    12257 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_tagscompat.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_tagscompat.c
    12258 --- linux-2.6.18.2/fs/yaffs2/yaffs_tagscompat.c 1970-01-01 01:00:00.000000000 +0100
    12259 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_tagscompat.c 2006-12-11 13:10:48.000000000 +0100
     12277diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_tagscompat.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_tagscompat.c
     12278--- linux-2.6.19.1/fs/yaffs2/yaffs_tagscompat.c 1970-01-01 01:00:00.000000000 +0100
     12279+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_tagscompat.c 2006-12-18 22:07:31.000000000 +0100
    1226012280@@ -0,0 +1,532 @@
    1226112281+/*
     
    1279112811+       return YAFFS_OK;
    1279212812+}
    12793 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_tagscompat.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_tagscompat.h
    12794 --- linux-2.6.18.2/fs/yaffs2/yaffs_tagscompat.h 1970-01-01 01:00:00.000000000 +0100
    12795 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_tagscompat.h 2006-12-11 13:10:48.000000000 +0100
     12813diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_tagscompat.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_tagscompat.h
     12814--- linux-2.6.19.1/fs/yaffs2/yaffs_tagscompat.h 1970-01-01 01:00:00.000000000 +0100
     12815+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_tagscompat.h 2006-12-18 22:07:31.000000000 +0100
    1279612816@@ -0,0 +1,40 @@
    1279712817+/*
     
    1283512855+
    1283612856+#endif
    12837 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_tagsvalidity.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_tagsvalidity.c
    12838 --- linux-2.6.18.2/fs/yaffs2/yaffs_tagsvalidity.c       1970-01-01 01:00:00.000000000 +0100
    12839 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_tagsvalidity.c       2006-12-11 13:10:48.000000000 +0100
     12857diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_tagsvalidity.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_tagsvalidity.c
     12858--- linux-2.6.19.1/fs/yaffs2/yaffs_tagsvalidity.c       1970-01-01 01:00:00.000000000 +0100
     12859+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_tagsvalidity.c       2006-12-18 22:07:31.000000000 +0100
    1284012860@@ -0,0 +1,31 @@
    1284112861+
     
    1287012890+
    1287112891+}
    12872 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_tagsvalidity.h linux-2.6.18.2.patched/fs/yaffs2/yaffs_tagsvalidity.h
    12873 --- linux-2.6.18.2/fs/yaffs2/yaffs_tagsvalidity.h       1970-01-01 01:00:00.000000000 +0100
    12874 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_tagsvalidity.h       2006-12-11 13:10:48.000000000 +0100
     12892diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_tagsvalidity.h linux-2.6.19.1.patched/fs/yaffs2/yaffs_tagsvalidity.h
     12893--- linux-2.6.19.1/fs/yaffs2/yaffs_tagsvalidity.h       1970-01-01 01:00:00.000000000 +0100
     12894+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_tagsvalidity.h       2006-12-18 22:07:31.000000000 +0100
    1287512895@@ -0,0 +1,25 @@
    1287612896+
     
    1289912919+int yaffs_ValidateTags(yaffs_ExtendedTags * tags);
    1290012920+#endif
    12901 diff -NaurB linux-2.6.18.2/fs/yaffs2/yportenv.h linux-2.6.18.2.patched/fs/yaffs2/yportenv.h
    12902 --- linux-2.6.18.2/fs/yaffs2/yportenv.h 1970-01-01 01:00:00.000000000 +0100
    12903 +++ linux-2.6.18.2.patched/fs/yaffs2/yportenv.h 2006-12-11 13:10:48.000000000 +0100
    12904 @@ -0,0 +1,165 @@
     12921diff -Naurp linux-2.6.19.1/fs/yaffs2/yportenv.h linux-2.6.19.1.patched/fs/yaffs2/yportenv.h
     12922--- linux-2.6.19.1/fs/yaffs2/yportenv.h 1970-01-01 01:00:00.000000000 +0100
     12923+++ linux-2.6.19.1.patched/fs/yaffs2/yportenv.h 2006-12-18 22:08:03.000000000 +0100
     12924@@ -0,0 +1,164 @@
    1290512925+/*
    1290612926+ * YAFFS: Yet another FFS. A NAND-flash specific file system.
     
    1293612956+
    1293712957+/* Linux kernel */
    12938 +#include <linux/config.h>
    1293912958+#include <linux/kernel.h>
    1294012959+#include <linux/version.h>
  • target/linux/rb-2.6/patches/141-yaffs2-checkpointoption.patch

    r495b814 r31c8179  
    1 diff -NaurB linux-2.6.18.2/fs/yaffs2/Kconfig linux-2.6.18.2.patched/fs/yaffs2/Kconfig
    2 --- linux-2.6.18.2/fs/yaffs2/Kconfig    2006-12-11 16:48:01.000000000 +0100
    3 +++ linux-2.6.18.2.patched/fs/yaffs2/Kconfig    2006-12-11 16:26:12.000000000 +0100
    4 @@ -90,6 +90,24 @@
     1diff -Naurp linux-2.6.19.1/fs/yaffs2/Kconfig linux-2.6.19.1.patched/fs/yaffs2/Kconfig
     2--- linux-2.6.19.1/fs/yaffs2/Kconfig    2006-12-18 22:11:59.000000000 +0100
     3+++ linux-2.6.19.1.patched/fs/yaffs2/Kconfig    2006-12-18 22:12:11.000000000 +0100
     4@@ -90,6 +90,24 @@ config YAFFS_DISABLE_LAZY_LOAD
    55 
    66          If unsure, say N.
     
    2727        bool "Turn off wide tnodes"
    2828        depends on YAFFS_FS
    29 diff -NaurB linux-2.6.18.2/fs/yaffs2/moduleconfig.h linux-2.6.18.2.patched/fs/yaffs2/moduleconfig.h
    30 --- linux-2.6.18.2/fs/yaffs2/moduleconfig.h     2006-12-11 16:48:01.000000000 +0100
    31 +++ linux-2.6.18.2.patched/fs/yaffs2/moduleconfig.h     2006-12-11 16:26:14.000000000 +0100
     29diff -Naurp linux-2.6.19.1/fs/yaffs2/moduleconfig.h linux-2.6.19.1.patched/fs/yaffs2/moduleconfig.h
     30--- linux-2.6.19.1/fs/yaffs2/moduleconfig.h     2006-12-18 22:11:59.000000000 +0100
     31+++ linux-2.6.19.1.patched/fs/yaffs2/moduleconfig.h     2006-12-18 22:12:11.000000000 +0100
    3232@@ -27,6 +27,10 @@
    3333 /* Meaning: Cache short names, taking more RAM, but faster look-ups */
     
    3636+/* Default: 10 */
    3737+/* Meaning: set the count of blocks to reserve for checkpointing */
    38 +#define YAFFS_CHECKPOINT_RESERVED_BLOCKS 10
     38+#define CONFIG_YAFFS_CHECKPOINT_RESERVED_BLOCKS 10
    3939+
    4040 #endif /* YAFFS_OUT_OF_TREE */
    4141 
    4242 #endif /* __YAFFS_CONFIG_H__ */
    43 diff -NaurB linux-2.6.18.2/fs/yaffs2/yaffs_fs.c linux-2.6.18.2.patched/fs/yaffs2/yaffs_fs.c
    44 --- linux-2.6.18.2/fs/yaffs2/yaffs_fs.c 2006-12-11 16:48:01.000000000 +0100
    45 +++ linux-2.6.18.2.patched/fs/yaffs2/yaffs_fs.c 2006-12-11 16:16:28.000000000 +0100
    46 @@ -1662,7 +1662,7 @@
     43diff -Naurp linux-2.6.19.1/fs/yaffs2/yaffs_fs.c linux-2.6.19.1.patched/fs/yaffs2/yaffs_fs.c
     44--- linux-2.6.19.1/fs/yaffs2/yaffs_fs.c 2006-12-18 22:11:59.000000000 +0100
     45+++ linux-2.6.19.1.patched/fs/yaffs2/yaffs_fs.c 2006-12-18 22:12:11.000000000 +0100
     46@@ -1682,7 +1682,7 @@ static struct super_block *yaffs_interna
    4747 #endif
    4848                nBlocks = mtd->size / mtd->erasesize;
  • target/linux/rb-2.6/patches/200-diag.patch

    r495b814 r31c8179  
    1 diff -Naurp linux-2.6.18.2/drivers/misc/Kconfig linux-2.6.18.2.patched/drivers/misc/Kconfig
    2 --- linux-2.6.18.2/drivers/misc/Kconfig 2006-11-04 02:33:58.000000000 +0100
    3 +++ linux-2.6.18.2.patched/drivers/misc/Kconfig 2006-12-17 19:57:27.721374550 +0100
    4 @@ -28,5 +28,13 @@ config IBM_ASM
     1diff -Naurp linux-2.6.19.1/drivers/misc/Kconfig linux-2.6.19.1.patched/drivers/misc/Kconfig
     2--- linux-2.6.19.1/drivers/misc/Kconfig 2006-12-11 20:32:53.000000000 +0100
     3+++ linux-2.6.19.1.patched/drivers/misc/Kconfig 2006-12-18 19:36:51.000000000 +0100
     4@@ -88,4 +88,12 @@ config MSI_LAPTOP
    55 
    6           If unsure, say N.
     6          If you have an MSI S270 laptop, say Y or M here.
    77 
    88+config RB_DIAG
     
    1515+
    1616 endmenu
    17  
    18 diff -Naurp linux-2.6.18.2/drivers/misc/Makefile linux-2.6.18.2.patched/drivers/misc/Makefile
    19 --- linux-2.6.18.2/drivers/misc/Makefile        2006-11-04 02:33:58.000000000 +0100
    20 +++ linux-2.6.18.2.patched/drivers/misc/Makefile        2006-12-17 19:57:27.845355702 +0100
    21 @@ -5,3 +5,4 @@ obj- := misc.o  # Dummy rule to force bui
    22  
    23  obj-$(CONFIG_IBM_ASM)  += ibmasm/
    24  obj-$(CONFIG_HDPU_FEATURES)    += hdpuftrs/
    25 +obj-$(CONFIG_RB_DIAG)  += rb-diag/
    26 diff -Naurp linux-2.6.18.2/drivers/misc/rb-diag/Makefile linux-2.6.18.2.patched/drivers/misc/rb-diag/Makefile
    27 --- linux-2.6.18.2/drivers/misc/rb-diag/Makefile        1970-01-01 01:00:00.000000000 +0100
    28 +++ linux-2.6.18.2.patched/drivers/misc/rb-diag/Makefile        2006-12-17 19:57:27.874351294 +0100
     17diff -Naurp linux-2.6.19.1/drivers/misc/Makefile linux-2.6.19.1.patched/drivers/misc/Makefile
     18--- linux-2.6.19.1/drivers/misc/Makefile        2006-12-11 20:32:53.000000000 +0100
     19+++ linux-2.6.19.1.patched/drivers/misc/Makefile        2006-12-18 19:37:22.000000000 +0100
     20@@ -10,3 +10,4 @@ obj-$(CONFIG_LKDTM)           += lkdtm.o
     21 obj-$(CONFIG_TIFM_CORE)        += tifm_core.o
     22 obj-$(CONFIG_TIFM_7XX1)        += tifm_7xx1.o
     23 obj-$(CONFIG_SGI_IOC4)         += ioc4.o
     24+obj-$(CONFIG_RB_DIAG)          += rb-diag/
     25diff -Naurp linux-2.6.19.1/drivers/misc/rb-diag/Makefile linux-2.6.19.1.patched/drivers/misc/rb-diag/Makefile
     26--- linux-2.6.19.1/drivers/misc/rb-diag/Makefile        1970-01-01 01:00:00.000000000 +0100
     27+++ linux-2.6.19.1.patched/drivers/misc/rb-diag/Makefile        2006-12-18 19:36:51.000000000 +0100
    2928@@ -0,0 +1,7 @@
    3029+#
     
    3534+obj-$(CONFIG_RB_DIAG) := rb-diag.o
    3635+
    37 diff -Naurp linux-2.6.18.2/drivers/misc/rb-diag/rb-diag.c linux-2.6.18.2.patched/drivers/misc/rb-diag/rb-diag.c
    38 --- linux-2.6.18.2/drivers/misc/rb-diag/rb-diag.c       1970-01-01 01:00:00.000000000 +0100
    39 +++ linux-2.6.18.2.patched/drivers/misc/rb-diag/rb-diag.c       2006-12-17 19:57:27.900347342 +0100
     36diff -Naurp linux-2.6.19.1/drivers/misc/rb-diag/rb-diag.c linux-2.6.19.1.patched/drivers/misc/rb-diag/rb-diag.c
     37--- linux-2.6.19.1/drivers/misc/rb-diag/rb-diag.c       1970-01-01 01:00:00.000000000 +0100
     38+++ linux-2.6.19.1.patched/drivers/misc/rb-diag/rb-diag.c       2006-12-18 19:36:51.000000000 +0100
    4039@@ -0,0 +1,147 @@
    4140+/*
Note: See TracChangeset for help on using the changeset viewer.