Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#26 Le 13/09/2018, à 18:48

lorap1

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Pour cqfd93

lorap@lorap-X550CC:~$ df -Th | grep -Ev "devpts|none|proc|sys|tmpfs|udev|loop"; echo ; df -Ti | grep -Ev "devpts|none|proc|sys|tmpfs|udev|loop"
Sys. de fichiers Type     Taille Utilisé Dispo Uti% Monté sur
/dev/sda3        ext4       203G     17G  176G   9% /
/dev/sda2        ext4       171M     53M  106M  34% /boot

Sys. de fichiers Type       Inœuds IUtil.   ILibre IUti% Monté sur
/dev/sda3        ext4     13500416 401980 13098436    3% /
/dev/sda2        ext4        46184     16    46168    1% /boot
lorap@lorap-X550CC:~$ dpkg -l | grep -Ei "linux-(g|h|i|lo|si|t)" | sort -k3 | tr -s " " | cut -d" " -s -f1,2,3 | column -s" " -t
ii  linux-headers-4.10.0-40              4.10.0-40.44~16.04.1
ii  linux-image-extra-4.10.0-40-generic  4.10.0-40.44~16.04.1
ii  linux-headers-4.10.0-40-generic      4.10.0-40.44~16.04.1
ii  linux-image-4.10.0-40-generic        4.10.0-40.44~16.04.1
lorap@lorap-X550CC:~$ ls -AsS1 /boot
total 50073
40903 initrd.img-4.10.0-40-generic
 9157 initrd.img-4.10.0-42-generic
   12 lost+found
    1 grub

puis :

lorap@lorap-X550CC:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; nl -ba "$1"' _ '{}' \;

/etc/apt/sources.list

     1	deb http://fr.archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
     2	deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
     3	deb http://fr.archive.ubuntu.com/ubuntu xenial-security main main restricted universe multiverse
     4	deb http://fr.archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
     5	deb http://archive.canonical.com/ubuntu xenial partner

Pour Xubu 1957

lorap@lorap-X550CC:~$ lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04f2:b3f2 Chicony Electronics Co., Ltd 
Bus 001 Device 005: ID 03eb:8a0b Atmel Corp. 
Bus 001 Device 006: ID 0e8d:763f MediaTek Inc. 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lorap@lorap-X550CC:~$ lspci -k -nn | grep -A 3 -i net
03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
	Subsystem: Foxconn International, Inc. MT7630e 802.11bgn Wireless Network Adapter [105b:e074]
	Kernel driver in use: mt7630e
	Kernel modules: mt7630e
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411 PCI Express Card Reader [10ec:5289] (rev 01)
--
04:00.2 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0a)
	Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:200f]
	Kernel driver in use: r8169
	Kernel modules: r8169

Ubuntu - Version 18.04 ;
X550CC (ASUS-NotebookSKU) ; Intel(R) Core(TM) i3-3217U CPU ;  MT7630e 802.11bgn Wireless Netw ; RTL8111/8168/8411 PCI Express G;  1TB ST1000LM024 HN-M;

Hors ligne

#27 Le 13/09/2018, à 18:54

lorap1

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Pour NicoApi73:

C'est pas toutes les fois que je recompile. Ca dépend si le Wifi marche après un changement de noyau. S'il ne marche pas je lance le script.
Par contre, impossible de créer le bluetooth. Y'a d'autres manips en installant le tout avec le DKMS, mais c'est laborieux et je n'ai pas le temps de m'y consacrer. Du coup je me passe de cet outil (Compilation par script ou DKMS pour mon WIFI et BLUETOOTH


Ubuntu - Version 18.04 ;
X550CC (ASUS-NotebookSKU) ; Intel(R) Core(TM) i3-3217U CPU ;  MT7630e 802.11bgn Wireless Netw ; RTL8111/8168/8411 PCI Express G;  1TB ST1000LM024 HN-M;

Hors ligne

#28 Le 13/09/2018, à 19:40

NicoApi73

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Bonjour,

