--- atl2-1.0.40.4.orig/debian/patches/01_linux2.6.23_compat.patch +++ atl2-1.0.40.4/debian/patches/01_linux2.6.23_compat.patch @@ -0,0 +1,30 @@ +diff -Nrup l2-linux-v1.0.40.4/src/at_ethtool.c l2-linux-v1.0.40.4.patch/src/at_ethtool.c +--- l2-linux-v1.0.40.4/src/at_ethtool.c 2007-09-27 10:43:21.000000000 +1000 ++++ l2-linux-v1.0.40.4.patch/src/at_ethtool.c 2007-11-24 11:55:54.000000000 +1000 +@@ -423,8 +423,10 @@ static struct ethtool_ops at_ethtool_ops + .get_tso = ethtool_op_get_tso, + #endif + #ifdef ETHTOOL_GPERMADDR ++#if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) ) + .get_perm_addr = ethtool_op_get_perm_addr, + #endif ++#endif + }; + + void at_set_ethtool_ops(struct net_device *netdev) +diff -Nrup l2-linux-v1.0.40.4/src/at_main.c l2-linux-v1.0.40.4.patch/src/at_main.c +--- l2-linux-v1.0.40.4/src/at_main.c 2007-09-27 10:43:21.000000000 +1000 ++++ l2-linux-v1.0.40.4.patch/src/at_main.c 2007-11-24 11:54:38.000000000 +1000 +@@ -2078,10 +2078,10 @@ at_intr_rx(struct at_adapter* adapter) + + skb_reserve(skb, NET_IP_ALIGN); + skb->dev = netdev; +- eth_copy_and_sum( ++ skb_copy_to_linear_data( + skb, + rxd->packet, +- rx_size, 0); ++ rx_size); + skb_put(skb, rx_size); + /* + memcpy(skb_put(skb, rx_size), --- atl2-1.0.40.4.orig/debian/patches/02_clean_symvers.patch +++ atl2-1.0.40.4/debian/patches/02_clean_symvers.patch @@ -0,0 +1,9 @@ +diff -Nrup l2-linux-v1.0.40.4/src/Makefile l2-linux-v1.0.40.4.patch/src/Makefile +--- l2-linux-v1.0.40.4/src/Makefile 2007-09-27 10:43:21.000000000 +1000 ++++ l2-linux-v1.0.40.4.patch/src/Makefile 2007-11-24 12:42:13.000000000 +1000 +@@ -323,4 +323,4 @@ uninstall: + .PHONY: clean install + + clean: +- rm -rf $(TARGET) $(TARGET:.ko=.o) $(TARGET:.ko=.mod.c) $(TARGET:.ko=.mod.o) $(CFILES:.c=.o) $(MANFILE).gz .*cmd .tmp_versions ++ rm -rf $(TARGET) $(TARGET:.ko=.o) $(TARGET:.ko=.mod.c) $(TARGET:.ko=.mod.o) $(CFILES:.c=.o) $(MANFILE).gz .*cmd .tmp_versions *.symvers --- atl2-1.0.40.4.orig/debian/rules.modules +++ atl2-1.0.40.4/debian/rules.modules @@ -0,0 +1,34 @@ +#!/usr/bin/make -f + +# module-assistant stuff +PACKAGE = atl2-modules +MA_DIR ?= /usr/share/modass +-include $(MA_DIR)/include/generic.make +-include $(MA_DIR)/include/common-rules.make + +kdist_clean: prep-deb-files + dh_clean + $(MAKE) clean KSRC=$(KSRC) BUILD_KERNEL=$(KVERS) + +kdist_config: prep-deb-files + +binary-modules: kdist_config + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs lib/modules/$(KVERS)/misc + + # build module + $(MAKE) -C $(CURDIR) KSRC=$(KSRC) BUILD_KERNEL=$(KVERS) + # install module + dh_install atl2.ko lib/modules/$(KVERS)/misc + + dh_installdocs + dh_installchangelogs + dh_installmodules + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol -- -v$(VERSION) + dh_md5sums + dh_builddeb --destdir=$(DEB_DESTDIR) --- atl2-1.0.40.4.orig/debian/control +++ atl2-1.0.40.4/debian/control @@ -0,0 +1,14 @@ +Source: atl2 +Section: net +Priority: optional +Maintainer: Ben Armstrong +Build-Depends: cdbs, debhelper (>= 5.0.37), bzip2, patchutils +Standards-Version: 3.7.2 + +Package: atl2-source +Architecture: all +Depends: debhelper (>= 5.0.37), module-assistant, bzip2 +Description: Linux Base Driver for the Atheros(R) L2 Fast Ethernet Adapter + atl2 is the Linux Base Driver for the Atheros(R) L2 Fast Ethernet Adapter. + The the Atheros(R) L2 Fast Ethernet Adapter is present in a few low cost + Asus laptop systems, such as the Asus Eee PC. --- atl2-1.0.40.4.orig/debian/atl2-source.README.Debian +++ atl2-1.0.40.4/debian/atl2-source.README.Debian @@ -0,0 +1,41 @@ +atl2 for Debian +--------------- + +This package provides the atl2 source code and binaries that can be used +to build modules that work with your custom built linux kernel. The source +files are located in /usr/src/atl2.tar.bz2; unpacking that file in /usr/src +will produce a build tree in /usr/src/modules/atl2/ (The tar file can also be +unpacked elsewhere). + +Building atl2 kernel modules with module-assistant +================================================== + +Please install the module-assistant package and issue the following commands:- + + $ m-a prepare + $ m-a a-i atl2 + +The above commands will prepare, compile, package and install a set of +atl2 modules for your kernel. + +m-a is short for module-assistant, and a-i is short for auto-install. Please +see the module-assistant documentation for further details. + + +Building atl2 kernel modules (kernel-package) +============================================= + +If necessary, prepare the kernel source tree for the target kernel. If you are +using a self compiled kernel than you have an easy task! + + $ cd /usr/src + $ tar jxvf atl2.tar.bz2 + $ cd linux-$KVERS + $ make-kpkg --added-modules atl2 modules + +Where $KVERS is the exact version string of the kernel you want to build +atl2 for. A atl2-modules package will be built against the kernel +source version specified. Look at the output for where the atl2-modules +package is located. Then use dpkg to install the module package by hand, eg:- + + $ dpkg -i /usr/src/atl2-modules-$KVERS.deb --- atl2-1.0.40.4.orig/debian/atl2-source.dirs +++ atl2-1.0.40.4/debian/atl2-source.dirs @@ -0,0 +1 @@ +usr/src/ --- atl2-1.0.40.4.orig/debian/atl2-source.docs +++ atl2-1.0.40.4/debian/atl2-source.docs @@ -0,0 +1,2 @@ +readme +release_note.txt --- atl2-1.0.40.4.orig/debian/rules +++ atl2-1.0.40.4/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +install/atl2-source:: + # Enforce executable bit on debian/rules, and create directory + # structure for modules source + install -D -m 0755 debian/rules.modules \ + debian/tmp/modules/atl2/debian/rules + + # Prepare the other debian stuff + for f in *.modules.in control compat copyright changelog; do \ + install -m 0644 debian/$$f \ + debian/tmp/modules/atl2/debian/; \ + done + + # Prepare upstream source + install -m 0644 src/Makefile src/*.[ch] debian/tmp/modules/atl2/ + + # Prepare the debian source tarball + tar jcf debian/atl2-source/usr/src/atl2.tar.bz2 \ + -C debian/tmp modules --- atl2-1.0.40.4.orig/debian/atl2-source.links +++ atl2-1.0.40.4/debian/atl2-source.links @@ -0,0 +1 @@ +usr/share/modass/packages/default.sh usr/share/modass/overrides/atl2-source --- atl2-1.0.40.4.orig/debian/changelog +++ atl2-1.0.40.4/debian/changelog @@ -0,0 +1,7 @@ +atl2 (1.0.40.4-1) unstable; urgency=low + + * Initial release (thanks to Kel Modderman for the + initial packaging). + + -- Ben Armstrong Sat, 24 Nov 2007 11:18:23 -0400 + --- atl2-1.0.40.4.orig/debian/compat +++ atl2-1.0.40.4/debian/compat @@ -0,0 +1 @@ +5 --- atl2-1.0.40.4.orig/debian/copyright +++ atl2-1.0.40.4/debian/copyright @@ -0,0 +1,35 @@ +This package was debianized by Kel Modderman on +Sat, 24 Nov 2007 12:14:10 +1000. + +It was downloaded from + ftp://hogchain.net/pub/linux/m2v/attansic/vendor_driver/ + +Upstream Author: + xiong huang + +Copyright: + Copyright(c) 2007 Atheros Corporation. All rights reserved. + Copyright(c) 2006 xiong huang + Copyright(c) 1999 - 2005 Intel Corporation. All rights reserved. + +License: + + This package 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. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2007, Kel Modderman and +is licensed under the GPL, see above. --- atl2-1.0.40.4.orig/debian/control.modules.in +++ atl2-1.0.40.4/debian/control.modules.in @@ -0,0 +1,16 @@ +Source: atl2 +Section: net +Priority: optional +Maintainer: Kel Modderman +Build-Depends: debhelper (>= 5.0.37), bzip2 +Standards-Version: 3.7.2 + +Package: atl2-modules-_KVERS_ +Architecture: all +Depends: linux-image-_KVERS_ +Description: Driver for the Atheros(R) L2 Fast Ethernet Adapter (kernel _KVERS_) + This package contains the loadable kernel modules for the atl2 + Driver for the Atheros(R) L2 Fast Ethernet Adapter. + . + The modules were compiled to be compatible with the kernel in the + _KVERS_ package.