arv187
Posts: 27
Joined: Sat Nov 14, 2015 1:07 pm

Help to install Edimax EW-7811UTC in arkos (Arch Linux ARM)

Sun May 01, 2016 11:43 am

Hi there, Im testing arkos distro, but i have multiples issues, since find right driver to compile with root (I tried did with no root user but ask me su user, its a bucle!). In advance say that Im very novice so I was follow tutorials.

https://arkos.io/ is a flavour of Arch Linux ARM

Code: Select all

[am25200@arkos ~]$ uname -a
Linux arkos 4.1.19-5-ARCH #1 SMP Tue Mar 15 19:59:28 MDT 2016 armv7l GNU/Linux
[am25200@arkos ~]$ lsusb
Bus 001 Device 005: ID 7392:a812 Edimax Technology Co., Ltd
Bus 001 Device 004: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[    6.014943] usb 1-1.4: Product: Edimax AC600 USB
[    6.021176] usb 1-1.4: Manufacturer: Realtek
[    6.026986] usb 1-1.4: SerialNumber: 00e04c000001
I think that driver must be compile to arch, but i dont know what is the right driver, anyone based in 8812au to arch & 4.1.19-?
This driver viewtopic.php?f=28&t=102323 work well to me in raspbian

Thanks!


arv187
Posts: 27
Joined: Sat Nov 14, 2015 1:07 pm

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Mon May 02, 2016 9:15 pm

Thanks!!!

Im followin this guide, but i obtain error:

Code: Select all

[am25200@arkos rtl8812au]$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.1.19-5-ARCH/build M=/home/am25200/rtl8812au  modules
make[1]: *** /lib/modules/4.1.19-5-ARCH/build: No such file or directory.  Stop.
Makefile:1052: recipe for target 'modules' failed
make: *** [modules] Error 2
[am25200@arkos rtl8812au]$ sudo insmod 8812au.ko
[sudo] password for am25200:
insmod: ERROR: could not load module 8812au.ko: No such file or directory
I updated the packages, restart and finally installation work:

Code: Select all

[am25200@arkos rtl8812au]$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.8-2-ARCH/build M=/home/am25200/rtl8812au  modules
make[1]: Entering directory '/usr/lib/modules/4.4.8-2-ARCH/build'
  CC [M]  /home/am25200/rtl8812au/core/rtw_cmd.o
  CC [M]  /home/am25200/rtl8812au/core/rtw_security.o
  CC [M]  /home/am25200/rtl8812au/core/rtw_debug.o
  CC [M]  /home/am25200/rtl8812au/core/rtw_io.o
.............
[am25200@arkos rtl8812au]$ sudo cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
...........
Im in this step, but say to ubuntu, not work to ARCH?

Update:

Code: Select all

[am25200@arkos ~]$ sudo insmod 8812au.ko
[sudo] password for am25200:
insmod: ERROR: could not load module 8812au.ko: No such file or directory

[am25200@arkos rtl8812au]$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.8-2-ARCH/build M=/home/am25200/rtl8812au  modules
make[1]: Entering directory '/usr/lib/modules/4.4.8-2-ARCH/build'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory '/usr/lib/modules/4.4.8-2-ARCH/build'
[am25200@arkos rtl8812au]$ sudo insmod 8812au.ko
insmod: ERROR: could not insert module 8812au.ko: File exists
[am25200@arkos rtl8812au]$ uname -a
Linux arkos 4.4.8-2-ARCH #1 SMP Tue Apr 26 19:14:58 MDT 2016 armv7l GNU/Linux

Thanks again!

arv187
Posts: 27
Joined: Sat Nov 14, 2015 1:07 pm

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Thu May 05, 2016 2:13 pm

Nothing about this?

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Thu May 05, 2016 4:19 pm

How are you following the guide, you run make? Download the aur tarball, extract and cd to it, makepkg, pacman -U packagename
Assuming you have installed base-devel etc

arv187
Posts: 27
Joined: Sat Nov 14, 2015 1:07 pm

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Thu May 05, 2016 7:56 pm

Hi there, exactly as you can see in my

Code: Select all

 quotes, but not, I did not use "makepkg, pacman -U packagename" im not familiar with Arch.
Try with that commands? P.S: I did this: https://github.com/gnab/rtl8812au

thanks again.

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Fri May 06, 2016 4:54 pm

If you want to make and install for Arch, you need to use Arch commands.

Pepedog gave you a list of what to do, not exact commands. First, you download the tarball from the URL he gave you. When he said "makepkg, pacman -U packagename" that meant that after you did a "cd" to the directory where you had unpacked the source, then you run make. That will create an archlinuxarm package. THEN you install with "pacman -U path-to-package", which should automatically grab and install the other dependencies. If you issue the command from the directory that the final package is in, then the command is just "pacman -U packagename" where you subsitute the package's name or location where I said "packagename" or "path-to-package".

You might need to remove and re-insert the device after installing the driver, so the system will notice it and attach it to the right driver. Or reboot.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

arv187
Posts: 27
Joined: Sat Nov 14, 2015 1:07 pm

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Mon May 09, 2016 4:00 pm

