WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Link 8723de wifi driver at boot  (Read 9665 times)

Offline julcar

  • Jr. Member
  • **
  • Posts: 77
Link 8723de wifi driver at boot
« on: May 15, 2018, 03:20:02 AM »
I've just compiled the drivers for my Realtek RTL8723DE wireless network card from the sources at https://github.com/smlinux/rtl8723de, now on my /home/tc/8723de/ folder I have a file called 8723de.ko, as Windows User I can guess this type of file is similar to the *.sys files for windows drivers, o am I wrong?

I have persistent folders home and opt, I would like to add a command to bootlocal.sh to symlink at every boot the 8723de.ko file to /lib/modules/4.14.10-tinycore/kernel/drivers/net/wireless, but I don't know if this is enough or if I would need other changes to every boot.

In this laptop I don't have internet connection, so every extension must be downloaded from another pc and copied to/from a usb stick

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Link 8723de wifi driver at boot
« Reply #1 on: May 15, 2018, 03:31:37 AM »
A symlink there is not needed, you can modprobe with the full path. "modprobe /home/tc/somedir/8273de.ko" in bootlocal.sh.
The only barriers that can stop you are the ones you create yourself.

Offline julcar

  • Jr. Member
  • **
  • Posts: 77
Re: Link 8723de wifi driver at boot
« Reply #2 on: May 15, 2018, 06:31:11 AM »
Added that but the lsmod command doesn't show the driver loaded

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11589
Re: Link 8723de wifi driver at boot
« Reply #3 on: May 15, 2018, 08:57:51 AM »
Hi julcar
If you execute from the command line:
Code: [Select]
sudo modprobe /home/tc/somedir/8273de.kodo you receive any error messages?

Offline julcar

  • Jr. Member
  • **
  • Posts: 77
Re: Link 8723de wifi driver at boot
« Reply #4 on: May 15, 2018, 03:52:45 PM »
module /home/tc/somedir/8723de.ko not found in modules.dep

Seems that the modules.dep contains all of the modules available on the filesystem, i tried adding to bootlocal.sh

echo /home/tc/rtl8723de/8723de.ko >> /lib/modules/4.14.10-tinycore/modules.dep

before the modprobe line, but after rebooting the lsmod still doesn't show the module as loaded, however the line is in fact added to modules.dep, and of course the command modprobe also shows the same result as above

Offline julcar

  • Jr. Member
  • **
  • Posts: 77
Re: Link 8723de wifi driver at boot
« Reply #5 on: May 15, 2018, 04:15:44 PM »
Updates

I've added the following lines

Code: [Select]
mkdir /lib/modules/4.14.10-tinycore/kernel/drivers/net/wireless
ln -s ~/rtl8723de/8723de.ko /lib/modules/4.14.10-tinycore/kernel/drivers/net/wireless/8723de.ko
echo kernel/drivers/net/wireless/8723de.ko: >> /lib/modules/4.14.10-tinycore/modules.dep
modprobe kernel/drivers/net/wireless/8723de.ko

the first 3 lines executes as expected, listing the directory wireless shows the 8723de.ko file, but doing sudo modprobe 8723de.ko it says:

Code: [Select]
modprobe: can't load module 8723de.ko (kernel/drivers/net/wireless/8723de.ko): No such file or directory

I am newbie on linux, I don't know what to do :(

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11589
Re: Link 8723de wifi driver at boot
« Reply #6 on: May 15, 2018, 11:26:08 PM »
Hi julcar
Give this a try:
Code: [Select]
mkdir /lib/modules/4.14.10-tinycore/kernel/drivers/net/wireless
cp ~/rtl8723de/8723de.ko /lib/modules/4.14.10-tinycore/kernel/drivers/net/wireless/
depmod -a
modprobe 8723de

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14798
Re: Link 8723de wifi driver at boot
« Reply #7 on: May 16, 2018, 12:58:03 AM »
Did you try this:
Code: [Select]
$ sudo insmod /home/tc/somedir/8723de.ko

Offline julcar

  • Jr. Member
  • **
  • Posts: 77
Re: Link 8723de wifi driver at boot
« Reply #8 on: May 16, 2018, 01:23:57 AM »
Hi julcar
Give this a try:
Code: [Select]
mkdir /lib/modules/4.14.10-tinycore/kernel/drivers/net/wireless
cp ~/rtl8723de/8723de.ko /lib/modules/4.14.10-tinycore/kernel/drivers/net/wireless/
depmod -a
modprobe 8723de

Running these commands manually at terminal activates the wlan0 interface as iwconfig says, but for some reason doesn't work when are in the bootlocal.sh script, failing on the file copying, because listing the wireless directory sends empty response

Offline julcar

  • Jr. Member
  • **
  • Posts: 77
Re: Link 8723de wifi driver at boot
« Reply #9 on: May 16, 2018, 01:35:28 AM »
SOLVED! doing try/fail tests found that the cp command fails to parse the ~/ but not the full dir /home/tc does the trick!

the bootlocal.sh looks just as this

Code: [Select]
mkdir /lib/modules/4.14.10-tinycore/kernel/drivers/net/wireless
cp /home/tc/rtl8723de/8723de.ko /lib/modules/4.14.10-tinycore/kernel/drivers/net/wireless
depmod -a
modprobe 8723de

et voilá!... wlan0 activated at boot time, so much thanks Rich

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11589
Re: Link 8723de wifi driver at boot
« Reply #10 on: May 16, 2018, 09:48:06 AM »
Hi julcar
SOLVED! doing try/fail tests found that the cp command fails to parse the ~/ but not the full dir /home/tc does the trick!
I had to think about that one a couple of minutes, but the  cp  command did not fail to parse the  ~/. The  bootlocal.sh  script is
running as root, so  ~/  is not equivalent to  /home/tc, it's actually referring to  /root.