Seeed-Studio / seeed-linux-usbdisp

USB monitor Linux kernel driver.
GNU General Public License v2.0
8 stars 1 forks source link

make[1]: *** /lib/modules/4.19.118-v7l+/build: そのようなファイルやディレクトリはありません #9

Closed matsujirushi closed 4 years ago

matsujirushi commented 4 years ago
  1. Flash 2020-05-27-raspios-buster-armhf.img to microSD.
  2. sudo apt update
  3. sudo apt upgrade
  4. Setup Host Device Firmware

I got below error.

pi@raspberrypi:~/seeed-linux-usbdisp/drivers/linux-driver $ make & sudo make install
[1] 17009
make -C /lib/modules/`uname -r`/build KCPPFLAGS="-I/home/pi/seeed-linux-usbdisp/drivers/linux-driver/src -I/home/pi/seeed-linux-usbdisp/drivers/linux-driver/../common" M=/home/pi/seeed-linux-usbdisp/drivers/linux-driver modules
make[1]: *** /lib/modules/4.19.118-v7l+/build: そのようなファイルやディレクトリはありません.  中止.
make: *** [Makefile:30: modules] エラー 2
make -C /lib/modules/`uname -r`/build M=/home/pi/seeed-linux-usbdisp/drivers/linux-driver modules_install
make[1]: *** /lib/modules/4.19.118-v7l+/build: そのようなファイルやディレクトリはありません.  中止.
make: *** [Makefile:33: modules_install] エラー 2
[1]+  終了 2                make
pi@raspberrypi:~/seeed-linux-usbdisp/drivers/linux-driver $

I cannot find 4.19.118-v7l+ directory.

pi@raspberrypi:~/seeed-linux-usbdisp/drivers/linux-driver $ ls -l /lib/modules/
合計 16
drwxr-xr-x 3 root root 4096  8月  3 10:58 5.4.51+
drwxr-xr-x 3 root root 4096  8月  3 10:58 5.4.51-v7+
drwxr-xr-x 3 root root 4096  8月  3 10:58 5.4.51-v7l+
drwxr-xr-x 3 root root 4096  8月  3 10:34 5.4.51-v8+
pi@raspberrypi:~/seeed-linux-usbdisp/drivers/linux-driver $
Pillar1989 commented 4 years ago

The reason for this problem is that the Raspberry PI kernel has been updated to 5.4, but the kernel you are currently using is still 4.19. You need to reboot.Then recompile the installation. @matsujirushi

matsujirushi commented 4 years ago

Thanks for your help! It is work!