summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMartin Dietze <di@fh-wedel.de>2006-09-08 12:41:48 +0000
committerMartin Dietze <di@fh-wedel.de>2006-09-08 12:41:48 +0000
commit03b3579813b72ea73f9961105c598581e3f073e0 (patch)
treed58b298506103cc591fb4fd1c51bea9f88ee3f61 /packages
parent6f4455ad4fe9f67a9b2cc316663b69f085af4031 (diff)
linux kernels: updated kernels plus patches for nylon/mtx
* linux-mtx-1-2.4.27: the standard kernel used for the 4G access cube * linux-mtx-1u-2.4.27: the customized kernel for the 4G Surfbox I * linux-mtx-2-2.4.27: the customized kernel for the 4G Surfbox II
Diffstat (limited to 'packages')
-rw-r--r--packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff19
-rw-r--r--packages/linux/linux-mtx-1-2.4.27/22-umts.diff28
-rw-r--r--packages/linux/linux-mtx-1-2.4.27/28-idsel-cardbus.diff67
-rw-r--r--packages/linux/linux-mtx-1-2.4.27/30-mtx-1-sysled.diff446
-rw-r--r--packages/linux/linux-mtx-1-2.4.27/31-mtx-1u-led-init.diff16
-rw-r--r--packages/linux/linux-mtx-1-2.4.27/32-usbserial-stalled-hack.diff22
-rw-r--r--packages/linux/linux-mtx-1-2.4.27/33-usbserial-bulk_in_size-4096.diff140
-rw-r--r--packages/linux/linux-mtx-1-2.4.27/39-mppe-mpc.patch1665
-rw-r--r--packages/linux/linux-mtx-1-2.4.27/40-option-hsdpa.patch2961
-rw-r--r--packages/linux/linux-mtx-1-2.4.27/42-usb-ohci-fixes.patch42
-rw-r--r--packages/linux/linux-mtx-1-2.4.27/defconfig-mtx-134
-rw-r--r--packages/linux/linux-mtx-1_2.4.27.bb13
-rw-r--r--packages/linux/linux-mtx-1u_2.4.27.bb21
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/.mtn2git_empty0
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/00-mtx-2.diff3032
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/01-mtd-mtx-2.diff51784
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/03-mtd-erase-compiler-bug.diff21
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/04-mtd-yamonenv-readwrite.diff20
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/05-mtx-2-pci-irq.diff18
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/06-zboot-2.4.26.patch5308
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/07-zboot-zimage-flash-bin.diff11
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/08-usb-nonpci-2.4.24.patch3185
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/10-iw-max-spy-32.diff11
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/11-mtd-proc-partition-rw.diff173
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/12-openswan-2.2.0-nat-t.diff143
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/13-openswan-2.2.0.patch61293
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/16-i2c.patch7482
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/17-lmsensors.2.8.8.patch40940
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/18-i2c-au1x00gpio.patch466
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/19-kernel-make-depend.diff11
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/22-umts.diff28
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/27-idsel-cardbus.diff115
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/28-surfbox2-idsel.diff47
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/29-au1000-pci-config-clear-errors.diff15
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/32-usbserial-stalled-hack.diff22
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/33-usbserial-bulk_in_size-4096.diff140
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/35-sb2-slic.patch761
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/36-sb2-lcd.patch465
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/37-sb2-sysbtn.patch246
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/39-mppe-mpc.patch1665
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/40-option-hsdpa.patch2961
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/42-usb-ohci-fixes.patch42
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/43-usbserial-27-32-backport.diff33
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/44-dbdma-and-au1550_psc.diff1491
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/45-acm-tty.patch252
-rw-r--r--packages/linux/linux-mtx-2-2.4.27/defconfig-mtx-21347
-rw-r--r--packages/linux/linux-mtx-2_2.4.27.bb94
47 files changed, 189056 insertions, 40 deletions
diff --git a/packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff b/packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff
deleted file mode 100644
index 0a3896433a..0000000000
--- a/packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff
+++ /dev/null
@@ -1,19 +0,0 @@
---- linux/arch/mips/au1000/common/pci_fixup.c.orig 2004-11-25 20:14:24.907902616 +0100
-+++ linux/arch/mips/au1000/common/pci_fixup.c 2004-11-25 20:27:08.842766864 +0100
-@@ -75,10 +75,13 @@
-
- #ifdef CONFIG_NONCOHERENT_IO
- /*
-- * Set the NC bit in controller for pre-AC silicon
-+ * Set the NC bit in controller for Au1500 pre-AC silicon
- */
-- au_writel( 1<<16 | au_readl(Au1500_PCI_CFG), Au1500_PCI_CFG);
-- printk("Non-coherent PCI accesses enabled\n");
-+ u32 prid = read_c0_prid();
-+ if ( (prid & 0xFF000000) == 0x01000000 && prid < 0x01030202) {
-+ au_writel( 1<<16 | au_readl(Au1500_PCI_CFG), Au1500_PCI_CFG);
-+ printk("Non-coherent PCI accesses enabled\n");
-+ }
- #endif
-
- set_io_port_base(virt_io_addr);
diff --git a/packages/linux/linux-mtx-1-2.4.27/22-umts.diff b/packages/linux/linux-mtx-1-2.4.27/22-umts.diff
new file mode 100644
index 0000000000..8bf2f80236
--- /dev/null
+++ b/packages/linux/linux-mtx-1-2.4.27/22-umts.diff
@@ -0,0 +1,28 @@
+diff -Nurb linux-2.4.27-mtx1/drivers/usb/serial/usbserial.c linux-2.4.27-mtx1-umts/drivers/usb/serial/usbserial.c
+--- linux-2.4.27-mtx1/drivers/usb/serial/usbserial.c 2004-08-14 20:38:57.000000000 +0200
++++ linux-2.4.27-mtx1-umts/drivers/usb/serial/usbserial.c 2005-06-07 10:53:03.000000000 +0200
+@@ -332,7 +332,7 @@
+ static __u16 vendor = 0x05f9;
+ static __u16 product = 0xffff;
+
+-static struct usb_device_id generic_device_ids[2]; /* Initially all zeroes. */
++static struct usb_device_id generic_device_ids[5]; /* Initially all zeroes. */
+
+ /* All of the device info needed for the Generic Serial Converter */
+ static struct usb_serial_device_type generic_device = {
+@@ -1773,6 +1773,15 @@
+ generic_device_ids[0].idVendor = vendor;
+ generic_device_ids[0].idProduct = product;
+ generic_device_ids[0].match_flags = USB_DEVICE_ID_MATCH_VENDOR | USB_DEVICE_ID_MATCH_PRODUCT;
++ generic_device_ids[1].idVendor = 0xaf0;
++ generic_device_ids[1].idProduct = 0x5000;
++ generic_device_ids[1].match_flags = USB_DEVICE_ID_MATCH_VENDOR | USB_DEVICE_ID_MATCH_PRODUCT;
++ generic_device_ids[2].idVendor = 0xaf0;
++ generic_device_ids[2].idProduct = 0x6000;
++ generic_device_ids[2].match_flags = USB_DEVICE_ID_MATCH_VENDOR | USB_DEVICE_ID_MATCH_PRODUCT;
++ generic_device_ids[3].idVendor = 0xaf0;
++ generic_device_ids[3].idProduct = 0x6300;
++ generic_device_ids[3].match_flags = USB_DEVICE_ID_MATCH_VENDOR | USB_DEVICE_ID_MATCH_PRODUCT;
+ /* register our generic driver with ourselves */
+ usb_serial_register (&generic_device);
+ #endif
diff --git a/packages/linux/linux-mtx-1-2.4.27/28-idsel-cardbus.diff b/packages/linux/linux-mtx-1-2.4.27/28-idsel-cardbus.diff
new file mode 100644
index 0000000000..aff210bb54
--- /dev/null
+++ b/packages/linux/linux-mtx-1-2.4.27/28-idsel-cardbus.diff
@@ -0,0 +1,67 @@
+diff -Nurb linux/arch/mips/au1000/mtx-1/board_setup.c /home/br1/linux-idsel/arch/mips/au1000/mtx-1/board_setup.c
+--- linux/arch/mips/au1000/mtx-1/board_setup.c 2005-08-18 18:23:59.000000000 +0200
++++ /home/br1/linux-idsel/arch/mips/au1000/mtx-1/board_setup.c 2005-08-18 18:19:48.000000000 +0200
+@@ -48,6 +48,10 @@
+
+ extern struct rtc_ops no_rtc_ops;
+
++extern int (*board_pci_idsel)(unsigned int devsel, int assert);
++int mtx1_pci_idsel(unsigned int devsel, int assert);
++
++
+ void board_reset (void)
+ {
+ /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
+@@ -85,11 +89,39 @@
+ au_writel( 0xFFFFFFFF, SYS_TRIOUTCLR );
+ au_writel( 0x00000001, SYS_OUTPUTCLR ); // set M66EN (PCI 66MHz) to OFF
+ au_writel( 0x00000008, SYS_OUTPUTSET ); // set PCI CLKRUN# to OFF
++ au_writel( 0x00000002, SYS_OUTPUTSET ); // set EXT_IO3 ON
+ au_writel( 0x00000020, SYS_OUTPUTCLR ); // set eth PHY TX_ER to OFF
+
+ // enable LED and set it to green
+ au_writel( au_readl(GPIO2_DIR) | 0x1800, GPIO2_DIR );
+ au_writel( 0x18000800, GPIO2_OUTPUT );
+
++ board_pci_idsel = mtx1_pci_idsel;
++
+ printk("4G Systems MTX-1 Board\n");
+ }
++
++
++/*
++ */
++int
++mtx1_pci_idsel(unsigned int devsel, int assert)
++{
++#define MTX_IDSEL_ONLY_0_AND_3 0
++#if MTX_IDSEL_ONLY_0_AND_3
++ if (devsel != 0 && devsel != 3) {
++ printk("*** not 0 or 3\n");
++ return 0;
++ }
++#endif
++
++ if (assert && devsel != 0) {
++ // supress signal to cardbus
++ au_writel( 0x00000002, SYS_OUTPUTCLR ); // set EXT_IO3 OFF
++ }
++ else {
++ au_writel( 0x00000002, SYS_OUTPUTSET ); // set EXT_IO3 ON
++ }
++ au_sync_udelay(1);
++ return 1;
++}
+diff -Nurb linux/arch/mips/au1000/mtx-1/irqmap.c /home/br1/linux-idsel/arch/mips/au1000/mtx-1/irqmap.c
+--- linux/arch/mips/au1000/mtx-1/irqmap.c 2005-08-18 18:24:05.000000000 +0200
++++ /home/br1/linux-idsel/arch/mips/au1000/mtx-1/irqmap.c 2005-08-16 16:37:39.000000000 +0200
+@@ -73,7 +73,7 @@
+ * A B C D
+ */
+ {
+- {INTA, INTB, INTX, INTX}, /* IDSEL 0 */
++ {INTA, INTA, INTX, INTX}, /* IDSEL 0 */
+ {INTB, INTA, INTX, INTX}, /* IDSEL 1 */
+ {INTC, INTD, INTX, INTX}, /* IDSEL 2 */
+ {INTD, INTC, INTX, INTX}, /* IDSEL 3 */
+
diff --git a/packages/linux/linux-mtx-1-2.4.27/30-mtx-1-sysled.diff b/packages/linux/linux-mtx-1-2.4.27/30-mtx-1-sysled.diff
new file mode 100644
index 0000000000..283b7af451
--- /dev/null
+++ b/packages/linux/linux-mtx-1-2.4.27/30-mtx-1-sysled.diff
@@ -0,0 +1,446 @@
+--- /dev/null 1970-01-01 01:00:00.000000000 +0100
++++ linux/arch/mips/au1000/mtx-1/mtx-1_sysled.c 2005-08-27 15:30:51.000000000 +0200
+@@ -0,0 +1,398 @@
++/*
++ * Driver for the MTX-1 System LEDs.
++ *
++ * (c) Copyright 2005 4G Systems <info@4g-systems.biz>, All Rights Reserved.
++ * http://www.4g-systems.biz
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License
++ * as published by the Free Software Foundation; either version
++ * 2 of the License, or (at your option) any later version.
++ *
++ * Neither Alan Cox nor CymruNet Ltd. admit liability nor provide
++ * warranty for any of this software. This material is provided
++ * "AS-IS" and at no charge.
++ *
++ * (c) Copyright 2005 4G Systems <info@4g-systems.biz>
++ *
++ * Release 0.01.
++ *
++ * Author: Michael Stickel michael.stickel@4g-systems.biz
++ *
++ *
++ * After the module is loaded there will be a device /dev/misc/leds
++ * that can be written to. There are two bits, each represents one LED
++ *
++ *
++ */
++
++static int errno;
++#define __KERNEL_SYSCALLS__
++
++#include <linux/config.h>
++#include <linux/module.h>
++#include <linux/version.h>
++#include <linux/types.h>
++#include <linux/errno.h>
++#include <linux/kernel.h>
++#include <linux/sched.h>
++#include <linux/miscdevice.h>
++#include <linux/slab.h>
++#include <linux/init.h>
++#include <linux/smp_lock.h>
++#include <asm/unistd.h>
++
++#include <asm/uaccess.h>
++
++#include <asm/au1000.h>
++
++#include <asm/io.h>
++
++
++#include "mtx-1_sysled.h"
++
++
++#ifndef FALSE
++# define FALSE (0)
++#endif
++
++#ifndef TRUE
++# define TRUE (!FALSE)
++#endif
++
++
++/* handle up_and_exit confusion */
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,9)
++typedef struct semaphore THREAD_SEM;
++#define THREAD_SEM_EXIT(c,l) up_and_exit(c,l)
++#define THREAD_SEM_DECLARE(c) DECLARE_MUTEX_LOCKED(c)
++#define THREAD_SEM_INIT(c) init_MUTEX_LOCKED(c)
++#define THREAD_SEM_WAIT_COMPLETE(c) {down(c);up(c);}
++
++#else
++#include <linux/completion.h>
++typedef struct completion THREAD_SEM;
++#define THREAD_SEM_EXIT(c,l) complete_and_exit(c,l)
++#define THREAD_SEM_DECLARE(c) DECLARE_COMPLETION(c)
++#define THREAD_SEM_INIT(c) init_completion(c)
++#define THREAD_SEM_WAIT_COMPLETE(c) wait_for_completion(c)
++#endif
++
++
++//---------[ Hardware Functions ]-----------------
++
++
++
++static unsigned char sysled_gpios[10] =
++{
++ 211, // Power = GPIO211
++ 212, // Status = GPIO212
++
++#if 1
++ 12, // LEDBar1 Blue = GPIO12 0
++ 13, // LEDBar1 Red = GPIO13
++
++ 26, // LEDBar3 Blue = GPIO27 1
++ 27, // LEDBar3 Red = GPIO26
++
++ 10, // LEDBar0 Blue = GPIO10 2
++ 11, // LEDBar0 Red = GPIO11
++
++ 14, // LEDBar2 Blue = GPIO14 3
++ 25, // LEDBar2 Red = GPIO28
++#else
++ 7, // IOCTRL0
++ 8, // IOCTRL1
++
++ 15, // IOCTRL2
++ 205, // IOCTRL3
++
++ 206, // IOCTRL4
++ 208, // LEDBar2 Blue = GPIO14
++
++ 255,
++ 255
++#endif
++};
++static int num_sysled_gpios = sizeof(sysled_gpios) / sizeof(sysled_gpios[0]);
++
++
++static void mtx1_setled (int ledno, char on)
++{
++ if (ledno >= 0 && ledno < num_sysled_gpios)
++ {
++ if (sysled_gpios[ledno] >= 200 && sysled_gpios[ledno] < 231)
++ {
++ unsigned long pinmask = 1 << (sysled_gpios[ledno] - 200);
++ au_writel((pinmask<<16) | (on ? pinmask : 0), GPIO2_OUTPUT);
++ }
++ else if (sysled_gpios[ledno] < 32)
++ {
++ unsigned long pinmask = 1 << sysled_gpios[ledno];
++ if (on)
++ au_writel(pinmask, SYS_OUTPUTSET);
++ else
++ au_writel(pinmask, SYS_OUTPUTCLR);
++ }
++ }
++}
++
++
++//---------[ LED Precalculation ]-----------------
++
++typedef struct current_led_config_s
++{
++ unsigned char period;
++ unsigned long pattern[8]; /* bit-pattern: up to 3.2*8 seconds. 25.6 seconds at 10 Hz */
++ short current_value;
++ unsigned char led_state; /* 0 = off, 1 = on */
++} current_led_config_t;
++
++static current_led_config_t current_led_config[10];
++static THREAD_SEM mtx1_ledthread_exited;
++static int mtx1_ledthread_pid;
++
++static int mtx1_led_thread (void *user_data)
++{
++ int last_jiffies = jiffies - HZ/10; /* initialize with meaningfull value */
++
++ lock_kernel();
++
++ daemonize ();
++ spin_lock_irq (&current->sigmask_lock);
++ sigemptyset (&current->blocked);
++ recalc_sigpending (current);
++ spin_unlock_irq (&current->sigmask_lock);
++
++ strncpy (current->comm, "mtx1led", sizeof(current->comm) - 1);
++ current->comm[sizeof(current->comm) - 1] = '\0';
++
++ do {
++ int i;
++
++ // missed_values = (jiffies - last_jiffies) / (HZ/10);
++ last_jiffies = jiffies;
++
++ // 1/10 second later.
++ for (i=0; i < num_sysled_gpios; i++)
++ {
++ int index = current_led_config[i].current_value;
++ if (current_led_config[i].period > 0 && index < 256)
++ {
++ char led_on = (current_led_config[i].pattern[(index>>5)&7] >> (index&0x1f)) & 1;
++
++ if (led_on != current_led_config[i].led_state)
++ mtx1_setled (i, led_on);
++ current_led_config[i].led_state = led_on;
++
++ current_led_config[i].current_value++;
++ if (current_led_config[i].current_value > current_led_config[i].period)
++ current_led_config[i].current_value = 0;
++ }
++ }
++
++ current->state = TASK_INTERRUPTIBLE;
++ /* long timeout = */ schedule_timeout(HZ / 10);
++ } while (!signal_pending(current));
++
++ THREAD_SEM_EXIT (&mtx1_ledthread_exited, 0);
++ return 0;
++}
++
++
++static int mtx1_start_ledthread (void)
++{
++ THREAD_SEM_INIT (&mtx1_ledthread_exited);
++
++ printk ("starting mtx1 ledthread\n");
++ mtx1_ledthread_pid = kernel_thread(mtx1_led_thread,
++ NULL,
++ CLONE_FS | CLONE_FILES | CLONE_SIGHAND);
++ if (mtx1_ledthread_pid >= 0)
++ return 0;
++ return -1;
++}
++
++
++static void mtx1_stop_ledthread (void)
++{
++ int waitpid_result = 0;
++ if (mtx1_ledthread_pid > 0) {
++ int ret = kill_proc(mtx1_ledthread_pid, SIGTERM, 1);
++ if (ret==0)
++ {
++ THREAD_SEM_WAIT_COMPLETE(&mtx1_ledthread_exited);
++ waitpid_result = waitpid (mtx1_ledthread_pid, NULL, __WCLONE|WNOHANG);
++ mtx1_ledthread_pid = 0;
++ }
++ }
++// return waitpid_result;
++}
++
++//---------[ File Functions ]-----------------
++
++static int mtx1sysled_minor = -1;
++
++static int mtx1sysled_open (struct inode *inode, struct file *file)
++{
++ if (MINOR(inode->i_rdev)!=mtx1sysled_minor) return -ENODEV;
++ MOD_INC_USE_COUNT;
++
++ return 0;
++}
++
++
++static int mtx1sysled_release (struct inode *inode, struct file *file) {
++ if (MINOR(inode->i_rdev)==mtx1sysled_minor) {
++ }
++ MOD_DEC_USE_COUNT;
++ return 0;
++}
++
++
++static ssize_t mtx1sysled_write (struct file *file, const char *buf, size_t count, loff_t *ppos) {
++ led_control_t ctrl_entry;
++ size_t buflen;
++
++ if (ppos != &file->f_pos)
++ return -ESPIPE;
++
++ if (count < 1)
++ return -EINVAL;
++
++ if (copy_from_user (&ctrl_entry, buf, sizeof(unsigned char)))
++ return -EFAULT;
++
++ if ((ctrl_entry.flags & 0x1f) <= 0)
++ return -EINVAL;
++
++ buflen = (count < sizeof(led_control_t)) ? count : sizeof(led_control_t);
++ if (copy_from_user (&ctrl_entry, buf, buflen))
++ return -EFAULT;
++
++ int numentries = (buflen-1) / sizeof(led_control_entry_t);
++
++ if ((ctrl_entry.flags & 0x1f) < numentries)
++ numentries = ctrl_entry.flags & 0x1f;
++
++ int i;
++ for (i=0; i < numentries; i++) {
++ unsigned short led_id = ctrl_entry.led[i].led_id;
++ if (led_id < num_sysled_gpios) {
++ current_led_config[led_id].period = ctrl_entry.led[i].period;
++ memcpy (current_led_config[led_id].pattern, ctrl_entry.led[i].pattern, sizeof(unsigned long)*8);
++ current_led_config[led_id].current_value = 0;
++
++ // may update the led output (if the led should be set to 1 or 0).
++ }
++ }
++ return count;
++}
++
++
++
++static struct file_operations mtx1sysled_fops = {
++ .owner = THIS_MODULE,
++ .llseek = NULL,
++ .read = NULL,
++ .write = mtx1sysled_write,
++ .readdir = NULL,
++ .poll = NULL,
++ .ioctl = NULL,
++ .mmap = NULL,
++ .open = mtx1sysled_open,
++ .flush = NULL,
++ .release = mtx1sysled_release
++};
++
++
++static struct miscdevice mtx1sysled_miscdev = {
++ MISC_DYNAMIC_MINOR /* SYSLED_MINOR */ ,
++ "leds",
++ &mtx1sysled_fops
++};
++
++
++
++//---------[ Module Functions ]-----------------
++
++
++void __exit cleanup_mtx1_sysled (void)
++{
++ mtx1_stop_ledthread ();
++ misc_deregister(&mtx1sysled_miscdev);
++}
++
++
++int __init init_mtx1_sysled (void)
++{
++ printk("MTX-1 System LED driver\n");
++
++
++ unsigned long gpio_mask = 0L;
++ unsigned long gpio2_mask = 0L;
++ int i;
++ for (i=0; i < num_sysled_gpios; i++)
++ {
++ if (sysled_gpios[i] < 32) /* GPIO00..xx */
++ gpio2_mask |= 1<<sysled_gpios[i];
++
++ else if (sysled_gpios[i] >= 200 && sysled_gpios[i] < 216) /* GPIO200..231 */
++ gpio2_mask |= 1 << (sysled_gpios[i] - 200);
++ }
++
++ if (gpio2_mask) {
++ au_writel(au_readl(GPIO2_DIR) | gpio2_mask, GPIO2_DIR);
++ au_writel(gpio2_mask<<16, GPIO2_OUTPUT);
++ }
++
++ if (gpio_mask) {
++ au_writel(gpio_mask, SYS_OUTPUTCLR);
++ }
++
++ // Clear SYS_LED#10 = U910-OE#
++ au_writel(1<<28, SYS_OUTPUTCLR);
++
++
++ if (misc_register (&mtx1sysled_miscdev) < 0)
++ {
++ return 1;
++ }
++ mtx1sysled_minor = mtx1sysled_miscdev.minor;
++
++ for (i=0; i < num_sysled_gpios; i++) {
++ current_led_config[i].period = 32;
++ current_led_config[i].pattern[0] = 0x0;
++ current_led_config[i].current_value = 0;
++ current_led_config[i].led_state = 0;
++ mtx1_setled (i, 0);
++ }
++ current_led_config[2].period = 31;
++ current_led_config[2].pattern[0] = 0xFFFFFFFF;
++ current_led_config[3].period = 31;
++ current_led_config[3].pattern[0] = 0xFFFFFFFF;
++ current_led_config[4].period = 31;
++ current_led_config[4].pattern[0] = 0xFFFFFFFF;
++ current_led_config[5].period = 31;
++ current_led_config[5].pattern[0] = 0xFFFFFFFF;
++ current_led_config[6].period = 31;
++ current_led_config[6].pattern[0] = 0xFFFFFFFF;
++ current_led_config[7].period = 31;
++ current_led_config[7].pattern[0] = 0xFFFFFFFF;
++
++
++ if (mtx1_start_ledthread ())
++ {
++ // Error
++ }
++
++ return 0;
++}
++
++__initcall(init_mtx1_sysled);
++__exitcall(cleanup_mtx1_sysled);
++
++MODULE_AUTHOR("Michael Stickel");
++MODULE_DESCRIPTION("Driver for the MTX-1 system LEDs");
++MODULE_LICENSE("GPL");
++EXPORT_NO_SYMBOLS;
+--- /dev/null 1970-01-01 01:00:00.000000000 +0100
++++ linux/arch/mips/au1000/mtx-1/mtx-1_sysled.h 2005-08-27 15:00:41.000000000 +0200
+@@ -0,0 +1,32 @@
++#ifndef __MTX1_SYSLED_H__
++#define __MTX1_SYSLED_H__
++ /*
++ * flags:
++ * Bit Function
++ * 7 set to 0
++ * 6 set to 0
++ * 5 set to 0
++ * 4..0 The number of led-control records. 1 means one record, 15 means records.
++ *
++ */
++
++
++typedef struct led_control_entry_s
++{
++ unsigned short led_id;
++ unsigned char period; /* 0..0xff unit is 1/10 of a second */
++ unsigned long pattern[8]; /* bit-pattern: up to 3.2*8 seconds. 25.6 seconds at 10 Hz */
++} led_control_entry_t;
++
++
++typedef struct led_control_s
++{
++ unsigned char flags;
++ led_control_entry_t led[31];
++} led_control_t;
++
++#define MTX1SYSLED_CONTROL_SIZE(x) (sizeof(unsigned char)+(x)*sizeof(led_control_entry_t))
++
++#define MTX1SYSLED_FLAGS_NUMENTRIES(n) ((n)&0x1f)
++
++#endif
+--- linux/arch/mips/au1000/mtx-1/Makefile.orig 2005-08-27 15:59:31.000000000 +0200
++++ linux/arch/mips/au1000/mtx-1/Makefile 2005-08-27 15:59:45.000000000 +0200
+@@ -15,6 +15,6 @@
+
+ O_TARGET := mtx-1.o
+
+-obj-y := init.o board_setup.o irqmap.o mtx-1_watchdog.o mtx-1_sysbtn.o
++obj-y := init.o board_setup.o irqmap.o mtx-1_watchdog.o mtx-1_sysbtn.o mtx-1_sysled.o
+
+ include $(TOPDIR)/Rules.make
diff --git a/packages/linux/linux-mtx-1-2.4.27/31-mtx-1u-led-init.diff b/packages/linux/linux-mtx-1-2.4.27/31-mtx-1u-led-init.diff
new file mode 100644
index 0000000000..53e17e48bb
--- /dev/null
+++ b/packages/linux/linux-mtx-1-2.4.27/31-mtx-1u-led-init.diff
@@ -0,0 +1,16 @@
+--- linux/arch/mips/au1000/mtx-1/board_setup.c.pre 2005-08-27 17:09:39.000000000 +0200
++++ linux/arch/mips/au1000/mtx-1/board_setup.c 2005-08-27 17:38:56.000000000 +0200
+@@ -91,9 +91,12 @@
+ au_writel( 0x00000002, SYS_OUTPUTSET ); // set EXT_IO3 ON
+ au_writel( 0x00000020, SYS_OUTPUTCLR ); // set eth PHY TX_ER to OFF
+
++ au_writel( 0x0c003000, SYS_OUTPUTSET );
++ au_writel( 0x12004c00, SYS_OUTPUTCLR );
++
+ // enable LED and set it to green
+ au_writel( au_readl(GPIO2_DIR) | 0x1800, GPIO2_DIR );
+- au_writel( 0x18000800, GPIO2_OUTPUT );
++ au_writel( 0x18000000, GPIO2_OUTPUT );
+
+ board_pci_idsel = mtx1_pci_idsel;
+
diff --git a/packages/linux/linux-mtx-1-2.4.27/32-usbserial-stalled-hack.diff b/packages/linux/linux-mtx-1-2.4.27/32-usbserial-stalled-hack.diff
new file mode 100644
index 0000000000..bfc1af9db9
--- /dev/null
+++ b/packages/linux/linux-mtx-1-2.4.27/32-usbserial-stalled-hack.diff
@@ -0,0 +1,22 @@
+--- linux-2.4.27-mtx1/drivers/usb/serial/usbserial.c 2005-08-28 20:23:40.000000000 +0200
++++ linux-2.4.27-mtx1/drivers/usb/serial/usbserial.c 2005-08-28 20:23:12.000000000 +0200
+@@ -499,6 +499,19 @@
+ /* get_usb_serial checks port->tty, so cannot be used */
+ serial = port->serial;
+ if (port->write_busy) {
++
++ /*-- how is the status of the outgoing urb? --*/
++ /*-- did we miss a callback? --*/
++ /*-- problem with the hack below is that we may */
++ /* corrup structures we currently walk thru */
++ if (port->write_urb && port->write_urb->status != -EINPROGRESS) {
++ if (port->write_urb->complete)
++ port->write_urb->complete(port->write_urb);
++ else
++ dbg("%s: URB %p has no complete function\n", __FUNCTION__, port->write_urb);
++ }
++
++
+ dbg("%s - port %d busy", __FUNCTION__, port->number);
+ pos = pos->next;
+ continue;
diff --git a/packages/linux/linux-mtx-1-2.4.27/33-usbserial-bulk_in_size-4096.diff b/packages/linux/linux-mtx-1-2.4.27/33-usbserial-bulk_in_size-4096.diff
new file mode 100644
index 0000000000..e615a92fa4
--- /dev/null
+++ b/packages/linux/linux-mtx-1-2.4.27/33-usbserial-bulk_in_size-4096.diff
@@ -0,0 +1,140 @@
+--- linux/drivers/usb/serial/usbserial.c~33-usbserial-bulk_in_size-4096.diff 2006-03-31 15:05:46.674445000 +0200
++++ linux/drivers/usb/serial/usbserial.c 2006-04-07 12:23:56.970400500 +0200
+@@ -332,6 +332,9 @@
+ static __u16 vendor = 0x05f9;
+ static __u16 product = 0xffff;
+
++static int count_smaller64 = 0;
++static int count_bigger64 = 0;
++
+ static struct usb_device_id generic_device_ids[5]; /* Initially all zeroes. */
+
+ /* All of the device info needed for the Generic Serial Converter */
+@@ -396,6 +399,10 @@
+ drivers depend on it.
+ */
+
++/* global params controlling max sizes for read, write, control */
++static int maxszr = 0;
++static int maxszw = 0;
++static int maxszc = 0;
+
+ static int serial_refcount;
+ static struct tty_driver serial_t