Skip to content

Instantly share code, notes, and snippets.

@dwilliamsuk
Created September 25, 2025 19:06
Show Gist options
  • Select an option

  • Save dwilliamsuk/27e1ee3a07bc2df574e5c9535a6418d7 to your computer and use it in GitHub Desktop.

Select an option

Save dwilliamsuk/27e1ee3a07bc2df574e5c9535a6418d7 to your computer and use it in GitHub Desktop.
LimeSDR Mini v2.4 (How to use analog clock switch)
So here’s how to use udev to always enable the external reference by default, for the LimeSDR Mini v2.4 (October 2024):
1. edit /etc/udev/rules.d/65-limesuiteng-usb.rules.
2. find the line that says:
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="601f", MODE=="666"
3. At the end of that line, add:
, RUN+="/usr/local/bin/limeSPI --device '0403:601f' --chip FPGA write -s 00cf0001"
4. save, exit, and run sudo /etc/init.d/udev restart
5. unplug+replug the usb for the sdr
6. check that udev actually did what we told it to:
limeSPI --device "0403:601f" --chip FPGA read -s 00cf
…and it should print out: 00cf0001, and limeGUI should also report 0001 for this register :partying_face: :tada:
To ‘permanently’ switch back to the internal reference, you can comment out the , RUN+=.... portion that we added (you’ll also need to restart udev as above, and unplug and replug your device). To ‘temporarily’ switch back to internal, just execute /usr/local/bin/limeSPI --device '0403:601f' --chip FPGA write -s 00cf0000.
I hope this information helps someone in the future. And thanks for your time!
------
This is a copy of a post made by user "Ian" (https://discourse.myriadrf.org/u/ian/) on the myriadrf forums. I've only made this in case the original post is deleted / lost, as it helped me get my LimeSDR setup with a GPSDO. Thanks Ian!
Original Post: https://discourse.myriadrf.org/t/limesdr-mini-v2-4-external-clock/8203/9
@dwilliamsuk
Copy link
Copy Markdown
Author

@dwilliamsuk
Copy link
Copy Markdown
Author

Fwiw - for me limeSPI is located at /usr/bin/limeSPI on Debian 13. I referenced that path instead within the 65-limesuiteng-usb.rules file.

@dwilliamsuk
Copy link
Copy Markdown
Author

Also - to set custom udev rules, copy from installed package udev rules to custom rules like so:
sudo cp /lib/udev/rules.d/65-limesuiteng-usb.rules /etc/udev/rules.d/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment