projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
74b2005
)
Add check for IXP42x A0 stepping.
author
Jose Vasconcellos
<jvasco@verizon.net>
Tue, 24 Mar 2009 12:24:06 +0000
(12:24 +0000)
committer
Jose Vasconcellos
<jvasco@verizon.net>
Tue, 24 Mar 2009 12:24:06 +0000
(12:24 +0000)
SVN-Revision: 15013
scripts/flashing/jungo-image.py
patch
|
blob
|
history
diff --git
a/scripts/flashing/jungo-image.py
b/scripts/flashing/jungo-image.py
index d4143ea6d0df89633fea59b63542566c8612444a..9947e7c72091ef82652d41318bbc0b22c86b9b27 100644
(file)
--- a/
scripts/flashing/jungo-image.py
+++ b/
scripts/flashing/jungo-image.py
@@
-62,8
+62,19
@@
def start_server(server):
####################
def get_flash_size():
####################
def get_flash_size():
+ # make sure we don't have an A0 stepping
+ tn.write("cat /proc/cpuinfo\n")
+ buf = tn.read_until("Returned 0", 3)
+ if not buf:
+ print "Unable to obtain CPU information; make sure to not use A0 stepping!"
+ elif buf.find('rev 0') > 0:
+ print "Warning: IXP42x stepping A0 detected!"
+ if imagefile or url:
+ print "Error: No linux support for A0 stepping!"
+ sys.exit(2)
+
+ # now get flash size
tn.write("cat /proc/mtd\n")
tn.write("cat /proc/mtd\n")
- # wait for prompt
buf = tn.read_until("Returned 0", 3)
if buf:
i = buf.find('mtd0:')
buf = tn.read_until("Returned 0", 3)
if buf:
i = buf.find('mtd0:')
@@
-167,7
+178,7
@@
for o, a in opts:
usage()
sys.exit(1)
elif o in ("-V", "--version"):
usage()
sys.exit(1)
elif o in ("-V", "--version"):
- print "%s: 0.1
0
" % sys.argv[0]
+ print "%s: 0.1
1
" % sys.argv[0]
sys.exit(1)
elif o in ("-d", "--no-dump"):
do_dump = 1
sys.exit(1)
elif o in ("-d", "--no-dump"):
do_dump = 1