Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Linux and Open Source

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 04-07-2023, 02:44 AM   #1
psypete
Junior Member
 
Join Date: Apr 2023
Posts: 3
Default Alpine Linux support: my progress

Hi there,

I have a Dell D6000 Universal Dock that I need to unplug my HDMI cable into and plug into my laptop to use my monitor, and I would love it if I could just keep it plugged into the dock.

However, I am an insane person, because my laptop runs Alpine Linux. Alpine is a non-glibc Linux distribution, so I understand why this isn't supported yet. However, I'm halfway decent at software development, and would be happy to help support this platform.

Here is how far I've gotten:

1. Install Alpine Linux 3.17.1

2. Install the linux-lts-dev package

Code:
sudo apk add linux-lts-dev
3. Install dkms

Code:
git checkout https://github.com/dell/dkms.git
cd dkms
git checkout v3.0.10
sudo make install
4. Download displaylink Ubuntu installer and unpack it

- Go to https://www.synaptics.com/products/d...1?filetype=exe and download
- Go to download directory
- Unpack file

Code:
unzip "DisplayLink USB Graphics Software for Ubuntu5.6.1-EXE.zip"
mkdir displaylink
bash displaylink-driver-5.6.1-59.184.run --target displaylink
cd displaylink
5. Patch the evdi source code

Code:
mkdir evdi.tmp
tar -C evdi.tmp -xvzf evdi.tar.gz
cd evdi.tmp
patch -p1 <<'EOPATCH'
diff -Naur foo2/library/evdi_lib.c foo/library/evdi_lib.c
--- foo2/library/evdi_lib.c	2022-07-13 09:58:06.000000000 -0400
+++ foo/library/evdi_lib.c	2023-04-06 21:22:50.248134186 -0400
@@ -23,6 +23,8 @@
 #include <sys/types.h>
 #include <unistd.h>
 
+#include <linux/limits.h>
+
 // ********************* Private part **************************
 
 #define MAX_DIRTS           16
EOPATCH
tar -cvzf ../evdi.tar.gz .
cd ..
6. Truncate the Makefile.gcc-plugins script

Code:
sudo truncate -s 0 /usr/src/linux-headers-$(uname -r)/scripts/Makefile.gcc-plugins
7. Run the displaylink installer

Code:
sudo env SYSTEMINITDAEMON=runit ./displaylink-installer.sh


Amazingly, the installer seems to have worked. I'm going to reboot and see what else needs to be done to make it work, probably involving making dkms work properly on Alpine
psypete is offline   Reply With Quote
 

Tags
alpine, glibc, linux, musl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.