aboutsummaryrefslogtreecommitdiff
path: root/support/scripts/reset.py
AgeCommit message (Collapse)Author
2012-08-22reset.py: Not every Unix is Linux.Marti Bolivar
Move the sysfs tests for Maple out of unix_get_maple_path() and into a new linux_get_maple_path(). This prevents unnecessary probing for a nonexistent /sys on e.g. OS X. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-08-22Improve Maple device detection in reset.py on LinuxDavid Kiliani
Adds a function to lookup the USB vendor & product id from the udev info in the sysfs tree. This removes invalid choices and reduces user queries for the correct ttyACM device. Signed-off-by: David Kiliani <mail@davidkiliani.de>
2012-08-20reset.py fixups for OS X 10.8.Marti Bolivar
As discussed on this forum thread: http://forums.leaflabs.com/topic.php?id=2451 Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-07-20reset.py: Remove advisory for 64-bit Linux.Marti Bolivar
We test on that platform now, and it does work. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-28reset.py: Use the real print function (requires Python 2.6+).Marti Bolivar
Use "from __future__ import print_function" so the recent py3k compatibility patches to reset.py preserve the old output in Python 2. This increases our minimum Python version to 2.6, but avoids ugly output Python 2, where print statements with a tuple argument print the tuple with parentheses etc. Python 2.6 came out almost four years ago, and it's widely available: - even on older Linux distros (e.g. Ubuntu 10.04 and Debian Squeeze have 2.6 default at time of writing), - on OS X since 10.6, - and Windows users will probably be installing from python.org anyway, so they've likely got a reasonably recent vintage. Dropping 2.5 support thus doesn't seem likely to cause problems. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2012-06-28 ventosus
Make the reset script work for both python2 and python3 Make the reset script work for both python2 and python3 by putting brackets around print statements and properly encoding the string sent with ser.write Signed-off-by: Hanspeter Portner <agenthp@users.sf.net>
2011-10-07reset.py: Hackishly silence DeprecationWarning.Marti Bolivar
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2011-09-26Add Windows support to DFU installation tools.Marti Bolivar
Tweak Makefile further for cs-make on Windows. Add Windows support to support/scripts/reset.py Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2010-09-17Improve reset reliability on OS X.Perry Hung
The USB reset scheme on OS X is unreliable. Adding a little bit of sleep seems to make it much more reliable. This will probably do until we get a chance to rewrite the USB stack and redo the whole auto-reset scheme...
2010-08-29Toolchain improvementsMarti Bolivar
Updated Makefile to read the directory where libmaple is from the environment variable LIBMAPLE_PATH, if it exists, defaulting to the current working directory otherwise. Updated reset.py to look around in /dev for the Maple serial port, prompting the user if there appear to be multiple possibilities and complaining if there aren't any.
2010-08-29fix reset.py to work on OS X,; .gitignore leaves out ~ files; cleanupMarti Bolivar
support/make/build-rules.mk
2010-06-10osx reset script changesbnewbold
2010-06-10new reset scheme, compatbile with oldbnewbold
2010-06-09added a somewhat broken version of the reset magic number scheme.AJM
current version gets stuck in the isr somewhere. not sure why or where. must debug.
2010-06-09first approach at modding the reset schemeAJM
now we reset from recv bytes. After receiving the DTR/RTS toggle the next byte in from usb is parsed as the program_delay. For now, this just delays the reset for a period to close the serial port gracefully. Later, this delay will perhaps inform the bootloader of how long to live for...
2010-05-28Moved reset script to support directoryPerry Hung
For kicks.