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

M2K test jig: Fix libiio version and add a poweroff button. #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pluto-m2k/config/m2k/jig_pins_config
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
START_BUTTON=pin1
REBOOT_BUTTON="pin7"

PASSED_LED=pin3
FAILED_LED=pin4
READY_LED=pin5
PROGRESS_LED=pin2

__check_and_reboot() {
local logfile=$1
if grep -q "Button pressed 0x80" $logfile ; then
shutdown now
return 0
fi
return 1
}
9 changes: 7 additions & 2 deletions pluto-m2k/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,19 @@ __download_github_common() {
setup_libiio() {
[ ! -d "work/libiio" ] || return 0

__download_github_common libiio
#__download_github_common libiio
git clone https://github.com/analogdevicesinc/libiio work/libiio

pushd work/libiio
git checkout 52e6dc3
mkdir -p build
pushd build

cmake ..
cmake -DHAVE_DNS_SD=OFF -DHAVE_AVAHI=OFF ..
make -j3
# TEMP: the install is needed to replace the iiod
# the system iiod uses DNS SD; the new installed version will disable the DNS SD
sudo make install

popd
popd
Expand Down