OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [mips/] [ref4955/] [v2_0/] [misc/] [slow_cat.tcl] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#!/bin/bash
2
# restart using a Tcl shell \
3
    exec sh -c 'for tclshell in tclsh tclsh83 cygtclsh80 ; do \
4
            ( echo | $tclshell ) 2> /dev/null && exec $tclshell "`( cygpath -w \"$0\" ) 2> /dev/null || echo $0`" "$@" ; \
5
        done ; \
6
        echo "slow_cat.tcl: cannot find Tcl shell" ; exit 1' "$0" "$@"
7
 
8
# Can be used like this:
9
#  Get flash ready for programming using Minicom or similar
10
#   [o (Option menu), a (flAsh menu), b (Boot write)]
11
# Then execute the following
12
#  slow_cat.tcl < install/bin/gdb_module.srec  >/dev/ttyS0
13
 
14
# Delay lines by 1/10 of a second to allow the flash to recover The
15
# gets also strips off the broken (DOS) new-lines that objcopy is
16
# generating. The puts replace them with 0x0a which the firmware
17
# requires.
18
while { 0 <= [gets stdin line] } {
19
    puts $line
20
    after 100
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.