owl-linux: new package
PATCH RESEND 1/1 owl-linux: new package
From: Simon Dawson <[email protected]>
--- package/Config.in | 1 + package/owl-linux/Config.in | 10 ++++++++++ ...1.0.6-fix-CROSS_COMPILE-usage-in-Makefile.patch | 15 +++++++++++++++ .../owl-linux-1.0.6-fix-for-linux-3.3.x.patch | 19 +++++++++++++++++++ package/owl-linux/owl-linux.mk | 20 ++++++++++++++++++++ 5 files changed, 65 insertions(+) create mode 100644 package/owl-linux/Config.in create mode 100644 package/owl-linux/owl-linux-1.0.6-fix-CROSS_COMPILE-usage-in-Makefile.patch create mode 100644 package/owl-linux/owl-linux-1.0.6-fix-for-linux-3.3.x.patch create mode 100644 package/owl-linux/owl-linux.mk
package/Config.in +1 -0
@@ -208,6 +208,7 @@ source "package/mtd/Config.in" source "package/ntfs-3g/Config.in" source "package/open2300/Config.in" source "package/openocd/Config.in" +source "package/owl-linux/Config.in" source "package/parted/Config.in" source "package/pciutils/Config.in" source "package/picocom/Config.in"
package/owl-linux/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_OWL_LINUX + bool "H&D Wireless SPB104 SD-card WiFi SIP" + depends on BR2_LINUX_KERNEL + help + Linux kernel driver for the H&D Wireless SPB104 SD-card WiFi SIP. + + http://linux.hd-wireless.se/bin/view/Linux/GettingStarted + +comment "owl-linux requires a Linux kernel" + depends on !BR2_LINUX_KERNEL
package/owl-linux/owl-linux-1.0.6-fix-CROSS_COMPILE-usage-in-Makefile.patch new file +15 -0
@@ -0,0 +1,15 @@ +Fix the owl-linux Makefile so that it protects spaces in the CROSS_COMPILE +variable. For example, this variable will contain spaces if ccache is used. + +diff -Nur a/Makefile b/Makefile +--- a/Makefile 2011-09-15 12:20:37.000000000 +0100 ++++ b/Makefile 2012-05-10 08:53:55.727706424 +0100 +@@ -35,7 +35,7 @@ + PWD := $(shell pwd) + + default: +- $(MAKE) -C $(KERNELDIR) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) M=$(PWD) MODE=$(MODE) modules ++ $(MAKE) -C $(KERNELDIR) ARCH=$(ARCH) CROSS_COMPILE="$(CROSS_COMPILE)" M=$(PWD) MODE=$(MODE) modules + + clean: + -rm -f *.o *.mod.c *.ko modules.order Module.symvers
package/owl-linux/owl-linux-1.0.6-fix-for-linux-3.3.x.patch new file +19 -0
@@ -0,0 +1,19 @@ +Kernel commit b81693d9149c598302e8eb9c20cb20330d922c8e changed the +net_device_ops structure, removing the ndo_set_multicast_list callback. The +ndo_set_rx_mode has also been added to this structure. + +The upshot of these changes is that owl-linux fails to compile with 3.3.x +kernels. + +diff -Nur a/owl_net.c b/owl_net.c +--- a/owl_net.c 2011-09-15 12:20:37.000000000 +0100 ++++ b/owl_net.c 2012-05-01 11:39:14.617658349 +0100 +@@ -376,7 +376,7 @@ + #endif /* OWL_CONFIG_IFUPDOWN */ + .ndo_start_xmit = owl_net_tx, + .ndo_get_stats = owl_net_get_stats, +- .ndo_set_multicast_list = NULL, ++ .ndo_set_rx_mode = NULL, + .ndo_tx_timeout = owl_net_tx_timeout, + .ndo_set_mac_address = NULL, + };
package/owl-linux/owl-linux.mk new file +20 -0
@@ -0,0 +1,20 @@ +############################################################# +# +# owl-linux +# +############################################################# +OWL_LINUX_VERSION = 1.0.6 +OWL_LINUX_SITE = http://linux.hd-wireless.se/pub/Linux/DownloadDrivers +OWL_LINUX_SOURCE = owl-linux-$(OWL_LINUX_VERSION).tar.gz + +OWL_LINUX_DEPENDENCIES = linux + +define OWL_LINUX_BUILD_CMDS + $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) KERNELDIR=$(LINUX_DIR) +endef + +define OWL_LINUX_INSTALL_TARGET_CMDS + $(MAKE) -C $(LINUX_DIR) $(LINUX_MAKE_FLAGS) M=$(@D) modules_install +endef + +$(eval $(call GENTARGETS))
Signature · 1 line
1.7.9.5
PATCH RESEND 1/1 owl-linux: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"spdawson" == spdawson <[email protected]> writes:
Hi,
spdawson> diff --git a/package/owl-linux/Config.in b/package/owl-linux/Config.in spdawson> new file mode 100644
spdawson> index 0000000..6ee0f95
spdawson> --- /dev/null
spdawson> +++ b/package/owl-linux/Config.in
spdawson> @@ -0,0 +1,10 @@
spdawson> +config BR2_PACKAGE_OWL_LINUX
spdawson> + bool "H&D Wireless SPB104 SD-card WiFi SIP"
spdawson> + depends on BR2_LINUX_KERNEL
spdawson> + help
spdawson> + Linux kernel driver for the H&D Wireless SPB104 SD-card WiFi SIP.
spdawson> +
spdawson> + http://linux.hd-wireless.se/bin/view/Linux/GettingStarted
I don't know anything about this non-mainline driver, but a quick look from that page shows me:
The driver is split into a binary part and a source part. The binary part is a kernel-version and kernel-configuration independent kernel-space library which also holds the device firmware. The source part is basically the implementation of the adaptation layers interfacing the SDIO stack, the TCP/IP stack and the wireless extensions. This code is dependent on kernel version and configuration, so it must be compiled for a particular kernel.
Currently, the included library has been compiled for ARM architectures only. In version 1.0.6 and later, the library has been compiled with the CodeSourcery GNU EABI toolchain 2011.03-42
So it seems like this should depend on atleast ARM, maybe some processor variants and perhaps even the codesourcery 2011.03 toolchain?
Signature · 1 line
Bye, Peter Korsgaard
PATCH RESEND 1/1 owl-linux: new package
In reply to a message not in the archiveM= might contain spaces too, please make them fix this also. TIA,
Quoted 1 line · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"spdawson" == spdawson <[email protected]> writes:
Hi,
spdawson> diff --git a/package/owl-linux/Config.in
b/package/owl-linux/Config.in
spdawson> new file mode 100644
spdawson> index 0000000..6ee0f95
spdawson> --- /dev/null
spdawson> +++ b/package/owl-linux/Config.in spdawson> @@ -0,0 +1,10 @@
spdawson> +config BR2_PACKAGE_OWL_LINUX
spdawson> + bool "H&D Wireless SPB104 SD-card WiFi SIP" spdawson> + depends on BR2_LINUX_KERNEL spdawson> + help
spdawson> + Linux kernel driver for the H&D Wireless SPB104 SD-card
WiFi SIP.
spdawson> +
spdawson> + http://linux.hd-wireless.se/bin/view/Linux/GettingStarted
I don't know anything about this non-mainline driver, but a quick look from that page shows me:
The driver is split into a binary part and a source part. The binary part is a kernel-version and kernel-configuration independent kernel-space library which also holds the device firmware. The source part is basically the implementation of the adaptation layers interfacing the SDIO stack, the TCP/IP stack and the wireless extensions. This code is dependent on kernel version and configuration, so it must be compiled for a particular kernel.
Currently, the included library has been compiled for ARM architectures only. In version 1.0.6 and later, the library has been compiled with the CodeSourcery GNU EABI toolchain 2011.03-42
So it seems like this should depend on atleast ARM, maybe some processor variants and perhaps even the codesourcery 2011.03 toolchain?
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120525/4c0d7c05/attachment.html>
PATCH RESEND 1/1 owl-linux: new package
Quoted 6 lines
Currently, the included library has been compiled for ARM architectures only. In version 1.0.6 and later, the library has been compiled with the CodeSourcery GNU EABI toolchain 2011.03-42
So it seems like this should depend on atleast ARM, maybe some processor variants and perhaps even the codesourcery 2011.03 toolchain?
Thanks for the detailed and insightful comments. You're certainly right about the need for an ARM dependency --- probably requiring an ARM9 architecture variant will be safest.
I worry about adding a dependency on the codesourcery toolchain
though: this will break my own particular use case, in which the internal buildroot toolchain seems to be working fine.
Quoted 1 line
M= might contain spaces too, please make them fix this also.
Thanks for pointing this out; I shall fix it.