Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Orange Pi Zero - Error! Bad return status for module build on kernel: 3.4.113-sun8i (armv7l)

Featured Replies

Below is my attempt to compile the RealTek 8192cu driver for my  ARMBIAN 5.31 stable Ubuntu 16.04.3 LTS 3.4.113-sun8i image running on my Orange Pi Zero.

 

The BOLD area's below are the commands, I typed, everything else is exactly the way it came across on the console.  Any help will be greatly appreciated.

 

 

-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0--0-0-

 

 

root@orangepizero:~# apt-get install --reinstall linux-headers-$(uname -r) linux-headers-generic build-essential dkms git

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-headers-sun8i' instead of 'linux-headers-3.4.113-sun8i'
The following additional packages will be installed:
  linux-headers-4.4.0-93 linux-headers-4.4.0-93-generic
The following NEW packages will be installed:
  linux-headers-4.4.0-93 linux-headers-4.4.0-93-generic linux-headers-generic
0 upgraded, 3 newly installed, 4 reinstalled, 0 to remove and 0 not upgraded.
Need to get 10.8 MB/19.3 MB of archives.
After this operation, 78.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y

Get:1 http://ports.ubuntu.com xenial-security/main armhf linux-headers-4.4.0-93 all 4.4.0-93.116 [9,981 kB]
Get:2 http://ports.ubuntu.com xenial-security/main armhf linux-headers-4.4.0-93-generic armhf 4.4.0-93.116 [822 kB]
Get:3 http://ports.ubuntu.com xenial-security/main armhf linux-headers-generic armhf 4.4.0.93.98 [2,276 B]
Fetched 10.8 MB in 3s (2,918 kB/s)
(Reading database ... 43646 files and directories currently installed.)
Preparing to unpack .../build-essential_12.1ubuntu2_armhf.deb ...
Unpacking build-essential (12.1ubuntu2) over (12.1ubuntu2) ...
Preparing to unpack .../dkms_2.2.0.3-2ubuntu11.3_all.deb ...
Unpacking dkms (2.2.0.3-2ubuntu11.3) over (2.2.0.3-2ubuntu11.3) ...
Preparing to unpack .../git_1%3a2.7.4-0ubuntu1.2_armhf.deb ...
Unpacking git (1:2.7.4-0ubuntu1.2) over (1:2.7.4-0ubuntu1.2) ...
Selecting previously unselected package linux-headers-4.4.0-93.
Preparing to unpack .../linux-headers-4.4.0-93_4.4.0-93.116_all.deb ...
Unpacking linux-headers-4.4.0-93 (4.4.0-93.116) ...
Selecting previously unselected package linux-headers-4.4.0-93-generic.
Preparing to unpack .../linux-headers-4.4.0-93-generic_4.4.0-93.116_armhf.deb ...
Unpacking linux-headers-4.4.0-93-generic (4.4.0-93.116) ...
Selecting previously unselected package linux-headers-generic.
Preparing to unpack .../linux-headers-generic_4.4.0.93.98_armhf.deb ...
Unpacking linux-headers-generic (4.4.0.93.98) ...
Preparing to unpack .../linux-headers-sun8i_5.31_armhf.deb ...
Unpacking linux-headers-sun8i (5.31) over (5.31) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up build-essential (12.1ubuntu2) ...
Setting up dkms (2.2.0.3-2ubuntu11.3) ...
Setting up git (1:2.7.4-0ubuntu1.2) ...
Setting up linux-headers-4.4.0-93 (4.4.0-93.116) ...
Setting up linux-headers-4.4.0-93-generic (4.4.0-93.116) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-93-generic /boot/vmlinuz-4.4.0-93-generic
: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.
Setting up linux-headers-generic (4.4.0.93.98) ...
Setting up linux-headers-sun8i (5.31) ...
Compiling headers - please wait ...

root@orangepizero:~# git clone https://github.com/pvaret/rtl8192cu-fixes.git

Cloning into 'rtl8192cu-fixes'...
remote: Counting objects: 494, done.
remote: Total 494 (delta 0), reused 0 (delta 0), pack-reused 494
Receiving objects: 100% (494/494), 1.82 MiB | 554.00 KiB/s, done.
Resolving deltas: 100% (257/257), done.
Checking connectivity... done.

root@orangepizero:~# dkms add ./rtl8192cu-fixes && dkms install 8192cu/1.10 && depmod -a

