Atheros supports KGDB using the generic KGDB MIPS support. We can use the 
generic
serial functions because the Atheros boards have a standard serial port.

Signed-off-by: Axel Gembe <[EMAIL PROTECTED]>
---
 .../linux/atheros/patches-2.6.23/100-board.patch   |   41 ++++++++++------
 .../linux/atheros/patches-2.6.24/100-board.patch   |   51 ++++++++++++--------
 .../linux/atheros/patches-2.6.25/100-board.patch   |   38 +++++++++------
 3 files changed, 78 insertions(+), 52 deletions(-)

diff --git a/target/linux/atheros/patches-2.6.23/100-board.patch 
b/target/linux/atheros/patches-2.6.23/100-board.patch
index 28509a3..92b6358 100644
--- a/target/linux/atheros/patches-2.6.23/100-board.patch
+++ b/target/linux/atheros/patches-2.6.23/100-board.patch
@@ -1,7 +1,14 @@
-diff -urN linux.old/arch/mips/Kconfig linux.dev/arch/mips/Kconfig
---- linux.old/arch/mips/Kconfig        2007-02-02 23:55:52.912446784 +0100
-+++ linux.dev/arch/mips/Kconfig        2007-02-03 21:50:25.262027104 +0100
-@@ -44,6 +44,16 @@
+commit 5bf3d96b88068651524a3543ce282c2b9506dca3
+Author: Axel Gembe <[EMAIL PROTECTED]>
+Date:   Wed May 7 10:15:44 2008 +0200
+
+    100-board.patch
+
+diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
+index 3b807b4..7d04ec3 100644
+--- a/arch/mips/Kconfig
++++ b/arch/mips/Kconfig
+@@ -44,6 +44,17 @@ config BASLER_EXCITE_PROTOTYPE
          note that a kernel built with this option selected will not be
          able to run on normal units.
  
@@ -13,12 +20,13 @@ diff -urN linux.old/arch/mips/Kconfig 
linux.dev/arch/mips/Kconfig
 +      select SYS_HAS_CPU_MIPS32_R1
 +      select SYS_SUPPORTS_BIG_ENDIAN
 +      select SYS_SUPPORTS_32BIT_KERNEL
++      select SYS_SUPPORTS_KGDB
 +      select GENERIC_GPIO
 +
  config MIPS_COBALT
        bool "Cobalt Server"
        select DMA_NONCOHERENT
-@@ -597,6 +607,7 @@
+@@ -597,6 +608,7 @@ config WR_PPMC
  
  endchoice
  
@@ -26,10 +34,11 @@ diff -urN linux.old/arch/mips/Kconfig 
linux.dev/arch/mips/Kconfig
  source "arch/mips/au1000/Kconfig"
  source "arch/mips/jazz/Kconfig"
  source "arch/mips/pmc-sierra/Kconfig"
-diff -urN linux.old/arch/mips/Makefile linux.dev/arch/mips/Makefile
---- linux.old/arch/mips/Makefile       2007-02-02 23:55:52.913446632 +0100
-+++ linux.dev/arch/mips/Makefile       2007-02-03 17:40:29.193776000 +0100
-@@ -267,6 +267,13 @@
+diff --git a/arch/mips/Makefile b/arch/mips/Makefile
+index 32c1c8f..4231a9a 100644
+--- a/arch/mips/Makefile
++++ b/arch/mips/Makefile
+@@ -270,6 +270,13 @@ libs-$(CONFIG_MIPS_XXS1500)       += 
arch/mips/au1000/xxs1500/
  load-$(CONFIG_MIPS_XXS1500)   += 0xffffffff80100000
  
  #
@@ -43,12 +52,13 @@ diff -urN linux.old/arch/mips/Makefile 
linux.dev/arch/mips/Makefile
  # Cobalt Server
  #
  core-$(CONFIG_MIPS_COBALT)    += arch/mips/cobalt/
