usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

UHD and flash install problem

MH
Michael Hartje
Thu, Apr 12, 2012 7:59 PM

I sent the follwing to discuss-gnuradio-list -- but it has never been
published..

so I will try it here:

After compiling Gnuradio 3.5.3, I got errors (seg faults) and other
indication to upgrade the very old uhd and fpga firmware software for
USRP N200 r2.

I got the images 003.004.000 and uhd source. I compiled and installed
the source on ubuntu 11.10

every step as expected from the building guides.

But trying to update the firmware-fpga fails

After powerdown und hold S2, the N200 did work with the follwing output
-------------------8<------------------

./usrp_n2xx_net_burner.py --addr=192.168.10.2 --fw=uhd-images_003.004.000-release/share/uhd/images/usrp_n200_fw.bin
USRP-N2XX found.
Flash size: 4194304
Sector size: 65536

Begin firmware write: this should take about 1 second...
Erasing 31744 bytes at 3145728
Writing image
Verifying data
Read back 16383 bytes
Success.
Time elapsed: 1.149688 seconds

./usrp_n2xx_net_burner.py  --addr=192.168.10.2 --fpga=uhd-images_003.004.000-release/share/uhd/images/usrp_n200_r2_fpga.bin

USRP-N2XX found.
Flash size: 4194304
Sector size: 65536

Begin FPGA write: this should take about 1 minute...
Erasing 1572864 bytes at 1572864
Traceback (most recent call last):
File "./usrp_n2xx_net_burner.py", line 522, in <module>
else: burner.burn_fw(fw=options.fw, fpga=options.fpga, reset=options.reset, safe=options.overwrite_safe, check_rev=not options.dont_check_rev)
File "./usrp_n2xx_net_burner.py", line 310, in burn_fw
self.erase_image(image_location, FPGA_IMAGE_SIZE_BYTES)
File "./usrp_n2xx_net_burner.py", line 452, in erase_image
in_pkt = self.send_and_recv(out_pkt)
File "./usrp_n2xx_net_burner.py", line 245, in send_and_recv
return self._sock.recv(UDP_MAX_XFER_BYTES)
socket.timeout: timed out

-------------------8<------------------
this leaves the system without the expeceted functionality

help is very welcome to get the system working again

thanks in advance

Michael Hartje

--
Prof. Dr.-Ing. Michael Hartje
Labor Hochspannungstechnik / Labor elektrische Messtechnik
Neustadtswall 30;  D-28199 Bremen
Tel +49 421 5905-3444    FAX +49 421 5905-3476

I sent the follwing to discuss-gnuradio-list -- but it has never been published.. so I will try it here: After compiling Gnuradio 3.5.3, I got errors (seg faults) and other indication to upgrade the very old uhd and fpga firmware software for USRP N200 r2. I got the images 003.004.000 and uhd source. I compiled and installed the source on ubuntu 11.10 every step as expected from the building guides. But trying to update the firmware-fpga fails After powerdown und hold S2, the N200 did work with the follwing output -------------------8<------------------ > ./usrp_n2xx_net_burner.py --addr=192.168.10.2 --fw=uhd-images_003.004.000-release/share/uhd/images/usrp_n200_fw.bin > USRP-N2XX found. > Flash size: 4194304 > Sector size: 65536 > > Begin firmware write: this should take about 1 second... > Erasing 31744 bytes at 3145728 > Writing image > Verifying data > Read back 16383 bytes > Success. > Time elapsed: 1.149688 seconds > > ./usrp_n2xx_net_burner.py --addr=192.168.10.2 --fpga=uhd-images_003.004.000-release/share/uhd/images/usrp_n200_r2_fpga.bin > > > USRP-N2XX found. > Flash size: 4194304 > Sector size: 65536 > > Begin FPGA write: this should take about 1 minute... > Erasing 1572864 bytes at 1572864 > Traceback (most recent call last): > File "./usrp_n2xx_net_burner.py", line 522, in <module> > else: burner.burn_fw(fw=options.fw, fpga=options.fpga, reset=options.reset, safe=options.overwrite_safe, check_rev=not options.dont_check_rev) > File "./usrp_n2xx_net_burner.py", line 310, in burn_fw > self.erase_image(image_location, FPGA_IMAGE_SIZE_BYTES) > File "./usrp_n2xx_net_burner.py", line 452, in erase_image > in_pkt = self.send_and_recv(out_pkt) > File "./usrp_n2xx_net_burner.py", line 245, in send_and_recv > return self._sock.recv(UDP_MAX_XFER_BYTES) > socket.timeout: timed out -------------------8<------------------ this leaves the system without the expeceted functionality help is very welcome to get the system working again thanks in advance Michael Hartje -- Prof. Dr.-Ing. Michael Hartje Labor Hochspannungstechnik / Labor elektrische Messtechnik Neustadtswall 30; D-28199 Bremen Tel +49 421 5905-3444 FAX +49 421 5905-3476
JB
Josh Blum
Fri, Apr 13, 2012 4:07 AM

Begin FPGA write: this should take about 1 minute...
Erasing 1572864 bytes at 1572864
Traceback (most recent call last):
File "./usrp_n2xx_net_burner.py", line 522, in <module>
else: burner.burn_fw(fw=options.fw, fpga=options.fpga, reset=options.reset, safe=options.overwrite_safe, check_rev=not options.dont_check_rev)
File "./usrp_n2xx_net_burner.py", line 310, in burn_fw
self.erase_image(image_location, FPGA_IMAGE_SIZE_BYTES)
File "./usrp_n2xx_net_burner.py", line 452, in erase_image
in_pkt = self.send_and_recv(out_pkt)
File "./usrp_n2xx_net_burner.py", line 245, in send_and_recv
return self._sock.recv(UDP_MAX_XFER_BYTES)
socket.timeout: timed out

Looks like a packet is lost during the burning process. Can you try this
with a different PC or ethernet card? Does the problem follow?

-josh

>> Begin FPGA write: this should take about 1 minute... >> Erasing 1572864 bytes at 1572864 >> Traceback (most recent call last): >> File "./usrp_n2xx_net_burner.py", line 522, in <module> >> else: burner.burn_fw(fw=options.fw, fpga=options.fpga, reset=options.reset, safe=options.overwrite_safe, check_rev=not options.dont_check_rev) >> File "./usrp_n2xx_net_burner.py", line 310, in burn_fw >> self.erase_image(image_location, FPGA_IMAGE_SIZE_BYTES) >> File "./usrp_n2xx_net_burner.py", line 452, in erase_image >> in_pkt = self.send_and_recv(out_pkt) >> File "./usrp_n2xx_net_burner.py", line 245, in send_and_recv >> return self._sock.recv(UDP_MAX_XFER_BYTES) >> socket.timeout: timed out > Looks like a packet is lost during the burning process. Can you try this with a different PC or ethernet card? Does the problem follow? -josh