Il faut effectivement passer par dkms. Je ne suis pas expert sur le sujet, mais j'ai déjà réussi un certain nombre de compilation. Je vais laisser un peu de temps à xubu, il va surement trouver le bon driver, après nous essaierons de l'installer. Sinon je regarderai pour celui que tu as.

Avec dkms, il faut rajouter le driver à l'arbre, mettre le code compilé (et je crois qu'il faut également les sources) au bon endroit et faire une première compilation.

Hors ligne

#29 Le 13/09/2018, à 20:25

lorap1

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Pour l'heure, je mets à niveau ma distribution et au préalable redimmensionne mon /boot à 680 Mo
Le temps que ça se fasse.

Dernière modification par lorap1 (Le 13/09/2018, à 20:27)


Ubuntu - Version 18.04 ;
X550CC (ASUS-NotebookSKU) ; Intel(R) Core(TM) i3-3217U CPU ;  MT7630e 802.11bgn Wireless Netw ; RTL8111/8168/8411 PCI Express G;  1TB ST1000LM024 HN-M;

Hors ligne

#30 Le 13/09/2018, à 20:35

xubu1957

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

@ Nico

C'est > github.com/neurobin/MT7630E ou doc.ubuntu-fr.org/asus_r511lj#wifi_et_bluetooth

Nota  :

En savoir plus sur DKMS (en français) : lea-linux.org


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#31 Le 13/09/2018, à 22:31

NicoApi73

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Merci xubu :

DKMS

If you install with dkms then you won't need to uninstall/install for minor kernel updates. Major kernel updates may still need update/uninstall/install though.

Ca peut expliquer pourquoi lorap1 doit exécuter parfois son script.

J'essaierai de passer plus de temps sur dkms demain.

Dernière modification par NicoApi73 (Le 14/09/2018, à 09:02)

Hors ligne

#32 Le 17/09/2018, à 10:08

NicoApi73

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Bonjour,

je suis entrain de regarder s'il est possible de faire quelque chose avec dkms.

Peux tu me donner le retour de la commande suivante STP :

cd ~
cat wifi.sh

Hors ligne

#33 Le 23/09/2018, à 21:14

lorap1

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

(désolé pour l'attente, je n'ai pas eu à me plaindre de la nouvelle version en 18.04, bien au contraire! Ca baigne en gros!)

je donne :

lorap@lorap-X550CC:~$ cd ~
lorap@lorap-X550CC:~$ cat wifi.sh
cd MT7630E/
sudo ./uninstall
sudo ./bpatch -u
sudo make clean
sudo ./install
sudo ./bpatch

