aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-04-20 21:46:51 +0000
committerPhilip Balister <philip@opensdr.com>2010-04-20 21:46:51 +0000
commitde668d9924b6176e8296dee5929aab1e37374d8b (patch)
tree843d4512b84867cf2624e971b1500ad52e6fea3f /host
parent839d9c39542db356ad1b955e3a3d9e7aabb071bc (diff)
downloaduhd-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-xhost/apps/omap_debug/read_board_id.sh10
-rwxr-xr-xhost/apps/omap_debug/write_board_id.sh10
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
+
+