theycallmeshua
Posts: 7
Joined: Fri Feb 23, 2018 8:26 pm

ASUS USB-AC53 Nano wifi on stretch

Fri Feb 23, 2018 8:50 pm

i have a Raspberry Pi 3B running raspbian stretch
i have tried the following things to get this dongle working
  • https://edimax.freshdesk.com/support/so ... spberry-pi
    which when i get to the make portion, gives me this error

    Code: Select all

    make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.14.20-v7+/build M=/home/pi/rtl8822bu modules
    make[1]: Entering directory '/root/linux-5c54027d52135fe9a74507f26d9e4617d854a07d'
      CC [M]  /home/pi/rtl8822bu/core/rtw_cmd.o
    In file included from /home/pi/rtl8822bu/include/drv_types.h:32:0,
                     from /home/pi/rtl8822bu/core/rtw_cmd.c:22:
    /home/pi/rtl8822bu/include/osdep_service.h: In function ‘thread_enter’:
    /home/pi/rtl8822bu/include/osdep_service.h:345:2: error: implicit declaration of function ‘allow_signal’ [-Werror=implicit-function-declaration]
      allow_signal(SIGTERM);
      ^~~~~~~~~~~~
    /home/pi/rtl8822bu/include/osdep_service.h: In function ‘flush_signals_thread’:
    /home/pi/rtl8822bu/include/osdep_service.h:355:6: error: implicit declaration of function ‘signal_pending’ [-Werror=implicit-function-declaration]
      if (signal_pending(current))
          ^~~~~~~~~~~~~~
    /home/pi/rtl8822bu/include/osdep_service.h:356:3: error: implicit declaration of function ‘flush_signals’ [-Werror=implicit-function-declaration]
       flush_signals(current);
       ^~~~~~~~~~~~~
    cc1: some warnings being treated as errors
    scripts/Makefile.build:320: recipe for target '/home/pi/rtl8822bu/core/rtw_cmd.o' failed
    make[2]: *** [/home/pi/rtl8822bu/core/rtw_cmd.o] Error 1
    Makefile:1508: recipe for target '_module_/home/pi/rtl8822bu' failed
    make[1]: *** [_module_/home/pi/rtl8822bu] Error 2
    make[1]: Leaving directory '/root/linux-5c54027d52135fe9a74507f26d9e4617d854a07d'
    Makefile:1318: recipe for target 'modules' failed
    make: *** [modules] Error 2
    
  • https://forums.linuxmint.com/viewtopic. ... 0&t=255594
    which compiles but gives me this when i do modprobe

    Code: Select all

    modprobe: ERROR: could not insert '8822bu': Unknown symbol in module, or unknown parameter (see dmesg)
    
    and this is the dmesg output

    Code: Select all

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.20-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1094 SMP Mon Feb 19 15:14:31 GMT 2018
    [    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] cma: Reserved 8 MiB at 0x3ac00000
    [    0.000000] On node 0 totalpages: 242688
    [    0.000000] free_area_init_node: node 0, pgdat 80c7e800, node_mem_map ba3a1000
    [    0.000000]   Normal zone: 2133 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 242688 pages, LIFO batch:31
    [    0.000000] random: fast init done
    [    0.000000] percpu: Embedded 17 pages/cpu @ba34a000 s38720 r8192 d22720 u69632
    [    0.000000] pcpu-alloc: s38720 r8192 d22720 u69632 alloc=17*4096
    [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 240555
    [    0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=4af70429-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
    [    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: 940260K/970752K available (7168K kernel code, 548K rwdata, 2028K rodata, 1024K init, 706K bss, 22300K reserved, 8192K cma-reserved)
    [    0.000000] Virtual kernel memory layout:
                       vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                       fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                       vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
                       lowmem  : 0x80000000 - 0xbb400000   ( 948 MB)
                       modules : 0x7f000000 - 0x80000000   (  16 MB)
                         .text : 0x80008000 - 0x80800000   (8160 kB)
                         .init : 0x80b00000 - 0x80c00000   (1024 kB)
                         .data : 0x80c00000 - 0x80c89244   ( 549 kB)
                          .bss : 0x80c90ee0 - 0x80d417b4   ( 707 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] ftrace: allocating 24631 entries in 73 pages
    [    0.000000] Hierarchical RCU implementation.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
    [    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
    [    0.000018] Switching to timer-based delay loop, resolution 52ns
    [    0.000265] Console: colour dummy device 80x30
    [    0.000282] console [tty1] enabled
    [    0.000311] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
    [    0.000326] pid_max: default: 32768 minimum: 301
    [    0.000637] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000652] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001586] Disabling memory control group subsystem
    [    0.001667] CPU: Testing write buffer coherency: ok
    [    0.002056] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.002431] Setting up static identity map for 0x100000 - 0x10003c
    [    0.002548] Hierarchical SRCU implementation.
    [    0.003176] smp: Bringing up secondary CPUs ...
    [    0.003806] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.004519] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
    [    0.005220] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
    [    0.005323] smp: Brought up 1 node, 4 CPUs
    [    0.005333] SMP: Total of 4 processors activated (153.60 BogoMIPS).
    [    0.005338] CPU: All CPU(s) started in HYP mode.
    [    0.005343] CPU: Virtualization extensions available.
    [    0.006193] devtmpfs: initialized
    [    0.016949] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
    [    0.017162] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.017180] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [    0.017734] pinctrl core: initialized pinctrl subsystem
    [    0.018473] NET: Registered protocol family 16
    [    0.021174] DMA: preallocated 1024 KiB pool for atomic coherent allocations
    [    0.026043] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.026051] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.026253] Serial: AMBA PL011 UART driver
    [    0.027890] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
    [    0.028343] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
    [    0.059857] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80d000, dmachans=0x1
    [    0.061370] SCSI subsystem initialized
    [    0.061496] usbcore: registered new interface driver usbfs
    [    0.061548] usbcore: registered new interface driver hub
    [    0.061632] usbcore: registered new device driver usb
    [    0.070087] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-02-09 14:22
    [    0.071441] clocksource: Switched to clocksource arch_sys_counter
    [    0.147900] VFS: Disk quotas dquot_6.6.0
    [    0.147985] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.148172] FS-Cache: Loaded
    [    0.148365] CacheFiles: Loaded
    [    0.157181] NET: Registered protocol family 2
    [    0.157907] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.158017] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.158202] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.158331] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.158376] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.158605] NET: Registered protocol family 1
    [    0.159043] RPC: Registered named UNIX socket transport module.
    [    0.159049] RPC: Registered udp transport module.
    [    0.159054] RPC: Registered tcp transport module.
    [    0.159059] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.160602] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
    [    0.163407] workingset: timestamp_bits=14 max_order=18 bucket_order=4
    [    0.171283] FS-Cache: Netfs 'nfs' registered for caching
    [    0.171909] NFS: Registering the id_resolver key type
    [    0.171940] Key type id_resolver registered
    [    0.171945] Key type id_legacy registered
    [    0.173810] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
    [    0.173934] io scheduler noop registered
    [    0.173940] io scheduler deadline registered (default)
    [    0.174211] io scheduler cfq registered
    [    0.174218] io scheduler mq-deadline registered
    [    0.174224] io scheduler kyber registered
    [    0.176953] BCM2708FB: allocated DMA memory fad10000
    [    0.176979] BCM2708FB: allocated DMA channel 0 @ bb80d000
    [    0.213489] Console: switching to colour frame buffer device 160x64
    [    0.235311] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
    [    0.236663] bcm2835-rng 3f104000.rng: hwrng registered
    [    0.236800] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
    [    0.237238] vc-sm: Videocore shared memory driver
    [    0.237508] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
    [    0.247027] brd: module loaded
    [    0.255832] loop: module loaded
    [    0.255846] Loading iSCSI transport class v2.0-870.
    [    0.256333] usbcore: registered new interface driver smsc95xx
    [    0.256349] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
    [    0.484454] Core Release: 2.80a
    [    0.484463] Setting default values for core params
    [    0.484494] Finished setting default values for core params
    [    0.684754] Using Buffer DMA mode
    [    0.684760] Periodic Transfer Interrupt Enhancement - disabled
    [    0.684766] Multiprocessor Interrupt Enhancement - disabled
    [    0.684772] OTG VER PARAM: 0, OTG VER FLAG: 0
    [    0.684784] Dedicated Tx FIFOs mode
    [    0.685128] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0xbad04000 dma = 0xfad04000 len=9024
    [    0.685153] FIQ FSM acceleration enabled for :
                   Non-periodic Split Transactions
                   Periodic Split Transactions
                   High-Speed Isochronous Endpoints
                   Interrupt/Control Split Transaction hack enabled
    [    0.685160] dwc_otg: Microframe scheduler enabled
    [    0.685214] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805c6504
    [    0.685225] WARN::hcd_init_fiq:460: FIQ ASM at 0x805c686c length 36
    [    0.685237] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb878000
    [    0.685297] dwc_otg 3f980000.usb: DWC OTG Controller
    [    0.685329] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
    [    0.685361] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
    [    0.685408] Init: Port Power? op_state=1
    [    0.685413] Init: Power Port (0)
    [    0.685619] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.685629] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.685637] usb usb1: Product: DWC OTG Controller
    [    0.685645] usb usb1: Manufacturer: Linux 4.14.20-v7+ dwc_otg_hcd
    [    0.685653] usb usb1: SerialNumber: 3f980000.usb
    [    0.686250] hub 1-0:1.0: USB hub found
    [    0.686289] hub 1-0:1.0: 1 port detected
    [    0.686826] dwc_otg: FIQ enabled
    [    0.686832] dwc_otg: NAK holdoff enabled
    [    0.686836] dwc_otg: FIQ split-transaction FSM enabled
    [    0.686847] Module dwc_common_port init
    [    0.687083] usbcore: registered new interface driver usb-storage
    [    0.687244] mousedev: PS/2 mouse device common for all mice
    [    0.687316] IR NEC protocol handler initialized
    [    0.687322] IR RC5(x/sz) protocol handler initialized
    [    0.687327] IR RC6 protocol handler initialized
    [    0.687332] IR JVC protocol handler initialized
    [    0.687337] IR Sony protocol handler initialized
    [    0.687343] IR SANYO protocol handler initialized
    [    0.687348] IR Sharp protocol handler initialized
    [    0.687353] IR MCE Keyboard/mouse protocol handler initialized
    [    0.687358] IR XMP protocol handler initialized
    [    0.688047] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
    [    0.688317] bcm2835-cpufreq: min=600000 max=1200000
    [    0.688675] sdhci: Secure Digital Host Controller Interface driver
    [    0.688680] sdhci: Copyright(c) Pierre Ossman
    [    0.689036] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
    [    0.689352] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
    [    0.689447] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.692025] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.692198] hidraw: raw HID events driver (C) Jiri Kosina
    [    0.692326] usbcore: registered new interface driver usbhid
    [    0.692331] usbhid: USB HID core driver
    [    0.693052] vchiq: vchiq_init_state: slot_zero = bad80000, is_master = 0
    [    0.694901] [vc_sm_connected_init]: start
    [    0.704070] [vc_sm_connected_init]: end - returning 0
    [    0.704633] Initializing XFRM netlink socket
    [    0.704656] NET: Registered protocol family 17
    [    0.704753] Key type dns_resolver registered
    [    0.705278] Registering SWP/SWPB emulation handler
    [    0.705865] registered taskstats version 1
    [    0.711668] uart-pl011 3f201000.serial: cts_event_workaround enabled
    [    0.711743] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
    [    0.713252] console [ttyS0] disabled
    [    0.713283] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 166, base_baud = 31250000) is a 16550
    [    0.713335] console [ttyS0] enabled
    [    0.714192] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
    [    0.714201] mmc-bcm2835 3f300000.mmc: DMA channel allocated
    [    0.772053] sdhost: log_buf @ bad07000 (fad07000)
    [    0.808596] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [    0.810169] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    0.811755] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    0.814537] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [    0.851502] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
    [    0.852529] of_cfs_init
    [    0.852670] of_cfs_init: OK
    [    0.853212] Waiting for root device PARTUUID=4af70429-02...
    [    0.901545] Indeed it is in host mode hprt0 = 00021501
    [    0.989918] mmc1: new high speed SDIO card at address 0001
    [    1.032217] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.035007] mmc0: new high speed SDHC card at address aaaa
    [    1.035440] mmcblk0: mmc0:aaaa SL32G 29.7 GiB
    [    1.037999]  mmcblk0: p1 p2
    [    1.075801] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    1.075855] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    1.076633] devtmpfs: mounted
    [    1.081280] Freeing unused kernel memory: 1024K
    [    1.111495] usb 1-1: new high-speed USB device number 2 using dwc_otg
    [    1.111628] Indeed it is in host mode hprt0 = 00001101
    [    1.351769] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
    [    1.351786] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [    1.352513] hub 1-1:1.0: USB hub found
    [    1.352605] hub 1-1:1.0: 5 ports detected
    [    1.486292] systemd[1]: System time before build time, advancing clock.
    [    1.613207] NET: Registered protocol family 10
    [    1.614389] Segment Routing with IPv6
    [    1.633145] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    1.670088] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
    [    1.670659] systemd[1]: Detected architecture arm.
    [    1.671562] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
    [    1.671953] systemd[1]: Set hostname to <raspberrypi>.
    [    1.801880] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
    [    1.801896] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [    1.804635] smsc95xx v1.0.6
    [    1.895010] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:41:73:37
    [    1.991530] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
    [    2.127389] usb 1-1.2: New USB device found, idVendor=045e, idProduct=00d1
    [    2.127405] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [    2.127414] usb 1-1.2: Product: Microsoft Optical Mouse with Tilt Wheel
    [    2.127422] usb 1-1.2: Manufacturer: Microsoft
    [    2.137308] input: Microsoft Microsoft Optical Mouse with Tilt Wheel as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:045E:00D1.0001/input/input0
    [    2.137650] hid-generic 0003:045E:00D1.0001: input,hidraw0: USB HID v1.11 Mouse [Microsoft Microsoft Optical Mouse with Tilt Wheel] on usb-3f980000.usb-1.2/input0
    [    2.155874] systemd[1]: Listening on udev Kernel Socket.
    [    2.156505] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [    2.157226] systemd[1]: Created slice User and Session Slice.
    [    2.157598] systemd[1]: Listening on Journal Socket.
    [    2.157816] systemd[1]: Listening on fsck to fsckd communication Socket.
    [    2.158069] systemd[1]: Listening on udev Control Socket.
    [    2.158195] systemd[1]: Reached target Swap.
    [    2.231560] usb 1-1.3: new low-speed USB device number 5 using dwc_otg
    [    2.269177] i2c /dev entries driver
    [    2.397431] usb 1-1.3: New USB device found, idVendor=04d9, idProduct=1203
    [    2.397454] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [    2.425643] input: HID 04d9:1203 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04D9:1203.0002/input/input1
    [    2.500740] hid-generic 0003:04D9:1203.0002: input,hidraw1: USB HID v1.11 Keyboard [HID 04d9:1203] on usb-3f980000.usb-1.3/input0
    [    2.538815] input: HID 04d9:1203 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04D9:1203.0003/input/input2
    [    2.602102] hid-generic 0003:04D9:1203.0003: input,hidraw2: USB HID v1.11 Device [HID 04d9:1203] on usb-3f980000.usb-1.3/input1
    [    2.658150] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [    2.711551] usb 1-1.5: new high-speed USB device number 6 using dwc_otg
    [    2.725289] systemd-journald[101]: Received request to flush runtime journal from PID 1
    [    2.842302] usb 1-1.5: New USB device found, idVendor=0b05, idProduct=184c
    [    2.842321] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    2.842330] usb 1-1.5: Product: 802.11ac NIC
    [    2.842338] usb 1-1.5: Manufacturer: Realtek
    [    2.842345] usb 1-1.5: SerialNumber: 123456
    [    3.330906] 8822bu: loading out-of-tree module taints kernel.
    [    3.344047] 8822bu: Unknown symbol vfs_read (err 0)
    [    3.344092] 8822bu: Unknown symbol __vfs_read (err 0)
    [    3.663339] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
    [    3.667686] bcm2835_alsa bcm2835_alsa: card created with 8 channels
    [    3.682740] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
    [    3.692278] ads7846 spi0.1: spi0.1 supply vcc not found, using dummy regulator
    [    3.694519] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001
    [    3.694652] ads7846 spi0.1: touchscreen, irq 169
    [    3.694774] usbcore: registered new interface driver brcmfmac
    [    3.698154] input: ADS7846 Touchscreen as /devices/platform/soc/3f204000.spi/spi_master/spi0/spi0.1/input/input3
    [    3.963394] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
    [    3.964299] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.39 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-10-23 03:47:14 
    [    4.856706] uart-pl011 3f201000.serial: no DMA platform data
    [    5.224829] random: crng init done
    [    5.229949] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [    5.229979] brcmfmac: power management disabled
    [    5.613729] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
    [    5.614107] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    6.071279] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [    6.340413] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
    [    9.312049] Bluetooth: Core ver 2.22
    [    9.312188] NET: Registered protocol family 31
    [    9.312195] Bluetooth: HCI device and connection manager initialized
    [    9.313817] Bluetooth: HCI socket layer initialized
    [    9.313846] Bluetooth: L2CAP socket layer initialized
    [    9.313909] Bluetooth: SCO socket layer initialized
    [    9.331788] Bluetooth: HCI UART driver ver 2.3
    [    9.331805] Bluetooth: HCI UART protocol H4 registered
    [    9.331812] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [    9.576581] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [    9.576592] Bluetooth: BNEP filters: protocol multicast
    [    9.576609] Bluetooth: BNEP socket layer initialized
    [    9.665316] Bluetooth: RFCOMM TTY layer initialized
    [    9.665344] Bluetooth: RFCOMM socket layer initialized
    [    9.665370] Bluetooth: RFCOMM ver 1.11
    [   11.041637] fuse init (API version 7.26)
    [   75.813310] usb 1-1.5: USB disconnect, device number 6
    [   78.410431] usb 1-1.4: new high-speed USB device number 7 using dwc_otg
    [   78.541161] usb 1-1.4: New USB device found, idVendor=0b05, idProduct=184c
    [   78.541177] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [   78.541186] usb 1-1.4: Product: 802.11ac NIC
    [   78.541194] usb 1-1.4: Manufacturer: Realtek
    [   78.541202] usb 1-1.4: SerialNumber: 123456
    [   78.594725] 8822bu: Unknown symbol vfs_read (err 0)
    [   78.594778] 8822bu: Unknown symbol __vfs_read (err 0)
    [  608.805315] usb 1-1.4: USB disconnect, device number 7
    [ 1471.052766] usb 1-1.4: new high-speed USB device number 8 using dwc_otg
    [ 1471.183431] usb 1-1.4: New USB device found, idVendor=0b05, idProduct=184c
    [ 1471.183448] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 1471.183457] usb 1-1.4: Product: 802.11ac NIC
    [ 1471.183465] usb 1-1.4: Manufacturer: Realtek
    [ 1471.183474] usb 1-1.4: SerialNumber: 123456
    [ 1471.646025] 8822bu: Unknown symbol vfs_read (err 0)
    [ 1471.646090] 8822bu: Unknown symbol __vfs_read (err 0)
    [ 1511.972010] 8822bu: Unknown symbol vfs_read (err 0)
    [ 1511.972064] 8822bu: Unknown symbol __vfs_read (err 0)
    
  • i also tried following this https://edimax.freshdesk.com/support/so ... spberry-pi but using the edimax driver from this page https://wikidevi.com/wiki/ASUS_USB-AC53_Nano which gives me

    Code: Select all

    make ARCH= CROSS_COMPILE= -C  M=/home/pi/Desktop/5  modules
    make[1]: *** M=/home/pi/Desktop/5: No such file or directory.  Stop.
    Makefile:1803: recipe for target 'modules' failed
    make: *** [modules] Error 2
    
  • so many other things ive forgotten what they are or how i found them
