Jump to content

R8152.ko / AX88179_178a.ko build on OrangePiPC2


Recommended Posts

Posted

DO NOT READ FURTHER :) I GOT IT COMPILED

 

after typing 

"apt-get install htop"

it started to install the headers.... strange :)

 

 

 

------------------------------------------------------------

 

Hey guys,

 

I am stuck:

 

Followed this: https://docs.armbian.com/User-Guide_Advanced-Features/#how-to-build-a-wireless-driver

 

Try to port it to r8152.ko (RTL8153) / ax88179_178.ko

 

I. (Before I started "apt-get update && upgrade")

 

1. Install Armbian Headers via armbian-config (Check)

2. wget http://www.asix.com.tw/FrootAttach/driver/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE.tar.bz2 (Check)
3. aptitude install build-essential linux-headers-$(uname -r) (Check)
4. tar -xjf AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE.tar.bz2 (Check)
5. cd AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE/ (Check)

6. chmod a+x Makefile (Check)
7. make 

 

Then this comes:

Quote

 

root@orangepipc2:/tmp/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE# make ARCH=arm64

 

make -C /lib/modules/4.14.4-sunxi64/build SUBDIRS=/tmp/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE modules
make[1]: *** /lib/modules/4.14.4-sunxi64/build: No such file or directory.  Stop.
Makefile:31: recipe for target 'default' failed
make: *** [default] Error 2

 

 

I checked path :  "/lib/modules/4.14.4-sunxi64/build" and it is not existing. :(

 

II. Tryed to change Path of Makefile "KDIR =  /usr/src/linux-headers-4.14.4-sunxi64"  

Then i get

Quote

root@orangepipc2:/tmp/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE# make ARCH=arm64
make -C /usr/src/linux-headers-4.14.4-sunxi64 SUBDIRS=/tmp/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE modules
make[1]: Entering directory '/usr/src/linux-headers-4.14.4-sunxi64'
make[1]: *** No rule to make target 'modules'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.14.4-sunxi64'
Makefile:31: recipe for target 'default' failed
make: *** [default] Error 2

 

III.

 

then i tried :

 

Quote

root@orangepipc2:~# apt-get install linux-headers-$(uname -r) build-essentials
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.14.4-sunxi64
E: Couldn't find any package by glob 'linux-headers-4.14.4-sunxi64'
E: Couldn't find any package by regex 'linux-headers-4.14.4-sunxi64'
E: Unable to locate package build-essentials

 

:/ - Just want to have the latest drivers for the USB3.0 to Ethernet Cards..... ANybody maybe successfull with that ? 
 

 

 

Posted

Try this:

KDIR    = /usr/src/linux-headers-4.14.4-sunxi64

It worked for me instantly, well on some other machine which I am just playing with:

root@tinkerboard:~/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE# make ARCH=arm
make -C /usr/src/linux-headers-4.13.16-rockchip SUBDIRS=/root/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.16-rockchip'
  CC [M]  /root/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE/ax88179_178a.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /root/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE/ax88179_178a.mod.o
  LD [M]  /root/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE/ax88179_178a.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.13.16-rockchip'

You only need to install our headers (as written in our manual), nothing else!

Posted
On 14.12.2017 at 8:34 PM, Igor said:

Try this:


KDIR    = /usr/src/linux-headers-4.14.4-sunxi64

It worked for me instantly, well on some other machine which I am just playing with:


root@tinkerboard:~/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE# make ARCH=arm
make -C /usr/src/linux-headers-4.13.16-rockchip SUBDIRS=/root/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.16-rockchip'
  CC [M]  /root/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE/ax88179_178a.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /root/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE/ax88179_178a.mod.o
  LD [M]  /root/AX88179_178A_LINUX_DRIVER_v1.18.0_SOURCE/ax88179_178a.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.13.16-rockchip'

You only need to install our headers (as written in our manual), nothing else!

 

Hi Igor,

 

keep up great work. As mentioned in the Bottom line I made it. The headers just did not install instantly :)- Do you by chance need the compiled new drivers ? :D Made it for rtl8153 and asix 88179 .

Posted
7 hours ago, Bruce said:

Made it for rtl8153 and asix 88179


I am using drivers supplied with a kernel and both works. I am not aware of any issues. Are there any?
 

Spoiler

modinfo ax88179_178a
filename:       /lib/modules/4.14.6-sunxi64/kernel/drivers/net/usb/ax88179_178a.ko
license:        GPL
description:    ASIX AX88179/178A based USB 3.0/2.0 Gigabit Ethernet Devices
alias:          usb:v050Dp0128d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v17EFp304Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04E8pA100d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0072d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p4A00d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04B4p3610d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B95p178Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B95p1790d*dc*dsc*dp*ic*isc*ip*in*
depends:        usbnet
intree:         Y
name:           ax88179_178a
vermagic:       4.14.6-sunxi64 SMP mod_unload aarch64

 


modinfo r8152
filename:       /lib/modules/4.14.6-sunxi64/kernel/drivers/net/usb/r8152.ko
version:        v1.09.9
license:        GPL
description:    Realtek RTL8152/RTL8153 Based USB Ethernet Adapters
author:         Realtek linux nic maintainers <nic_swsd@realtek.com>
srcversion:     F645E92219B176697009D7B
alias:          usb:v2357p0601d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v2357p0601d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0955p09FFd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0955p09FFd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v13B1p0041d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v13B1p0041d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp7214d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp7214d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp720Cd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp720Cd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp7205d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp7205d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp3069d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp3069d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp3062d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp3062d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v17EFp304Fd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v17EFp304Fd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v04E8pA101d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v04E8pA101d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v045Ep07C6d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v045Ep07C6d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v045Ep07ABd*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v045Ep07ABd*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8153d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8153d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8152d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8152d*dc*dsc*dp*icFFisc*ip*in*
alias:          usb:v0BDAp8050d*dc*dsc*dp*ic02isc06ip00in*
alias:          usb:v0BDAp8050d*dc*dsc*dp*icFFisc*ip*in*
depends:        
intree:         Y
name:           r8152
vermagic:       4.14.6-sunxi64 SMP mod_unload aarch64

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines