New SD card image (2014_R2 prerelease) available for download by mhennerich
Hi All,
New SD card image (2014_R2 prerelease) available for download.
http://swdownloads.analog.com/2014_R2-2014_12_12.bin.xz
(MD5: 8a8ac6a83977f99e3e6f6deb7f2de760 2014_R2-2014_12_12.bin.xz)
Installation instructions can be found here : https://wiki.analog.com/resources/tools-software/linux-software/zynq_images
Features:
- Linaro 14.04
- Linux analog 3.17.0-gdf1ca8f #1 SMP PREEMPT Fri Dec 12 11:39:41 EET 2014 armv7l armv7l armv7l GNU/Linux
- U-Boot 2014.07 (including uEnv support)
- Automated ext4 & FAT partition repair (copy uramdisk.image.gz to the root of the SD FAT partition)
- Latest IIO tools build from the 2014_R2 release branches.
- Gnu Radio
The new image supports following targets:
- zynq-zc702-adv7511
- zynq-zc702-adv7511-ad9361-fmcomms2-3
- zynq-zc702-adv7511-ad9361-fmcomms5
- zynq-zc702-adv7511-ad9364-fmcomms4
- zynq-zc702-adv7511-fmcomms1
- zynq-zc706-adv7511
- zynq-zc706-adv7511-ad9361-fmcomms2-3
- zynq-zc706-adv7511-ad9361-fmcomms2-3-pr
- zynq-zc706-adv7511-ad9361-fmcomms5
- zynq-zc706-adv7511-ad9364-fmcomms4
- zynq-zc706-adv7511-ad9434-fmc-500ebz
- zynq-zc706-adv7511-ad9625-fmcadc2
- zynq-zc706-adv7511-fmcdaq2
- zynq-zc706-adv7511-fmcjesdadc1
- zynq-zc706-adv7511-fmcomms1
- zynq-zc706-adv7511-fmcomms6
- zynq-zed-adv7511
- zynq-zed-adv7511-ad9361-fmcomms2-3
- zynq-zed-adv7511-ad9364-fmcomms4
- zynq-zed-adv7511-ad9467-fmc-250ebz
- zynq-zed-adv7511-fmcmotcon1
- zynq-zed-adv7511-fmcomms1
- zynq-mini-itx-adv7511
- zynq-mini-itx-adv7511-ad9361-fmcomms2-3
- zynq-mini-itx-adv7511-ad9361-fmcomms2-3-pr
- zynq-mini-itx-adv7511-ad9364-fmcomms4
- sockit-ad9361
FPGA configuration files and Linux are built from following sources:
Linux repository:https://github.com/analogdevicesinc/linux.git
Linux branch:2014_R2
Linux SHA:df1ca8f9ba47a74aea29d42457f3f3e2e291d4eb
HDL repository:https://github.com/analogdevicesinc/hdl.git
HDL branch:hdl_2014_r2
HDL SHA:842ba19aaaf40dfd45188a4a68e8e7d063e9690c
Greetings,
Michael
RE: New SD card image (2014_R2 prerelease) available for download by jsaari@defense.mrcy.com:
Are there any release notes available?
A couple of trip-ups from the 2013 + updates circa Nov 2014:
1) The devices for AD9361 look to have changed. The 2013 had iio:deviceN where N ::= [0:4] where device4 was the ADC for use with iio_readdev et al. Now 2014_R2 has N ::= [0:6] where device6 might be the ADC (I was working my way through understanding the devices three weeks ago when life interrupted my progress). Of course, if you go with a "name" search, the names are the same:
2013+:
analog@linaro-ubuntu-desktop:~$ for f in /sys/bus/iio/devices/iio:device* ; do echo $f $(cat $f/name) ; done
/sys/bus/iio/devices/iio:device0 ad7291
/sys/bus/iio/devices/iio:device1 ad9361-phy
/sys/bus/iio/devices/iio:device2 xadc
/sys/bus/iio/devices/iio:device3 cf-ad9361-dds-core-lpc
/sys/bus/iio/devices/iio:device4 cf-ad9361-lpc
2014_R2:
analog@analog:~/zedboard_tests/analog/tests/libiio$ for f in /sys/bus/iio/devices/iio:device* ; do echo $f $(cat $f/name) ; done
/sys/bus/iio/devices/iio:device0 ad7291
/sys/bus/iio/devices/iio:device1 ad9361-phy
/sys/bus/iio/devices/iio:device2 xadc
/sys/bus/iio/devices/iio:device3 adf4351-udc-tx-pmod
/sys/bus/iio/devices/iio:device4 adf4351-udc-rx-pmod
/sys/bus/iio/devices/iio:device5 cf-ad9361-dds-core-lpc
/sys/bus/iio/devices/iio:device6 cf-ad9361-lpc
2) The device permissions are more constrained. Most of the devices had 0666 permissions and were usable by non-root users. 2014_R2 has mostly 0644 permissions. Is there a reason for this change? Also, are the permissions managed in some common place (udev does not look to be involved)?
Walking it through strace reveals these changes necessary to run iio_readdev or ad9361-iiostream as non-root:
sudo chmod 0666 /sys/bus/iio/devices/iio:device1/in_voltage0_rf_port_select
sudo chmod 0666 /sys/bus/iio/devices/iio:device1/in_voltage_rf_bandwidth
sudo chmod 0666 /sys/bus/iio/devices/iio:device1/in_voltage_sampling_frequency
sudo chmod 0666 /sys/bus/iio/devices/iio:device1/out_altvoltage0_RX_LO_frequency
sudo chmod 0666 /sys/bus/iio/devices/iio:device6/buffer/enable
sudo chmod 0666 /sys/bus/iio/devices/iio:device6/buffer/length
sudo chmod 0666 /dev/iio:device6
sudo chmod 0666 /sys/bus/iio/devices/iio:device6/scan_elements/in_voltage0_en
sudo chmod 0666 /sys/bus/iio/devices/iio:device6/scan_elements/in_voltage1_en
sudo chmod 0666 /sys/bus/iio/devices/iio:device6/scan_elements/in_voltage2_en
sudo chmod 0666 /sys/bus/iio/devices/iio:device6/scan_elements/in_voltage3_en
3) Reported elsewhere - the adi_update_tools.sh script works, the adi_update_boot.sh
analog@analog:~$ sudo adi_update_boot.sh
--2014-12-30 17:21:18-- http://swdownloads.analog.com/update/latest_zynq_boot.txt
Resolving swdownloads.analog.com (swdownloads.analog.com)... 184.25.108.104, 184.25.108.139
Connecting to swdownloads.analog.com (swdownloads.analog.com)|184.25.108.104|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-12-30 17:21:19 ERROR 404: Not Found.
Download failed - aborting
RE: New SD card image (2014_R2 prerelease) available for download by ADIApproved:
Moved to Linux Software Drivers.
RE: New SD card image (2014_R2 prerelease) available for download by mhennerich:
Hi,
1) IIO device numbers are never static - by design you have to look them up by name.
2) We used to chmod all the device and sysfs files for you.
If you want the previous behavior simply restore:
chmod a+rw /dev/iio:device* 2> /dev/null || true
chmod a+rw /dev/video* 2> /dev/null || true
chmod a+rw /sys/bus/iio/devices/iio:device*/* 2> /dev/null || true
chmod a+rw /sys/bus/iio/devices/iio:device*/buffer/* 2> /dev/null || true
chmod a+rw /sys/bus/iio/devices/iio:device*/scan_elements/* 2> /dev/null || true
chmod a+rw /sys/bus/iio/devices/iio:device*/trigger/* 2> /dev/null || true
chmod a+rw /sys/bus/iio/devices/trigger*/* 2> /dev/null || true
chmod a+r /sys/bus/i2c/devices/*/eeprom 2> /dev/null || true
chmod a+rw /sys/bus/platform/devices/*.axi-jesd204b*/* 2> /dev/null || true
in the /etc/rc.local file.
3) This means that there is currently no update available.
-Michael