this is driving me crazy at this point. ive been working on this for three days, each time i try a new thing i reimage the sd card with a backup image i made after installing raspian.

does anyone one have any help or ideas?

MrEngman
Posts: 4037
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: ASUS USB-AC53 Nano wifi on stretch

Fri Feb 23, 2018 11:00 pm

Take a look here viewtopic.php?f=46&t=179044#p1276786 and the posts following.

Not sure if it will compile for kernel 4.14.20-v7+. but you never know.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

theycallmeshua
Posts: 7
Joined: Fri Feb 23, 2018 8:26 pm

Re: ASUS USB-AC53 Nano wifi on stretch

Fri Feb 23, 2018 11:02 pm

MrEngman wrote:
Fri Feb 23, 2018 11:00 pm
Take a look here viewtopic.php?f=46&t=179044#p1276786 and the posts following.

Not sure if it will compile for kernel 4.14.20-v7+. but you never know.
i knew i forgot to add one, yeah ive already done that too. no luck

MrEngman
Posts: 4037
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: ASUS USB-AC53 Nano wifi on stretch

Sun Feb 25, 2018 5:13 pm

theycallmeshua wrote:
Fri Feb 23, 2018 11:02 pm
MrEngman wrote:
Fri Feb 23, 2018 11:00 pm
Take a look here viewtopic.php?f=46&t=179044#p1276786 and the posts following.

