aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/fx2/utils/build_eeprom.py
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-14 17:15:38 -0700
committerJosh Blum <josh@joshknows.com>2011-06-14 17:56:54 -0700
commitdeae10bc1c85726ed7c206abca37a869c6f77cea (patch)
tree1bd8f8dc2734af460d8434e508d33ecdb9cf5fe7 /firmware/fx2/utils/build_eeprom.py
parent2d8d1a4d1ad15482e25f52e1fa3ad8ae94490a8e (diff)
downloaduhd-deae10bc1c85726ed7c206abca37a869c6f77cea.tar.gz
uhd-deae10bc1c85726ed7c206abca37a869c6f77cea.tar.bz2
uhd-deae10bc1c85726ed7c206abca37a869c6f77cea.zip
b100: added b100 firmware (squashed)
Diffstat (limited to 'firmware/fx2/utils/build_eeprom.py')
-rwxr-xr-xfirmware/fx2/utils/build_eeprom.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/firmware/fx2/utils/build_eeprom.py b/firmware/fx2/utils/build_eeprom.py
index 298ccc00c..af425554a 100755
--- a/firmware/fx2/utils/build_eeprom.py
+++ b/firmware/fx2/utils/build_eeprom.py
@@ -27,8 +27,10 @@ from optparse import OptionParser
# USB Vendor and Product ID's
-VID = 0xfffe # Free Software Folks
-
+USRP1VID = 0xfffe # Free Software Folks
+USRP1PID = 0x0002
+USRP1PVID= 0x2500 # Ettus Research
+USRP1PPID= 0x0001
def msb (x):
return (x >> 8) & 0xff
@@ -50,9 +52,11 @@ def build_eeprom_image (filename, rev):
start_addr = 0 #prove me wrong
if(rev == 1):
- PID = 0x0002 #USRP1
+ VID = USRP1VID
+ PID = USRP1PPID
else:
- PID = 0x0003 #USRP1P
+ VID = USRP1PVID
+ PID = USRP1PPID
rom_header = [
0xC2, # boot from EEPROM