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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [dejagnu/] [config/] [m68k-emc.exp] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
proc ${board}_init { dest } {
2
    global doing_emc_init;
3
 
4
    if [info exists doing_emc_init] {
5
        return;
6
    }
7
    set doing_emc_init 1;
8
    remote_close $dest;
9
    set dos_host [board_info $dest dos_host];
10
    remote_reboot $dos_host;
11
    unset doing_emc_init;
12
}
13
 
14
proc m68k_emc_board_connect { dest } {
15
    global board_info;
16
    set tname [board_info $dest name];
17
 
18
    set board_info($tname,m68k_connected) 1;
19
    set dos_host [board_info $dest dos_host];
20
 
21
    for { set x 0; } { $x < 3 } { incr x; } {
22
        set shell_id [remote_open $dos_host];
23
        if { $shell_id == "" || $shell_id < 0 } {
24
            remote_reboot $dos_host;
25
        } else {
26
            break;
27
        }
28
    }
29
    remote_send $dos_host "c:\\symetrix.bat\n";
30
    remote_expect $dos_host 300 {
31
        -re "SymmComm.*Installed.*\033.2J.*\033.2J" { }
32
        default {
33
            warning "Never got clear screen sequence from remote side."
34
        }
35
    }
36
    # Flush the buffer.
37
    remote_expect $dos_host 2 {
38
        -re ".+" { exp_continue; }
39
    }
40
    # Get past first menu.
41
    remote_send $dos_host "\n";
42
    remote_expect $dos_host 10 {
43
        -re "\033.07;02H" { }
44
        default { }
45
    }
46
    # We don't want a log file.
47
    remote_send $dos_host "\n";
48
    remote_expect $dos_host 10 {
49
        -re "\033.02;24H" { }
50
        default { }
51
    }
52
}

powered by: WebSVN 2.1.0

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