rtl8812 wifi adapter

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

rtl8812 wifi adapter

Postby Grazz256 » Fri May 22, 2015 4:44 am

Hi Folks,

I spent some time this evening and made a PKGBUILD for the rtl8812au driver found here:
https://github.com/gnab/rtl8812au

This is specifically made for the Raspberry Pi 2 Model B (since that's what I have) but with some modification should work with other systems.

For those that are new to Arch to use these files...
1. In a non-root users home folder make a directory called "rtl8812"
2. cd into the new directory
3. Make a file named "PKGBUILD", paste the contents of the code section below
4. Make a file named "rtl8812au.install", paste the contents of the code section below
5. Run makepkg
6. Install the newly created package with pacman by running "pacman -U rtl8812au-git-r30.17d050d-1-armv7h.pkg.tar.xz" Note: replace the file name with the file created using makepkg

For full details on makepkg refer to the wiki here:
https://wiki.archlinux.org/index.php/Makepkg

PKGBUILD
$this->bbcode_second_pass_code('', 'pkgname=rtl8812au-git
_basename=rtl8812au
pkgver=r30.17d050d
pkgrel=1
pkgdesc="A kernel module for Realtek 8812au network cards"
url="https://github.com/gnab/rtl8812au"
license=("GPL")
arch=('armv7h')
builddepends=('git' 'linux-raspberrypi-headers')
conflicts=()
source=("git+https://github.com/gnab/rtl8812au")
sha256sums=('SKIP')
install=$_basename.install

pkgver() {
cd "$srcdir/$_basename"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
# Set platform
cd $srcdir/$_basename
sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/' Makefile
sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/' Makefile

# Make the library
make
}

package() {
cd $srcdir/$_basename

# Get the version from the already-built module, in case installed
# version has changed since build.
_kernver=$(modinfo -F vermagic "$_srcname.ko" | cut -d' ' -f1)
_kernminor=${_kernver%.*}
_nextminor=${_kernminor%.*}.$((${_kernminor##*.}+1))
depends=("linux$_kernelname>=$_kernminor" "linux$_kernelname<$_nextminor")


install -Dm644 "8812au.ko" \
"$pkgdir/usr/lib/modules/$(uname -r)/kernel/drivers/net/wireless/8812au.ko"

# Set kernel version in install script (for depmod)
sed \
-e "s/^KERNEL_VERSION=.*/KERNEL_VERSION=$_kernminor${_kernelname:--ARCH}/" \
-i "$startdir/$install"

}
')

rtl8812au.install
$this->bbcode_second_pass_code('', '
post_install ()
{
depmod
}

post_remove ()
{
depmod
}
')

I make no garuntees this will work for anyone else but in my case I was able to build and install this directly from my raspberry pi with no need to cross compile on a separate computer. If there is some error with the above let me know and I will update this post.

Credit for stolen pieces of other PKGBUILDs...
https://aur.archlinux.org/packages/rtl8812au-git-dkms/
https://aur.archlinux.org/packages/piuio-git/

Hope someone finds this helpful.

Cheers
Grazz256
 
Posts: 7
Joined: Fri May 22, 2015 4:16 am

Re: rtl8812 wifi adapter

Postby technosf » Tue May 26, 2015 3:36 am

gnab's driver fork doesn't work for armv5: See http://archlinuxarm.org/forum/viewtopic.php?f=6&t=8758&start=10

But... Digging around, looking at debugging the latest Realtek driver, I found another fork: https://github.com/diederikdehaas/rtl8812AU

This is the latest version and patched for RPI (and arm in general). It builds.... It loads.... It don't seg fault on v5!

I've had it working on 2.4 g. Working through the options for 5g and hostapd. Woo hoo! Should work nice in the PKGBUILD
[size=85] MochaBin 5G || NSA325 [/size]
technosf
 
Posts: 130
Joined: Sat Jan 08, 2011 10:54 pm

Re: rtl8812 wifi adapter

Postby meow » Sun May 31, 2015 10:50 am

I've uploaded a later version of 8812au driver:
https://github.com/meoow/dkms-rtl8812au

Both 2.4Ghz and 5.8Ghz were tested working fine.
meow
 
Posts: 1
Joined: Sun May 31, 2015 10:41 am

Re: rtl8812 wifi adapter

Postby Grazz256 » Sun May 31, 2015 12:40 pm

meow, any idea if/what the differences are with yours and the one technosf posted?

Cheers
Grazz256
 
Posts: 7
Joined: Fri May 22, 2015 4:16 am

Re: rtl8812 wifi adapter

Postby apokalypz » Fri Jul 03, 2015 10:52 am

That's odd, I tried to build both the OP's driver and meoow's and got errors on both. It says it's missing Linux/compiler-gcc5.h. If I add it (from online) to the include dir, I get a bunch more errors about implicit declarations and multiple definitions.

I find it odd because I just built the driver for it a couple months ago without too much problem (though, I don't think 5ghz worked reliably). The only thing I've seen change is maybe the release of GCC5 a few months ago. How could a compiler version change mess up the build process so much? I know implicit declarations are a warning now treated as errors, hence the Werror in the log, but I didn't think anything compiler related can cause every function to be defined twice.

Anyone else having any luck, or are we gonna have to wait until the driver gets fixed to build on gcc5?
apokalypz
 
Posts: 41
Joined: Sun Apr 06, 2014 6:13 pm

Re: rtl8812 wifi adapter

Postby f3rn4nd0d » Thu Aug 06, 2015 1:37 pm

Hello,

I just purchased an Edimax EW-7811DAC that I think uses the same chip. I've compiled and installed the driver that meow uploaded but even though the module is loaded, there is no way to make it work. e.g. wicd-curses says there is no wireless device to connect to.

Any ideas?

The device works great in Raspbian following the instructions on this page:

https://www.raspberrypi.org/forums/view ... 3&p=782878

Best regards and thanks for your help / Fernando
f3rn4nd0d
 
Posts: 4
Joined: Thu Aug 06, 2015 1:26 pm

Re: rtl8812 wifi adapter

Postby Grazz256 » Fri Aug 07, 2015 12:50 am

Hey,

Couple thoughts..

How are you verifying that the module is loaded?

Run dmesg -c, unplug the adapter, plug it back in, run dmesg again post up the results. Chances are the kernel isn't recognizing the adapter, the dmesg output should indicate what is doing getting recongized.

Cheers
Grazz256
 
Posts: 7
Joined: Fri May 22, 2015 4:16 am

Re: rtl8812 wifi adapter

Postby f3rn4nd0d » Fri Aug 07, 2015 8:22 am

Ok, here we go:

$this->bbcode_second_pass_code('', 'Welcome to Arch Linux ARM

Website: http://archlinuxarm.org
Forum: http://archlinuxarm.org/forum
IRC: #archlinux-arm on irc.Freenode.net
Last login: Thu Aug 6 21:36:34 2015 from 192.168.0.247
[root@alarmpi ~]# lsmod
Module Size Used by
joydev 8547 0
evdev 9674 0
uio_pdrv_genirq 3277 0
uio 9020 1 uio_pdrv_genirq
sch_fq_codel 7323 2
snd_bcm2835 21892 0
snd_pcm 85974 1 snd_bcm2835
snd_timer 19976 1 snd_pcm
snd 60932 3 snd_bcm2835,snd_timer,snd_pcm
bcm2708_rng 1163 0
rng_core 7007 1 bcm2708_rng
ip_tables 12258 0
x_tables 16506 1 ip_tables
ipv6 343472 24
[root@alarmpi ~]# modprobe 8812au
[root@alarmpi ~]# lsmod
Module Size Used by
8812au 816869 0
joydev 8547 0
evdev 9674 0
uio_pdrv_genirq 3277 0
uio 9020 1 uio_pdrv_genirq
sch_fq_codel 7323 2
snd_bcm2835 21892 0
snd_pcm 85974 1 snd_bcm2835
snd_timer 19976 1 snd_pcm
snd 60932 3 snd_bcm2835,snd_timer,snd_pcm
bcm2708_rng 1163 0
rng_core 7007 1 bcm2708_rng
ip_tables 12258 0
x_tables 16506 1 ip_tables
ipv6 343472 24
[root@alarmpi ~]# dmesg -c
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.0.9-2-ARCH (builduser@leming) (gcc version 5.2.0 (GCC) ) #1 SMP PREEMPT Tue Jul 28 19:06:38 MDT 2015
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Raspberry Pi 2 Model B Rev 1.1
[ 0.000000] cma: Reserved 8 MiB at 0x3a800000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 241664
[ 0.000000] free_area_init_node: node 0, pgdat 80aeed80, node_mem_map b9fa6000
[ 0.000000] Normal zone: 2124 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 241664 pages, LIFO batch:31
[ 0.000000] [bcm2709_smp_init_cpus] enter (85e0->f3003010)
[ 0.000000] [bcm2709_smp_init_cpus] ncores=4
[ 0.000000] PERCPU: Embedded 12 pages/cpu @b9f69000 s16896 r8192 d24064 u49152
[ 0.000000] pcpu-alloc: s16896 r8192 d24064 u49152 alloc=12*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 239540
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2709.boardrev=0xa01041 bcm2709.serial=0x4f5c6092 smsc95xx.macaddr=B8:27:EB:5C:60:92 bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 root=/dev/mmcblk0p2 rw rootwait console=ttyAMA0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 elevator=noop
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 936860K/966656K available (7749K kernel code, 458K rwdata, 2644K rodata, 364K init, 780K bss, 21604K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xbb800000 - 0xff000000 (1080 MB)
lowmem : 0x80000000 - 0xbb000000 ( 944 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x80a2e8b0 (10395 kB)
.init : 0x80a2f000 - 0x80a8a000 ( 364 kB)
.data : 0x80a8a000 - 0x80afca14 ( 459 kB)
.bss : 0x80afca14 - 0x80bbfdbc ( 781 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:608
[ 0.000000] Architected cp15 timer(s) running at 19.20MHz (virt).
[ 0.000013] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 3579139424256ns
[ 0.000032] Switching to timer-based delay loop, resolution 52ns
[ 0.000296] Console: colour dummy device 80x30
[ 0.001253] console [tty1] enabled
[ 0.001304] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[ 0.001375] pid_max: default: 32768 minimum: 301
[ 0.001793] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001849] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.003047] Initializing cgroup subsys blkio
[ 0.003117] Initializing cgroup subsys memory
[ 0.003170] Initializing cgroup subsys devices
[ 0.003214] Initializing cgroup subsys freezer
[ 0.003258] Initializing cgroup subsys net_cls
[ 0.003313] Initializing cgroup subsys bfqio
[ 0.003357] Initializing cgroup subsys perf_event
[ 0.003402] Initializing cgroup subsys net_prio
[ 0.003516] CPU: Testing write buffer coherency: ok
[ 0.004163] CPU0: update cpu_capacity 1024
[ 0.004211] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[ 0.004251] [bcm2709_smp_prepare_cpus] enter
[ 0.004394] Setting up static identity map for 0x7652e8 - 0x76531c
[ 0.060486] [bcm2709_boot_secondary] cpu:1 started (0) 17
[ 0.060804] [bcm2709_secondary_init] enter cpu:1
[ 0.060851] CPU1: update cpu_capacity 1024
[ 0.060860] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[ 0.080477] [bcm2709_boot_secondary] cpu:2 started (0) 16
[ 0.080736] [bcm2709_secondary_init] enter cpu:2
[ 0.080766] CPU2: update cpu_capacity 1024
[ 0.080774] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[ 0.100491] [bcm2709_boot_secondary] cpu:3 started (0) 18
[ 0.100735] [bcm2709_secondary_init] enter cpu:3
[ 0.100763] CPU3: update cpu_capacity 1024
[ 0.100771] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[ 0.100866] Brought up 4 CPUs
[ 0.100984] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[ 0.101021] CPU: All CPU(s) started in SVC mode.
[ 0.102116] devtmpfs: initialized
[ 0.123399] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.124520] xor: measuring software checksum speed
[ 0.220281] arm4regs : 764.400 MB/sec
[ 0.320386] 8regs : 528.000 MB/sec
[ 0.420491] 32regs : 527.200 MB/sec
[ 0.520593] neon : 758.800 MB/sec
[ 0.520630] xor: using function: arm4regs (764.400 MB/sec)
[ 0.520702] pinctrl core: initialized pinctrl subsystem
[ 0.525470] NET: Registered protocol family 16
[ 0.531325] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[ 0.532650] bcm2709.uart_clock = 3000000
[ 0.536841] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.536904] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.537070] Serial: AMBA PL011 UART driver
[ 0.537287] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev2
[ 1.045297] console [ttyAMA0] enabled
[ 1.049693] bcm2708_vcio 3f00b880.mailbox: mailbox at f300b880
[ 1.295948] raid6: int32x1 91 MB/s
[ 1.466252] raid6: int32x2 118 MB/s
[ 1.636372] raid6: int32x4 112 MB/s
[ 1.806653] raid6: int32x8 111 MB/s
[ 1.976665] raid6: neonx1 301 MB/s
[ 2.146828] raid6: neonx2 393 MB/s
[ 2.316969] raid6: neonx4 433 MB/s
[ 2.487236] raid6: neonx8 413 MB/s
[ 2.491002] raid6: using algorithm neonx4 (433 MB/s)
[ 2.495995] raid6: using intx1 recovery algorithm
[ 2.501181] bcm2708-dmaengine 3f007000.dma: DMA legacy API manager at f3007000, dmachans=0x7f35
[ 2.510501] bcm2708-dmaengine 3f007000.dma: Load BCM2835 DMA engine driver
[ 2.517399] bcm2708-dmaengine 3f007000.dma: dma_debug:0
[ 2.522776] bcm_power: Broadcom power driver
[ 2.527067] bcm_power_open() -> 0
[ 2.530395] bcm_power_request(0, 8)
[ 2.559579] bcm_mailbox_read -> 00000080, 0
[ 2.563782] bcm_power_request -> 0
[ 2.567881] SCSI subsystem initialized
[ 2.572136] usbcore: registered new interface driver usbfs
[ 2.577778] usbcore: registered new interface driver hub
[ 2.583280] usbcore: registered new device driver usb
[ 2.591383] Switched to clocksource arch_sys_counter
[ 2.652820] FS-Cache: Loaded
[ 2.656052] CacheFiles: Loaded
[ 2.672272] NET: Registered protocol family 2
[ 2.677882] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 2.685129] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 2.691819] TCP: Hash tables configured (established 8192 bind 8192)
[ 2.698292] TCP: reno registered
[ 2.701573] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 2.707563] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 2.714323] NET: Registered protocol family 1
[ 2.719215] RPC: Registered named UNIX socket transport module.
[ 2.725195] RPC: Registered udp transport module.
[ 2.729914] RPC: Registered tcp transport module.
[ 2.734655] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 2.742315] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[ 2.753299] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 2.776999] VFS: Disk quotas dquot_6.5.2
[ 2.781350] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 2.791357] FS-Cache: Netfs 'nfs' registered for caching
[ 2.797743] NFS: Registering the id_resolver key type
[ 2.802927] Key type id_resolver registered
[ 2.807129] Key type id_legacy registered
[ 2.811184] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 2.818887] JFS: nTxBlock = 7383, nTxLock = 59065
[ 2.832657] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[ 2.845565] aufs 4.0-20150622
[ 2.851056] async_tx: api initialized (async)
[ 2.855631] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 2.863299] io scheduler noop registered (default)
[ 2.868124] io scheduler deadline registered
[ 2.872501] io scheduler cfq registered
[ 2.877045] io scheduler bfq registered
[ 2.880899] BFQ I/O-scheduler: v7r8
[ 2.886700] BCM2708FB: allocated DMA memory fac00000
[ 2.891946] BCM2708FB: allocated DMA channel 0 @ f3007000
[ 2.926809] Console: switching to colour frame buffer device 228x61
[ 2.951164] Serial: 8250/16550 driver, 0 ports, IRQ sharing disabled
[ 2.957960] uart-pl011 3f201000.uart: no DMA platform data
[ 2.963840] KGDB: Registered I/O driver kgdboc
[ 2.991976] vc-cma: Videocore CMA driver
[ 2.995979] vc-cma: vc_cma_base = 0x00000000
[ 3.000763] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 3.006281] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 3.012053] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[ 3.036372] brd: module loaded
[ 3.048702] loop: module loaded
[ 3.053032] vchiq: vchiq_init_state: slot_zero = 0xbac80000, is_master = 0
[ 3.060988] Loading iSCSI transport class v2.0-870.
[ 3.067064] usbcore: registered new interface driver ax88179_178a
[ 3.073491] usbcore: registered new interface driver smsc95xx
[ 3.079514] usbcore: registered new interface driver cdc_ncm
[ 3.085312] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 3.291499] Core Release: 2.80a
[ 3.294712] Setting default values for core params
[ 3.299616] Finished setting default values for core params
[ 3.505764] Using Buffer DMA mode
[ 3.509144] Periodic Transfer Interrupt Enhancement - disabled
[ 3.515096] Multiprocessor Interrupt Enhancement - disabled
[ 3.520766] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 3.525224] Dedicated Tx FIFOs mode
[ 3.529139] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xbac14000 dma = 0xfac14000 len=9024
[ 3.539188] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
[ 3.573567] dwc_otg: Microframe scheduler enabled
[ 3.573654] WARN::hcd_init_fiq:412: FIQ on core 1 at 0x805ad574
[ 3.584057] WARN::hcd_init_fiq:413: FIQ ASM at 0x805ad8bc length 36
[ 3.594765] WARN::hcd_init_fiq:438: MPHI regs_base at 0xbbcec000
[ 3.605178] dwc_otg 3f980000.usb: DWC OTG Controller
[ 3.614558] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 3.626325] dwc_otg 3f980000.usb: irq 32, io mem 0x00000000
[ 3.636291] Init: Port Power? op_state=1
[ 3.644522] Init: Power Port (0)
[ 3.652330] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 3.663479] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.675105] usb usb1: Product: DWC OTG Controller
[ 3.684150] usb usb1: Manufacturer: Linux 4.0.9-2-ARCH dwc_otg_hcd
[ 3.694673] usb usb1: SerialNumber: 3f980000.usb
[ 3.704542] hub 1-0:1.0: USB hub found
[ 3.712610] hub 1-0:1.0: 1 port detected
[ 3.721284] dwc_otg: FIQ enabled
[ 3.721299] dwc_otg: NAK holdoff enabled
[ 3.721310] dwc_otg: FIQ split-transaction FSM enabled
[ 3.721351] Module dwc_common_port init
[ 3.721766] usbcore: registered new interface driver usb-storage
[ 3.732177] usbcore: registered new interface driver ums-alauda
[ 3.742397] usbcore: registered new interface driver ums-cypress
[ 3.752609] usbcore: registered new interface driver ums-datafab
[ 3.762804] usbcore: registered new interface driver ums_eneub6250
[ 3.773133] usbcore: registered new interface driver ums-freecom
[ 3.783273] usbcore: registered new interface driver ums-isd200
[ 3.793348] usbcore: registered new interface driver ums-jumpshot
[ 3.803554] usbcore: registered new interface driver ums-karma
[ 3.813603] usbcore: registered new interface driver ums-onetouch
[ 3.823818] usbcore: registered new interface driver ums-realtek
[ 3.833833] usbcore: registered new interface driver ums-sddr09
[ 3.843692] usbcore: registered new interface driver ums-sddr55
[ 3.853480] usbcore: registered new interface driver ums-usbat
[ 3.863369] mousedev: PS/2 mouse device common for all mice
[ 3.873651] md: linear personality registered for level -1
[ 3.882952] md: raid0 personality registered for level 0
[ 3.892085] md: raid1 personality registered for level 1
[ 3.901186] md: raid10 personality registered for level 10
[ 3.910768] md: raid6 personality registered for level 6
[ 3.919917] Indeed it is in host mode hprt0 = 00021501
[ 3.928852] md: raid5 personality registered for level 5
[ 3.937888] md: raid4 personality registered for level 4
[ 3.946852] md: multipath personality registered for level -4
[ 3.956245] md: faulty personality registered for level -5
[ 3.965882] device-mapper: uevent: version 1.0.3
[ 3.974877] device-mapper: ioctl: 4.30.0-ioctl (2014-12-22) initialised: dm-devel@redhat.com
[ 3.988069] device-mapper: multipath: version 1.8.0 loaded
[ 3.997406] device-mapper: multipath round-robin: version 1.0.0 loaded
[ 4.007765] device-mapper: multipath queue-length: version 0.1.0 loaded
[ 4.018198] device-mapper: multipath service-time: version 0.2.0 loaded
[ 4.028614] device-mapper: raid: Loading target version 1.6.0
[ 4.038508] bcm2835-cpufreq: min=600000 max=900000
[ 4.060038] Driver 'mmcblk' needs updating - please use bus_type methods
[ 4.069325] sdhci: Secure Digital Host Controller Interface driver
[ 4.078035] sdhci: Copyright(c) Pierre Ossman
[ 4.085278] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[ 4.093577] mmc-bcm2835 3f300000.mmc: DMA channels allocated
[ 4.101748] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 4.110999] Indeed it is in host mode hprt0 = 00001101
[ 4.141494] sdhci-pltfm: SDHCI platform and OF driver helper
[ 4.150041] ledtrig-cpu: registered to indicate activity on CPUs
[ 4.158748] hidraw: raw HID events driver (C) Jiri Kosina
[ 4.167038] usbcore: registered new interface driver usbhid
[ 4.175124] usbhid: USB HID core driver
[ 4.179502] mmc0: host does not support reading read-only switch, assuming write-enable
[ 4.181610] mmc0: new high speed SDHC card at address 0007
[ 4.182103] mmcblk0: mmc0:0007 SD16G 14.9 GiB
[ 4.184111] mmcblk0: p1 p2
[ 4.212740] TCP: cubic registered
[ 4.218594] Initializing XFRM netlink socket
[ 4.225410] NET: Registered protocol family 17
[ 4.232504] Key type dns_resolver registered
[ 4.239651] Registering SWP/SWPB emulation handler
[ 4.247653] registered taskstats version 1
[ 4.257146] Btrfs loaded
[ 4.262360] vc-sm: Videocore shared memory driver
[ 4.269556] [vc_sm_connected_init]: start
[ 4.276658] [vc_sm_connected_init]: end - returning 0
[ 4.285280] md: Waiting for all devices to be available before autodetect
[ 4.294710] md: If you don't use raid, use raid=noautodetect
[ 4.303849] md: Autodetecting RAID arrays.
[ 4.310599] md: Scanned 0 and added 0 devices.
[ 4.317726] md: autorun ...
[ 4.321700] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 4.321709] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.322375] hub 1-1:1.0: USB hub found
[ 4.322471] hub 1-1:1.0: 5 ports detected
[ 4.355876] md: ... autorun DONE.
[ 4.366152] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 4.379007] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 4.601654] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 4.711732] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 4.723045] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.737706] smsc95xx v1.0.4
[ 4.804975] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:5c:60:92
[ 4.911488] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[ 5.022284] usb 1-1.2: New USB device found, idVendor=7392, idProduct=a812
[ 5.033867] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5.045881] usb 1-1.2: Product: Edimax AC600 USB
[ 5.055163] usb 1-1.2: Manufacturer: Edimax
[ 5.063964] usb 1-1.2: SerialNumber: 00e04c000001
[ 5.151504] usb 1-1.5: new low-speed USB device number 5 using dwc_otg
[ 5.289875] usb 1-1.5: New USB device found, idVendor=03f0, idProduct=0c4a
[ 5.301354] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5.313223] usb 1-1.5: Product: HP USB 1000dpi Laser Mouse
[ 5.323287] usb 1-1.5: Manufacturer: HP
[ 6.344189] input: HP HP USB 1000dpi Laser Mouse as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:03F0:0C4A.0001/input/input0
[ 6.362634] hid-generic 0003:03F0:0C4A.0001: input,hidraw0: USB HID v2.00 Mouse [HP HP USB 1000dpi Laser Mouse] on usb-3f980000.usb-1.5/input0
[ 6.396282] input: HP HP USB 1000dpi Laser Mouse as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1/0003:03F0:0C4A.0002/input/input1
[ 6.472012] hid-generic 0003:03F0:0C4A.0002: input,hiddev0,hidraw1: USB HID v2.00 Device [HP HP USB 1000dpi Laser Mouse] on usb-3f980000.usb-1.5/input1
[ 7.786564] EXT4-fs (mmcblk0p2): 19 orphan inodes deleted
[ 7.797173] EXT4-fs (mmcblk0p2): recovery complete
[ 9.031133] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 9.044453] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 9.057767] devtmpfs: mounted
[ 9.066462] Freeing unused kernel memory: 364K (80a2f000 - 80a8a000)
[ 9.646489] NET: Registered protocol family 10
[ 9.658255] systemd[1]: Inserted module 'ipv6'
[ 9.702556] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.713175] systemd[1]: Inserted module 'ip_tables'
[ 9.747768] random: systemd urandom read with 94 bits of entropy available
[ 9.785791] systemd[1]: systemd 224 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN)
[ 9.810210] systemd[1]: Detected architecture arm.
[ 9.842270] systemd[1]: Set hostname to <alarmpi>.
[ 10.929851] systemd[1]: display-manager.service: Cannot add dependency job, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ 10.958725] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 10.981268] systemd[1]: Reached target Swap.
[ 10.998142] systemd[1]: Reached target Remote File Systems.
[ 11.017724] systemd[1]: Created slice Root Slice.
[ 11.064881] systemd[1]: Listening on LVM2 metadata daemon socket.
[ 11.084962] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ 11.103612] systemd[1]: Created slice User and Session Slice.
[ 11.118370] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[ 11.134048] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 11.150993] systemd[1]: Listening on Journal Socket.
[ 11.165092] systemd[1]: Reached target Encrypted Volumes.
[ 11.179555] systemd[1]: Listening on udev Control Socket.
[ 11.194517] systemd[1]: Created slice System Slice.
[ 11.215849] systemd[1]: Mounting Temporary Directory...
[ 11.230790] systemd[1]: Reached target Slices.
[ 11.247698] systemd[1]: Starting Setup Virtual Console...
[ 11.265946] systemd[1]: Mounting Debug File System...
[ 11.282018] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 11.300412] systemd[1]: Mounting POSIX Message Queue File System...
[ 11.317606] systemd[1]: Created slice system-getty.slice.
[ 11.335372] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 11.375393] systemd[1]: Starting Load Kernel Modules...
[ 11.389761] systemd[1]: Listening on Journal Socket (/dev/log).
[ 11.408738] systemd[1]: Starting Journal Service...
[ 11.423125] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 11.439529] systemd[1]: Reached target Paths.
[ 11.452316] systemd[1]: Listening on udev Kernel Socket.
[ 11.463442] bcm2708_rng_init=bbe6a000
[ 11.482342] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[ 11.514403] systemd[1]: Mounted Debug File System.
[ 11.531971] systemd[1]: Mounted POSIX Message Queue File System.
[ 11.549280] systemd[1]: Mounted Temporary Directory.
[ 11.571917] systemd[1]: Started Setup Virtual Console.
[ 11.593355] systemd[1]: Started Remount Root and Kernel File Systems.
[ 11.613667] systemd[1]: Started Create list of required static device nodes for the current kernel.
[ 11.617682] random: nonblocking pool is initialized
[ 12.190559] systemd-journald[125]: File /var/log/journal/20d4f52b53de4dd9aa7ac72e93285b0a/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 12.382310] systemd[1]: Starting Create Static Device Nodes in /dev...
[ 12.401089] systemd[1]: Starting Load/Save Random Seed...
[ 12.799293] systemd[1]: Starting udev Coldplug all Devices...
[ 12.828906] systemd[1]: Started Load/Save Random Seed.
[ 12.906677] systemd[1]: Started Load Kernel Modules.
[ 12.968616] systemd[1]: Mounting Configuration File System...
[ 12.999578] systemd[1]: Starting Apply Kernel Variables...
[ 13.033835] systemd[1]: Mounted Configuration File System.
[ 13.055822] systemd[1]: Started Journal Service.
[ 13.517322] systemd-journald[125]: Received request to flush runtime journal from PID 1
[ 15.748984] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 16.884338] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 16.895261] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 18.424653] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[ 18.435044] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 120.845545] RTL871X: module init start
[ 120.849528] RTL871X: rtl8812au v4.3.8_12175.20140902
[ 120.854633] RTL871X: build time: Aug 6 2015 20:12:46
[ 120.860164] usbcore: registered new interface driver rtl8812au
[ 120.866140] RTL871X: module init ret=0
[root@alarmpi ~]# dmesg -c
[ 187.587598] usb 1-1.2: USB disconnect, device number 4
[ 192.432407] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[ 192.553631] usb 1-1.2: New USB device found, idVendor=7392, idProduct=a812
[ 192.560667] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 192.568205] usb 1-1.2: Product: Edimax AC600 USB
[ 192.573005] usb 1-1.2: Manufacturer: Edimax
[ 192.577301] usb 1-1.2: SerialNumber: 00e04c000001')

Thanks a lot for your help. I've spent a lot of hours with this.
f3rn4nd0d
 
Posts: 4
Joined: Thu Aug 06, 2015 1:26 pm

Re: rtl8812 wifi adapter

Postby f3rn4nd0d » Fri Aug 07, 2015 8:26 am

And here the steps I did:

$this->bbcode_second_pass_code('', 'pacman -Syu

pacman -S wget

wget https://github.com/meoow/dkms-rtl8812au/archive/master.zip

pacman -S unzip

pacman -Syu

pacman -S base-devel

pacman -S dkms

unzip master.zip

mv dkms-rtl8812au-master dkms-rtl8812au

sudo cp -r dkms-rtl8812au/8812au-4.3.8 /usr/src

sudo pacman -S linux-raspberrypi-headers

sudo dkms install 8812au/4.3.8

depmod

modprobe 8812au

lsmod')


Thanks again
f3rn4nd0d
 
Posts: 4
Joined: Thu Aug 06, 2015 1:26 pm

Re: rtl8812 wifi adapter

Postby Grazz256 » Fri Aug 07, 2015 7:55 pm

The issue is that the driver isn't recognizing the device, there is a way to force the kernel to use a module for a device but I don't know how to do it (or have time to find it..). For a slightly harder fix that should work you can..

Open usb_intf.c..

On line 261ish you'll find...
{USB_DEVICE(0x7392, 0xA822),.driver_info = RTL8812}, /* Edimax - Edimax */

Add a line after it that...
{USB_DEVICE(0x7392, 0xA812),.driver_info = RTL8812}, /* Edimax - Edimax */

recompile/install/insmod/depmod

Cheers
Grazz256
 
Posts: 7
Joined: Fri May 22, 2015 4:16 am

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 4 guests