瀏覽代碼

Transfer SDR udev to pi

tags/v4.1.0-rc1
Luigi Cruz 4 年之前
父節點
當前提交
c1e09f1aaf
共有 2 個檔案被更改,包括 14 行新增3 行删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存