C'est pour l'instant le bluetooth qui manque.
(Une impression qui ne fonctionne plus guère (il va falloir que je voie à nouveau la page pour mon matériel).
(Hormis la touche droite du pavé qui ne marchait plus, mais le problème a été bien vu, et est à présent résolu).


Ubuntu - Version 18.04 ;
X550CC (ASUS-NotebookSKU) ; Intel(R) Core(TM) i3-3217U CPU ;  MT7630e 802.11bgn Wireless Netw ; RTL8111/8168/8411 PCI Express G;  1TB ST1000LM024 HN-M;

Hors ligne

#34 Le 24/09/2018, à 06:43

NicoApi73

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Bonjour,

Je suppose que install et bpatch sont également des scripts. Et à priori il y a également un makefile. Peux tu les donner STP?

Hors ligne

#35 Le 30/09/2018, à 12:17

lorap1

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

lorap@lorap-X550CC:~$ cd MT7630E/
lorap@lorap-X550CC:~/MT7630E$ sudo ./bpatch
*** Stoping Bluetooth...
*** Installing kernel headers...
Atteint:1 http://archive.canonical.com/ubuntu bionic InRelease
Atteint:2 http://fr.archive.ubuntu.com/ubuntu bionic InRelease
Réception de:3 http://fr.archive.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Réception de:4 http://fr.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Réception de:5 http://fr.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]
Réception de:6 http://fr.archive.ubuntu.com/ubuntu bionic-security/main i386 Packages [137 kB]
Réception de:7 http://fr.archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [172 kB]
Réception de:8 http://fr.archive.ubuntu.com/ubuntu bionic-security/main Translation-en [67,4 kB]
Réception de:9 http://fr.archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Réception de:10 http://fr.archive.ubuntu.com/ubuntu bionic-security/universe i386 Packages [74,5 kB]
Réception de:11 http://fr.archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [74,7 kB]
Réception de:12 http://fr.archive.ubuntu.com/ubuntu bionic-security/universe Translation-en [42,3 kB]
Réception de:13 http://fr.archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [6824 B]
Réception de:14 http://fr.archive.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [11,3 kB]
Réception de:15 http://fr.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5100 B]
Réception de:16 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [387 kB]
Réception de:17 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [351 kB]
Réception de:18 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [145 kB]
Réception de:19 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [170 kB]
Réception de:20 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [40,8 kB]
Réception de:21 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [76,7 kB]
Réception de:22 http://fr.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2468 B]
Réception de:23 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [537 kB]
Réception de:24 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [537 kB]
Réception de:25 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [135 kB]
Réception de:26 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [183 kB]
Réception de:27 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [177 kB]
Réception de:28 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [287 kB]
3866 ko réceptionnés en 18s (211 ko/s)                                        
Lecture des listes de paquets... Fait
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Aucune version du paquet linux-headers-4.10.0-40-generic n'est disponible, mais il existe dans la base
de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète
ou qu'il n'est disponible que sur une autre source

E: Le paquet « linux-headers-4.10.0-40-generic » n'a pas de version susceptible d'être installée
lorap@lorap-X550CC:~/MT7630E$ sudo ./install
make -C /lib/modules/4.10.0-40-generic/build M=/home/bringer/MT7630E/rt2x00 modules
make[1]: *** /lib/modules/4.10.0-40-generic/build : Aucun fichier ou dossier de ce type. Arrêt.
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2

Ubuntu - Version 18.04 ;
X550CC (ASUS-NotebookSKU) ; Intel(R) Core(TM) i3-3217U CPU ;  MT7630e 802.11bgn Wireless Netw ; RTL8111/8168/8411 PCI Express G;  1TB ST1000LM024 HN-M;

Hors ligne

#36 Le 30/09/2018, à 12:23

lorap1

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

lorap@lorap-X550CC:~$ sudo ./wifi.sh
rm -vf /lib/firmware/mt76x0.bin /lib/firmware/MT7650E234.bin
'/lib/firmware/mt76x0.bin' supprimé
'/lib/firmware/MT7650E234.bin' supprimé
rm -vf /lib/modules/4.10.0-40-generic/kernel/drivers/net/wireless//mt7630e.ko
'/lib/modules/4.10.0-40-generic/kernel/drivers/net/wireless//mt7630e.ko' supprimé
rm -vf /lib/modules/4.10.0-40-generic/kernel/drivers/net/wireless//mt76xx.ko
'/lib/modules/4.10.0-40-generic/kernel/drivers/net/wireless//mt76xx.ko' supprimé
depmod 4.10.0-40-generic
make -C /lib/modules/4.10.0-40-generic/build M=/home/bringer/MT7630E/rt2x00 clean
make[1]: *** /lib/modules/4.10.0-40-generic/build : Aucun fichier ou dossier de ce type. Arrêt.
Makefile:13: recipe for target 'clean' failed
make: *** [clean] Error 2
You can ignore 'make clean' error
*** Stoping Bluetooth...
*** Old installation found, saving current...
*** And restoring the old one...
*** Done ! ***
*** trying to restart bluetooth ...
make -C /lib/modules/`uname -r`/build M=/home/bringer/MT7630E/rt2x00 clean
make[1]: *** /lib/modules/4.10.0-40-generic/build : Aucun fichier ou dossier de ce type. Arrêt.
Makefile:13: recipe for target 'clean' failed
make: *** [clean] Error 2
make -C /lib/modules/4.10.0-40-generic/build M=/home/bringer/MT7630E/rt2x00 modules
make[1]: *** /lib/modules/4.10.0-40-generic/build : Aucun fichier ou dossier de ce type. Arrêt.
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
*** Stoping Bluetooth...
*** Installing kernel headers...
Atteint:1 http://archive.canonical.com/ubuntu bionic InRelease           
Atteint:2 http://fr.archive.ubuntu.com/ubuntu bionic InRelease           
Atteint:3 http://fr.archive.ubuntu.com/ubuntu bionic-security InRelease
Atteint:4 http://fr.archive.ubuntu.com/ubuntu bionic-backports InRelease
Atteint:5 http://fr.archive.ubuntu.com/ubuntu bionic-updates InRelease
Lecture des listes de paquets... Fait
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Aucune version du paquet linux-headers-4.10.0-40-generic n'est disponible, mais il existe dans la base
de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète
ou qu'il n'est disponible que sur une autre source

E: Le paquet « linux-headers-4.10.0-40-generic » n'a pas de version susceptible d'être installée

Ubuntu - Version 18.04 ;
X550CC (ASUS-NotebookSKU) ; Intel(R) Core(TM) i3-3217U CPU ;  MT7630e 802.11bgn Wireless Netw ; RTL8111/8168/8411 PCI Express G;  1TB ST1000LM024 HN-M;

Hors ligne

#37 Le 30/09/2018, à 14:57

moko138

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

wifi.sh a écrit :

4.10.0-40-generic

mais

la signature de lorap1 a écrit :

Ubuntu - Version 18.04

4.10 est un noyau de *buntu 17.04.


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#38 Le 30/09/2018, à 15:50

NicoApi73

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

bonjour,

Pour les #35 et #36, j'aimerais voir le contenu des scripts :

cd ~/MT7630E/ 
cat bpatch
cat install
cat wifi.sh

Hors ligne

#39 Le 24/03/2019, à 11:45

lorap1

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

@-X550CC:~/MT7630E$ cat bpatch
#!/bin/bash
##############################################################################################################
# This is a simple script to patch the bluetooth driver for Linux kernel
# to make it working with mt7630e driver
# 
# Author:
#       tobiasBora (https://github.com/tobiasBora)
# Code reviewed and improved by:
#       Md Jahidul Hamid (https://github.com/neurobin)
#
##############################################################################################################

p_name="$(basename "$BASH_SOURCE")"
p_version='1.0.1'
p_author='tobiasBora (https://github.com/tobiasBora)'
p_c_author='Md Jahidul Hamid (https://github.com/neurobin)'
p_bugt='https://github.com/neurobin/MT7630E/issues'
ver_info="
Name        : $p_name
Version     : $p_version
Author      : $p_author
Co-author   : $p_c_author
Bug report  : $p_bugt
"
help="
######################### bpatch ##############################
############# Script to patch bluetooth ################
###############################################################
# Usage:
#   $p_name [ -sd [sdir], -t, -v, -h]
#
# Options:
#   [ -sd [sdir] ]      : kernel soruce dir
#   [ -t, --test ]      : compile but do not install the patch
@   [ -u, --uninstall ] : uninstall the patch
#   [ -h, --help ]      : show help
#   [ -v, --version]    : show version info
#
# To apply the patch manually read the doc:
#   https://github.com/neurobin/MT7630E/wiki/Get-bluetooth-working-in-Linux-kernel--with-mt7630e
###############################################################
"
##############################################################################################################

set -e
BASEDIR="$(dirname "$BASH_SOURCE")"
cd "$BASEDIR"

chkroot(){
    if (( $EUID != 0 )); then
        printf "\n--- Sorry! Run with root privilege\n\n"
        exit 1
    fi
}

uninstall(){
    echo "*** Stoping Bluetooth..."
    service bluetooth stop ||
    systemctl stop bluetooth.service || true
    bdir="/lib/modules/$(uname -r)/kernel/drivers/bluetooth"
    if [ -f "$bdir/btusb.ko.old" ];
    then
       echo "*** Old installation found, saving current..."
       cp "$bdir/btusb.ko" "$bdir/btusb.ko.old2"
       echo "*** And restoring the old one..."
       cp "$bdir/btusb.ko.old" "$bdir/btusb.ko"
       #mv -f "$bdir/btusb.ko.old2" "$bdir/btusb.ko.old"
       echo "*** Done ! ***"
    else
       echo "... No older installation found (skipped)..."
    fi
    echo '*** trying to restart bluetooth ...'
    service bluetooth start ||
    systemctl restart bluetooth.service
}

###################### Arg parse #########################

sdir=""         # kernel source dir
skipd=false     # whether to download the source
test=false      # only compile the patch without installing it

for op in "$@";do
    case "$op" in
        -v|--version)
            echo "$ver_info"
            shift
            exit 0
            ;;
        -h|--help)
            echo "$help"
            shift
            exit 0
            ;;
        -sd|--source-dir)
            shift
            if [[ "$1" != "" ]]; then
                sdir="${1/%\//}"
                skipd=true
                if [[ ! -d "$sdir" ]]; then
                    echo "--- Directory doesn't exist: $sdir "
                    exit 1
                fi
                shift
            else
                echo "--- Arg missing for -sd option"
                exit 1
            fi
            ;;
        -t|--test)
            test=true
            shift
            ;;
        -u|--uninstall)
            chkroot
            uninstall
            shift
            exit 0
            ;;
        -*)
            echo "--- Invalid option: $1"
            shift
            exit 1
            ;;
    esac
