Bonjour et merci a vous deux.
[si@localhost ~]$ lspci -nnk | grep -iA3 "Network"
03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
Subsystem: Foxconn International, Inc. Device [105b:e074]
04:00.0 3D controller [0302]: NVIDIA Corporation GM108M [GeForce 840M] [10de:1341] (rev a2)
Subsystem: ASUSTeK Computer Inc. Device [1043:130d]
Nicosss wrote:
Ensuite tu ne montres pas le bon répertoire de modules
$ ll /lib/modules/
[si@localhost ~]$ ll /lib/modules/
total 12
drwxr-xr-x. 6 root root 4096 Nov 17 23:27 4.13.12-300.fc27.x86_64
drwxr-xr-x. 6 root root 4096 Nov 18 00:01 4.13.12-300.fc27.x86_64+debug
drwxr-xr-x. 6 root root 4096 Nov 17 23:38 4.13.9-300.fc27.x86_64
si@localhost ~]$
Nicosss wrote:
$ rpm -qa kernel\*
[si@localhost ~]$ rpm -qa kernel\*
kernel-core-4.13.12-300.fc27.x86_64
kernel-modules-4.13.12-300.fc27.x86_64
kernel-4.13.12-300.fc27.x86_64
kernel-modules-4.13.9-300.fc27.x86_64
kernel-core-4.13.9-300.fc27.x86_64
kernel-debug-modules-extra-4.13.12-300.fc27.x86_64
kernel-headers-4.13.12-300.fc27.x86_64
kernel-4.13.9-300.fc27.x86_64
kernel-debug-modules-4.13.12-300.fc27.x86_64
kernel-modules-extra-4.13.12-300.fc27.x86_64
kernel-modules-extra-4.13.9-300.fc27.x86_64
kernel-debug-core-4.13.12-300.fc27.x86_64
[si@localhost ~]$
Nicosss wrote:
Pour les
kernel-debug tu peux les retirer, ils ne te serviront pas. Ce sui faut c'est le
kernel-devel pour la compilation avec le
make.
# dnf install kernel-devel
Pour info, pour les retours de commandes tu peux utiliser la balise code <>
https://forums.fedora-fr.org/help.php#bbcode. Dedans place bien le prompt, la commande et le retour de commande afin que nous puissions nous assurer que tout soit bon du premier coup.
[si@localhost ~]$ su
Password:
[root@localhost si]# dnf install kernel-devel
Last metadata expiration check: 0:10:09 ago on Sat 18 Nov 2017 02:43:50 PM CET.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
kernel-devel x86_64 4.13.12-300.fc27 updates 11 M
Transaction Summary
================================================================================
Install 1 Package
Total download size: 11 M
Installed size: 43 M
Is this ok [y/N]: y
Downloading Packages:
kernel-devel-4.13.12-300.fc27.x86_64.rpm 2.8 MB/s | 11 MB 00:04
--------------------------------------------------------------------------------
Total 2.4 MB/s | 11 MB 00:04
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : kernel-devel-4.13.12-300.fc27.x86_64 1/1
Running scriptlet: kernel-devel-4.13.12-300.fc27.x86_64 1/1
Verifying : kernel-devel-4.13.12-300.fc27.x86_64 1/1
Installed:
kernel-devel.x86_64 4.13.12-300.fc27
Complete!
[root@localhost si]#
chepioq wrote:As-tu installé le kernel-devel correspondant ?
Normalement je viens de le faire.
Voici maintenant une fois que j'ai suivi le ReadMe :
[root@localhost mt7630e]# ls
btloader dkms.conf firmware Makefile ReadMe README.md rt2x00
[root@localhost mt7630e]# ls firmware/
BT Wi-FI
[root@localhost mt7630e]# cp firmware/Wi-FI/MT7650E234.bin /lib/firmware/
cp: overwrite '/lib/firmware/MT7650E234.bin'? y
[root@localhost mt7630e]# ls -l /lib/firmware/MT*
-rw-r--r--. 1 root root 382212 Nov 18 15:09 /lib/firmware/MT7650E234.bin
[root@localhost mt7630e]# ls -l /lib/firmware/M*
-rw-r--r--. 1 root root 397 Oct 12 01:23 /lib/firmware/Makefile
-rw-r--r--. 1 root root 382212 Nov 18 15:09 /lib/firmware/MT7650E234.bin
[root@localhost mt7630e]# pwd
/home/si/Downloads/mt7630e
[root@localhost mt7630e]# cd rt2x00/
[root@localhost rt2x00]# make clean
make -C /lib/modules/`uname -r`/build M=/home/si/Downloads/mt7630e/rt2x00 clean
make[1]: Entering directory '/usr/src/kernels/4.13.12-300.fc27.x86_64'
make[1]: Leaving directory '/usr/src/kernels/4.13.12-300.fc27.x86_64'
[root@localhost rt2x00]# ls
build.sh rt2800lib.h rt2x00dev.c rt2x00link.c rt2x00queue.h
Kconfig rt2800pci.c rt2x00dump.h rt2x00mac.c rt2x00reg.h
load.sh rt2800pci.h rt2x00firmware.c rt2x00mmio.c rt2x00soc.h
Makefile rt2x00config.c rt2x00.h rt2x00mmio.h unload.sh
mt_linux.c rt2x00crypto.c rt2x00leds.c rt2x00pci.c
rt2800.h rt2x00debug.c rt2x00leds.h rt2x00pci.h
rt2800lib.c rt2x00debug.h rt2x00lib.h rt2x00queue.c
[root@localhost rt2x00]# make
make -C /lib/modules/`uname -r`/build M=/home/si/Downloads/mt7630e/rt2x00 modules
make[1]: Entering directory '/usr/src/kernels/4.13.12-300.fc27.x86_64'
Makefile:940: "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/si/Downloads/mt7630e/rt2x00/rt2x00dev.o
In file included from /home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:32:0:
/home/si/Downloads/mt7630e/rt2x00/rt2x00.h:2166:40: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function); did you mean ‘IEEE80211_NUM_TIDS’?
struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS];
^~~~~~~~~~~~~~~~~~~
IEEE80211_NUM_TIDS
/home/si/Downloads/mt7630e/rt2x00/rt2x00.h:2167:22: error: field ‘curr_band’ has incomplete type
enum ieee80211_band curr_band;
^~~~~~~~~
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_rxdone’:
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:792:19: error: ‘RX_FLAG_HT’ undeclared (first use in this function); did you mean ‘RX_ENC_HT’?
rxdesc.flags |= RX_FLAG_HT;
^~~~~~~~~~
RX_ENC_HT
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:792:19: note: each undeclared identifier is reported only once for each function it appears in
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_channel’:
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:945:32: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function); did you mean ‘NL80211_BAND_2GHZ’?
entry->band = channel <= 14 ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ;
^~~~~~~~~~~~~~~~~~~
NL80211_BAND_2GHZ
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:945:54: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function); did you mean ‘IEEE80211_BAND_2GHZ’?
entry->band = channel <= 14 ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ;
^~~~~~~~~~~~~~~~~~~
IEEE80211_BAND_2GHZ
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_probe_hw_modes’:
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:1009:20: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function); did you mean ‘NL80211_BAND_2GHZ’?
rt2x00dev->bands[IEEE80211_BAND_2GHZ].n_channels = 14;
^~~~~~~~~~~~~~~~~~~
NL80211_BAND_2GHZ
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:1025:20: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function); did you mean ‘IEEE80211_BAND_2GHZ’?
rt2x00dev->bands[IEEE80211_BAND_5GHZ].n_channels =
^~~~~~~~~~~~~~~~~~~
IEEE80211_BAND_2GHZ
In file included from ./include/linux/linkage.h:4:0,
from ./include/linux/kernel.h:6,
from /home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:27:
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_remove_hw’:
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:1050:41: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function); did you mean ‘NL80211_BAND_2GHZ’?
if (likely(rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_2GHZ])) {
^
./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:1054:31: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function); did you mean ‘IEEE80211_BAND_2GHZ’?
rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = NULL;
^~~~~~~~~~~~~~~~~~~
IEEE80211_BAND_2GHZ
make[2]: *** [scripts/Makefile.build:303: /home/si/Downloads/mt7630e/rt2x00/rt2x00dev.o] Error 1
make[1]: *** [Makefile:1516: _module_/home/si/Downloads/mt7630e/rt2x00] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.13.12-300.fc27.x86_64'
make: *** [Makefile:21: all] Error 2
[root@localhost rt2x00]#
------------------------------------------------------------------------------------------------------------
[si@localhost mt7630e]$ su
Password:
[root@localhost mt7630e]# dnf install -y libelf-dev libelf-devel
Last metadata expiration check: 0:35:34 ago on Sat 18 Nov 2017 02:43:50 PM CET.
No match for argument: libelf-dev
No match for argument: libelf-devel
Error: Unable to find a match
[root@localhost mt7630e]# dnf install -y elfutils-libelf-devel
Last metadata expiration check: 0:35:48 ago on Sat 18 Nov 2017 02:43:50 PM CET.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
elfutils-libelf-devel x86_64 0.170-1.fc27 fedora 46 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 46 k
Installed size: 32 k
Downloading Packages:
elfutils-libelf-devel-0.170-1.fc27.x86_64.rpm 318 kB/s | 46 kB 00:00
--------------------------------------------------------------------------------
Total 39 kB/s | 46 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : elfutils-libelf-devel-0.170-1.fc27.x86_64 1/1
Verifying : elfutils-libelf-devel-0.170-1.fc27.x86_64 1/1
Installed:
elfutils-libelf-devel.x86_64 0.170-1.fc27
Complete!
[root@localhost mt7630e]#
Après avoir installé la lib demandé
[root@localhost mt7630e]# make clean
make -C /lib/modules/`uname -r`/build M=/home/si/Downloads/mt7630e/rt2x00 clean
make[1]: Entering directory '/usr/src/kernels/4.13.12-300.fc27.x86_64'
CLEAN /home/si/Downloads/mt7630e/rt2x00/.tmp_versions
make[1]: Leaving directory '/usr/src/kernels/4.13.12-300.fc27.x86_64'
make -C /lib/modules/`uname -r`/build M=/home/si/Downloads/mt7630e/btloader clean
make[1]: Entering directory '/usr/src/kernels/4.13.12-300.fc27.x86_64'
make[1]: Leaving directory '/usr/src/kernels/4.13.12-300.fc27.x86_64'
[root@localhost mt7630e]# make
make -C /lib/modules/`uname -r`/build M=/home/si/Downloads/mt7630e/rt2x00 modules
make[1]: Entering directory '/usr/src/kernels/4.13.12-300.fc27.x86_64'
CC [M] /home/si/Downloads/mt7630e/rt2x00/rt2x00dev.o
In file included from /home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:32:0:
/home/si/Downloads/mt7630e/rt2x00/rt2x00.h:2166:40: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function); did you mean ‘IEEE80211_NUM_TIDS’?
struct ieee80211_supported_band bands[IEEE80211_NUM_BANDS];
^~~~~~~~~~~~~~~~~~~
IEEE80211_NUM_TIDS
/home/si/Downloads/mt7630e/rt2x00/rt2x00.h:2167:22: error: field ‘curr_band’ has incomplete type
enum ieee80211_band curr_band;
^~~~~~~~~
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_rxdone’:
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:792:19: error: ‘RX_FLAG_HT’ undeclared (first use in this function); did you mean ‘RX_ENC_HT’?
rxdesc.flags |= RX_FLAG_HT;
^~~~~~~~~~
RX_ENC_HT
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:792:19: note: each undeclared identifier is reported only once for each function it appears in
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_channel’:
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:945:32: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function); did you mean ‘NL80211_BAND_2GHZ’?
entry->band = channel <= 14 ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ;
^~~~~~~~~~~~~~~~~~~
NL80211_BAND_2GHZ
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:945:54: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function); did you mean ‘IEEE80211_BAND_2GHZ’?
entry->band = channel <= 14 ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ;
^~~~~~~~~~~~~~~~~~~
IEEE80211_BAND_2GHZ
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_probe_hw_modes’:
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:1009:20: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function); did you mean ‘NL80211_BAND_2GHZ’?
rt2x00dev->bands[IEEE80211_BAND_2GHZ].n_channels = 14;
^~~~~~~~~~~~~~~~~~~
NL80211_BAND_2GHZ
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:1025:20: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function); did you mean ‘IEEE80211_BAND_2GHZ’?
rt2x00dev->bands[IEEE80211_BAND_5GHZ].n_channels =
^~~~~~~~~~~~~~~~~~~
IEEE80211_BAND_2GHZ
In file included from ./include/linux/linkage.h:4:0,
from ./include/linux/kernel.h:6,
from /home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:27:
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_remove_hw’:
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:1050:41: error: ‘IEEE80211_BAND_2GHZ’ undeclared (first use in this function); did you mean ‘NL80211_BAND_2GHZ’?
if (likely(rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_2GHZ])) {
^
./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
/home/si/Downloads/mt7630e/rt2x00/rt2x00dev.c:1054:31: error: ‘IEEE80211_BAND_5GHZ’ undeclared (first use in this function); did you mean ‘IEEE80211_BAND_2GHZ’?
rt2x00dev->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = NULL;
^~~~~~~~~~~~~~~~~~~
IEEE80211_BAND_2GHZ
make[2]: *** [scripts/Makefile.build:303: /home/si/Downloads/mt7630e/rt2x00/rt2x00dev.o] Error 1
make[1]: *** [Makefile:1516: _module_/home/si/Downloads/mt7630e/rt2x00] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.13.12-300.fc27.x86_64'
make: *** [Makefile:7: all] Error 2
[root@localhost mt7630e]#
Voilà, merci pour m'avoir éclairer.