OVP Forums - A community of assistance, help, questions, and answers.
  FAQFAQ    SearchSearch      RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in
OVPsim_uclinux_or1k demo

 
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> First time - readme
View previous topic :: View next topic  
Author Message
PriyaAgrawal



Joined: 30 May 2008
Posts: 22
Location: India

PostPosted: Wed Jul 16, 2008 11:04 pm    Post subject: OVPsim_uclinux_or1k demo Reply with quote

I downloaded the OVPsim_uclinux_or1k demo and tried executing it in MinGW by changing directory and typing the name of the executable.
It says--
Run a telnet session to port 9999 of this host
telnet://localhost:9999

Info (ICM_AL) Found attribute symbol 'modelAttrs' in file './or1k.dll'
Info (ICM_AL) Found attribute symbol 'modelAttrs' in file './psesockets.dll'
Info (OR_OF) Target '16450' has object file read from '16450.pse'
Info (OR_SH) Section flg sect addr size load addr file offset
Info (OR_SD) .text -ax 0x08048080 0x00007e0f 0x08048080 0x00000080
Info (OR_SD) .rodata -a- 0x0804fea0 0x000009d4 0x0804fea0 0x00007ea0
Info (OR_SD) .ctors wa- 0x08051000 0x00000010 0x08051000 0x00009000
Info (OR_SD) .dtors wa- 0x08051010 0x00000010 0x08051010 0x00009010
Info (OR_SD) .data wa- 0x08051020 0x00000868 0x08051020 0x00009020
and after this the simulation hangs..
Can someone tell how to proceed?
Thanks
Back to top
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


Joined: 27 Feb 2008
Posts: 1656
Location: United Kingdom

PostPosted: Thu Jul 17, 2008 12:58 am    Post subject: Reply with quote

Quote:
and after this the simulation hangs..

The simulation has halted waiting for a remote connection to be established, in this case using Telnet.

Telnet is a standard program for connecting to shells on remote computers. In this simulation we have an OR1K processor running the ucLinux operating system (the remote computer). A user can connect to and communicate with the operating system. This is done with the Telnet program that transfers data using a simple protocol over a hardware serial device (a simulated 16450 UART)

To start the Telnet session and connect to the ucLinux operating system on the OR1K processor please do the following:

On your Windows machine select Start->run and type telnet://localhost:9999 (this command is displayed when the simulation starts)
OR
open a 'Command Prompt' and type telnet localhost 9999

This will make the connection between the operating system on the simulated OR1K processor and the Telnet session. You will see ucLinux boot.

    OpenRisc 1000 support (C) www.opencores.org


    uClinux/OR32
    Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
    KERNEL -> TEXT=0xf0002000-0xf006aeb4 DATA=0x002000-0x00eb28 BSS=0x00eb30-0x02e77d
    KERNEL -> ROMFS=0x02e77d-0x02e780 MEM=0x02e780-0x7ff000 STACK=0x7ff000-0x800000
    Command line: 'CONSOLE=/dev/ttyS0'
    Done setup_arch
    Calibrating delay loop.. ok - 4.31 BogoMIPS
    Memory available: 7884k/8180k RAM, 0k/0k ROM (304k kernel data, 427k code)
    Swansea University Computer Society NET3.035 for Linux 2.0
    NET3: Unix domain sockets 0.13 for Linux NET3.035.
    uClinux version 2.0.38.1pre3 (hall@lnx02.impinternal.com) (gcc version 3.2.3) #284 Tue Jul 5 10:22:56 BST 2005
    Serial driver version 4.13p1 with no serial options enabled
    ttyS00 at 0x90000000 (irq = 2) is a 16450
    Ramdisk driver initialized : 16 ramdisks of 2048K size
    Blkmem copyright 1998,1999 D. Jeff Dionne
    Blkmem copyright 1998 Kenneth Albanowski
    Blkmem 0 disk images:
    RAMDISK: Romfs filesystem found at block 0
    RAMDISK: Loading 885 blocks into ram disk... done.
    VFS: Mounted root (romfs filesystem).
    Executing shell ...
    Shell invoked to run file: /etc/rc
    Command: mount -t proc proc /proc
    Command: bin/sh

    Sash command shell (version 1.1.1)
    />


Note the speed of the Linux operating system booting.

You are now able to use standard Linux commands in the ucLinux operating system on the simulated OR1K.
Try this combination ls list the contents of the directory cd bin change directory to bin ./hello run a compiled executable and then you can type quit to finish the simulation.
Back to top
View user's profile Send private message Visit poster's website
PriyaAgrawal



Joined: 30 May 2008
Posts: 22
Location: India

PostPosted: Thu Jul 17, 2008 4:20 am    Post subject: Reply with quote

Thanks for quick response..
I tried as said..n its working but on the command prompt after booting linux...when i write ls or some other linux command, every character is appearing twice..
could you please tell why it is so?
Back to top
View user's profile Send private message
DuncGrah
OVP Technologist
OVP Technologist


Joined: 27 Feb 2008
Posts: 1656
Location: United Kingdom

PostPosted: Thu Jul 17, 2008 4:58 am    Post subject: Reply with quote

Linux echoes the typed characters to the screen, the problem you can see is that the Windows Telnet application also echoes the characters to the screen and hence we see them twice.
Windows hyperterminal application can be used instead of Telnet and does not echo the typed characters.
Setup is: Connect using: TCP/IP, host address= localhost and port =9999.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> First time - readme All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Information regarding OVP © 2008-2022 Imperas Software