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
Tagged: SARA-R5
- This topic has 47 replies, 9 voices, and was last updated 2 months, 2 weeks ago by julienvm.
- AuthorPosts
- March 22, 2023 at 1:51 pm #18068Mark WilliamsKeymaster
Post here for support on the OzzMaker SARA-R5 LTE-M GPS + 10DOF
Mark --OzzMaker.com --
March 25, 2023 at 9:24 am #18081mechtechParticipantJust wanted to share that I started with a clean install of Raspberry Pi )S 64bit and when I went through the steps for “enabling multiplexing on the raspberry pi serial interface” I ran into a snag. In step 3. Download kernel source, it requires python2.7, apparently the OS did not come with Python2.7 installed. Using python –version and python3 –version returned the same version of 3.9.2. The library urllib2 is not available in Python3 from what I read on stackoverflow. So to solve this issue, sudo apt-get install python2.7 got me going again.
March 25, 2023 at 9:31 am #18082mechtechParticipantOk another snag, in step 4. Build the N_GSM kernel module, it is looking for /root/drivers/tty/n_gsm.ko, got a No such file or directory. A quick ls -la, showed the file as n_gsm.o, updated the command to /root/drivers/tty/n_gsm.o, and on to the next step.
March 25, 2023 at 9:39 am #18083mechtechParticipantHopefull this is the last issue, step 6. Load module and run CMUX. When running “sudo modprobe n_gsm” I get “modprobe: FATAL: Module n_gsm not found in directory /lib/modules/6.1.19-v8+”
Went ahead and ran “sudo cmux” and it threw a message, cmux: Cannot set line dicipline. Is ‘n_gsm’ module registred?: Invalid argument”
Now I am stuck.
- This reply was modified 8 months, 2 weeks ago by mechtech.
March 25, 2023 at 10:13 am #18085mechtechParticipantAfter some reading, realizing I need that n_gsm.ko (kernel object) file and not the n_gsm.o file. I am reading about compiling kernel modules, but that is outside of my comfort zone at the moment.
March 26, 2023 at 12:44 am #18087mechtechParticipantDoing some reading to better understand how the make command works, I reran the make command from Step 4. Build the N_GSM kernel module. Looking at the output more closely, I see an error: modpost for /root/linux/drivers/tty/serial/sc16is7xx.ko undefined!
April 9, 2023 at 8:57 am #18123Alex BabijParticipantDid you end up figuring out the issue? I recently had n_gsm not found in directory issue when I had had it working before, and what fixed it for me was doing ‘cp /root/linux/drivers/tty/n_gsm.ko /lib/modules/
uname -r
/kernel/drivers/tty/’ , then ‘depmod’ from the tutorialApril 19, 2023 at 6:36 pm #18142griceyParticipantHiya folks. I’m using the board with a RPi Zero W, running the latest stable Raspian 32-bit (bullseye based). I followed your guide and have had everything working, but the cmux/serial connection seems super hit and miss. Most of the time I will get cmux bomb out with ‘Cannot read /dev/serial0: Resource temporarily unavailable’. A hard (read: pull out the power and plug it back in) power cycle sometimes fixes it, reboots dont seem to do the trick. Any ideas?
Cheers,
Gricey
- This reply was modified 7 months, 3 weeks ago by gricey.
July 14, 2023 at 1:28 am #18340paulzx14ParticipantHi,
I tried to use the enable multi-plexing option on the Sara-R5 but ran into a whole host of compile errors.
I’m using a RPi 4 with Bullseye and have no idea how to fix it.
Please can someone contact me and let me know what to?
Thanks,
Paul.
July 14, 2023 at 7:53 am #18342g189ffinParticipantHi,
I cannot for the life of me get this to work. I have the same issue too:
root@raspberrypi:~# make -C /lib/modules/$(uname -r)/build M=$(pwd) -e CONFIG_N_GSM=m modules
make: Entering directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
make[1]: Entering directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
make[2]: Entering directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
make[2]: Leaving directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
make[2]: Entering directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
make[3]: Entering directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
make[3]: Leaving directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
CC [M] /root/linux/drivers/tty/serial/sc16is7xx.o
make[2]: Leaving directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
make[2]: Entering directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
make[2]: Leaving directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
make[2]: Entering directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
make[2]: Leaving directory ‘/root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed’
CC [M] /root/linux/drivers/tty/n_gsm.o
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’July 14, 2023 at 4:48 pm #18349richardpParticipantHi, what version OS are you using on your Pi?
Can you show the output ofuname -a
Richard --OzzMaker.com --
July 14, 2023 at 8:41 pm #18351paulzx14ParticipantHi,
Thanks for the reply…
Uname returns:
Linux Rpi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Does that help?.
I saw the same problem on here, and the suggestion was that the Python version is ‘3’ on the Rpi4, but the instructions seem to want Python V2.7?
All help greatly appreciated.
Thanks,
Paul
July 14, 2023 at 8:59 pm #18352richardpParticipantHi Paul
We updated the rpi-source to support Python 3.Did you try the new instructions with the new code?
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
Richard --OzzMaker.com --
July 15, 2023 at 5:34 pm #18358paulzx14ParticipantHi,
I think I did as one off my many attempts to get it working.
I’m away at the moment but will try again on Monday.
I’ll let you know if it works, and thanks for the help
Regards,
Paul.
July 17, 2023 at 12:10 am #18360paulzx14ParticipantHi,
Thanks for the help.
I just tried the above method and got the following response, so I guess I did try it before.
If this is ok (altho I did get pages of errors when I tried originally) how can I tell if it did actually work?.
Thanks again,
Paul.
————————–
*** SoC: BCM2711
*** Using: /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz
*** Latest firmware revision: 055e044d5359ded1aacc5a17a8e35365373d0b8b
*** Linux source commit: 0afb5e98488aed7017b9bf321b575d0177feb7ed
*** Kernel source already installed: /root/linux-0afb5e98488aed7017b9bf321b575d0177feb7ed
- AuthorPosts
- You must be logged in to reply to this topic.