Tuesday, January 10, 2023

Re: Updating FPGA image on Ettus N321

On 10/01/2023 18:03, Joseph Maloyan wrote:
> Hello,
>
> I am currently trying to update the image of the FPGA. I am following
> the guide at this link...
> https://kb.ettus.com/USRP_N300/N310/N320/N321_Getting_Started_Guide
>
> When I try to update through network, I get the following regarding
> mismatched compat numbers...
>
>
> INFO] [UHD] linux; GNU C++ version 9.4.0; Boost_107100;
> UHD_4.3.0.HEAD-0-g1f8fd345
> [INFO] [MPMD] Initializing 1 device(s) in parallel with args:
> mgmt_addr=192.168.1.230,type=n3xx,product=n320,serial=3255102,claimed=False,skip_init=1
> [INFO] [MPM.main] Launching USRP/MPM, version: 3.14.1.1-g0347a6d8
> [INFO] [MPM.main] Spawning RPC process...
> [INFO] [MPM.PeriphManager] Device serial number: 3255102
> [INFO] [MPM.Rhodium-0] Enabling LO distribution board
> [INFO] [MPM.Rhodium-0] Successfully loaded all peripherals!
> [INFO] [MPM.Rhodium-1] Successfully loaded all peripherals!
> [INFO] [MPM.PeriphManager] Initialized 2 daughterboard(s).
> [ERROR] [MPM.PeriphManager] Major compat number mismatch for component
> `FPGA': Expected: 5.3 Actual: 8.1
> [ERROR] [MPM.PeriphManager] Failed to initialize motherboard: Major
> compat number mismatch for component `FPGA': Expected: 5.3 Actual: 8.1
> [ERROR] [MPM.PeriphManager] Cannot run init(), device was never fully
> initialized!
> [INFO] [MPM.RPCServer] RPC server ready!
> [INFO] [MPM.RPCServer] Spawning watchdog task...
> [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/n320.dtbo',
> '/lib/firmware/n320.dts']' returned non-zero exit status 1
> [INFO] [MPM.RPCServer] Resetting peripheral manager.
> [INFO] [MPM.PeriphManager] Device serial number: 3255102
> [ERROR] [UHD] An unexpected exception was caught in a task loop.The
> task loop will now exit, things may not work.rpc::timeout: Timeout of
> 10000ms while calling RPC function 'reclaim'
> [ERROR] [UHD] Exception caught in safe-call.
>   in ~mpmd_mboard_impl
>   at
> /home/mirsl102b/workarea/uhd/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp:320
> dump_logs(); _claimer_task.reset(); if (not
> rpc->request_with_token<bool>("unclaim")) {
> uhd::_log::log(uhd::log::warning,
> "/home/mirsl102b/workarea/uhd/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp",
> 322, "MPMD", std::this_thread::get_id()) << "Failure to ack
> unclaim!";; } -> rpc::timeout: Timeout of 10000ms while calling RPC
> function 'get_log_buf'
> Error: rpc::timeout: Timeout of 120000ms while calling RPC function
> 'update_component'
>
> When I try to update through embedded mode I get the following...
>
> INFO] [UHD] linux; GNU C++ version 9.4.0; Boost_107100;
> UHD_4.3.0.HEAD-0-g1f8fd345
> [INFO] [MPMD] Initializing 1 device(s) in parallel with args:
> mgmt_addr=192.168.1.230,type=n3xx,product=n320,serial=3255102,claimed=False,addr=192.168.1.230,skip_init=1
> [INFO] [MPM.main] Launching USRP/MPM, version: 3.14.1.1-g0347a6d8
> [INFO] [MPM.main] Spawning RPC process...
> [INFO] [MPM.PeriphManager] Device serial number: 3255102
> [ERROR] [MPM.PeriphManager] Failed to initialize motherboard: No
> device 'e0006000.spi' in 'platform'
> [ERROR] [MPM.PeriphManager] Cannot run init(), device was never fully
> initialized!
> [INFO] [MPM.RPCServer] RPC server ready!
> [INFO] [MPM.RPCServer] Spawning watchdog task...
> [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/n320.dtbo',
> '/lib/firmware/n320.dts']' returned non-zero exit status 1
> [INFO] [MPM.RPCServer] Resetting peripheral manager.
> [INFO] [MPM.PeriphManager] Device serial number: 3255102
> [ERROR] [UHD] An unexpected exception was caught in a task loop.The
> task loop will now exit, things may not work.rpc::timeout: Timeout of
> 10000ms while calling RPC function 'reclaim'
> [ERROR] [UHD] Exception caught in safe-call.
>   in ~mpmd_mboard_impl
>   at
> /home/mirsl102b/workarea/uhd/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp:320
> dump_logs(); _claimer_task.reset(); if (not
> rpc->request_with_token<bool>("unclaim")) {
> uhd::_log::log(uhd::log::warning,
> "/home/mirsl102b/workarea/uhd/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp",
> 322, "MPMD", std::this_thread::get_id()) << "Failure to ack
> unclaim!";; } -> rpc::timeout: Timeout of 10000ms while calling RPC
> function 'get_log_buf'
> Error: rpc::timeout: Timeout of 120000ms while calling RPC function
> 'update_component'
>
> What is causing this? I currently have the latest version of USRP, and
> I have downloaded the latest images through sudo uhd_images_downloader.
>
> Thanks
> Joe
>
>
>
This is a fairly USRP-specific question, unrelated to Gnu Radio in
particular.

This type of question belongs on the usrp-users mailing list.

I don't own an N321 myself, but I've always just used a
full-system-image update on my N310:

https://kb.ettus.com/Writing_the_USRP_File_System_Disk_Image_to_a_SD_Card

I'd strongly suggest joining the usrp-users mailing list for this type
of question, however.

No comments:

Post a Comment