done
############################################################

chkroot # check for root privilege

echo "*** Stoping Bluetooth..."
service bluetooth stop ||
systemctl stop bluetooth.service || true

echo "*** Installing kernel headers..."
apt-get update || true
apt-get install build-essential linux-headers-$(uname -r)

mkdir -p build/
cd build/
rm -rf build_$(uname -r)
mkdir build_$(uname -r)
cd build_$(uname -r)

if ! $skipd; then
    echo "*** Downloading kernel source..."
    apt-get source linux-image-$(uname -r)    # Get the kernel source code
fi

echo "*** Building kernel dependencies... (may be facultative)"
apt-get build-dep linux-image-$(uname -r) || true # Build kernel dependencies 

if ! $skipd; then
    cd $(ls -d */ | head -1)
else
    cd "$sdir"
fi
sdir="$(pwd -P)"

echo "*** Copying configuration..."
cp "/boot/config-$(uname -r)" .config
cp "/usr/src/linux-headers-$(uname -r)/Module.symvers" .

cd drivers/bluetooth/

echo "*** Patching..."
cp btusb.c btusb.c.old

echo '*** Adding BTUSB_MEDIATEK definiton ...'
if ! grep -e "^[[:blank:]]*#define BTUSB_MEDIATEK[[:blank:]].*" btusb.c >/dev/null; then
    interestingLine="$(grep -e "^[[:blank:]]*#define BTUSB_.*0x[1248]0*[[:blank:]]*$" btusb.c | tail -1)"
    echo "interestingLine = $interestingLine"
    interestingNumber=$(echo "$interestingLine" | sed 's/^.*\(0x[0-9]*\)[[:blank:]]*$/\1/g')
    echo "interestingNumber = $interestingNumber"
    newNumber=$(printf "0x%X\n" $(($interestingNumber + $interestingNumber)))
    echo "*** Adding the line #define BTUSB_MEDIATEK		$newNumber ..."
    sed -i "s/$interestingLine/&\n#define BTUSB_MEDIATEK		$newNumber/" btusb.c
