OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [boards/] [or32-linux-sim.exp] - Diff between revs 522 and 524

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 522 Rev 524
Line 159... Line 159...
 
 
    #If the file path contains any "+" signs, it will mess things up when $cmd
    #If the file path contains any "+" signs, it will mess things up when $cmd
    #is used as a regsub pattern (2 lines down), so we replace all "+"s with "."
    #is used as a regsub pattern (2 lines down), so we replace all "+"s with "."
    regsub -all "\\+" $cmd "." cmd
    regsub -all "\\+" $cmd "." cmd
    regsub -all $cmd "$expect_out(buffer)" {} output
    regsub -all $cmd "$expect_out(buffer)" {} output
    regsub $shell_prompt $output {} output
    regsub "\(~ \)?$shell_prompt" $output {} output
    regsub -all "\[\r\n\]" $output {} output
    regsub -all "\[\r\n\]" $output {} output
 
 
    #Check the return status. Use a short timeout for this.
    #Check the return status. Use a short timeout for this.
    set timeout 30
    set timeout 30
    send -- "echo \$?\r"
    send -- "echo \$?\r"
    expect -re "$shell_prompt.*$"
    expect -re "$shell_prompt.*$"
 
 
    #Regsub the output to get the status number
    #Regsub the output to get the status number
    regsub -all {echo \$\?} $expect_out(buffer) {} status
    regsub -all {echo \$\?} $expect_out(buffer) {} status
    regsub $shell_prompt $status {} status
    regsub "\(~ \)?$shell_prompt" $status {} status
    regsub -all "\[\r\n \]" $status {} status
    regsub -all "\[\r\n \]" $status {} status
 
 
    #This probably isn't neccessary..
    #This probably isn't neccessary..
    if {[regexp {[0123456789]+} $status] != 1} {
    if {[regexp {[0123456789]+} $status] != 1} {
        warning "status not a number, it is <$status>, setting it to 1"
        warning "status not a number, it is <$status>, setting it to 1"
Line 366... Line 366...
 
 
set_board_info connect telnet
set_board_info connect telnet
set_board_info shell_prompt          "# "
set_board_info shell_prompt          "# "
set_board_info telnet_username       "root"
set_board_info telnet_username       "root"
set_board_info telnet_password       ""
set_board_info telnet_password       ""
set_board_info telnet_exec_timeout   300
set_board_info telnet_exec_timeout   1200
 
 
set_board_info file_transfer         ftp
set_board_info file_transfer         ftp
set_board_info ftp_username          root
set_board_info ftp_username          root
set_board_info ftp_password          ""
set_board_info ftp_password          ""
set_board_info ftp_download_timeout  120
set_board_info ftp_download_timeout  120

powered by: WebSVN 2.1.0

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