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.

Compiling RTL8189es driver

Featured Replies

Hi,

I'm compiling a kernel (using 5.8.16-sunxi) for an H3 board that has the RTL8189es chip onboard.  But the make fails due to a missing include file.

It turns out that the makefile for this driver expects a "src" variable to be loaded with the path for the makefile.  But I can't find any defining reference to this variable or any mention in the make documentation that it is an internal function.

I've managed to fix this by setting src to srctree and the sub-path for this driver.  But this seems very clumsy to me.

Can somebody explain how "src" is meant to be loaded and why it's not happening for me ?

 

Thanks,

Steven

Solved by phelum

  • Author

Hi Werner,

Is the source to the 5.10 kernel (with sunxi extras) available ? I've looked on github/armbian but couldn't find it.  I'd much rather get the Armbian fork rather than the base version.  With 5.8 for instance it had some nice improvements for my A20 cards.


Thanks,

Steven

11 minutes ago, phelum said:

Is the source to the 5.10 kernel (with sunxi extras) available ?

 

armbian-config -> software -> source_install ... and it downloads + unpack + add config which was used ... ready to compile. Only deb packing part is not solved yet. 

 

Older kernels sources are only in our offline archives. tl;dr; We recently had some repository crash and after big waste of time solving nothing ... I restarted with minimal repository containing only last packages. Which was successfully build.

  • Author

Hi Igor,

My problem is that making a kernel with your kernel (linux-source-current-sunxi_21.05.1_all.deb) is that the make fails when I make the RTL8189es driver.  In the makefile for this driver there is the following line:

 

EXTRA_CFLAGS += -I$(src)/include

The "src" variable should be loaded with the path for the driver but instead it is being loaded with the base path for the kernel.  The incorrect value means that the compiles fail because the driver specific include files aren't found.  The same problem occurs with all the extra Realtek drivers you've added to the standard kernel.

My clumsy solution here is to modify the makefiles to correctly load the "src" variable.  But I'm thinking a better solution will be to make the driver separately after I've built the kernel and then add the driver module to it.

 

Thanks for including these extra drivers in your kernels.  A nice addition.

 

Cheers,

Steven

  • Author
  • Solution

My slightly less clumsy solution is to modify the Makefile for each of these RTL drivers so the "src" variable is loaded correctly.

 

The patch line is: export src := $(abspath $(srctree)/$(src))

This line must precede the "EXTRA_CFLAGS += -I$(src)/include" line near the start of each Makefile.

 

Cheers,

Steven

Hi Steven

I am running Armbian 23.02.0-trunk Jammy with Linux 5.15.99-flippy-82+o and the wifi is not working. I need to install drivers for rtl8189es chipset. Do you have any idea on how to do this easily

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.