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
microblaze linux demo not booting?

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



Joined: 13 Apr 2013
Posts: 7

PostPosted: Thu Apr 18, 2013 7:38 am    Post subject: microblaze linux demo not booting? Reply with quote

I'm having issues getting the OVPsim_linux_XilinxML505 example to work.
The non linux examples seem to work (after changing the run scripts to include ./)

I'm using a VirtualBox Fedora 12 32bit system.


I downloaded the following files to /home/gcrum/OVP:

OVPsim.20130315.0.Linux32.exe
microblaze.model.20130315.0.Linux32.exe
OVPsim_demo_linux_XilinxML505.20130315.0.Linux32.exe
OVPsim_demo_microblaze.20130315.0.Linux32.exe
microblaze.toolchain.20130315.0.Linux32.exe

Installed it:
cd /home/gcrum/OVP
chmod +x ./*

./OVPsim.20130315.0.Linux32.exe
./microblaze.model.20130315.0.Linux32.exe
./OVPsim_demo_linux_XilinxML505.20130315.0.Linux32.exe
./OVPsim_demo_microblaze.20130315.0.Linux32.exe
./microblaze.toolchain.20130315.0.Linux32.exe

source bin/setup.sh
setupImperas /home/gcrum/OVP/Imperas.20130315/

cd Demo/OVPsim_linux_XilinxML505/
./RUN_XilinxML505.sh

./RUN_XilinxML505.sh: line 8: OVPsim_linux_XilinxML505.Linux32.exe: command not found

Edit RUN_XilinxML505.sh script and changed:
OVPsim_linux_XilinxML505.${IMPERAS_ARCH}.exe vmlinux attach auto
to:
./OVPsim_linux_XilinxML505.${IMPERAS_ARCH}.exe vmlinux attach auto


Ran it with the corrected script:
[gcrum@localhost OVPsim_linux_XilinxML505]$ ./RUN_XilinxML505.sh


OVPsim (32-Bit) v20130315.0 Open Virtual Platform simulator from www.OVPworld.org.
Copyright (c) 2005-2013 Imperas Software Ltd. Contains Imperas Proprietary Information.
Licensed Software, All Rights Reserved.
Visit www.IMPERAS.com for multicore debug, verification and analysis solutions.

OVPsim started: Thu Apr 18 11:21:39 2013


Info (ICM_AL) Found attribute symbol 'modelAttrs' in file '/home/gcrum/OVP/Imperas.20130315/lib/Linux32/ImperasLib/xilinx.ovpworld.org/processor/microblaze/1.0/model.so'
Info (OR_OF) Target 'ML505/microblaze_0' has object file read from 'vmlinux'
Info (OR_SH) Section flg sect addr size load addr file offset
Info (OR_SD) .text -ax 0xc0000000 0x00259710 0x90000000 0x00000114
Info (OR_SD) __fdt_blob -a- 0xc0259710 0x00004000 0x90259710 0x00259824
Info (OR_SD) .rodata -a- 0xc025e000 0x00091580 0x9025e000 0x0025d824
Info (OR_SD) __ksymtab -a- 0xc02ef580 0x00004560 0x902ef580 0x002eeda4
Info (OR_SD) __ksymtab_gpl -a- 0xc02f3ae0 0x00001e78 0x902f3ae0 0x002f3304
Info (OR_SD) __ksymtab_strings -a- 0xc02f5958 0x0000d6d3 0x902f5958 0x002f517c
Info (OR_SD) __param -a- 0xc030302c 0x00000290 0x9030302c 0x00302850
Info (OR_SD) __modver wa- 0xc03032bc 0x00000d44 0x903032bc 0x00302ae0
Info (OR_SD) __ex_table -a- 0xc0304000 0x00000cd8 0x90304000 0x00303824
Info (OR_SD) .data wa- 0xc0305000 0x00014980 0x90305000 0x003044fc
Info (OR_SD) .init.text -ax 0xc031a000 0x00017770 0x9031a000 0x00318e7c
Info (OR_SD) .init.data wa- 0xc0331770 0x000028f0 0x90331770 0x003305ec
Info (OR_SD) .init.ivt -ax 0xc0334060 0x00000028 0x90334060 0x00332edc
Info (OR_SD) .init.setup wa- 0xc0334088 0x0000027c 0x90334088 0x00332f04
Info (OR_SD) .initcall.init wa- 0xc0334304 0x0000021c 0x90334304 0x00333180
Info (OR_SD) .con_initcall.init wa- 0xc0334520 0x00000004 0x90334520 0x0033339c
Info (OR_SD) .init.ramfs -a- 0xc0334524 0x00be0f10 0x90334524 0x003333a0


Nothing happens after this point. Any thought on what's going on here?
Back to top
View user's profile Send private message
LeeMoore
OVP Technologist
OVP Technologist


Joined: 27 Feb 2008
Posts: 633

PostPosted: Fri Apr 19, 2013 1:40 am    Post subject: Reply with quote

Hi Gary,

I followed your instructions to the letter, and for me it worked OK.

One thing to note, is that the ML505 simulation, opens a new window connected to the UART which launches a shell.

I presume you do not see a window opening with the shell prompt.

Can you test that you can open an xterm window by simply typing
$ xterm

if not can you check the setting of your DISPLAY environment variable, if it is not set to the local display, I am suspecting that the terminal started on another machine.

If you do not want a popup window, but instead to start a listnening server to which you can connect, you can do the following :-

$ ./OVPsim_linux_XilinxML505.${IMPERAS_ARCH}.exe vmlinux attach 9999 &
$ telnet localhost 9999

your telnet session will show the boot messages then give an interactive shell

Please let me know your findings

Thx
Lee
Back to top
View user's profile Send private message
GaryCrum



Joined: 13 Apr 2013
Posts: 7

PostPosted: Fri Apr 19, 2013 4:50 am    Post subject: Reply with quote

Thanks Lee.

I installed xterm and ran everything from there and the virtual platform booted linux.

using the fixed port and telnet has not worked for me yet, but I will play around a bit more with that and report back.

thanks again for your help
Gary
Back to top
View user's profile Send private message
GaryCrum



Joined: 13 Apr 2013
Posts: 7

PostPosted: Fri Apr 19, 2013 6:26 am    Post subject: Reply with quote

I rebooted my vm to see if there was something hanging around that was breaking things, but is a 'normal' Fedora 12 terminal (ie GNOME Terminal 2.28.2) telnet method is not working. (output below)

But, if I launch in xterm, then specify a port at launch and telnet in, I can connect.

What is xterm doing the GNOME terminal is not? It's not that I'm against using xterm I just want to know why it's required.

I searched the forum for 'xterm' and this is the only thread that came back.


Ouput using GNOME Termianl:

[gcrum@localhost OVPsim_linux_XilinxML505]$ ./OVPsim_linux_XilinxML505.${IMPERAS_ARCH}.exe vmlinux attach 9999 &
[1] 2418
[gcrum@localhost OVPsim_linux_XilinxML505]$

OVPsim (32-Bit) v20130315.0 Open Virtual Platform simulator from www.OVPworld.org.
Copyright (c) 2005-2013 Imperas Software Ltd. Contains Imperas Proprietary Information.
Licensed Software, All Rights Reserved.
Visit www.IMPERAS.com for multicore debug, verification and analysis solutions.

OVPsim started: Fri Apr 19 09:51:24 2013


Info (ICM_AL) Found attribute symbol 'modelAttrs' in file '/home/gcrum/OVP/Imperas.20130315/lib/Linux32/ImperasLib/xilinx.ovpworld.org/processor/microblaze/1.0/model.so'
Info (OR_OF) Target 'ML505/microblaze_0' has object file read from 'vmlinux'
Info (OR_SH) Section flg sect addr size load addr file offset
Info (OR_SD) .text -ax 0xc0000000 0x00259710 0x90000000 0x00000114
Info (OR_SD) __fdt_blob -a- 0xc0259710 0x00004000 0x90259710 0x00259824
Info (OR_SD) .rodata -a- 0xc025e000 0x00091580 0x9025e000 0x0025d824
Info (OR_SD) __ksymtab -a- 0xc02ef580 0x00004560 0x902ef580 0x002eeda4
Info (OR_SD) __ksymtab_gpl -a- 0xc02f3ae0 0x00001e78 0x902f3ae0 0x002f3304
Info (OR_SD) __ksymtab_strings -a- 0xc02f5958 0x0000d6d3 0x902f5958 0x002f517c
Info (OR_SD) __param -a- 0xc030302c 0x00000290 0x9030302c 0x00302850
Info (OR_SD) __modver wa- 0xc03032bc 0x00000d44 0x903032bc 0x00302ae0
Info (OR_SD) __ex_table -a- 0xc0304000 0x00000cd8 0x90304000 0x00303824
Info (OR_SD) .data wa- 0xc0305000 0x00014980 0x90305000 0x003044fc
Info (OR_SD) .init.text -ax 0xc031a000 0x00017770 0x9031a000 0x00318e7c
Info (OR_SD) .init.data wa- 0xc0331770 0x000028f0 0x90331770 0x003305ec
Info (OR_SD) .init.ivt -ax 0xc0334060 0x00000028 0x90334060 0x00332edc
Info (OR_SD) .init.setup wa- 0xc0334088 0x0000027c 0x90334088 0x00332f04
Info (OR_SD) .initcall.init wa- 0xc0334304 0x0000021c 0x90334304 0x00333180
Info (OR_SD) .con_initcall.init wa- 0xc0334520 0x00000004 0x90334520 0x0033339c
Info (OR_SD) .init.ramfs -a- 0xc0334524 0x00be0f10 0x90334524 0x003333a0
Info (PSE_SER) Waiting for connection on port 9999

[gcrum@localhost OVPsim_linux_XilinxML505]$ telnet localhost 9999
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Info (PSE_SER) Connected to 9999
Fatal (PSE_SER) Serial device failed to create log file 'RS232_Uart_1.log'
Info Exiting
Connection closed by foreign host.
[gcrum@localhost OVPsim_linux_XilinxML505]$
Back to top
View user's profile Send private message
LeeMoore
OVP Technologist
OVP Technologist


Joined: 27 Feb 2008
Posts: 633

PostPosted: Fri Apr 19, 2013 6:50 am    Post subject: Reply with quote

Hi Gary

This looks like a simple permissions problem

Quote:
Info (PSE_SER) Connected to 9999
Fatal (PSE_SER) Serial device failed to create log file 'RS232_Uart_1.log'
Info Exiting


Are you able to write into the directory where you are running he simulaotr ?

The peripheral component is trying to write a transcript of the input/output of UART1, into the file RS232_Uart_1.log. This can actually be disabled if you look in the platform definition code

Quote:
icmAddStringAttr(RS232_Uart_1_attr, "outfile", "RS232_Uart_1.log");


Thx
Lee
Back to top
View user's profile Send private message
GaryCrum



Joined: 13 Apr 2013
Posts: 7

PostPosted: Fri Apr 19, 2013 7:23 am    Post subject: Reply with quote

I didn't think it was a permission issue... but I ran it again as root with GNOME terminal and it worked... go figure.

not sure why xterm as gcrum worked, but GNOME term as gcrum doesn't... probably unrelated.

Thanks again for your help
Gary
Back to top
View user's profile Send private message
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-2020 Imperas Software