Creating symlink /var/lib/dkms/8192cu/1.10/source ->
                 /usr/src/8192cu-1.10

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area.....
make KERNELRELEASE=3.4.113-sun8i -C /lib/modules/3.4.113-sun8i/build M=/var/lib/dkms/8192cu/1.10/build....................................................................(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.4.113-sun8i (armv7l)
Consult /var/lib/dkms/8192cu/1.10/build/make.log for more information.

 

root@orangepizero:~# tail /var/lib/dkms/8192cu//1.10/build//make.log
rtw_android.c:(.text+0x28): multiple definition of `is_broadcast_mac_addr'
/var/lib/dkms/8192cu/1.10/build/core/rtw_cmd.o:rtw_cmd.c:(.text+0x5c): first defined here
/var/lib/dkms/8192cu/1.10/build/os_dep/linux/rtw_android.o: In function `is_zero_mac_addr':
rtw_android.c:(.text+0xb4): multiple definition of `is_zero_mac_addr'
/var/lib/dkms/8192cu/1.10/build/core/rtw_cmd.o:rtw_cmd.c:(.text+0xe8): first defined here
scripts/Makefile.build:432: recipe for target '/var/lib/dkms/8192cu/1.10/build/8192cu.o' failed
make[1]: *** [/var/lib/dkms/8192cu/1.10/build/8192cu.o] Error 1
Makefile:1368: recipe for target '_module_/var/lib/dkms/8192cu/1.10/build' failed
make: *** [_module_/var/lib/dkms/8192cu/1.10/build] Error 2
make: Leaving directory '/usr/src/linux-headers-3.4.113-sun8i'

 

 

Here's Ifconfig, LSMOD,  and LSUSB

 

wlan0     Link encap:Ethernet  HWaddr dc:44:6d:f5:cf:0d
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlx74da383b0bcf Link encap:Ethernet  HWaddr 74:da:38:3b:0b:cf
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@orangepizero:~# lsmod
Module                  Size  Used by
pcf8591                 3363  0
bmp085                  3487  0
rtl8192cu              61143  0
rtlwifi                45784  1 rtl8192cu
rtl8192c_common        33420  1 rtl8192cu
xradio_wlan           210530  0
g_serial               27617  2
mac80211              358445  4 rtlwifi,xradio_wlan,rtl8192c_common,rtl8192cu
btrfs                 712409  0
root@orangepizero:~# lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
 

  • Author

which option would be armbian-config -> install kernel headers ?

 

image.png.4658d3a2b1c25bc4d74419d57c2c60f2.png

Hi!

I have ARMBIAN 5.38 stable Ubuntu 16.04.4 LTS 3.4.113-sun8i.  I installed headers via armbian-config but if I check headers via dpkg -s linux-headers-$(uname -r) I got errorr:

 

root@orangepione:~# dpkg -s linux-headers-$(uname -r)
dpkg-query: package 'linux-headers-3.4.113-sun8i' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

 

I have directory linux-headers-3.4.113-sun8i in /usr/src

 

What am I doing wrong?

 

Best Regards Matic
 

 

 

 

 

On 9/12/2017 at 3:18 AM, jdugat said:

Below is my attempt to compile the RealTek 8192cu driver for my  ARMBIAN 5.31 stable Ubuntu 16.04.3 LTS 3.4.113-sun8i image running on my Orange Pi Zero.

 

Bus 002 Device 002: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
 

 

And why would you compile the driver by yourself?

I also got some Edimax EW-7811Un and they where allways supported by armbian (or raspbian on the RPi).

 

If you need a legacy 3.4.x Kernel, why dont you use 

https://dl.armbian.com/orangepizero/archive/Armbian_5.35_Orangepizero_Ubuntu_xenial_default_3.4.113.7z

 

Also the kernel 4.x has already modules for this wifi-chipset. I do use also armbian for some time/years and had only no modules with more exotic usb-wifi-dongles.

 

Here at a legacy-armbian-kernel on my NanoPi Neo (also kernel 3.4.113) :

[70397.130288] usb 4-1: new high-speed USB device number 3 using sunxi-ehci
[70397.282823] usb 4-1: New USB device found, idVendor=7392, idProduct=7811
[70397.282885] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[70397.282935] usb 4-1: Product: 802.11n WLAN Adapter
[70397.282975] usb 4-1: Manufacturer: Realtek
...
[70398.226275] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[70398.239127] ADDRCONF(NETDEV_UP): wlan0: link is not ready

root@neo-pcm5102a:~# uname -a
Linux neo-pcm5102a 3.4.113-sun8i #18 SMP PREEMPT Wed Jan 24 22:10:49 CET 2018 armv7l GNU/Linux

root@neo-pcm5102a:~# lsmod
Module                  Size  Used by
8192cu                624998  1

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.