Code: Select all

[am25200@arkos rtl8812au]$ pacman -U 8812au.ko
error: you cannot perform this operation unless you are root.
[am25200@arkos rtl8812au]$ sudo su
Password:
[root@arkos rtl8812au]# ^C
[root@arkos rtl8812au]# pacman -U 8812au.ko
loading packages...
error: could not open file 8812au.ko: Unrecognized archive format
error: '8812au.ko': cannot open package file
[root@arkos rtl8812au]#
[root@arkos rtl8812au]# dir
8812au.ko     Kconfig         clean      ifcfg-wlan0    os_dep
8812au.mod.c  Makefile        core       include        runwpa
8812au.mod.o  Module.symvers  dkms.conf  install.sh     wlan0dhcp
8812au.o      README.md       hal        modules.order
[root@arkos rtl8812au]# makepkg
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
[root@arkos rtl8812au]# su am25200
Password:
[am25200@arkos rtl8812au]$ makepkg
==> ERROR: PKGBUILD does not exist.
[am25200@arkos rtl8812au]$ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.8-2-ARCH/build M=/home/am25200/rtl8812au  modules
make[1]: Entering directory '/usr/lib/modules/4.4.8-2-ARCH/build'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory '/usr/lib/modules/4.4.8-2-ARCH/build'
[am25200@arkos rtl8812au]$
What package name I must use? there are a directory rtl8812au with multiples files (see my dir in code).
Every time I'm more lost. :lol:

Update:

Code: Select all

[am25200@arkos rtl8812au]$ sudo pacman -U /usr/lib/modules/4.4.8-2-ARCH/build
[sudo] password for am25200:
loading packages...
error: could not open file /usr/lib/modules/4.4.8-2-ARCH/build: Error reading fd 5
error: '/usr/lib/modules/4.4.8-2-ARCH/build': cannot open package file
[am25200@arkos build]$ dir
Documentation   arch    drivers  kernel  samples   usr
Kconfig         block   fs       lib     scripts   virt
Makefile        certs   include  mm      security
Module.symvers  crypto  init     net     sound
[am25200@arkos build]$

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Mon May 09, 2016 5:49 pm

Code: Select all

pacman -Syu
sync
reboot
pacman -S base-devel git wget linux-raspberrypi-headers wpa-supplicant
wget https://aur.archlinux.org/cgit/aur.git/snapshot/rtl8812au-rpi-dkms-git.tar.gz
tar xz rtl8812au-rpi-dkms-git.tar.gz
cd rtl8812au-rpi-dkms-git
makepkg -Acs
In that folder is a file ending in pkg.xz, as root

Code: Select all

pacman -U thatpkgname.pkg.xz
then sync && reboot
use wifi-menu to connect
To start on boot

Code: Select all

systemctl enable netctl-auto@wlan0

arv187
Posts: 27
Joined: Sat Nov 14, 2015 1:07 pm

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Mon May 09, 2016 11:41 pm

Multiple issues here, but they are solved:

[am25200@arkos ~]$ sudo tar xz rtl8812au-rpi-dkms-git.tar.gz
tar: Refusing to read archive contents from terminal (missing -f option?)
tar: Error is not recoverable: exiting now


[am25200@arkos rtl8812au-rpi-dkms-git]$ sudo makepkg -Acs
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.

[am25200@arkos rtl8812au-rpi-dkms-git]$ makepkg -Acs
==> ERROR: You do not have write permission to create packages in /home/am25200/rtl8812au-rpi-dkms-git.
Aborting..
.

==> Entering fakeroot environment...
/usr/bin/makepkg: line 170: fakeroot: command not found
[am25200@arkos rtl8812au-rpi-dkms-git]$
[am25200@arkos rtl8812au-rpi-dkms-git]$ sudo pacman -S fakeroot

:arrow: Except the next: How can I fix it?

Code: Select all

[am25200@arkos rtl8812au-rpi-dkms-git]$ sudo pacman -U rtl8812au-rpi-dkms-git-0.r56.38b565a-1-armv7h.pkg.tar.xz
[sudo] password for am25200:
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) rtl8812au-rpi-dkms-git-0.r56.38b565a-1

Total Installed Size:  7.37 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing rtl8812au-rpi-dkms-git            [######################] 100%

Creating symlink /var/lib/dkms/rtl8812au/0.r56.38b565a/source ->
                 /usr/src/rtl8812au-0.r56.38b565a

DKMS: add completed.
Error! echo
Your kernel headers for kernel 4.4.9-1-ARCH cannot be found at
/usr/lib/modules/4.4.9-1-ARCH/build or /usr/lib/modules/4.4.9-1-ARCH/source.
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/1) Install DKMS modules
==> No kernel * modules. You must install them to use DKMS!
[am25200@arkos rtl8812au-rpi-dkms-git]$ cd /usr/lib/modules/4.4.9-1-ARCH
[am25200@arkos 4.4.9-1-ARCH]$ dir
extramodules       modules.builtin      modules.devname  modules.symbols.bin
kernel             modules.builtin.bin  modules.order
modules.alias      modules.dep          modules.softdep
modules.alias.bin  modules.dep.bin      modules.symbols
Full log:

Code: Select all

Welcome to Arch Linux ARM

     Website: http://archlinuxarm.org
       Forum: http://archlinuxarm.org/forum
         IRC: #archlinux-arm on irc.Freenode.net
Last login: Mon May  9 23:31:22 2016 from 192.168.1.103
[am25200@arkos ~]$ pacman -Syu
error: you cannot perform this operation unless you are root.
[am25200@arkos ~]$ sudo pacman -Syu

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for am25200:
:: Synchronizing package databases...
 core                     209.7 KiB  1104K/s 00:00 [######################] 100%
 extra                      2.3 MiB  2.36M/s 00:01 [######################] 100%
 community                  3.7 MiB  2.05M/s 00:02 [######################] 100%
 alarm                    106.9 KiB   629K/s 00:00 [######################] 100%
 aur                       30.3 KiB   275K/s 00:00 [######################] 100%
 arkos                     17.9 KiB   163K/s 00:00 [######################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (87) arkos-core-0.7.2-1  arkos-kraken-0.7.2-1  binutils-2.26-4
              ca-certificates-mozilla-3.23-3  cracklib-2.9.6-1  curl-7.48.0-1
              device-mapper-2.02.150-1  dhcpcd-6.10.2-1  expat-2.1.1-1
              fail2ban-0.9.4-2  file-5.26-2  gcc-6.1.1-1  gcc-libs-6.1.1-1
              geoip-1.6.6-2  geoip-database-20160301-2  git-2.8.2-1
              glib2-2.48.0-2  glibc-2.23-2  gmp-6.1.0-4  gnupg-2.1.12-1
              gnutls-3.4.11-2  grep-2.25-1  groff-1.22.3-6  gzip-1.8-1
              http-parser-2.7.0-1  icu-57.1-1  iproute2-4.5.0-2
              iptables-1.6.0-1  iputils-20160308.0db72a4-1  jemalloc-4.1.1-1
              libassuan-2.4.2-2  libelf-0.166-1  libgcrypt-1.7.0-2
              libgpg-error-1.22-1  libmnl-1.0.3-2  libmpc-1.0.3-2
              libnftnl-1.0.5-1  libnl-3.2.27-1  libtasn1-4.8-2  libtool-2.4.6-5
              libutil-linux-2.28-1  libuv-1.9.0-1  linux-api-headers-4.5.2-1
              linux-firmware-20160315.deb1d83-1  linux-raspberrypi-4.4.9-1
              logrotate-3.9.2-1  lvm2-2.02.150-1  make-4.1-4  mpfr-3.1.4.p1-1
              nano-2.5.3-2  nettle-3.2-2  nginx-1.10.0-2  nodejs-6.1.0-1
              npm-3.8.9-1  nss-pam-ldapd-0.9.6-3  ntp-4.2.8.p7-1
              openssl-1.0.2.h-1  pacman-5.0.1-3  pacman-mirrorlist-20160319-1
              parted-3.2-4  perl-5.22.2-1  pinentry-0.9.7-2  python2-2.7.11-3
              python2-cffi-1.6.0-1  python2-cryptography-1.3.2-1
              python2-idna-2.1-1  python2-packaging-16.7-1  python2-pip-8.1.1-1
              python2-psutil-4.1.0-1  python2-pyopenssl-16.0.0-1
              python2-pyparsing-2.1.1-1  python2-setuptools-1:21.0.0-1
              raspberrypi-firmware-20160506-1
              raspberrypi-firmware-bootloader-20160506-1
              raspberrypi-firmware-bootloader-x-20160506-1
              raspberrypi-firmware-examples-20160506-1
              raspberrypi-firmware-tools-20160506-1  redis-3.2.0-1
              s-nail-14.8.8-1  sqlite-3.12.2-1  sudo-1.8.16-1
              supervisor-3.2.3-1  texinfo-6.1-3  tzdata-2016d-1  unzip-6.0-12
              util-linux-2.28-1  wget-1.17.1-2

Total Download Size:   210.97 MiB
Total Installed Size:  739.11 MiB
Net Upgrade Size:       27.43 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 linux-api-headers-4...   767.9 KiB   545K/s 00:01 [######################] 100%
 tzdata-2016d-1-any       218.9 KiB   706K/s 00:00 [######################] 100%
 glibc-2.23-2-armv7h        7.7 MiB   353K/s 00:22 [######################] 100%
 binutils-2.26-4-armv7h     4.1 MiB  1641K/s 00:03 [######################] 100%
 gcc-libs-6.1.1-1-armv7h   10.2 MiB  3.86M/s 00:03 [######################] 100%
 perl-5.22.2-1-armv7h      12.2 MiB   884K/s 00:14 [######################] 100%
 openssl-1.0.2.h-1-a...     2.3 MiB  2034K/s 00:01 [######################] 100%
 expat-2.1.1-1-armv7h      61.0 KiB   381K/s 00:00 [######################] 100%
 sqlite-3.12.2-1-armv7h   932.2 KiB  2.02M/s 00:00 [######################] 100%
 gzip-1.8-1-armv7h         69.9 KiB   538K/s 00:00 [######################] 100%
 texinfo-6.1-3-armv7h    1143.7 KiB  1906K/s 00:01 [######################] 100%
 libtasn1-4.8-2-armv7h     99.1 KiB   381K/s 00:00 [######################] 100%
 gmp-6.1.0-4-armv7h       326.5 KiB  1209K/s 00:00 [######################] 100%
 ca-certificates-moz...   355.7 KiB   827K/s 00:00 [######################] 100%
 libutil-linux-2.28-...   251.3 KiB  1323K/s 00:00 [######################] 100%
 curl-7.48.0-1-armv7h     769.1 KiB  3.00M/s 00:00 [######################] 100%
 iptables-1.6.0-1-armv7h  258.5 KiB  2.52M/s 00:00 [######################] 100%
 libgpg-error-1.22-1...   127.4 KiB   708K/s 00:00 [######################] 100%
 libgcrypt-1.7.0-2-a...   381.0 KiB  1905K/s 00:00 [######################] 100%
 cracklib-2.9.6-1-armv7h  247.9 KiB  1181K/s 00:00 [######################] 100%
 libtool-2.4.6-5-armv7h   393.1 KiB  1456K/s 00:00 [######################] 100%
 glib2-2.48.0-2-armv7h   1995.5 KiB  1720K/s 00:01 [######################] 100%
 libelf-0.166-1-armv7h    329.3 KiB   867K/s 00:00 [######################] 100%
 util-linux-2.28-1-a...  1661.5 KiB   348K/s 00:05 [######################] 100%
 device-mapper-2.02....   253.7 KiB  1153K/s 00:00 [######################] 100%
 libassuan-2.4.2-2-a...    76.9 KiB  1281K/s 00:00 [######################] 100%
 pinentry-0.9.7-2-armv7h   76.5 KiB  1530K/s 00:00 [######################] 100%
 nettle-3.2-2-armv7h      323.9 KiB   831K/s 00:00 [######################] 100%
 gnutls-3.4.11-2-armv7h     2.0 MiB   313K/s 00:07 [######################] 100%
 gnupg-2.1.12-1-armv7h   1580.5 KiB  1129K/s 00:01 [######################] 100%
 grep-2.25-1-armv7h       187.4 KiB   986K/s 00:00 [######################] 100%
 dhcpcd-6.10.2-1-armv7h   132.1 KiB  0.00B/s 00:00 [######################] 100%
 file-5.26-2-armv7h       236.0 KiB  1573K/s 00:00 [######################] 100%
 mpfr-3.1.4.p1-1-armv7h   227.5 KiB  2.22M/s 00:00 [######################] 100%
 libmpc-1.0.3-2-armv7h     52.7 KiB   439K/s 00:00 [######################] 100%
 gcc-6.1.1-1-armv7h        21.5 MiB  1450K/s 00:15 [######################] 100%
 groff-1.22.3-6-armv7h   1707.3 KiB  1303K/s 00:01 [######################] 100%
 iproute2-4.5.0-2-armv7h  557.1 KiB  1326K/s 00:00 [######################] 100%
 iputils-20160308.0d...    66.5 KiB   317K/s 00:00 [######################] 100%
 libnl-3.2.27-1-armv7h    277.2 KiB   866K/s 00:00 [######################] 100%
 linux-firmware-2016...    36.9 MiB   363K/s 01:44 [######################] 100%
 linux-raspberrypi-4...    23.9 MiB  1384K/s 00:18 [######################] 100%
 logrotate-3.9.2-1-a...    31.5 KiB   197K/s 00:00 [######################] 100%
 lvm2-2.02.150-1-armv7h   908.4 KiB   683K/s 00:01 [######################] 100%
 make-4.1-4-armv7h        373.8 KiB  1335K/s 00:00 [######################] 100%
 nano-2.5.3-2-armv7h      390.6 KiB   930K/s 00:00 [######################] 100%
 pacman-mirrorlist-2...  1652.0   B  0.00B/s 00:00 [######################] 100%
 pacman-5.0.1-3-armv7h    712.1 KiB   962K/s 00:01 [######################] 100%
 s-nail-14.8.8-1-armv7h   264.3 KiB   911K/s 00:00 [######################] 100%
 sudo-1.8.16-1-armv7h     868.1 KiB  1223K/s 00:01 [######################] 100%
 python2-2.7.11-3-armv7h   10.5 MiB   950K/s 00:11 [######################] 100%
 python2-cffi-1.6.0-...   178.8 KiB   596K/s 00:00 [######################] 100%
 python2-idna-2.1-1-any    65.2 KiB   652K/s 00:00 [######################] 100%
 python2-cryptograph...   257.2 KiB   804K/s 00:00 [######################] 100%
 python2-pyopenssl-1...    64.6 KiB  1292K/s 00:00 [######################] 100%
 geoip-database-2016...   799.2 KiB  1402K/s 00:01 [######################] 100%
 geoip-1.6.6-2-armv7h      68.9 KiB   313K/s 00:00 [######################] 100%
 nginx-1.10.0-2-armv7h    344.4 KiB   662K/s 00:01 [######################] 100%
 git-2.8.2-1-armv7h         4.0 MiB   478K/s 00:09 [######################] 100%
 libmnl-1.0.3-2-armv7h      7.8 KiB  0.00B/s 00:00 [######################] 100%
 libnftnl-1.0.5-1-armv7h   37.8 KiB   629K/s 00:00 [######################] 100%
 python2-packaging-1...    28.5 KiB   713K/s 00:00 [######################] 100%
 python2-setuptools-...   215.5 KiB   979K/s 00:00 [######################] 100%
 parted-3.2-4-armv7h      383.0 KiB   798K/s 00:00 [######################] 100%
 jemalloc-4.1.1-1-armv7h  187.4 KiB   781K/s 00:00 [######################] 100%
 icu-57.1-1-armv7h          7.7 MiB  1274K/s 00:06 [######################] 100%
 ntp-4.2.8.p7-1-armv7h   1664.8 KiB  1224K/s 00:01 [######################] 100%
 python2-pip-8.1.1-1-any 1327.7 KiB  2.36M/s 00:01 [######################] 100%
 unzip-6.0-12-armv7h      113.3 KiB   324K/s 00:00 [######################] 100%
 wget-1.17.1-2-armv7h     504.8 KiB  1122K/s 00:00 [######################] 100%
 python2-psutil-4.1....   201.3 KiB   559K/s 00:00 [######################] 100%
 fail2ban-0.9.4-2-any     351.5 KiB  1098K/s 00:00 [######################] 100%
 python2-pyparsing-2...    66.2 KiB  6.47M/s 00:00 [######################] 100%
 supervisor-3.2.3-1-any   399.4 KiB  1109K/s 00:00 [######################] 100%
 nss-pam-ldapd-0.9.6...    77.3 KiB   703K/s 00:00 [######################] 100%
 redis-3.2.0-1-armv7h     343.6 KiB  2.24M/s 00:00 [######################] 100%
 http-parser-2.7.0-1...    15.8 KiB   143K/s 00:00 [######################] 100%
 libuv-1.9.0-1-armv7h     113.5 KiB   473K/s 00:00 [######################] 100%
 nodejs-6.1.0-1-armv7h      2.8 MiB  2.99M/s 00:01 [######################] 100%
 npm-3.8.9-1-any            2.5 MiB   992K/s 00:03 [######################] 100%
 raspberrypi-firmwar...     2.7 MiB  1536K/s 00:02 [######################] 100%
 raspberrypi-firmwar...  1743.5 KiB  2.58M/s 00:01 [######################] 100%
 raspberrypi-firmwar...  1240.4 KiB  2034K/s 00:01 [######################] 100%
 raspberrypi-firmwar...    29.9 MiB  1198K/s 00:26 [######################] 100%
 raspberrypi-firmwar...   992.0   B  0.00B/s 00:00 [######################] 100%
 arkos-core-0.7.2-1-any   106.0 KiB   331K/s 00:00 [######################] 100%
 arkos-kraken-0.7.2-...    57.6 KiB  0.00B/s 00:00 [######################] 100%
(87/87) checking keys in keyring                   [######################] 100%
(87/87) checking package integrity                 [######################] 100%
(87/87) loading package files                      [######################] 100%
(87/87) checking for file conflicts                [######################] 100%
(87/87) checking available disk space              [######################] 100%
:: Processing package changes...
( 1/87) upgrading linux-api-headers                [######################] 100%
( 2/87) upgrading tzdata                           [######################] 100%
( 3/87) upgrading glibc                            [######################] 100%
Generating locales...
  en_US.UTF-8... done
  en_US.ISO-8859-1... done
Generation complete.
( 4/87) upgrading binutils                         [######################] 100%
( 5/87) upgrading gcc-libs                         [######################] 100%
( 6/87) upgrading perl                             [######################] 100%
( 7/87) upgrading openssl                          [######################] 100%
( 8/87) upgrading expat                            [######################] 100%
( 9/87) upgrading sqlite                           [######################] 100%
(10/87) upgrading python2                          [######################] 100%
(11/87) upgrading python2-cffi                     [######################] 100%
(12/87) upgrading python2-idna                     [######################] 100%
(13/87) upgrading python2-cryptography             [######################] 100%
(14/87) upgrading python2-pyopenssl                [######################] 100%
(15/87) upgrading python2-psutil                   [######################] 100%
(16/87) upgrading geoip-database                   [######################] 100%
(17/87) upgrading geoip                            [######################] 100%
New optional dependencies for geoip
    geoip-database-extra: city/ASN databases (not needed for country lookups)
(18/87) upgrading nginx                            [######################] 100%
(19/87) upgrading gzip                             [######################] 100%
(20/87) upgrading texinfo                          [######################] 100%
(21/87) upgrading libtasn1                         [######################] 100%
(22/87) upgrading gmp                              [######################] 100%
(23/87) upgrading ca-certificates-mozilla          [######################] 100%
(24/87) upgrading libutil-linux                    [######################] 100%
(25/87) upgrading curl                             [######################] 100%
(26/87) upgrading git                              [######################] 100%
(27/87) installing libmnl                          [######################] 100%
(28/87) installing libnftnl                        [######################] 100%
(29/87) upgrading iptables                         [######################] 100%
(30/87) upgrading libgpg-error                     [######################] 100%
(31/87) upgrading libgcrypt                        [######################] 100%
(32/87) upgrading fail2ban                         [######################] 100%
(33/87) upgrading python2-pyparsing                [######################] 100%
(34/87) upgrading python2-packaging                [######################] 100%
(35/87) upgrading python2-setuptools               [######################] 100%
(36/87) upgrading supervisor                       [######################] 100%
(37/87) upgrading cracklib                         [######################] 100%
(38/87) upgrading nss-pam-ldapd                    [######################] 100%
(39/87) upgrading libtool                          [######################] 100%
(40/87) upgrading glib2                            [######################] 100%
New optional dependencies for glib2
    python: for gdbus-codegen and gtester-report [installed]
(41/87) upgrading libelf                           [######################] 100%
(42/87) upgrading util-linux                       [######################] 100%
(43/87) upgrading device-mapper                    [######################] 100%
(44/87) upgrading libassuan                        [######################] 100%
(45/87) upgrading pinentry                         [######################] 100%
(46/87) upgrading nettle                           [######################] 100%
(47/87) upgrading gnutls                           [######################] 100%
(48/87) upgrading gnupg                            [######################] 100%
(49/87) upgrading parted                           [######################] 100%
(50/87) upgrading arkos-core                       [######################] 100%
warning: /etc/arkos/settings.json installed as /etc/arkos/settings.json.pacnew
(51/87) upgrading jemalloc                         [######################] 100%
(52/87) upgrading grep                             [######################] 100%
(53/87) upgrading redis                            [######################] 100%
(54/87) upgrading http-parser                      [######################] 100%
(55/87) upgrading icu                              [######################] 100%
(56/87) upgrading libuv                            [######################] 100%
(57/87) upgrading nodejs                           [######################] 100%
(58/87) upgrading npm                              [######################] 100%
(59/87) upgrading arkos-kraken                     [######################] 100%
(60/87) upgrading dhcpcd                           [######################] 100%
(61/87) upgrading file                             [######################] 100%
(62/87) upgrading mpfr                             [######################] 100%
(63/87) upgrading libmpc                           [######################] 100%
(64/87) upgrading gcc                              [######################] 100%
(65/87) upgrading groff                            [######################] 100%
(66/87) upgrading iproute2                         [######################] 100%
(67/87) upgrading iputils                          [######################] 100%
(68/87) upgrading libnl                            [######################] 100%
(69/87) upgrading linux-firmware                   [######################] 100%
(70/87) upgrading linux-raspberrypi                [######################] 100%
warning: /boot/config.txt installed as /boot/config.txt.pacnew
>>> Updating module dependencies. Please wait ...
(71/87) upgrading logrotate                        [######################] 100%
(72/87) upgrading lvm2                             [######################] 100%
(73/87) upgrading make                             [######################] 100%
(74/87) upgrading nano                             [######################] 100%
(75/87) upgrading ntp                              [######################] 100%
(76/87) upgrading pacman-mirrorlist                [######################] 100%
(77/87) upgrading pacman                           [######################] 100%
(78/87) upgrading python2-pip                      [######################] 100%
(79/87) upgrading raspberrypi-firmware-bootloader  [######################] 100%
(80/87) upgrading raspberrypi-firmware-bootloa...  [######################] 100%
(81/87) upgrading raspberrypi-firmware-tools       [######################] 100%
(82/87) upgrading raspberrypi-firmware-examples    [######################] 100%
(83/87) upgrading raspberrypi-firmware             [######################] 100%
(84/87) upgrading s-nail                           [######################] 100%
(85/87) upgrading sudo                             [######################] 100%
(86/87) upgrading unzip                            [######################] 100%
(87/87) upgrading wget                             [######################] 100%
:: Running post-transaction hooks...
(1/1) Updating the info directory file...
[am25200@arkos ~]$

[am25200@arkos ~]$ sudo wget https://aur.archlinux.org/cgit/aur.git/snapshot/rtl8812au-rpi-dkms-git.tar.gz
--2016-05-10 00:18:12--  https://aur.archlinux.org/cgit/aur.git/snapshot/rtl8812au-rpi-dkms-git.tar.gz
Resolving aur.archlinux.org (aur.archlinux.org)... 5.9.250.164, 2a01:4f8:160:3033::2
Connecting to aur.archlinux.org (aur.archlinux.org)|5.9.250.164|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'rtl8812au-rpi-dkms-git.tar.gz'

rtl8812au-rpi-dkms-     [ <=>                ]   1.52K  --.-KB/s    in 0s

2016-05-10 00:18:13 (23.7 MB/s) - 'rtl8812au-rpi-dkms-git.tar.gz' saved [1558]

[am25200@arkos ~]$ sudo tar xz rtl8812au-rpi-dkms-git.tar.gz
[color=#FF0000]tar: Refusing to read archive contents from terminal (missing -f option?)
tar: Error is not recoverable: exiting now[/color]
[am25200@arkos ~]$
[am25200@arkos ~]$ sudo tar xz rtl8812au-rpi-dkms-git.tar.gz
tar: Refusing to read archive contents from terminal (missing -f option?)
tar: Error is not recoverable: exiting now
[am25200@arkos ~]$ sudo tar xzf rtl8812au-rpi-dkms-git.tar.gz
[sudo] password for am25200:
[am25200@arkos ~]$ cd rtl8812au-rpi-dkms-git
[am25200@arkos rtl8812au-rpi-dkms-git]$ sudo makepkg -Acs
[color=#FF0000]==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
[am25200@arkos rtl8812au-rpi-dkms-git]$ makepkg -Acs
==> ERROR: You do not have write permission to create packages in /home/am25200/rtl8812au-rpi-dkms-git.
    Aborting...[/color]
[am25200@arkos rtl8812au-rpi-dkms-git]$ sudo su
Password:
[root@arkos rtl8812au-rpi-dkms-git]# makepkg -Acs
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
[root@arkos rtl8812au-rpi-dkms-git]#
[am25200@arkos rtl8812au-rpi-dkms-git]$ makepkg -Acs
==> Making package: rtl8812au-rpi-dkms-git 0.r54.21af4bf-1 (Tue May 10 00:43:29 CEST 2016)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for am25200:
resolving dependencies...
looking for conflicting packages...

Packages (1) dkms-2.2.0.3+git151023-10

Total Download Size:   0.05 MiB
Total Installed Size:  0.23 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 dkms-2.2.0.3+git151...    50.5 KiB   505K/s 00:00 [######################] 100%
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing dkms                              [######################] 100%
Optional dependencies for dkms
    linux-headers: build modules against the Arch kernel
    linux-lts-headers: build modules against the LTS kernel
    linux-zen-headers: build modules against the ZEN kernel
    linux-grsec-headers: build modules against the GRSEC kernel
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning rtl8812au git repo...
Cloning into bare repository '/home/am25200/rtl8812au-rpi-dkms-git/rtl8812au'...
remote: Counting objects: 515, done.
remote: Total 515 (delta 0), reused 0 (delta 0), pack-reused 515
Receiving objects: 100% (515/515), 1.56 MiB | 1.33 MiB/s, done.
Resolving deltas: 100% (188/188), done.
Checking connectivity... done.
  -> Found rpi.diff
  -> Found dkms.conf
==> Validating source files with md5sums...
    rtl8812au ... Skipped
    rpi.diff ... Passed
    dkms.conf ... Passed
==> Extracting sources...
  -> Creating working copy of rtl8812au git repo...
Cloning into 'rtl8812au'...
done.
==> Starting prepare()...
patching file Makefile
==> Starting pkgver()...
==> Updated version: rtl8812au-rpi-dkms-git 0.r56.38b565a-1
==> Entering fakeroot environment...
[color=#FF0000]/usr/bin/makepkg: line 170: fakeroot: command not found[/color]
[am25200@arkos rtl8812au-rpi-dkms-git]$
[am25200@arkos rtl8812au-rpi-dkms-git]$ sudo pacman -S fakeroot
resolving dependencies...
looking for conflicting packages...

Packages (1) fakeroot-1.20.2-1

Total Download Size:   0.06 MiB
Total Installed Size:  0.20 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 fakeroot-1.20.2-1-a...    62.8 KiB   483K/s 00:00 [######################] 100%
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing fakeroot                          [######################] 100%
[am25200@arkos rtl8812au-rpi-dkms-git]$
[am25200@arkos rtl8812au-rpi-dkms-git]$ makepkg -Acs
==> Making package: rtl8812au-rpi-dkms-git 0.r56.38b565a-1 (Tue May 10 00:51:42 CEST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating rtl8812au git repo...
Fetching origin
  -> Found rpi.diff
  -> Found dkms.conf
==> Validating source files with md5sums...
    rtl8812au ... Skipped
    rpi.diff ... Passed
    dkms.conf ... Passed
==> Extracting sources...
  -> Creating working copy of rtl8812au git repo...
Switched to a new branch 'makepkg'
==> Starting prepare()...
patching file Makefile
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "rtl8812au-rpi-dkms-git"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: rtl8812au-rpi-dkms-git 0.r56.38b565a-1 (Tue May 10 00:52:32 CEST 2016)
==> Cleaning up...
[am25200@arkos rtl8812au-rpi-dkms-git]$ dir
ERROR:     rtl8812au
PKGBUILD   rtl8812au-rpi-dkms-git-0.r56.38b565a-1-armv7h.pkg.tar.xz
dkms.conf  rtl8812au-rpi-dkms-git.install
rpi.diff
[am25200@arkos rtl8812au-rpi-dkms-git]$ sudo pacman -U rtl8812au-rpi-dkms-git-0.r56.38b565a-1-armv7h.pkg.tar.xz
[sudo] password for am25200:
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) rtl8812au-rpi-dkms-git-0.r56.38b565a-1

Total Installed Size:  7.37 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing rtl8812au-rpi-dkms-git            [######################] 100%

Creating symlink /var/lib/dkms/rtl8812au/0.r56.38b565a/source ->
                 /usr/src/rtl8812au-0.r56.38b565a

DKMS: add completed.
[color=#FF0000]Error! echo
Your kernel headers for kernel 4.4.9-1-ARCH cannot be found at
/usr/lib/modules/4.4.9-1-ARCH/build or /usr/lib/modules/4.4.9-1-ARCH/source.
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/1) Install DKMS modules
==> No kernel * modules. You must install them to use DKMS![/color]
Thank you very much again!

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Tue May 10, 2016 1:03 pm

Did you install linux-raspberrypi-headers ?
And I meant tar xf (not tar xz)

arv187
Posts: 27
Joined: Sat Nov 14, 2015 1:07 pm

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Tue May 10, 2016 1:20 pm

You want mean this?:

[am25200@arkos ~]$ sudo tar xz rtl8812au-rpi-dkms-git.tar.gz
tar: Refusing to read archive contents from terminal (missing -f option?)
tar: Error is not recoverable: exiting now

[am25200@arkos ~]$
[am25200@arkos ~]$ sudo tar xz rtl8812au-rpi-dkms-git.tar.gz
tar: Refusing to read archive contents from terminal (missing -f option?)
tar: Error is not recoverable: exiting now
[am25200@arkos ~]$ sudo tar xzf rtl8812au-rpi-dkms-git.tar.gz
[sudo] password for am25200:
[am25200@arkos ~]$

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Tue May 10, 2016 3:22 pm

It looks like you did not run the following suggested above by Pepedog:

Code: Select all

 pacman -S base-devel git wget linux-raspberrypi-headers wpa-supplicant
You can check to see if the above packages were installed by, for example, replacing "linux-raspberrypi-headers" with the names of each of the above four packages:

Code: Select all

pacman -Q linux-raspberrypi-headers
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

arv187
Posts: 27
Joined: Sat Nov 14, 2015 1:07 pm

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Tue May 10, 2016 7:25 pm

Yes I did, but i forget copy the results xDD
I obtain same result, the last day I installed wpa_supplicant by other way, but seems still not working.

[am25200@arkos ~]$ pacman -Q wpa_supplicant
wpa_supplicant 1:2.5-3

Code: Select all

[am25200@arkos ~]$ sudo pacman -S base-devel git wget linux-raspberrypi-headers wpa-supplicant
[sudo] password for am25200:
:: There are 25 members in group base-devel:
:: Repository core
   1) autoconf  2) automake  3) binutils  4) bison  5) fakeroot  6) file
   7) findutils  8) flex  9) gawk  10) gcc  11) gettext  12) grep  13) groff
   14) gzip  15) libtool  16) m4  17) make  18) pacman  19) patch
   20) pkg-config  21) sed  22) sudo  23) texinfo  24) util-linux  25) which

Enter a selection (default=all):
warning: binutils-2.26-4 is up to date -- reinstalling
warning: fakeroot-1.20.2-1 is up to date -- reinstalling
warning: file-5.26-2 is up to date -- reinstalling
warning: findutils-4.6.0-1 is up to date -- reinstalling
warning: gawk-4.1.3-1 is up to date -- reinstalling
warning: gcc-6.1.1-1 is up to date -- reinstalling
warning: gettext-0.19.7-1 is up to date -- reinstalling
warning: grep-2.25-1 is up to date -- reinstalling
warning: groff-1.22.3-6 is up to date -- reinstalling
warning: gzip-1.8-1 is up to date -- reinstalling
warning: libtool-2.4.6-5 is up to date -- reinstalling
warning: make-4.1-4 is up to date -- reinstalling
warning: pacman-5.0.1-3 is up to date -- reinstalling
warning: patch-2.7.5-1 is up to date -- reinstalling
warning: sed-4.2.2-3 is up to date -- reinstalling
warning: sudo-1.8.16-1 is up to date -- reinstalling
warning: texinfo-6.1-3 is up to date -- reinstalling
warning: util-linux-2.28-1 is up to date -- reinstalling
warning: which-2.21-1 is up to date -- reinstalling
warning: git-2.8.2-1 is up to date -- reinstalling
warning: wget-1.17.1-2 is up to date -- reinstalling
error: target not found: wpa-supplicant
[am25200@arkos ~]$ pacman -Q wpa_supplicant
wpa_supplicant 1:2.5-3
Thanks by your help, you are awesome!

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Tue May 10, 2016 8:49 pm

Uninstall the pkg file you created and install it again.
You should see it create the module etc.
You will need to start a service (I think), like-
systemctl enable dkms
Check here https://wiki.archlinux.org/index.php/Dy ... le_Support
Module should update on kernel update

Don't take filenames I give as verbatim, I am not in front of a pi and not going to build these things myself

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Help to install Edimax EW-7811UTC in arkos (Arch Linux A

Tue May 10, 2016 11:50 pm

To remove the module, you need to do it with pacman, not by hand. Read that part of the man page about pacman.

Code: Select all

pacman -R PACKAGENAME
PACKAGENAME is not the whole name of the file you installed with pacman -U, it will be all the words/characters in the filename that appear before the version number (I believe).
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

Return to “Arch”