From c1e09f1aafc64a71a488695529570318a9d9502b Mon Sep 17 00:00:00 2001 From: Luigi Cruz Date: Sun, 16 Aug 2020 19:16:54 -0300 Subject: [PATCH] Transfer SDR udev to pi --- builder/stage4/05-pisdr-uhd/00-run.sh | 4 +--- builder/stage4/26-pisdr-udev/00-run.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100755 builder/stage4/26-pisdr-udev/00-run.sh diff --git a/builder/stage4/05-pisdr-uhd/00-run.sh b/builder/stage4/05-pisdr-uhd/00-run.sh index 23fa36d..fb60146 100755 --- a/builder/stage4/05-pisdr-uhd/00-run.sh +++ b/builder/stage4/05-pisdr-uhd/00-run.sh @@ -17,8 +17,6 @@ cmake -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtun -DCMAKE_ASM_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15" \ -GNinja -DCMAKE_BUILD_TYPE=Release ../ ninja install -cp /usr/local/lib/uhd/utils/uhd-usrp.rules /etc/udev/rules.d/ -udevadm control --reload-rules -udevadm trigger ldconfig +uhd_images_downloader EOF \ No newline at end of file diff --git a/builder/stage4/26-pisdr-udev/00-run.sh b/builder/stage4/26-pisdr-udev/00-run.sh new file mode 100755 index 0000000..c5862b6 --- /dev/null +++ b/builder/stage4/26-pisdr-udev/00-run.sh @@ -0,0 +1,13 @@ +#!/bin/bash -e + +on_chroot << EOF +chown pi:pi /etc/udev/rules.d/52-airspy.rules +chown pi:pi /etc/udev/rules.d/52-airspyhf.rules +chown pi:pi /etc/udev/rules.d/rtl-sdr.rules +chown pi:pi /lib/udev/rules.d/90-libiio.rules +chown pi:pi /etc/udev/rules.d/53-hackrf.rules +chown pi:pi /usr/local/lib/uhd/utils/uhd-usrp.rules +chown pi:pi /etc/udev/rules.d/uhd-usrp.rules +udevadm control --reload-rules +udevadm trigger +EOF \ No newline at end of file