Message ID | 1437691280-23926-1-git-send-email-christian@paral.in |
---|---|
State | Superseded |
Headers | show |
Hi all, Note : I'm new on the list, so I had insert this tread by hand ! I'm the one working on the RTL8821AU driver. On Thu, 23 Jul 2015, Christian Stewart wrote: > Adding a kernel module based USB wifi driver. There is no official > version of this driver that works properly on ARM and with newer USB > WiFi cards. This driver version builds module 8821au and is based on a > kernel module release from ASUS with various fixes integrated in. This message will be commited please change. The I think the difference between the version from ASUS and mine based the one Edimax are in the handling of the LED. Maybe there are more ... > I've switched to use ulli-kroll's branch of rtl8821au. While it's based > on an older vendor version, it has binary firmware and around ~1800 > commits of work to improve the driver. I think this work is probably > more valuable than the vendor's updates. > -> git send-email --compose Will add some message an intreductory message > --- /dev/null > +++ b/package/rtl8821au/0001-disable-default-debug.patch I do add some kind of "disable debug message" This will take some time, I'm currently working in the code. > +config BR2_PACKAGE_RTL8821AU > + bool "rtl8821au" > + depends on BR2_LINUX_KERNEL > + help > + rtl8821au wifi driver > + > + https://github.com/paralin/rtl8821au Please fix this URL ! Maybe add some line "out of tree driver" And the USB3 issue I found inthe HW as you can read in Readme.md Greetings from Cologne Hans Ulli Kroll
Hey Hans, It's not unusual in Buildroot to have long commit messages when a package is first added. I've addressed your concerns and respun the patch. Christian On Fri, Jul 24, 2015 at 6:50 AM Hans Ulli Kroll <ulli.kroll@googlemail.com> wrote: > Hi all, > > Note : I'm new on the list, so I had insert this tread by hand ! > > I'm the one working on the RTL8821AU driver. > > On Thu, 23 Jul 2015, Christian Stewart wrote: > > > Adding a kernel module based USB wifi driver. There is no official > > version of this driver that works properly on ARM and with newer USB > > WiFi cards. This driver version builds module 8821au and is based on a > > kernel module release from ASUS with various fixes integrated in. > > This message will be commited please change. > > The I think the difference between the version from ASUS and mine based > the one Edimax are in the handling of the LED. > Maybe there are more ... > > > I've switched to use ulli-kroll's branch of rtl8821au. While it's based > > on an older vendor version, it has binary firmware and around ~1800 > > commits of work to improve the driver. I think this work is probably > > more valuable than the vendor's updates. > > > > -> git send-email --compose > Will add some message an intreductory message > > > --- /dev/null > > +++ b/package/rtl8821au/0001-disable-default-debug.patch > > I do add some kind of "disable debug message" > This will take some time, I'm currently working in the code. > > > +config BR2_PACKAGE_RTL8821AU > > + bool "rtl8821au" > > + depends on BR2_LINUX_KERNEL > > + help > > + rtl8821au wifi driver > > + > > + https://github.com/paralin/rtl8821au > > Please fix this URL ! > > Maybe add some line "out of tree driver" > And the USB3 issue I found inthe HW as you can read in > Readme.md > > Greetings from Cologne > Hans Ulli Kroll >
Ulli, all, On 2015-07-24 15:50 +0200, Hans Ulli Kroll spake thusly: > Note : I'm new on the list, so I had insert this tread by hand ! Welcome! :-) > I'm the one working on the RTL8821AU driver. Yeah, great! I saw that Christian and I did some work on the same module, but based on diffferent code-dump by different vendors. It would be great if you two could synchronise your work on this, to avoid duplication and to get the best driver possible, with a ultimate goal of submitting it for inclusion in the mainline. ;-) > On Thu, 23 Jul 2015, Christian Stewart wrote: > > Adding a kernel module based USB wifi driver. There is no official > > version of this driver that works properly on ARM and with newer USB > > WiFi cards. This driver version builds module 8821au and is based on a > > kernel module release from ASUS with various fixes integrated in. > > This message will be commited please change. No, that's OK to get some details when adding a new package. > The I think the difference between the version from ASUS and mine based > the one Edimax are in the handling of the LED. > Maybe there are more ... Well, if that's the only difference, we can consider that to be a minor issue that can be resolvdd by back-/forward-porting it from one code base to the other. > > I've switched to use ulli-kroll's branch of rtl8821au. While it's based > > on an older vendor version, it has binary firmware and around ~1800 > > commits of work to improve the driver. I think this work is probably > > more valuable than the vendor's updates. > > > > -> git send-email --compose > Will add some message an intreductory message That's OK the way Christian did: that part isindeed not part of the commit message, as it lise below the '---' line, so git wil ignore it when the patch is applied. > > --- /dev/null > > +++ b/package/rtl8821au/0001-disable-default-debug.patch > > I do add some kind of "disable debug message" > This will take some time, I'm currently working in the code. Great! :-) > > +config BR2_PACKAGE_RTL8821AU > > + bool "rtl8821au" > > + depends on BR2_LINUX_KERNEL > > + help > > + rtl8821au wifi driver > > + > > + https://github.com/paralin/rtl8821au > > Please fix this URL ! > > Maybe add some line "out of tree driver" Well, if it were an in-tree module, we would not have a package for it, as it would come with the Linux source tree. So, this is obviously an out-of-tree module. ;-) > And the USB3 issue I found inthe HW as you can read in > Readme.md I see that Christian added that in the new commit log and help text. Thanks! :-) Regards, Yann E. MORIN.
On Sat, 25 Jul 2015, Yann E. MORIN wrote: > Ulli, all, > > On 2015-07-24 15:50 +0200, Hans Ulli Kroll spake thusly: > > Note : I'm new on the list, so I had insert this tread by hand ! > > Welcome! :-) > Thanks > > The I think the difference between the version from ASUS and mine based > > the one Edimax are in the handling of the LED. > > Maybe there are more ... > > Well, if that's the only difference, we can consider that to be a minor > issue that can be resolvdd by back-/forward-porting it from one code > base to the other. > This ways only a quick look at some code I'm working (at this time) on. As I said there is maybe more. > > > --- /dev/null > > > +++ b/package/rtl8821au/0001-disable-default-debug.patch > > > > I do add some kind of "disable debug message" > > This will take some time, I'm currently working in the code. > > Great! :-) > So, now the driver is *allways* build with debug info, see CONFIG_RTLWIFI_DEBUG but you *must* enable this while loading the driver i.e. insmod rtl8821au debug=5 To be very verbose, default is debug=0 for no debug output. For the code itself : I've done *a lot* functions renames and other things. I use the rtl8821ae driver as some kind of pattern and the rtl8192cu driver for the USB part. Ulli
Ulli, On Sun, Jul 26, 2015 at 12:59 PM Hans Ulli Kroll <ulli.kroll@googlemail.com> wrote: [snip] So, now the driver is *allways* build with debug info, see > CONFIG_RTLWIFI_DEBUG > but you *must* enable this while loading the driver i.e. > > insmod rtl8821au debug=5 > > To be very verbose, default is debug=0 for no debug output. > That's a bit odd. When loading the driver as-is from your repository without any arguments, I get a very verbose amount of logging to the kernel logs. Are you sure this is the case? With the patch in the merged repository most of the debugging is disabled through header define comments. > > For the code itself : > I've done *a lot* functions renames and other things. > I use the rtl8821ae driver as some kind of pattern and the rtl8192cu > driver for the USB part. Great! ~ Christian
On Sun, 26 Jul 2015, Christian Stewart wrote: Hi, I've done a quick test during my coffee break ... > That's a bit odd. When loading the driver as-is from your repository > without any arguments, I get a very verbose amount of logging to the kernel > logs. Are you sure this is the case? With the patch in the merged > repository most of the debugging is disabled through header define comments. > > I missed some old dev_info() in rtl8821au/. Now changed. Pushed. Ulli
diff --git a/package/Config.in b/package/Config.in index cfa7512..070ec6a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -404,6 +404,7 @@ endif source "package/read-edid/Config.in" source "package/rng-tools/Config.in" source "package/rpi-userland/Config.in" + source "package/rtl8821au/Config.in" source "package/sane-backends/Config.in" source "package/sdparm/Config.in" source "package/setserial/Config.in" diff --git a/package/rtl8821au/0001-disable-default-debug.patch b/package/rtl8821au/0001-disable-default-debug.patch new file mode 100644 index 0000000..de6fc62 --- /dev/null +++ b/package/rtl8821au/0001-disable-default-debug.patch @@ -0,0 +1,24 @@ +Comment out the hardcoded debug defines. If extra debug is needed, we can add it +as a define in the make flags. + +Signed-off-by: Christian Stewart <christian@paral.in> + +diff --git a/include/autoconf.h b/include/autoconf.h +--- a/include/autoconf.h ++++ b/include/autoconf.h +@@ -130,12 +130,12 @@ + /* + * Debug Related Config + */ +-#define DBG 1 ++//#define DBG 1 + +-#define CONFIG_DEBUG /* DBG_871X, etc... */ ++//#define CONFIG_DEBUG /* DBG_871X, etc... */ + //#define CONFIG_DEBUG_RTL871X /* RT_TRACE, RT_PRINT_DATA, _func_enter_, _func_exit_ */ + +-#define CONFIG_PROC_DEBUG ++//#define CONFIG_PROC_DEBUG + + + //#define DBG_TX diff --git a/package/rtl8821au/Config.in b/package/rtl8821au/Config.in new file mode 100644 index 0000000..9827ad5 --- /dev/null +++ b/package/rtl8821au/Config.in @@ -0,0 +1,10 @@ +comment "rtl8821au needs a Linux kernel to be built" + depends on !BR2_LINUX_KERNEL + +config BR2_PACKAGE_RTL8821AU + bool "rtl8821au" + depends on BR2_LINUX_KERNEL + help + rtl8821au wifi driver + + https://github.com/paralin/rtl8821au diff --git a/package/rtl8821au/rtl8821au.hash b/package/rtl8821au/rtl8821au.hash new file mode 100644 index 0000000..d54d3c3 --- /dev/null +++ b/package/rtl8821au/rtl8821au.hash @@ -0,0 +1 @@ +sha256 93beaf608880ecbca03bbeb8251b91d16e17724b36158b0571d1cebb7b4e5914 rtl8821au-f58e4a7fb27551bdbb4aee9db6086dd6ad996c8d.tar.gz diff --git a/package/rtl8821au/rtl8821au.mk b/package/rtl8821au/rtl8821au.mk new file mode 100644 index 0000000..42f4cdd --- /dev/null +++ b/package/rtl8821au/rtl8821au.mk @@ -0,0 +1,21 @@ +################################################################################ +# +# rtl8821au +# +################################################################################ + +RTL8821AU_VERSION = f58e4a7fb27551bdbb4aee9db6086dd6ad996c8d +RTL8821AU_SITE = $(call github,ulli-kroll,rtl8821au,$(RTL8821AU_VERSION)) +RTL8821AU_CFLAGS_ENDIAN = -DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN + +RTL8821AU_MODULE_MAKE_OPTS = \ + CONFIG_RTL8812AU_8821AU=m \ + KVER=$(LINUX_VERSION_PROBED) \ + USER_EXTRA_CFLAGS=$(RTL8821AU_CFLAGS_ENDIAN) + +define RTL8821AU_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0644 $(@D)/firmware/* $(TARGET_DIR)/lib/firmware/rtlwifi/ +endef + +$(eval $(kernel-module)) +$(eval $(generic-package))
Adding a kernel module based USB wifi driver. There is no official version of this driver that works properly on ARM and with newer USB WiFi cards. This driver version builds module 8821au and is based on a kernel module release from ASUS with various fixes integrated in. Signed-off-by: Christian Stewart <christian@paral.in> --- I've switched to use ulli-kroll's branch of rtl8821au. While it's based on an older vendor version, it has binary firmware and around ~1800 commits of work to improve the driver. I think this work is probably more valuable than the vendor's updates. package/Config.in | 1 + package/rtl8821au/0001-disable-default-debug.patch | 24 ++++++++++++++++++++++ package/rtl8821au/Config.in | 10 +++++++++ package/rtl8821au/rtl8821au.hash | 1 + package/rtl8821au/rtl8821au.mk | 21 +++++++++++++++++++ 5 files changed, 57 insertions(+) create mode 100644 package/rtl8821au/0001-disable-default-debug.patch create mode 100644 package/rtl8821au/Config.in create mode 100644 package/rtl8821au/rtl8821au.hash create mode 100644 package/rtl8821au/rtl8821au.mk