-diff -urN linux.old/include/asm-mips/bootinfo.h 
linux.dev/include/asm-mips/bootinfo.h
---- linux.old/include/asm-mips/bootinfo.h      2007-02-02 23:55:52.913446632 
+0100
-+++ linux.dev/include/asm-mips/bootinfo.h      2007-02-03 17:51:02.531494032 
+0100
-@@ -213,6 +213,18 @@
- #define MACH_GROUP_NEC_EMMA2RH 25     /* NEC EMMA2RH (was 23)         */
- #define  MACH_NEC_MARKEINS    0       /* NEC EMMA2RH Mark-eins        */
+diff --git a/include/asm-mips/bootinfo.h b/include/asm-mips/bootinfo.h
+index c0f052b..29be9e6 100644
+--- a/include/asm-mips/bootinfo.h
++++ b/include/asm-mips/bootinfo.h
+@@ -208,6 +208,18 @@
+ #define MACH_GROUP_WINDRIVER   28     /* Windriver boards */
+ #define MACH_WRPPMC             1
  
 +/*
 + * Valid machtype for group ATHEROS
@@ -65,4 +75,3 @@ diff -urN linux.old/include/asm-mips/bootinfo.h 
linux.dev/include/asm-mips/booti
  #define CL_SIZE                       COMMAND_LINE_SIZE
  
  const char *get_system_type(void);
-
diff --git a/target/linux/atheros/patches-2.6.24/100-board.patch 
b/target/linux/atheros/patches-2.6.24/100-board.patch
index f1a0d06..3a37295 100644
--- a/target/linux/atheros/patches-2.6.24/100-board.patch
+++ b/target/linux/atheros/patches-2.6.24/100-board.patch
@@ -1,9 +1,16 @@
-diff -urN linux.old/arch/mips/Kconfig linux.dev/arch/mips/Kconfig
---- linux.old/arch/mips/Kconfig        2007-02-02 23:55:52.912446784 +0100
-+++ linux.dev/arch/mips/Kconfig        2007-02-03 21:50:25.262027104 +0100
-@@ -45,6 +45,18 @@
-         note that a kernel built with this option selected will not be
-         able to run on normal units.
+commit a57d9b35069c0c61ca2d24a4e135d2bb27777d10
+Author: Axel Gembe <[EMAIL PROTECTED]>
+Date:   Wed May 7 10:27:14 2008 +0200
+
+    100-board.patch
+
+diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
+index b22c043..38d2c61 100644
+--- a/arch/mips/Kconfig
++++ b/arch/mips/Kconfig
+@@ -67,6 +67,19 @@ config BCM47XX
+       help
+        Support for BCM47XX based boards
  
 +config ATHEROS
 +      bool "Atheros SoC support (EXPERIMENTAL)"
@@ -15,23 +22,25 @@ diff -urN linux.old/arch/mips/Kconfig 
linux.dev/arch/mips/Kconfig
 +      select SYS_HAS_CPU_MIPS32_R1
 +      select SYS_SUPPORTS_BIG_ENDIAN
 +      select SYS_SUPPORTS_32BIT_KERNEL
++      select SYS_SUPPORTS_KGDB
 +      select GENERIC_GPIO
 +
  config MIPS_COBALT
        bool "Cobalt Server"
-       select DMA_NONCOHERENT
-@@ -658,6 +668,7 @@
+       select CEVT_R4K
+@@ -689,6 +702,7 @@ config WR_PPMC
  
  endchoice
  
 +source "arch/mips/atheros/Kconfig"
  source "arch/mips/au1000/Kconfig"
- source "arch/mips/ddb5xxx/Kconfig"
- source "arch/mips/gt64120/ev64120/Kconfig"
-diff -urN linux.old/arch/mips/Makefile linux.dev/arch/mips/Makefile
---- linux.old/arch/mips/Makefile       2007-02-02 23:55:52.913446632 +0100
-+++ linux.dev/arch/mips/Makefile       2007-02-03 17:40:29.193776000 +0100
-@@ -267,6 +267,13 @@
+ source "arch/mips/jazz/Kconfig"
+ source "arch/mips/lasat/Kconfig"
+diff --git a/arch/mips/Makefile b/arch/mips/Makefile
+index a1f8d8b..9336452 100644
+--- a/arch/mips/Makefile
++++ b/arch/mips/Makefile
+@@ -268,6 +268,13 @@ libs-$(CONFIG_MIPS_XXS1500)       += 
arch/mips/au1000/xxs1500/
  load-$(CONFIG_MIPS_XXS1500)   += 0xffffffff80100000
  
  #
@@ -45,12 +54,13 @@ diff -urN linux.old/arch/mips/Makefile 
linux.dev/arch/mips/Makefile
  # Cobalt Server
  #
  core-$(CONFIG_MIPS_COBALT)    += arch/mips/cobalt/
-diff -urN linux.old/include/asm-mips/bootinfo.h 
linux.dev/include/asm-mips/bootinfo.h
---- linux.old/include/asm-mips/bootinfo.h      2007-02-02 23:55:52.913446632 
+0100
-+++ linux.dev/include/asm-mips/bootinfo.h      2007-02-03 17:51:02.531494032 
+0100
-@@ -213,6 +213,18 @@
- #define MACH_GROUP_NEC_EMMA2RH 25     /* NEC EMMA2RH (was 23)         */
- #define  MACH_NEC_MARKEINS    0       /* NEC EMMA2RH Mark-eins        */
+diff --git a/include/asm-mips/bootinfo.h b/include/asm-mips/bootinfo.h
+index b2dd9b3..c84dbdb 100644
+--- a/include/asm-mips/bootinfo.h
++++ b/include/asm-mips/bootinfo.h
+@@ -198,6 +198,18 @@
+ #define MACH_GROUP_BRCM               23      /* Broadcom                     
*/
+ #define  MACH_BCM47XX         1       /* Broadcom BCM47XX             */
  
 +/*
 + * Valid machtype for group ATHEROS
@@ -67,4 +77,3 @@ diff -urN linux.old/include/asm-mips/bootinfo.h 
linux.dev/include/asm-mips/booti
  #define CL_SIZE                       COMMAND_LINE_SIZE
  
  const char *get_system_type(void);
-
diff --git a/target/linux/atheros/patches-2.6.25/100-board.patch 
b/target/linux/atheros/patches-2.6.25/100-board.patch
index 30f001a..cda20f7 100644
--- a/target/linux/atheros/patches-2.6.25/100-board.patch
+++ b/target/linux/atheros/patches-2.6.25/100-board.patch
@@ -1,8 +1,14 @@
-Index: linux-2.6.25.1/arch/mips/Kconfig
-===================================================================
---- linux-2.6.25.1.orig/arch/mips/Kconfig
-+++ linux-2.6.25.1/arch/mips/Kconfig
-@@ -59,6 +59,18 @@ config BCM47XX
+commit 94b3f6b6a2f6deb61d13ca7534f3eed3d6afa3ee
+Author: Axel Gembe <[EMAIL PROTECTED]>
+Date:   Tue May 6 13:10:44 2008 +0200
+
+    100-board.patch
+
+diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
+index 8724ed3..b9b9d5c 100644
+--- a/arch/mips/Kconfig
++++ b/arch/mips/Kconfig
+@@ -59,6 +59,20 @@ config BCM47XX
        help
         Support for BCM47XX based boards
  
@@ -16,12 +22,14 @@ Index: linux-2.6.25.1/arch/mips/Kconfig
 +      select SYS_HAS_CPU_MIPS32_R1
 +      select SYS_SUPPORTS_BIG_ENDIAN
 +      select SYS_SUPPORTS_32BIT_KERNEL
++      select SYS_SUPPORTS_KGDB
 +      select GENERIC_GPIO
 +
++
  config MIPS_COBALT
        bool "Cobalt Server"
        select CEVT_R4K
-@@ -683,6 +695,7 @@ config WR_PPMC
+@@ -683,6 +697,7 @@ config WR_PPMC
  
  endchoice
  
@@ -29,11 +37,11 @@ Index: linux-2.6.25.1/arch/mips/Kconfig
  source "arch/mips/au1000/Kconfig"
  source "arch/mips/basler/excite/Kconfig"
  source "arch/mips/jazz/Kconfig"
-Index: linux-2.6.25.1/arch/mips/Makefile
-===================================================================
---- linux-2.6.25.1.orig/arch/mips/Makefile
-+++ linux-2.6.25.1/arch/mips/Makefile
-@@ -276,6 +276,13 @@ libs-$(CONFIG_MIPS_XXS1500)       += arch/mips
+diff --git a/arch/mips/Makefile b/arch/mips/Makefile
+index 1c62381..6d44ad1 100644
+--- a/arch/mips/Makefile
++++ b/arch/mips/Makefile
+@@ -276,6 +276,13 @@ libs-$(CONFIG_MIPS_XXS1500)       += 
arch/mips/au1000/xxs1500/
  load-$(CONFIG_MIPS_XXS1500)   += 0xffffffff80100000
  
  #
@@ -47,10 +55,10 @@ Index: linux-2.6.25.1/arch/mips/Makefile
  # Cobalt Server
  #
  core-$(CONFIG_MIPS_COBALT)    += arch/mips/cobalt/
-Index: linux-2.6.25.1/include/asm-mips/bootinfo.h
-===================================================================
---- linux-2.6.25.1.orig/include/asm-mips/bootinfo.h
-+++ linux-2.6.25.1/include/asm-mips/bootinfo.h
+diff --git a/include/asm-mips/bootinfo.h b/include/asm-mips/bootinfo.h
+index e031bdf..edcb304 100644
+--- a/include/asm-mips/bootinfo.h
++++ b/include/asm-mips/bootinfo.h
 @@ -94,6 +94,18 @@
  #define MACH_MSP7120_FPGA       5     /* PMC-Sierra MSP7120 Emulation */
  #define MACH_MSP_OTHER        255     /* PMC-Sierra unknown board type */
-- 
1.5.5.1

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to