Hi all,
we just received some new N310s. Yeah!
They don't work! Noooo.
Let me explain what I tried so far and what I found out. So far, I work
with 2 devices.
Summary:
With factory default image I can find the device but `uhd_usrp_probe` fails.
With a newly flashed image on the SD card, The SFP ports don't show up
anymore.
How do I recover my device that doesn't show the SFP ports anymore?
What do I need to do to successfully run `uhd_usrp_probe`? Since this
command errors out with the same error as a flowgraph, I assume if I get
passed `uhd_usrp_probe` there is a good chance I'll be able to run a
flowgraph.
What is dtc? It errors out during FPGA image updates.
What is the latest `sdimg` to install? I want to make sure I'm up to
date. As soon as I figured out why the devices don't work.
I append all the information I could find so far for my devices.
Cheers
Johannes
On Host:
$ uhd_config_info --print-all
UHD 3.15.0.git-79-gf353db8f
Build date: Tue, 08 Oct 2019 12:08:10
C compiler: GNU 7.4.0
C++ compiler: GNU 7.4.0
C flags: -DUHD_RFNOC_ENABLED -DHAVE_CONFIG_H -DUHD_LOG_MIN_LEVEL=1
-DUHD_LOG_CONSOLE_LEVEL=2 -DUHD_LOG_FILE_LEVEL=2 -DUHD_LOG_CONSOLE_COLOR
C++ flags: -DUHD_RFNOC_ENABLED -DHAVE_CONFIG_H -DUHD_LOG_MIN_LEVEL=1
-DUHD_LOG_CONSOLE_LEVEL=2 -DUHD_LOG_FILE_LEVEL=2 -DUHD_LOG_CONSOLE_COLOR
-fvisibility=hidden -fvisibility-inlines-hidden
Enabled components: LibUHD, LibUHD - C API, LibUHD - Python API,
Examples, Utils, Tests, USB, B100, B200, USRP1, USRP2, X300, N230, MPMD,
N300, N320, E320, E300, OctoClock
Install prefix: <install_prefix>/gnuradio38
Boost version: 1.65.1
Libusb version: 1.0.23
Package path: <install_prefix>/gnuradio38
Images directory: <install_prefix>/gnuradio38/share/uhd/images
ABI version string: 3.15.0
$ uhd_image_loader --args "type=n3xx,addr=X.X.X.212,fpga=HG"
[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501;
UHD_3.15.0.git-79-gf353db8f
[INFO] [MPMD] Initializing 1 device(s) in parallel with args:
mgmt_addr=X.X.X.128,type=n3xx,product=n310,serial=XXXXXXX,claimed=False,skip_init=1
[INFO] [MPMD] Claimed device without full initialization.
[INFO] [MPMD IMAGE LOADER] Starting update. This may take a while.
[INFO] [MPM.PeriphManager] Updating component `fpga'
[INFO] [MPM.PeriphManager] Updating component `dts'
[ERROR] [MPM.PeriphManager] Error executing `dtc': Command '['dtc',
'--symbols', '-O', 'dtb', '-q', '-o', '/lib/firmware/n310.dtbo',
'/lib/firmware/n310.dts']' returned non-zero exit status 1
[INFO] [MPM.RPCServer] Resetting peripheral manager.
[INFO] [MPM.PeriphManager] Device serial number: XXXXXXX
[INFO] [MPM.PeriphManager] Initialized 2 daughterboard(s).
[WARNING] [MPM.PeriphManager] Actual minor compat ahead of expected
compat for component `FPGA'. Expected: 5.2 Actual: 5.3
[INFO] [MPM.PeriphManager] init() called with device args `'.
[INFO] [MPMD IMAGE LOADER] Update component function succeeded.
Rebooted devices, then:
$ uhd_find_devices
--------------------------------------------------
-- UHD Device 0
--------------------------------------------------
Device Address:
serial: XXXXXX
addr: X.X.X.212
claimed: False
mgmt_addr: X.X.X.128
product: n310
type: n3xx
--------------------------------------------------
-- UHD Device 1
--------------------------------------------------
Device Address:
serial: n/a
claimed: False
mgmt_addr: X.X.X.123
product: n/a
reachable: No
type: n/a
On Device 0:
$ uhd_config_info --print-all
UHD 3.13.0.2-0-unknown
Build date: Fri, 08 Mar 2019 18:43:32
C compiler: GNU 7.3.0
C++ compiler: GNU 7.3.0
C flags: -DUHD_IMAGES_DIR=OFF -DHAVE_CONFIG_H -DUHD_LOG_MIN_LEVEL=1
-DUHD_LOG_CONSOLE_LEVEL=2 -DUHD_LOG_FILE_LEVEL=2 -DUHD_LOG_CONSOLE_COLOR
-DHAVE_LIBERIO -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard
-mcpu=cortex-a9
--sysroot=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.13.0.2-r0/recipe-sysroot
-O2 -pipe -g -feliminate-unused-debug-types
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.13.0.2-r0=/usr/src/debug/uhd/3.13.0.2-r0
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.13.0.2-r0/recipe-sysroot=
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.13.0.2-r0/recipe-sysroot-native=
-march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9
--sysroot=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.13.0.2-r0/recipe-sysroot
C++ flags: -DUHD_IMAGES_DIR=OFF -DHAVE_CONFIG_H -DUHD_LOG_MIN_LEVEL=1
-DUHD_LOG_CONSOLE_LEVEL=2 -DUHD_LOG_FILE_LEVEL=2 -DUHD_LOG_CONSOLE_COLOR
-DHAVE_LIBERIO -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard
-mcpu=cortex-a9
--sysroot=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.13.0.2-r0/recipe-sysroot
-O2 -pipe -g -feliminate-unused-debug-types
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.13.0.2-r0=/usr/src/debug/uhd/3.13.0.2-r0
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.13.0.2-r0/recipe-sysroot=
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.13.0.2-r0/recipe-sysroot-native=
-fvisibility-inlines-hidden -march=armv7-a -marm -mfpu=neon
-mfloat-abi=hard -mcpu=cortex-a9
--sysroot=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.13.0.2-r0/recipe-sysroot
-fvisibility=hidden -fvisibility-inlines-hidden
Enabled components: LibUHD, LibUHD - C API, Examples, Utils, Tests,
LIBERIO, USB, GPSD, MPMD, N300, E320
Install prefix: /usr
Boost version: 1.66
Libusb version: 1.0.23
Package path: /usr
Images directory: /usr/share/uhd/images
ABI version string: 3.13.0
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
qlen 1000
link/ether 00:80:2f:26:6c:c1 brd ff:ff:ff:ff:ff:ff
inet X.X.X.128/24 brd X.X.X.255 scope global dynamic eth0
valid_lft 43114sec preferred_lft 43114sec
3: sfp0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
qlen 1000
link/ether 00:80:2f:26:6c:c2 brd ff:ff:ff:ff:ff:ff
inet X.X.X.212/24 brd X.X.X.255 scope global sfp0
valid_lft forever preferred_lft forever
4: sfp1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 8000 qdisc pfifo_fast
qlen 1000
link/ether 00:80:2f:26:6c:c3 brd ff:ff:ff:ff:ff:ff
On Host for Device 0:
$ uhd_usrp_probe --args="addr=X.X.X.212"
[INFO] [UHD] linux; GNU C++ version 7.4.0; Boost_106501;
UHD_3.15.0.git-79-gf353db8f
[INFO] [MPMD] Initializing 1 device(s) in parallel with args:
mgmt_addr=X.X.X.128,type=n3xx,product=n310,serial=XXXXXXX,claimed=False,addr=X.X.X.212
[WARNING] [MPMD] Could not determine link speed; using 1GibE max speed
of 1.25e+08
[INFO] [MPM.PeriphManager] init() called with device args
`product=n310,mgmt_addr=X.X.X.128'.
[ERROR] [UHD] Exception caught in safe-call.
in ctrl_iface_impl<_endianness>::~ctrl_iface_impl() [with
uhd::endianness_t _endianness = (uhd::endianness_t)0]
at /home/ant/gnuradio38/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:52
this->send_cmd_pkt(0, 0, true); -> EnvironmentError: IOError: Block ctrl
(CE_00_Port_30) no response packet - AssertionError: bool(buff)
in uint64_t ctrl_iface_impl<_endianness>::wait_for_ack(bool, double)
[with uhd::endianness_t _endianness = (uhd::endianness_t)0; uint64_t =
long unsigned int]
at /home/ant/gnuradio38/src/uhd/host/lib/rfnoc/ctrl_iface.cpp:151
[ERROR] [MPMD] Failure during block enumeration: EnvironmentError:
IOError: recv error on socket: Connection refused
Error: RuntimeError: Failed to run enumerate_rfnoc_blocks()
That's where I hang now.
The same error appears in case I try to run a GR flowgraph with that device.
For Device 1:
I followed: https://files.ettus.com/manual/page_usrp_n3xx.html
$ uhd_images_downloader -t n3xx_common_sdimg_default
$ sudo dd if=<YOUR_IMAGE> of=/dev/<YOUR_SD_CARD> bs=1M
After quite some time `dd` reported success.
On Host
$ uhd_find_devices
--------------------------------------------------
-- UHD Device 1
--------------------------------------------------
Device Address:
serial: n/a
claimed: False
mgmt_addr: X.X.X.123
product: n/a
reachable: No
type: n/a
On Device 1:
$ uhd_config_info --print-all
UHD 3.14.0.0-0-g655b9b0f
Build date: Tue, 19 Feb 2019 00:05:23
C compiler: GNU 7.3.0
C++ compiler: GNU 7.3.0
C flags: -DHAVE_CONFIG_H -DUHD_LOG_MIN_LEVEL=1 -DUHD_LOG_CONSOLE_LEVEL=2
-DUHD_LOG_FILE_LEVEL=2 -DUHD_LOG_CONSOLE_COLOR -DHAVE_LIBERIO
-march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9
--sysroot=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.14.0.0-r1/recipe-sysroot
-O2 -pipe -g -feliminate-unused-debug-types
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.14.0.0-r1=/usr/src/debug/uhd/3.14.0.0-r1
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.14.0.0-r1/recipe-sysroot=
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.14.0.0-r1/recipe-sysroot-native=
-march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9
--sysroot=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.14.0.0-r1/recipe-sysroot
C++ flags: -DHAVE_CONFIG_H -DUHD_LOG_MIN_LEVEL=1
-DUHD_LOG_CONSOLE_LEVEL=2 -DUHD_LOG_FILE_LEVEL=2 -DUHD_LOG_CONSOLE_COLOR
-DHAVE_LIBERIO -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard
-mcpu=cortex-a9
--sysroot=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.14.0.0-r1/recipe-sysroot
-O2 -pipe -g -feliminate-unused-debug-types
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.14.0.0-r1=/usr/src/debug/uhd/3.14.0.0-r1
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.14.0.0-r1/recipe-sysroot=
-fdebug-prefix-map=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.14.0.0-r1/recipe-sysroot-native=
-fvisibility-inlines-hidden -march=armv7-a -marm -mfpu=neon
-mfloat-abi=hard -mcpu=cortex-a9
--sysroot=/home/oe-builder/build/tmp-glibc/work/cortexa9hf-neon-oe-linux-gnueabi/uhd/3.14.0.0-r1/recipe-sysroot
-fvisibility=hidden -fvisibility-inlines-hidden
Enabled components: LibUHD, LibUHD - C API, Examples, Utils, Tests,
LIBERIO, USB, GPSD, MPMD, N300, N320, E320
Install prefix: /usr
Boost version: 1.66
Libusb version: 1.0.23
Package path: /usr
Images directory: /usr/share/uhd/images
ABI version string: 3.14.0
$ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
qlen 1000
link/ether 00:80:2f:26:6c:b8 brd ff:ff:ff:ff:ff:ff
inet X.X.X.123/24 brd X.X.X.255 scope global dynamic eth0
valid_lft 40613sec preferred_lft 40613sec
The SFP ethernet devices don;t show up.
Also, I wasn't able to load a current FPGA image on the device. Since
the SFP port does not show up, I tried to use `mgmt_addr=X.X.X.123`.
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com