Home › Forums › Forums › Technical Support for the OzzMaker SARA-R5 LTE-M GPS + 10DOF › Post here for support on the OzzMaker SARA-R5 LTE-M GPS + 10DOF › Reply To: Post here for support on the OzzMaker SARA-R5 LTE-M GPS + 10DOF
July 19, 2023 at 12:14 am #18378
richardp
Participant
I just tested with a clean install of 64 bit.
This is what I did right after first logged in
sudo -i
apt update
apt install bc bison git build-essential flex libssl-dev -y
wget -O /usr/bin/rpi-source https://raw.githubusercontent.com/ozzmaker/rpi-source/master/rpi-source
chmod +x /usr/bin/rpi-source
/usr/bin/rpi-source -q --tag-update
/usr/bin/rpi-source
cd /root/linux/drivers/tty/
make -C /lib/modules/$(uname -r)/build M=$(pwd) -e CONFIG_N_GSM=m modules
I get these errors
make[1]: Leaving directory '/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed'
make[1]: Entering directory '/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed'
MODPOST /root/linux/drivers/tty/Module.symvers
ERROR: modpost: "alt_cb_patch_nops" [/root/linux/drivers/tty/serial/sc16is7xx.ko] undefined!
ERROR: modpost: "__const_udelay" [/root/linux/drivers/tty/serial/sc16is7xx.ko] undefined!
ERROR: modpost: "alt_cb_patch_nops" [/root/linux/drivers/tty/n_gsm.ko] undefined!
ERROR: modpost: "__arch_copy_from_user" [/root/linux/drivers/tty/n_gsm.ko] undefined!
ERROR: modpost: "__arch_copy_to_user" [/root/linux/drivers/tty/n_gsm.ko] undefined!
ERROR: modpost: "__warn_printk" [/root/linux/drivers/tty/n_gsm.ko] undefined!
ERROR: modpost: "_raw_spin_unlock" [/root/linux/drivers/tty/n_gsm.ko] undefined!
make[1]: *** [scripts/Makefile.modpost:126: /root/linux/drivers/tty/Module.symvers] Error 1
make[1]: Leaving directory '/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed'
make: *** [Makefile:1964: modpost] Error 2
make: Leaving directory '/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed'
root@raspberrypi:~/linux/drivers/tty#
I then install headers using apt-get
sudo apt-get install raspberrypi-kernel-headers
Ran make again and it worked
root@raspberrypi:~/linux/drivers/tty# make -C /lib/modules/$(uname -r)/build M=$(pwd) -e CONFIG_N_GSM=m modules
make: Entering directory '/usr/src/linux-headers-6.1.21-v8+'
make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v8+'
make[2]: Entering directory '/usr/src/linux-headers-6.1.21-v8+'
make[2]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+'
make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+'
make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v8+'
MODPOST /root/linux/drivers/tty/Module.symvers
make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+'
make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v8+'
CC [M] /root/linux/drivers/tty/n_gsm.mod.o
LD [M] /root/linux/drivers/tty/n_gsm.ko
CC [M] /root/linux/drivers/tty/serial/sc16is7xx.mod.o
LD [M] /root/linux/drivers/tty/serial/sc16is7xx.ko
make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+'
make: Leaving directory '/usr/src/linux-headers-6.1.21-v8+'
Richard --OzzMaker.com --