Tiny Core Linux
General TC => Tiny Core Netbooks => Topic started by: julcar 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
-
A symlink there is not needed, you can modprobe with the full path. "modprobe /home/tc/somedir/8273de.ko" in bootlocal.sh.
-
Added that but the lsmod command doesn't show the driver loaded
-
Hi julcar
If you execute from the command line:
sudo modprobe /home/tc/somedir/8273de.ko
do you receive any error messages?
-
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
-
Updates
I've added the following lines
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:
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 :(
-
Hi julcar
Give this a try:
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
-
Did you try this:
$ sudo insmod /home/tc/somedir/8723de.ko
-
Hi julcar
Give this a try:
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
-
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
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
-
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.