Difference between revisions of "Installons le bon kernel"
From Fixme.ch
(Created page with "* Je suis passé du noyau 2.4.4-34V7 au noyau 2.7.10 pour pouvoir utiliser la carte et gérer convenablement le 802.15.4 sur un RPi3. <nowiki> sudo apt-get install git libcu...") |
m (typo) |
||
| Line 2: | Line 2: | ||
<nowiki> | <nowiki> | ||
| − | sudo apt-get install git | + | sudo apt-get install git libncurses5-dev bc |
sudo apt-get update | sudo apt-get update | ||
sudo apt-get upgrade | sudo apt-get upgrade | ||
| Line 17: | Line 17: | ||
<nowiki> | <nowiki> | ||
| − | sudo mkdir /opt/src/rpi_wpan | + | sudo mkdir -p /opt/src/rpi_wpan |
| − | sudo chown -R /opt/src | + | sudo chown -R pi: /opt/src |
cd /opt/src/rpi_wpan | cd /opt/src/rpi_wpan | ||
git clone --depth 1 https://github.com/raspberrypi/linux.git \ | git clone --depth 1 https://github.com/raspberrypi/linux.git \ | ||
Latest revision as of 19:16, 5 February 2017
- Je suis passé du noyau 2.4.4-34V7 au noyau 2.7.10 pour pouvoir utiliser la carte et gérer convenablement le 802.15.4 sur un RPi3.
sudo apt-get install git libncurses5-dev bc sudo apt-get update sudo apt-get upgrade sudo apt-get reboot
Une fois cela fait, nous avons un système à jour avec le dernier kernel installé.
uname -a Linux raspberrypi 4.4.34-v7+ #930 SMP Wed Nov 23 15:20:41 GMT 2016 armv7l GNU/Linux
Allons chercher de quoi construire un nouveau kernel.
sudo mkdir -p /opt/src/rpi_wpan
sudo chown -R pi: /opt/src
cd /opt/src/rpi_wpan
git clone --depth 1 https://github.com/raspberrypi/linux.git \
--branch rpi-4.7.y --single-branch linux-rpi3
git clone --depth 1 https://github.com/raspberrypi/firmware.git \
--branch next --single-branch firmware
cd linux-rpi3
make bcm2709_defconfig
make menuconfig
make kernelversion
4.7.10
menuconfig
Device Drivers
--> Network device support
--> IEEE 802.15.4 drivers
Networking support
--> Networking Options
--> IEEE Std 802.15.4 Low-Rate Wireless Personal Area
Networks support
make zImage modules dtbs -j4
Quelques 2 heures après....
sudo make modules_install dtbs_install
Après un reboot...
uname -a Linux raspberrypi 4.7.10-v7+ #1 SMP Mon Dec 12 15:21:31 CET 2016 armv7l GNU/Linux
Maintenant que nous avons un nouveau noyau évitons qu'il soit écrasé par une mise à jour.
sudo apt-mark hold raspberrypi-kernel sudo apt-mark hold raspberrypi-bootloader