Not sure if it will compile for kernel 4.14.20-v7+. but you never know.
i knew i forgot to add one, yeah ive already done that too. no luck
I compile several wifi drivers so I took a look at the source at https://github.com/brandon-bailey/rtl8822bu

I have been able to compile it for kernel 4.14 using various patches I use on some of the wifi sources I use. The driver loads in kernel 4.14 but I cannot test it as I do not have a wifi adapter using the 8822bu driver. The patch I used is as follows

Code: Select all

diff -Naur '--exclude=.git' rtl8822bu-orig/core/efuse/rtw_efuse.c rtl8822bu/core/efuse/rtw_efuse.c
--- rtl8822bu-orig/core/efuse/rtw_efuse.c       2018-02-26 01:14:58.767031425 +0000
+++ rtl8822bu/core/efuse/rtw_efuse.c    2018-02-26 01:14:43.227143059 +0000
@@ -2564,7 +2564,11 @@
        set_fs(KERNEL_DS);

        for (i = 0 ; i < HWSET_MAX_SIZE ; i++) {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
+               kernel_read(fp, temp, 2, &pos);
+#else
                vfs_read(fp, temp, 2, &pos);
+#endif
                if (sscanf(temp, "%hhx", &buf[i]) != 1) {
                        if (0)
                                RTW_ERR("%s sscanf fail\n", __func__);
@@ -2572,10 +2576,18 @@
                }
                if ((i % EFUSE_FILE_COLUMN_NUM) == (EFUSE_FILE_COLUMN_NUM - 1)) {
                        /* Filter the lates space char. */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
+                       kernel_read(fp, temp, 1, &pos);
+#else
                        vfs_read(fp, temp, 1, &pos);
+#endif
                        if (strchr(temp, ' ') == NULL) {
                                pos--;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
+                               kernel_read(fp, temp, 2, &pos);
+#else
                                vfs_read(fp, temp, 2, &pos);
+#endif
                        }
                } else {
                        pos += 1; /* Filter the space character */
@@ -2632,7 +2644,11 @@
        fs = get_fs();
        set_fs(KERNEL_DS);

+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
+       kernel_read(fp, source_addr, 18, &pos);
+#else
        vfs_read(fp, source_addr, 18, &pos);
+#endif
        source_addr[17] = ':';

        head = end = source_addr;
diff -Naur '--exclude=.git' rtl8822bu-orig/core/rtw_wlan_util.c rtl8822bu/core/rtw_wlan_util.c
--- rtl8822bu-orig/core/rtw_wlan_util.c 2018-02-26 01:14:58.917030348 +0000
+++ rtl8822bu/core/rtw_wlan_util.c      2018-02-26 01:14:43.377141981 +0000
@@ -4724,7 +4724,11 @@
        source = rtw_zmalloc(2048);

        if (source != NULL) {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
+               len = kernel_read(fp, source, len, &pos);
+#else
                len = vfs_read(fp, source, len, &pos);
+#endif
                rtw_parse_cipher_list(nlo_info, source);
                rtw_mfree(source, 2048);
        }
diff -Naur '--exclude=.git' rtl8822bu-orig/hal/phydm/phydm_hwconfig.c rtl8822bu/hal/phydm/phydm_hwconfig.c
--- rtl8822bu-orig/hal/phydm/phydm_hwconfig.c   2018-02-26 01:14:59.427026684 +0000
+++ rtl8822bu/hal/phydm/phydm_hwconfig.c        2018-02-26 01:14:43.877138390 +0000
@@ -963,7 +963,7 @@
 {
        u1Byte                                  i, Max_spatial_stream;
        s1Byte                                  rx_pwr[4], rx_pwr_all = 0;
-       u1Byte                                  EVM, EVMdbm, PWDB_ALL = 0, PWDB_ALL_BT;
+       u1Byte                                  EVM = 0, EVMdbm, PWDB_ALL = 0, PWDB_ALL_BT;
        u1Byte                                  RSSI, avg_rssi = 0, best_rssi = 0, second_rssi = 0;
        u1Byte                                  isCCKrate = 0;
        u1Byte                                  rf_rx_num = 0;
diff -Naur '--exclude=.git' rtl8822bu-orig/include/osdep_service.h rtl8822bu/include/osdep_service.h
--- rtl8822bu-orig/include/osdep_service.h      2018-02-26 01:14:59.717024601 +0000
+++ rtl8822bu/include/osdep_service.h   2018-02-26 01:14:44.157136378 +0000
@@ -40,6 +40,10 @@
 #ifdef PLATFORM_LINUX
        #include <osdep_service_linux.h>
 #endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
+       #include <linux/signal.h>
+       #include <linux/sched/signal.h>
+#endif

 #ifdef PLATFORM_OS_XP
        #include <osdep_service_xp.h>
diff -Naur '--exclude=.git' rtl8822bu-orig/Makefile rtl8822bu/Makefile
--- rtl8822bu-orig/Makefile     2018-02-26 01:14:58.757031497 +0000
+++ rtl8822bu/Makefile  2018-02-26 01:14:43.217143131 +0000
@@ -85,8 +85,8 @@
 ###################### MP HW TX MODE FOR VHT #######################
 CONFIG_MP_VHT_HW_TX_MODE = n
 ###################### Platform Related #######################
-CONFIG_PLATFORM_ARM_RPI = n
-CONFIG_PLATFORM_I386_PC = y
+CONFIG_PLATFORM_ARM_RPI = y
+CONFIG_PLATFORM_I386_PC = n
 CONFIG_PLATFORM_ANDROID_X86 = n
 CONFIG_PLATFORM_ANDROID_INTEL_X86 = n
 CONFIG_PLATFORM_JB_X86 = n
diff -Naur '--exclude=.git' rtl8822bu-orig/os_dep/linux/ioctl_cfg80211.c rtl8822bu/os_dep/linux/ioctl_cfg80211.c
--- rtl8822bu-orig/os_dep/linux/ioctl_cfg80211.c        2018-02-26 01:14:59.897023308 +0000
+++ rtl8822bu/os_dep/linux/ioctl_cfg80211.c     2018-02-26 01:14:44.337135085 +0000
@@ -748,6 +748,19 @@
 #endif

                RTW_INFO(FUNC_ADPT_FMT" call cfg80211_roamed\n", FUNC_ADPT_ARG(padapter));
+               #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
+               {
+                       struct cfg80211_roam_info roam_info = {
+                               .channel = notify_channel,
+                               .bssid = cur_network->network.MacAddress,
+                               .req_ie = pmlmepriv->assoc_req+sizeof(struct rtw_ieee80211_hdr_3addr)+2,
+                               .req_ie_len = pmlmepriv->assoc_req_len-sizeof(struct rtw_ieee80211_hdr_3addr)-2,
+                               .resp_ie = pmlmepriv->assoc_rsp+sizeof(struct rtw_ieee80211_hdr_3addr)+6,
+                               .resp_ie_len = pmlmepriv->assoc_rsp_len-sizeof(struct rtw_ieee80211_hdr_3addr)-6,
+                       };
+                       cfg80211_roamed(padapter->pnetdev, &roam_info, GFP_ATOMIC);
+               }
+               #else
                cfg80211_roamed(padapter->pnetdev
 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39) || defined(COMPAT_KERNEL_RELEASE)
                                , notify_channel
@@ -758,6 +771,7 @@
                                , pmlmepriv->assoc_rsp + sizeof(struct rtw_ieee80211_hdr_3addr) + 6
                                , pmlmepriv->assoc_rsp_len - sizeof(struct rtw_ieee80211_hdr_3addr) - 6
                                , GFP_ATOMIC);
+               #endif
        } else {
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 11, 0) || defined(COMPAT_KERNEL_RELEASE)
                RTW_INFO("pwdev->sme_state(b)=%d\n", pwdev->sme_state);
@@ -1719,10 +1733,18 @@
        NL80211_IFTYPE_MAX = NUM_NL80211_IFTYPES - 1
 };
 #endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
+static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
+                                    struct net_device *ndev,
+                                    enum nl80211_iftype type,
+                                    struct vif_params *params)
+#else
 static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
                                      struct net_device *ndev,
                                      enum nl80211_iftype type, u32 *flags,
-                                     struct vif_params *params) {
+                                     struct vif_params *params)
+#endif
+{
        enum nl80211_iftype old_type;
        NDIS_802_11_NETWORK_INFRASTRUCTURE networkType;
        _adapter *padapter = (_adapter *)rtw_netdev_priv(ndev);
@@ -3595,7 +3617,12 @@
        mon_ndev->type = ARPHRD_IEEE80211_RADIOTAP;
        strncpy(mon_ndev->name, name, IFNAMSIZ);
        mon_ndev->name[IFNAMSIZ - 1] = 0;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
+       mon_ndev->needs_free_netdev = true;
+       mon_ndev->priv_destructor = rtw_ndev_destructor;
+#else
        mon_ndev->destructor = rtw_ndev_destructor;
+#endif

 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29))
        mon_ndev->netdev_ops = &rtw_cfg80211_monitor_if_ops;
@@ -3661,7 +3688,12 @@
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0))
     unsigned char name_assign_type,
 #endif
-    enum nl80211_iftype type, u32 *flags, struct vif_params *params) {
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
+       enum nl80211_iftype type, struct vif_params *params)
+#else
+       enum nl80211_iftype type, u32 *flags, struct vif_params *params)
+#endif
+{
        int ret = 0;
        struct net_device *ndev = NULL;
        _adapter *padapter = wiphy_to_adapter(wiphy);
@@ -6094,13 +6126,6 @@
 #endif

 #if defined(CONFIG_PM) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0))
-       wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN;
-#ifdef CONFIG_PNO_SUPPORT
-       wiphy->max_sched_scan_ssids = MAX_PNO_LIST_COUNT;
-#endif
-#endif
-
-#if defined(CONFIG_PM) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0))
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 11, 0))
        wiphy->wowlan = wowlan_stub;
 #else
diff -Naur '--exclude=.git' rtl8822bu-orig/os_dep/linux/os_intfs.c rtl8822bu/os_dep/linux/os_intfs.c
--- rtl8822bu-orig/os_dep/linux/os_intfs.c      2018-02-26 01:14:59.927023093 +0000
+++ rtl8822bu/os_dep/linux/os_intfs.c   2018-02-26 01:14:44.367134870 +0000
@@ -3037,7 +3037,6 @@
        if (ndev->ieee80211_ptr)
                rtw_mfree((u8 *)ndev->ieee80211_ptr, sizeof(struct wireless_dev));
 #endif
-       free_netdev(ndev);
 }

 #ifdef CONFIG_ARP_KEEP_ALIVE
diff -Naur '--exclude=.git' rtl8822bu-orig/os_dep/linux/usb_intf.c rtl8822bu/os_dep/linux/usb_intf.c
--- rtl8822bu-orig/os_dep/linux/usb_intf.c      2018-02-26 01:14:59.947022949 +0000
+++ rtl8822bu/os_dep/linux/usb_intf.c   2018-02-26 01:14:44.387134726 +0000
@@ -156,7 +156,6 @@
        {USB_DEVICE(0x0789, 0x016E), .driver_info = RTL8812}, /* Logitec - Edimax */
        {USB_DEVICE(0x0409, 0x0408), .driver_info = RTL8812}, /* NEC - */
        {USB_DEVICE(0x0B05, 0x17D2), .driver_info = RTL8812}, /* ASUS - Edimax */