else
    echo '... A definition for BTUSB_MEDIATEK exists (skipped)'
fi

echo '*** Adding .driver_info = BTUSB_MEDIATEK (if not exists already)...'
sed -i "s/{ USB_DEVICE(0x0e8d, 0x763f) },/{ USB_DEVICE(0x0e8d, 0x763f), .driver_info = BTUSB_MEDIATEK },/" btusb.c

echo '*** Adding BTUSB_MEDIATEK condition ...'
#sed -i "s/set_bit(HCI_QUIRK_BROKEN_LOCAL_COMMANDS, \&hdev->quirks);/&\n   }\n   if (id->driver_info \& BTUSB_MEDIATEK) {\n      set_bit(HCI_QUIRK_BROKEN_LOCAL_COMMANDS, \&hdev->quirks);\n/" btusb.c
patch='\n\tif (id->driver_info \& BTUSB_MEDIATEK) { \n\t\tset_bit(HCI_QUIRK_BROKEN_LOCAL_COMMANDS, \&hdev->quirks);\n\t}\n'
if ! grep -A2 -e 'if (id->driver_info & BTUSB_MEDIATEK)' btusb.c |
 	grep -e 'set_bit(HCI_QUIRK_BROKEN_LOCAL_COMMANDS, &hdev->quirks);' >/dev/null; then
    sed -i "s/^[[:blank:]]*if[[:blank:]]*(id->driver_info & BTUSB_INTEL)/$patch\n&/" btusb.c
else
    echo '... BTUSB_MEDIATEK condition was already added (skipped)'
fi

#cd ../../
cd "$sdir"

echo "*** make prepare"
make prepare
echo "*** make modules_prepare"
make modules_prepare
echo "*** make M=scripts/mod"
make M=scripts/mod
echo "*** make M=drivers/bluetooth/ modules"
make M=drivers/bluetooth/ modules

if ! $test; then
    echo "*** Saving old .ko"
    cp -f /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko.old
    echo "*** Copying new .ko"
    cp drivers/bluetooth/btusb.ko /lib/modules/$(uname -r)/kernel/drivers/bluetooth
fi

echo "
*** Starting bluetooth (you may need a reboot to have bluetooth enabled).
=====  /\ =============================================
===   /  \     In order to have bluetooth enabled =====
===  /  | \    you should reboot your computer.   =====
=== /___o__\===========================================
I will try to load it, but if nothing happens, please reboot.
"

service bluetooth start ||
systemctl restart bluetooth.service

@-X550CC:~/MT7630E$ cat install
#!/bin/bash
set -e
BASEDIR="$(dirname "$BASH_SOURCE")"
cd "$BASEDIR"
if (( $EUID != 0 )); then
    printf "\n-----Sorry! Run with root privilege (for example with 'sudo ./install')\n\n"
    exit 1
fi
KERNEL=${1-$(uname -r)}
make KERNEL=$KERNEL
make install KERNEL=$KERNEL
modprobe mt7630e -S $KERNEL
modprobe mt76xx -S $KERNEL
echo "
The driver has been successfully installed.
If you don't have wifi yet, try to reboot.
If bluetooth doesn't work, read the bluetooth
section in README.md file and follow through.
"
@-X550CC:~/MT7630E$ cat wifi.sh
cat: wifi.sh: Aucun fichier ou dossier de ce type
@-X550CC:~/MT7630E$ 

Ubuntu - Version 18.04 ;
X550CC (ASUS-NotebookSKU) ; Intel(R) Core(TM) i3-3217U CPU ;  MT7630e 802.11bgn Wireless Netw ; RTL8111/8168/8411 PCI Express G;  1TB ST1000LM024 HN-M;

Hors ligne

#40 Le 24/03/2019, à 12:03

lorap1

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

@-X550CC:~$ sudo bash ./wifi.sh
[sudo] Mot de passe de  : 
Désolé, essayez de nouveau.
[sudo] Mot de passe de bringer : 
rm -vf /lib/firmware/mt76x0.bin /lib/firmware/MT7650E234.bin
rm -vf /lib/modules/4.10.0-40-generic/kernel/drivers/net/wireless//mt7630e.ko
rm -vf /lib/modules/4.10.0-40-generic/kernel/drivers/net/wireless//mt76xx.ko
depmod 4.10.0-40-generic
make -C /lib/modules/4.10.0-40-generic/build M=/home/bringer/MT7630E/rt2x00 clean
make[1]: *** /lib/modules/4.10.0-40-generic/build : Aucun fichier ou dossier de ce type. Arrêt.
Makefile:13: recipe for target 'clean' failed
make: *** [clean] Error 2
You can ignore 'make clean' error
*** Stoping Bluetooth...
*** Old installation found, saving current...
*** And restoring the old one...
*** Done ! ***
*** trying to restart bluetooth ...
make -C /lib/modules/`uname -r`/build M=/home/bringer/MT7630E/rt2x00 clean
make[1]: *** /lib/modules/4.10.0-40-generic/build : Aucun fichier ou dossier de ce type. Arrêt.
Makefile:13: recipe for target 'clean' failed
make: *** [clean] Error 2
make -C /lib/modules/4.10.0-40-generic/build M=/home/bringer/MT7630E/rt2x00 modules
make[1]: *** /lib/modules/4.10.0-40-generic/build : Aucun fichier ou dossier de ce type. Arrêt.
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
*** Stoping Bluetooth...
*** Installing kernel headers...
Atteint :1 http://fr.archive.ubuntu.com/ubuntu bionic InRelease
Atteint :2 http://fr.archive.ubuntu.com/ubuntu bionic-security InRelease       
Atteint :3 http://fr.archive.ubuntu.com/ubuntu bionic-backports InRelease      
Atteint :4 http://fr.archive.ubuntu.com/ubuntu bionic-updates InRelease        
Atteint :5 http://archive.canonical.com/ubuntu bionic InRelease                
Lecture des listes de paquets... Fait                          
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Aucune version du paquet linux-headers-4.10.0-40-generic n'est disponible, mais il existe dans la base
de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète
ou qu'il n'est disponible que sur une autre source

E: Le paquet « linux-headers-4.10.0-40-generic » n'a pas de version susceptible d'être installée
@-X550CC:~$ 

Ubuntu - Version 18.04 ;
X550CC (ASUS-NotebookSKU) ; Intel(R) Core(TM) i3-3217U CPU ;  MT7630e 802.11bgn Wireless Netw ; RTL8111/8168/8411 PCI Express G;  1TB ST1000LM024 HN-M;

Hors ligne

#41 Le 24/03/2019, à 12:09

moko138

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Bonjour,
Que retourne

lsb_release -d ; echo $XDG_CURRENT_DESKTOP ; uname -mr ; ls -lt /usr/share/xsessions | tr -s " " | cut -d" " -s -f6-9

?


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#42 Le 24/03/2019, à 16:40

lorap1

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Pour #41 :

@-X550CC:~$ lsb_release -d ; echo $XDG_CURRENT_DESKTOP ; uname -mr ; ls -lt /usr/share/xsessions | tr -s " " | cut -d" " -s -f6-9
Description:	Ubuntu 18.04.2 LTS
ubuntu:GNOME
4.10.0-40-generic x86_64

mai 2 2018 ubuntu-communitheme-snap.desktop
mai 2 2018 ubuntu.desktop
mai 2 2018 unity.desktop
@-X550CC:~$ 

Ubuntu - Version 18.04 ;
X550CC (ASUS-NotebookSKU) ; Intel(R) Core(TM) i3-3217U CPU ;  MT7630e 802.11bgn Wireless Netw ; RTL8111/8168/8411 PCI Express G;  1TB ST1000LM024 HN-M;

Hors ligne

#43 Le 24/03/2019, à 16:46

cqfd93

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

C'est peut-être pas vraiment utile de traiter le problème de noyaux dans deux discussions en parallèle.


cqfd93

En ligne

#44 Le 24/03/2019, à 17:12

xubu1957

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Il faut que Nico sache qu'une autre discussion est en cours > script de démarrage du WI-FI impossible car noyau périmé, s'il veut intervenir au niveau du script !


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#45 Le 24/03/2019, à 21:36

NicoApi73

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Bonsoir,

Je pense qu'il faut d'abord traiter le problème de noyau

Hors ligne

#46 Le 25/03/2019, à 18:42

moko138

Re : [Résolu]linux-hwe impossible à authentifier dans ses paquets

Maintenant que le noyau 4.15 est opérationnel dans cette 18.04, il est temps de purger les reliquats :

sudo apt-get remove --purge  linux-headers-4.10.0-40  linux-image-extra-4.10.0-40-generic  linux-headers-4.10.0-40-generic  linux-image-4.10.0-40-generic

%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne