1
# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software
4
# This file is part of DejaGnu.
6
# DejaGnu is free software; you can redistribute it and/or modify it
7
# under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 2 of the License, or
9
# (at your option) any later version.
11
# DejaGnu is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with DejaGnu; if not, write to the Free Software Foundation,
18
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
proc ${board}_init { dest } {
23
if [info exists doing_emc_init] {
28
set dos_host [board_info $dest dos_host]
29
remote_reboot $dos_host
33
proc m68k_emc_board_connect { dest } {
35
set tname [board_info $dest name]
37
set board_info($tname,m68k_connected) 1
38
set dos_host [board_info $dest dos_host]
40
for { set x 0 } { $x < 3 } { incr x } {
41
set shell_id [remote_open $dos_host]
42
if { $shell_id == "" || $shell_id < 0 } {
43
remote_reboot $dos_host
48
remote_send $dos_host "c:\\symetrix.bat\n"
49
remote_expect $dos_host 300 {
50
-re "SymmComm.*Installed.*\033.2J.*\033.2J" { }
52
warning "Never got clear screen sequence from remote side."
56
remote_expect $dos_host 2 {
57
-re ".+" { exp_continue }
59
# Get past first menu.
60
remote_send $dos_host "\n"
61
remote_expect $dos_host 10 {
65
# We don't want a log file.
66
remote_send $dos_host "\n"
67
remote_expect $dos_host 10 {