diff options
author | Philip Balister <philip@opensdr.com> | 2010-04-20 21:46:51 +0000 |
---|---|---|
committer | Philip Balister <philip@opensdr.com> | 2010-04-20 21:46:51 +0000 |
commit | de668d9924b6176e8296dee5929aab1e37374d8b (patch) | |
tree | 843d4512b84867cf2624e971b1500ad52e6fea3f /host | |
parent | 839d9c39542db356ad1b955e3a3d9e7aabb071bc (diff) | |
download | uhd-de668d9924b6176e8296dee5929aab1e37374d8b.tar.gz uhd-de668d9924b6176e8296dee5929aab1e37374d8b.tar.bz2 uhd-de668d9924b6176e8296dee5929aab1e37374d8b.zip |
Add scripts to read and write board id info into usrp e id eeprom
Diffstat (limited to 'host')
-rwxr-xr-x | host/apps/omap_debug/read_board_id.sh | 10 | ||||
-rwxr-xr-x | host/apps/omap_debug/write_board_id.sh | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/host/apps/omap_debug/read_board_id.sh b/host/apps/omap_debug/read_board_id.sh new file mode 100755 index 000000000..96081f219 --- /dev/null +++ b/host/apps/omap_debug/read_board_id.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +i2cget -y 3 0x51 0x00 b +i2cget -y 3 0x51 0x01 b +i2cget -y 3 0x51 0x02 b +i2cget -y 3 0x51 0x03 b +i2cget -y 3 0x51 0x04 b +i2cget -y 3 0x51 0x05 b + + diff --git a/host/apps/omap_debug/write_board_id.sh b/host/apps/omap_debug/write_board_id.sh new file mode 100755 index 000000000..139394a4c --- /dev/null +++ b/host/apps/omap_debug/write_board_id.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +i2cset -y 3 0x51 0x00 0x00 +i2cset -y 3 0x51 0x01 0x03 +i2cset -y 3 0x51 0x02 0x00 +i2cset -y 3 0x51 0x03 0x00 +i2cset -y 3 0x51 0x04 0x01 +i2cset -y 3 0x51 0x05 0x00 + + |