From de668d9924b6176e8296dee5929aab1e37374d8b Mon Sep 17 00:00:00 2001 From: Philip Balister Date: Tue, 20 Apr 2010 21:46:51 +0000 Subject: Add scripts to read and write board id info into usrp e id eeprom --- host/apps/omap_debug/read_board_id.sh | 10 ++++++++++ host/apps/omap_debug/write_board_id.sh | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100755 host/apps/omap_debug/read_board_id.sh create mode 100755 host/apps/omap_debug/write_board_id.sh (limited to 'host/apps/omap_debug') 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 + + -- cgit v1.2.3