-       {USB_DEVICE(0x0B05, 0x184C), .driver_info = RTL8812}, /* ASUS - Edimax */
        {USB_DEVICE(0x0E66, 0x0022), .driver_info = RTL8812}, /* HAWKING - Edimax */
        {USB_DEVICE(0x0586, 0x3426), .driver_info = RTL8812}, /* ZyXEL - */
        {USB_DEVICE(0x2001, 0x3313), .driver_info = RTL8812}, /* D-Link - ALPHA */
@@ -221,6 +220,7 @@

 #ifdef CONFIG_RTL8822B
        /*=== Realtek demoboard ===*/
+       {USB_DEVICE(0x0B05, 0x184C), .driver_info = RTL8812}, /* ASUS - Edimax */
        {USB_DEVICE(0x0B05, 0x1812), .driver_info = RTL8812}, /* ASUS - Edimax */
        {USB_DEVICE(0x7392, 0xB822), .driver_info = RTL8822B}, /* Edimax - EW-7822ULC */
        {USB_DEVICE_AND_INTERFACE_INFO(USB_VENDER_ID_REALTEK, 0xB82C, 0xff, 0xff, 0xff), .driver_info = RTL8822B}, /* Default ID */
diff -Naur '--exclude=.git' rtl8822bu-orig/os_dep/osdep_service.c rtl8822bu/os_dep/osdep_service.c
--- rtl8822bu-orig/os_dep/osdep_service.c       2018-02-26 01:14:59.957022877 +0000
+++ rtl8822bu/os_dep/osdep_service.c    2018-02-26 01:14:44.397134654 +0000
@@ -1960,11 +1960,15 @@
                return -EPERM;

        while (sum < len) {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
+               rlen = kernel_read(fp, buf + sum, len - sum, &fp->f_pos);
+#else
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0))
                rlen = __vfs_read(fp, buf + sum, len - sum, &fp->f_pos);
 #else
                rlen = fp->f_op->read(fp, buf + sum, len - sum, &fp->f_pos);
 #endif
+#endif
                if (rlen > 0)
                        sum += rlen;
                else if (0 != rlen)
You can also download it from http://downloads.fars-robotics.net/wifi ... 22bu.patch
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 4037
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: ASUS USB-AC53 Nano wifi on stretch

Mon Feb 26, 2018 2:31 am

Also had a look at the source at https://github.com/jeremyb31/rtl8822bu. Had problems compiling for 4.9 and 4.14 Raspbian kernels. The 4.9 kernel problems were due to some changes that were needed to compile for kernel 4.14 without specifying they were for kernel 4.14. Rather a silly error by someone.

I've patched the source and it now compiles for 4.9 and 4.14 Raspbian kernels. The patch is available to download from http://downloads.fars-robotics.net/wifi ... 22bu.patch if you're interested.

The driver compiles and loads OK but as I don't have a wifi adapter using the 8822bu driver I can't test it any further.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

theycallmeshua
Posts: 7
Joined: Fri Feb 23, 2018 8:26 pm

Re: ASUS USB-AC53 Nano wifi on stretch

Mon Feb 26, 2018 4:21 pm

forgive my ignorance, but im not sure how to recompile using the patches you have posted.

[EDIT] i figured out how to apply the patches, compiling now

Return to “General discussion”