Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2456

Raspberry Pi OS • make on a raspberry pi 4 bookworm (new image)

$
0
0
Hi,

(beginer) I'm having an issues running 'make' in the directory for a usb driver i'm trying to install.



folder for the driver contains these files:
.h
.c
Makefile
Rules.make

This is a new install using the raspberry pi imager for bookworm (12). after running through general updates, updated to get the appropriate kernel headers.

Code:

sudo apt updatesudo apt install raspberrypi-kernel-headers
then went into directory:

Code:

cd Documents/ftdi_sio/make
I'm getting the error:

Code:

gcc -Wall -D__KERNEL__ -DMODULE -I/lib/modules/6.1.0-rpi8-rpi-v8/build/include -D__SMP__ -DSMP -DMODVERSIONS -include /lib/modules/6.1.0-rpi8-rpi-v8/build/include/linux/modversions.h -I/usr/src/linux-6.1.0-rpi8-rpi-v8/drivers/usb/serial/ -O   -c -o ftdi_sio.o ftdi_sio.c<command-line>: fatal error: /lib/modules/6.1.0-rpi8-rpi-v8/build/include/linux/modversions.h: No such file or directorycompilation terminated.make: *** [<builtin>: ftdi_sio.o] Error 1
looking in that directory '/lib/modules/6.1.0-rpi8-rpi-v8/build/include/linux/' there is no file 'modversions.h'

Not sure if i missed something along the way. I would appreciate any light on path forward :D

Statistics: Posted by nxb9753 — Thu Feb 01, 2024 8:23 pm



Viewing all articles
Browse latest Browse all 2456

Trending Articles