Browse Source

Transfer SDR udev to pi

tags/v4.1.0-rc1
Luigi Cruz 4 years ago
parent
commit
c1e09f1aaf
2 changed files with 14 additions and 3 deletions
  1. +1
    -3
      builder/stage4/05-pisdr-uhd/00-run.sh
  2. +13
    -0
      builder/stage4/26-pisdr-udev/00-run.sh

+ 1
- 3
builder/stage4/05-pisdr-uhd/00-run.sh View File

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

+ 13
- 0
builder/stage4/26-pisdr-udev/00-run.sh View File

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

Loading…
Cancel
Save