Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault on Mac OSX (M1/Monterey) #50

Open
andrewwong2000 opened this issue Jun 4, 2022 · 1 comment
Open

Segmentation Fault on Mac OSX (M1/Monterey) #50

andrewwong2000 opened this issue Jun 4, 2022 · 1 comment

Comments

@andrewwong2000
Copy link

Would appreciate some help - am seeing a segmentation fault using the homebrew install process.

Could this related to the UHD library in /opt/homebrew/lib/SoapySDR/modules0.8/libuhdSupport.so being the wrong format for M1?

% SoapySDRUtil --make="driver=uhd,type=b200"
######################################################

Soapy SDR -- the SDR abstraction library

######################################################

Make device driver=uhd,type=b200
[INFO] [UHD] Mac OS; Clang version 13.1.6 (clang-1316.0.21.2); Boost_107800; UHD_4.2.0.HEAD-0-g46a70d85
[INFO] [b200_impl.cpp:421] [B200] Detected Device: B200
[INFO] [B200] Detected Device: B200
[INFO] [b200_impl.cpp:468] [B200] Operating over USB 3.
[INFO] [B200] Operating over USB 3.
[INFO] [b200_impl.cpp:619] [B200] Initialize CODEC control...
[INFO] [B200] Initialize CODEC control...
[INFO] [b200_impl.cpp:688] [B200] Initialize Radio control...
[INFO] [B200] Initialize Radio control...
[INFO] [b200_impl.cpp:1099] [B200] Performing register loopback test...
[INFO] [B200] Performing register loopback test...
[INFO] [b200_impl.cpp:1108] [B200] Register loopback test passed
[INFO] [B200] Register loopback test passed
[INFO] [b200_impl.cpp:815] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [b200_impl.cpp:1149] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [b200_impl.cpp:1162] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [B200] Actually got clock rate 16.000000 MHz.
driver=b200
hardware=B200
fpga_version=16.0
fw_version=8.0
mboard_id=B200
mboard_name=MyB200
mboard_serial=3113D17
rx0_antenna=RX2
rx0_id=Unknown (0xffff)
rx0_ref_power_key=b2xx_pwr_rx_rx2
rx0_ref_power_serial=3113D17#A
rx0_serial=
rx0_subdev_name=FE-RX1
rx0_subdev_spec=A:A
tx0_antenna=TX/RX
tx0_id=Unknown (0xffff)
tx0_ref_power_key=b2xx_pwr_tx_tx+rx
tx0_ref_power_serial=3113D17#A
tx0_serial=
tx0_subdev_name=FE-TX1
tx0_subdev_spec=A:A

zsh: segmentation fault SoapySDRUtil --make="driver=uhd,type=b200"

Also:

% SoapySDRUtil --probe="driver=uhd"
######################################################

Soapy SDR -- the SDR abstraction library

######################################################

Probe device driver=uhd
[INFO] [UHD] Mac OS; Clang version 13.1.6 (clang-1316.0.21.2); Boost_107800; UHD_4.2.0.HEAD-0-g46a70d85
[INFO] [b200_impl.cpp:421] [B200] Detected Device: B200
[INFO] [B200] Detected Device: B200
[INFO] [b200_impl.cpp:468] [B200] Operating over USB 3.
[INFO] [B200] Operating over USB 3.
[INFO] [b200_impl.cpp:619] [B200] Initialize CODEC control...
[INFO] [B200] Initialize CODEC control...
[INFO] [b200_impl.cpp:688] [B200] Initialize Radio control...
[INFO] [B200] Initialize Radio control...
[INFO] [b200_impl.cpp:1099] [B200] Performing register loopback test...
[INFO] [B200] Performing register loopback test...
[INFO] [b200_impl.cpp:1108] [B200] Register loopback test passed
[INFO] [B200] Register loopback test passed
[INFO] [b200_impl.cpp:815] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [b200_impl.cpp:1149] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [b200_impl.cpp:1162] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [B200] Actually got clock rate 16.000000 MHz.


-- Device identification

driver=b200
hardware=B200
fpga_version=16.0
fw_version=8.0
mboard_id=B200
mboard_name=MyB200
mboard_serial=3113D17
rx0_antenna=RX2
rx0_id=Unknown (0xffff)
rx0_ref_power_key=b2xx_pwr_rx_rx2
rx0_ref_power_serial=3113D17#A
rx0_serial=
rx0_subdev_name=FE-RX1
rx0_subdev_spec=A:A
tx0_antenna=TX/RX
tx0_id=Unknown (0xffff)
tx0_ref_power_key=b2xx_pwr_tx_tx+rx
tx0_ref_power_serial=3113D17#A
tx0_serial=
tx0_subdev_name=FE-TX1
tx0_subdev_spec=A:A


