Gmane
Favicon
From: Catalin Drula <Catalin.Drula@...>
Subject: [PATCH] Compiling at76c503a wlan driver for h5400
Newsgroups: gmane.comp.handhelds.linux.kernel
Date: 2005-04-13 16:13:34 GMT (4 years, 11 weeks, 4 days, 13 hours and 5 minutes ago)
Hi,

Here's some instructions for compiling the WLAN driver for h5400:

 - first check out the source out of the berlios CVS
 - make a link to the directory containing the source as
drivers/net/wireless/at76c503a
 - move Makefile.26 to Makefile and uncomment this line:
EXTRA_CFLAGS = -DCOMPILE_FIRMWARE_INTO_DRIVER
 - apply the attached patch_makefile_at76c503a to the kernel Kconfig and
Makefile
 - there are several sections in the driver ifdef'd by
CONFIG_IPAQ_HANDHELD. That's the power up/down and the led control code,
which is not yet there in 2.6 so you need to #undef CONFIG_IPAQ_HANDHELD.
The attached patch_no_ipaq_code_at76c503a does that for you.

Enjoy!

Catalin
===================================================================
RCS file: /cvsroot/at76c503a/at76c503a/at76c503-fw_skel.c,v
retrieving revision 1.8
diff -u -r1.8 at76c503-fw_skel.c
--- at76c503-fw_skel.c	8 Mar 2005 00:07:55 -0000	1.8
+++ at76c503-fw_skel.c	13 Apr 2005 16:10:47 -0000
@@ -26,6 +26,8 @@
  *
  */
 
+#undef CONFIG_IPAQ_HANDHELD
+
 #ifdef CONFIG_IPAQ_HANDHELD
 #include <asm/mach-types.h>
 #include <asm/arch/ipaq.h>
Index: at76c503.c
===================================================================
RCS file: /cvsroot/at76c503a/at76c503a/at76c503.c,v
retrieving revision 1.74
diff -u -r1.74 at76c503.c
--- at76c503.c	8 Mar 2005 01:33:14 -0000	1.74
+++ at76c503.c	13 Apr 2005 16:10:48 -0000
@@ -123,6 +123,8 @@
 #include <linux/rtnetlink.h>  /* for rtnl_lock() */
 #include <net/iw_handler.h>
 
+#undef CONFIG_IPAQ_HANDHELD
+
 #ifdef CONFIG_IPAQ_HANDHELD
 #include <asm/mach-types.h>
 #include <asm/arch-sa1100/h3600.h>
===================================================================
RCS file: /cvs/linux/kernel26/drivers/net/wireless/Kconfig,v
retrieving revision 1.11
diff -u -r1.11 Kconfig
--- drivers/net/wireless/Kconfig	5 Mar 2005 22:03:15 -0000	1.11
+++ drivers/net/wireless/Kconfig	13 Apr 2005 12:56:12 -0000
@@ -361,6 +361,10 @@
 	depends on NET_RADIO && (ISA || PCI || PPC_PMAC || PCMCIA)
 	default y
 
+config USB_ATMEL
+	tristate "usb atmel"
+	default m
+
 source drivers/net/wireless/hostap/Kconfig
 
 endmenu
Index: drivers/net/wireless/Makefile
===================================================================
RCS file: /cvs/linux/kernel26/drivers/net/wireless/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- drivers/net/wireless/Makefile	17 May 2004 16:43:13 -0000	1.6
+++ drivers/net/wireless/Makefile	13 Apr 2005 12:56:12 -0000
@@ -26,6 +26,8 @@
 obj-$(CONFIG_PCI_ATMEL)         += atmel_pci.o 
 obj-$(CONFIG_PCMCIA_ATMEL)      += atmel_cs.o
 
+obj-$(CONFIG_USB_ATMEL)		+= at76c503a/
+
 obj-$(CONFIG_PRISM54)		+= prism54/
 
 # 16-bit wireless PCMCIA client drivers

_______________________________________________
Kernel-discuss mailing list
Kernel-discuss@...
https://handhelds.org/mailman/listinfo/kernel-discuss