Post here for support on the OzzMaker SARA-R5 LTE-M GPS + 10DOF

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: 

Viewing 15 posts - 1 through 15 (of 49 total)
  • Author
    Posts
  • #18068
    Mark Williams
    Keymaster

    Post here for support on the OzzMaker SARA-R5 LTE-M GPS + 10DOF

    Mark --OzzMaker.com --

    #18081
    mechtech
    Participant

    Just 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.

    #18082
    mechtech
    Participant

    Ok 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.

    #18083
    mechtech
    Participant

    Hopefull 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 1 year, 1 month ago by mechtech.
    #18085
    mechtech
    Participant

    After 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.

    #18087
    mechtech
    Participant

    Doing 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!

    #18123
    Alex Babij
    Participant

    Did 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 tutorial

    #18142
    gricey
    Participant

    Hiya 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 1 year, 1 month ago by gricey.
    #18340
    paulzx14
    Participant

    Hi,

    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.

    #18342
    g189ffin
    Participant

    Hi,

    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’

    #18349
    richardp
    Participant

    Hi, what version OS are you using on your Pi?
    Can you show the output of uname -a

    Richard --OzzMaker.com --

    #18351
    paulzx14
    Participant

    Hi,

    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

    #18352
    richardp
    Participant

    Hi 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 --

    #18358
    paulzx14
    Participant

    Hi,

    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.

    #18360
    paulzx14
    Participant

    Hi,

    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

Viewing 15 posts - 1 through 15 (of 49 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop…