Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Simulator does not run under vmware, please help
« previous next »
  • Print
Pages: [1]

Author Topic: Simulator does not run under vmware, please help  (Read 5362 times)

Offline dip

  • Member
  • *
  • Posts: 111
Simulator does not run under vmware, please help
« on: June 21, 2007, 07:37:07 PM »
I just switched from cygwin to vmware to compile Rockbox. Compiling and running a build works fine but when I compile the simulator I cannot run it in vmware. When I type ./rockboxui from the build directory in eterm the following messages appears:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

fatal: No available video device

What do I have to do to run the simulator in vmware? I read in the forum that previous versions of the vmware image did not support the simulator, but I downloaded the vmware image yesterday (Debain-4.7z). Are all versions or the rockbox vmware images linked from the wiki page identical (I downloaded the fourth version) or can that be an old version which does not support graphic drivers?

And when I download a new version of the image are my sources from the present version available in the new version?
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Simulator does not run under vmware, please help
« Reply #1 on: June 22, 2007, 05:00:18 AM »
I believe VMWare is used to compile Windows versions of the firmware, so probably the simulator you've built will only work in the Windows environment...
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline dip

  • Member
  • *
  • Posts: 111
Re: Simulator does not run under vmware, please help
« Reply #2 on: June 22, 2007, 05:11:53 AM »
Quote from: bascule on June 22, 2007, 05:00:18 AM
I believe VMWare is used to compile Windows versions of the firmware, so probably the simulator you've built will only work in the Windows environment...
That can't be true. First, there is no rockboxui.exe generated but only a file named rockboxui. And second, when I run that file from the eterm window the above Xlib error message appears, so the file seems to be a linux binary but something is wrong with the X display.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Simulator does not run under vmware, please help
« Reply #3 on: June 22, 2007, 05:37:34 AM »
Try running "xhost +" before you attempt to launch the rockboxui binary.
Logged

Read The Manual Please

Offline dip

  • Member
  • *
  • Posts: 111
Re: Simulator does not run under vmware, please help
« Reply #4 on: June 22, 2007, 05:49:11 AM »
When I run "xhost +" I get the following error message:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

xhost: unable to open display ":0.0"

Any further ideas would be very appreciated.
Logged

Offline dip

  • Member
  • *
  • Posts: 111
Re: Simulator does not run under vmware, please help
« Reply #5 on: June 22, 2007, 05:59:05 AM »
I found the solution. The problem was that I was logged in with su root and it seems that display is not usable for the root user. I exit su and then it worked.

Thanks for all your help.
Logged

Offline SansaFan

  • Member
  • *
  • Posts: 4
Simulator does not run under VMware, please help
« Reply #6 on: March 20, 2009, 10:23:15 PM »
Hello,

   I am attempting to get the Simulator running following the instructions for VMware.


 Download the Rockbox VMware image (~ 217 MB) from one of these URLs:

    * http://mikachu.rockbox.org/Debian-4.7z


#  Double click on "rockbox.vmx".
# Press "Power On" button
# Answer YES or OK on the popups questions.
# Login with username "user" and password "rockbox".
# Then, right click in the rockbox window and select Xshells, and Eterms



 Compiling



svn co svn://svn.rockbox.org/rockbox/trunk rockbox
cd rockbox
mkdir sim
cd sim
../tools/configure
( I selected item #50, the Sansa e200 version)
( I selected option "S"imulator)

make
make fullinstall



Afterwards I check the 'simdisk' folder using:

cd simdisk
dir

There is nothing in the simdisk folder.  What gives??

According to the instructions I've read and followed they suggest I should find something after the compiling and make routines in folder 'simdisk'.

 Building the Simulator

If you are fed up with creating your WPS's, loading them onto your machine, unplugging machine, running wps file, checking them, plugging machine back in, editing them on your computer, and round and round and on and on..... (You know what I mean), or even if you just want to test the patches without actually loading them onto your machine, then you will find the simulator a godsend!

Compiling

    * Create a new folder called sim (type mkdir sim) and move into it (type cd sim).
    * Now you are in the sim directory. Create the make file as usual using configure but select (S)imulator build instead of (N)ormal build.
    * Now type make and wait for it to compile
    * Then type make fullinstall. It will tell you that it is installing a full setup in your simdisk directory.

Setting up the simulator

    * Have a look in sim/simdisk. You should see the .rockbox folder there full of all the usual rockbox stuff.
    * The sim/simdisk folder acts in exactly the same way as the folder in the root of your player, so fill it with all the stuff you would usually have there!
    * Now, run the simulator by typing ./rockboxui.exe


Issuing command ./rockboxui.exe in the sim folder does nothing. 



thanks in advance....





Logged

Offline perrikwp

  • Member
  • *
  • Posts: 10
Re: Simulator does not run under vmware, please help
« Reply #7 on: March 20, 2009, 10:56:30 PM »
You can download pre-built windows simulators from here: http://rasher.dk/rockbox/simulator/
They are not the most up-to-date, but I don't think there has been any changes for the WPS code since they were built. Download the simulator for your respective target.
Logged

Offline SansaFan

  • Member
  • *
  • Posts: 4
Re: Simulator does not run under vmware, please help
« Reply #8 on: March 21, 2009, 06:08:25 AM »
    Thanks for the quick response.

     I have downloaded several simulators before just to test their functionality and thought it would be interesting if I could take it one step further and actually compile a simulator using VMware and the Rockbox linux development file (rockbox.vmx).   
   From the directions to using Rockbox.vmx (see the prior post), it didn't seem too difficult, but once all of the instructions were followed, there is nothing in the 'simdisk' folder to be found. 
   Is there a missing direction or does Rockbox.vmx contain all of the necessary support files to accomplish this task?



   Thanks..

Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Simulator does not run under vmware, please help
« Reply #9 on: March 21, 2009, 06:39:48 AM »
Quote from: SansaFan on March 21, 2009, 06:08:25 AM
   From the directions to using Rockbox.vmx (see the prior post), it didn't seem too difficult, but once all of the instructions were followed, there is nothing in the 'simdisk' folder to be found. 
There is no missing instruction and there *is* data in that folder -- namely the folder .rockbox. Linux hides files starting with a dot -- but why are you looking into that folder anyway? If you want to run the simulator you need to run the rockboxui binary that's above that folder. Try it, it will work.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline SansaFan

  • Member
  • *
  • Posts: 4
Re: Simulator does not run under vmware, please help
« Reply #10 on: March 21, 2009, 07:29:58 PM »
   Thank you for your help and advice.


    Recap.   

    To get the simulator to work, I had to goto the build folder and issue the following command.

 debian:~/rockbox/sim#
./rockboxui


    The instructions were a bit misleading in that they said the command should be:

        ./rockboxui.exe

    whereas it should have been:

           ./rockboxui
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Simulator does not run under vmware, please help
« Reply #11 on: March 21, 2009, 07:51:49 PM »
Quote from: SansaFan on March 21, 2009, 07:29:58 PM
   Thank you for your help and advice.


    Recap.   

    To get the simulator to work, I had to goto the build folder and issue the following command.

 debian:~/rockbox/sim#
./rockboxui

Yes that is the command on linux systems, which the vmware image is.

Quote from: SansaFan on March 21, 2009, 07:29:58 PM
    The instructions were a bit misleading in that they said the command should be:

        ./rockboxui.exe

That is the command on Windows (exe files are for windows).  Looking at the wiki, it seems you got those instructions from the Cygwin, rather then VMware wiki pages. 


Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Simulator does not run under vmware, please help
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.111 seconds with 14 queries.