-- Peripheral summary

Channels: 1 Rx, 1 Tx
Timestamps: YES
Clock sources: internal, external, gpsdo
Time sources: none, internal, external, gpsdo
Sensors: ref_locked
* ref_locked (Ref): false unlocked
GPIOs: FP0, RXA, TXA


-- RX Channel 0

Full-duplex: YES
Supports AGC: YES
Stream formats: CS8, CS12, CS16, CF32, CF64
Native format: CS16 [full-scale=32768]
Stream args:
* Samples per packet - The number of samples per packet.
[key=spp, units=samples, default=0, type=int]
* Bus format - The format of samples over the bus.
[key=WIRE, type=string, options=(sc8, sc16)]
* Peak value - The peak value for scaling in complex byte mode.
[key=peak, default=1.0, type=float]
* Receive frame buffer size - The size an individual datagram or frame in bytes.
[key=recv_frame_size, units=bytes, type=int]
* Receive number of buffers - The number of available buffers.
[key=num_recv_frames, units=buffers, type=int]
* Full-scale amplitude - Specifies the full-scale amplitude when using floats (not supported for all devices).
[key=fullscale, default=1.0, type=float]
Antennas: TX/RX, RX2
Corrections: DC removal
Full gain range: [0, 76, 1] dB
PGA gain range: [0, 76, 1] dB
Full freq range: [42, 6008] MHz
RF freq range: [42, 6008] MHz
BB freq range: [-8, 8] MHz
Tune args:
* N divider - Whether the daughterboard tune code should use an integer N divider or fractional N divider (not supported for all devices).
[key=mode_n, type=string, options=(integer, fractional)]
* Integer-N tuning step - The step between valid tunable frequencies when using integer-N tuning (not supported for all devices).
[key=int_n_step, type=float]
Sample rates: 0.03125, 0.0314961, 0.031746, 0.032, 0.0322581, ..., 3.2, 4, 5.33333, 8, 16 MSps
Filter bandwidths: [0.2, 56] MHz
Sensors: temp, rssi, lo_locked
* temp (temp): 34.912285 C
* rssi (RSSI): -50.750000 dB
* lo_locked (LO): true locked


-- TX Channel 0

Full-duplex: YES
Supports AGC: NO
Stream formats: CS8, CS12, CS16, CF32, CF64
Native format: CS16 [full-scale=32768]
Stream args:
* Samples per packet - The number of samples per packet.
[key=spp, units=samples, default=0, type=int]
* Bus format - The format of samples over the bus.
[key=WIRE, type=string, options=(sc8, sc16)]
* Peak value - The peak value for scaling in complex byte mode.
[key=peak, default=1.0, type=float]
* Send frame buffer size - The size an individual datagram or frame in bytes.
[key=send_frame_size, units=bytes, type=int]
* Send number of buffers - The number of available buffers.
[key=num_send_frames, units=buffers, type=int]
* Full-scale amplitude - Specifies the full-scale amplitude when using floats (not supported for all devices).
[key=fullscale, default=1.0, type=float]
* Underflow policy - How the TX DSP should recover from underflow (not supported for all devices).
[key=underflow_policy, type=string, options=(next_burst, next_packet)]
Antennas: TX/RX
Full gain range: [0, 89.75, 0.25] dB
PGA gain range: [0, 89.75, 0.25] dB
Full freq range: [42, 6008] MHz
RF freq range: [42, 6008] MHz
BB freq range: [-8, 8] MHz
Tune args:
* N divider - Whether the daughterboard tune code should use an integer N divider or fractional N divider (not supported for all devices).
[key=mode_n, type=string, options=(integer, fractional)]
* Integer-N tuning step - The step between valid tunable frequencies when using integer-N tuning (not supported for all devices).
[key=int_n_step, type=float]
Sample rates: 0.03125, 0.0314961, 0.031746, 0.032, 0.0322581, ..., 3.2, 4, 5.33333, 8, 16 MSps
Filter bandwidths: [0.2, 56] MHz
Sensors: temp, lo_locked
* temp (temp): 34.912285 C
* lo_locked (LO): true locked

zsh: segmentation fault SoapySDRUtil --probe="driver=uhd"

@nzqo
Copy link

nzqo commented Apr 5, 2023

Did you ever manage to figure something out about this? I am facing the same issue, almost a year later, and there seems to have been no answer anywhere since then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants