Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: scorche on March 19, 2009, 02:31:49 PM

Title: Testing new VMWare Image...
Post by: scorche on March 19, 2009, 02:31:49 PM
A new VMWare image has been asked for for a while now, so I finally scrounged together some time to make a new one from scratch.  There still are a few things that need to be polished up, but if people can go through and test building targets, sims, manuals, etc, it would be appreciated.  It would be nice to know if I have forgotten anything that should be installed as well.

There are the usual "root" and "user" users with both passwords being "rockbox".  Also, to make Samba sharing easier, the instructions will include asking the users to find out their VM's IP with the command "ifconfig" (use the IP listed for "inet addr:" under the "eth0" interface) and having them use the Windows tool "Map Network Drive..." found under tools in any Windows Explorer window.  The users of the image will then map "\\theipoftheimage\user" to a drive.

The image can be found here: http://squisch.net/rockbox/vmimage/RockboxDev/RockboxDev.7z  It is currently at around 472MB, however I still have a few tricks to try in order to shrink that.
Title: Re: Testing new VMWare Image...
Post by: BdN3504 on March 20, 2009, 04:03:57 AM
There are the usual "root" and "user" users with both passwords being "rockbox".  Also, to make Samba sharing easier, the instructions will include asking the users to find out their VM's IP with the command "ifconfig" and having them use the Windows tool "Map Network Drive..." found under tools.  The users of the image will then map "\\theipoftheimage\user" to a drive.
i am running windows xp and have difficulties establishing the network connection. i logged in as root. ifconfig gives me "inet address: 127.0.0.1". If i try to "connect a network drive" using "\\127.0.0.1\root" as the network folder, i get an error telling me it cannot be found. i tried ...\user but that did not work either. any advice?
Title: Re: Testing new VMWare Image...
Post by: SansaFan on March 20, 2009, 06:58:13 AM
I have been trying to test the simulator build option to no avail the steps I have used are:





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


When I check the simdisk folder, there is nothing there.   Any suggestions..?

thanks in advance.
Title: Re: Testing new VMWare Image...
Post by: BdN3504 on March 20, 2009, 07:09:14 AM
how did you manage to access the files?

for the sim building process you must first follow the instructions here (http://www.rockbox.org/twiki/bin/view/Main/UiSimulator#Building_Windows_sim_in_Linux).
Title: Re: Testing new VMWare Image...
Post by: scorche on March 20, 2009, 10:32:17 AM
i am running windows xp and have difficulties establishing the network connection. i logged in as root. ifconfig gives me "inet address: 127.0.0.1". If i try to "connect a network drive" using "\\127.0.0.1\root" as the network folder, i get an error telling me it cannot be found. i tried ...\user but that did not work either. any advice?

To clarify, you want to use the IP listed for "inet addr:" under the "eth0" interface and not under the "lo" interface which is just the loopback.
Title: Re: Testing new VMWare Image...
Post by: BdN3504 on March 20, 2009, 12:00:38 PM
that seems to be the problem, but there is no ip address listed in the first entry:
(http://s5.tinypic.com/dy7q0y.jpg)
Title: Re: Testing new VMWare Image...
Post by: mcuelenaere on March 20, 2009, 12:28:01 PM
that seems to be the problem, but there is no ip address listed in the first entry:
(http://s5.tinypic.com/dy7q0y.jpg)
What network settings are you using in the VMWare image? (Bridged, NAT, host-only)
Title: Re: Testing new VMWare Image...
Post by: shotofadds on March 20, 2009, 02:12:43 PM
The host/guest mouse pointer integration doesn't seem to work properly on my machine (the pointer sometimes gets 'stuck' in the VM instead of seamlessly switching between the two). The previous Debian VM works fine. Both running in VMWare Player 2.5.1 on Vista.
Title: Re: Testing new VMWare Image...
Post by: BdN3504 on March 20, 2009, 02:35:35 PM
What network settings are you using in the VMWare image? (Bridged, NAT, host-only)
It's "bridged" but i did not touch that setting. EDIT: Ok, i figured it out, you first have to enable the network adapter of course, my bad.
Another thing: using the vmware-toolbox&  command brings up an error, but how can i copy paste stuff now?
Title: Re: Testing new VMWare Image...
Post by: scorche on March 20, 2009, 05:41:59 PM
The host/guest mouse pointer integration doesn't seem to work properly on my machine (the pointer sometimes gets 'stuck' in the VM instead of seamlessly switching between the two). The previous Debian VM works fine. Both running in VMWare Player 2.5.1 on Vista.

This is likely just vmware-tools...I will install that on the next version.

Quote
Ok, i figured it out, you first have to enable the network adapter of course, my bad
That helps.  ;)
Title: Re: Testing new VMWare Image...
Post by: BdN3504 on March 21, 2009, 07:14:07 AM
Is there a reason why this image isn't ready to compile sims? can't you include mingw and gcc?
Title: Re: Testing new VMWare Image...
Post by: scorche on March 22, 2009, 10:06:49 PM
It should compile sims just fine (this is why I put it here...so you people could test, as I do not have the time to), though for them to run in linux...not windows yet (I don't think it is necessary though and may not install mingw...).  Does it not work currently?

Also, has anyone built various incarnations of the manual yet and can report on that?
Title: Re: Testing new VMWare Image...
Post by: jaykay on April 06, 2009, 07:37:05 AM
i built some manuals.... although i get plenty of warnings, the manual looks fine.
Title: Re: Testing new VMWare Image...
Post by: pixelma on April 07, 2009, 08:13:44 PM
Loads of "underfull or overfull *box" warnings are unfortunately normal when building the manual. I'm curious though if you also tried building the html version and its outcome.
Title: Re: Testing new VMWare Image...
Post by: scorche on April 09, 2009, 11:05:53 PM
Well, that was odd.  It seems there were some strange characters added on to the link in the original post.  This has been fixed.
Title: Re: Testing new VMWare Image...
Post by: scorche on April 18, 2009, 02:40:09 AM
Once more, can people compile sims alright?  I think that is the last thing with this image that hasn't had a positive test yet and is keeping it from being distributed.
Title: Re: Testing new VMWare Image...
Post by: BdN3504 on August 28, 2009, 02:02:00 PM
i'll do anything you ask for as long as you tell me how i can (permanently) change the keyboard layout to qwertz german and be able to copy paste between host and vmware.
PS: while we're at it: how do i enter the filesystem using windows? i can only get to the root directory mounting it to network drive using "ip"/root but "ip"/filesystem doesn't work. how would i go about doing that?
Title: Re: Testing new VMWare Image...
Post by: Left4Cake on December 08, 2010, 04:09:15 PM

NOTE: The ARM compilers in the image have NOT been updated. If you use ARM, you must run 'sudo tools/rockboxdev.sh' from the root of your rockbox source checkout to update them. (http://www.rockbox.org/wiki/VMwareDevelopmentPlatform)

(http://www.lozengia.com/tmas/Downloads/Pictures/School/Image2.png)

I can't update the ARM compilers.
Title: Re: Testing new VMWare Image...
Post by: saratoga on December 08, 2010, 04:14:24 PM

NOTE: The ARM compilers in the image have NOT been updated. If you use ARM, you must run 'sudo tools/rockboxdev.sh' from the root of your rockbox source checkout to update them. (http://www.rockbox.org/wiki/VMwareDevelopmentPlatform)

(http://www.lozengia.com/tmas/Downloads/Pictures/School/Image2.png)

I can't update the ARM compilers.

you must run 'sudo tools/rockboxdev.sh' from the root of your rockbox source checkout

If you're in a different folder then you'll have to type a different path. 
Title: Re: Testing new VMWare Image...
Post by: saratoga on December 11, 2010, 11:19:58 PM
I updated the current VM image to support ARM by default.  Its still pretty awful though. 
Title: Re: Testing new VMWare Image...
Post by: scorche on December 12, 2010, 02:55:11 AM
The current VMware image, or the one that this thread was initially started for?
Title: Re: Testing new VMWare Image...
Post by: saratoga on December 12, 2010, 03:11:21 AM
The current VMware image, or the one that this thread was initially started for?

The former.  I just downloaded it from the wiki, compiled the new arm compiler, and then uploaded it.  

FWIW I think starting with a full ubuntu image might be a good approach.  Having gnome is quite handy if you actually want to do development.  Although it would probably add at least 150 MB to the zip size.
Title: Re: Testing new VMWare Image...
Post by: scorche on December 13, 2010, 02:06:07 AM
I always started with a fresh, basic installation of Debian and then installed everything from there - I used fluxbox because it did the job of a WM just fine while something like Gnome would add significantly more to the zip size.  Starting with a full Ubuntu image would (I would imagine) have quite a substantial image to need to download.  The image in the OP of this thread was already bigger than I and downloaders typically like.
Title: Re: Testing new VMWare Image...
Post by: grums on February 21, 2011, 05:19:12 AM
What's the status on this one?

I like the VMware environment better than the VirtualBox one - but the VMware image I can download using the development guide instructions seems to be maybe a little bit outdated (build fails, in another thread (Clip+) in this forum).

Ole