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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Does VMWare Samba go both ways?
« previous next »
  • Print
Pages: [1]

Author Topic: Does VMWare Samba go both ways?  (Read 3055 times)

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Does VMWare Samba go both ways?
« on: April 23, 2008, 07:33:11 AM »
I'm running the VMWare Rockbox development environment on my Windows box and I'm wondering if I can access host system resources (specifically my USB-connected Sansa) from within the virtual machine in the same way that I can access the build environment from Windows by browsing '\\debian\user'
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Does VMWare Samba go both ways?
« Reply #1 on: April 23, 2008, 07:48:32 AM »
It *may* go both ways, but it depends on how the vmware image was set up.

Samba is the server component running in the image, and allows your windows install to act as a client to see files in the image.

To go the other way, you'll need your windows install to be acting as a server (i.e. you need to "Share" your sansa), and the image must include the client side bits of windows networking.

There are a couple of ways this could work - there's something called "smbclient" which works a lot like command line ftp (only over the windows networking code instead), or you can try and "mount" a share on your windows machine into part of the vmware image's file system with something like :

Code: [Select]
mount -t cifs ////your_windows_machine's_ip_address//the_share_name /mnt/some_directory_you_create_here_called_sansa_or_somesuch
That may or may not work though depending on what's installed in the vmimage.
Logged

Read The Manual Please

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Does VMWare Samba go both ways?
« Reply #2 on: April 23, 2008, 11:50:51 AM »
OK, thanks, I'll give it a go. It'll probably have to be the mount option, as I need Sansapatcher to see it in order to overwrite the OF bootloader with the RB one.

...and all this because the Win Sansapatcher does not perform 'sansapatcher -bl' correctly...  ::)
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Does VMWare Samba go both ways?
« Reply #3 on: April 24, 2008, 06:28:25 AM »
Ah - when you mentioned samba I assumed you were talking about sharing files - I'm fairly confident sansapatcher won't work like that sorry :(
Logged

Read The Manual Please

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Does VMWare Samba go both ways?
« Reply #4 on: April 24, 2008, 06:35:21 AM »
OK, never mind. Thanks.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Does VMWare Samba go both ways?
« Reply #5 on: April 24, 2008, 12:18:50 PM »
Quote from: bascule on April 23, 2008, 07:33:11 AM
I'm running the VMWare Rockbox development environment on my Windows box and I'm wondering if I can access host system resources (specifically my USB-connected Sansa) from within the virtual machine in the same way that I can access the build environment from Windows by browsing '\\debian\user'
There is also the option of mounting your Sansa through USB on the VMWare client.
You do this by adding an USB controller (if not already) to the virtual PC and attaching your USB device to your computer when the VMWare image has focus.

I don't know if this works for the Sansa, but it definitely does for my ZVM and CF card reader.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Does VMWare Samba go both ways?
« Reply #6 on: April 25, 2008, 09:58:15 AM »
Yeah, that sounds like a much better idea, and sansapatcher is much more likely to work through that method (although I still don't guarantee it will)
Logged

Read The Manual Please

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Does VMWare Samba go both ways?
« Reply #7 on: April 25, 2008, 10:18:19 AM »
Quote from: mcuelenaere on April 24, 2008, 12:18:50 PM
You do this by adding an USB controller (if not already) to the virtual PC...

Unfortunately, my Linux experience is minimal and the Rockbox VMWare image is console only, no X, which I always find more confusing  :(

So the trouble is I don't know how to find out if a USB driver is pre-installed. How would I do that?

If it's not, I presume I would have to apt-get something?
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Does VMWare Samba go both ways?
« Reply #8 on: April 25, 2008, 10:45:29 AM »
Quote from: bascule on April 25, 2008, 10:18:19 AM
Quote from: mcuelenaere on April 24, 2008, 12:18:50 PM
You do this by adding an USB controller (if not already) to the virtual PC...

Unfortunately, my Linux experience is minimal and the Rockbox VMWare image is console only, no X, which I always find more confusing  :(

So the trouble is I don't know how to find out if a USB driver is pre-installed. How would I do that?

If it's not, I presume I would have to apt-get something?

I meant adding it to the VMWare image (close the virtual PC and go to "Edit virtual machine settings"), not to linux itself (Linux will detect it without any fuzz); but it could be that it is already attached.

The Rockbox VMWare image does come with X, are you using the most recent version?
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Does VMWare Samba go both ways?
« Reply #9 on: May 02, 2008, 09:15:03 AM »
Quote from: mcuelenaere on April 25, 2008, 10:45:29 AM
The Rockbox VMWare image does come with X, are you using the most recent version?

My bad :(  I meant it didn't have a graphical file explorer. But I only wanted that to look for the device, however that was not required in the end...

Quote from: mcuelenaere on April 25, 2008, 10:45:29 AM
I meant adding it to the VMWare image, not to linux itself (Linux will detect it without any fuzz); but it could be that it is already attached.

Again, I was showing my complete lack of understanding. You were correct, plugging the Sansa in with the VMWare window active, causes Windows to direct the input to the virtual machine, whereupon Linux auto-mounted the device.

Once I'd built sansapatcher and a fresh bootloader, it was a simple matter to do what I had originally wanted to do, which was to flash the Rockbox bootloader over the OF one.

It worked perfectly and now I have super-fast booting with no silly SanDisk splash. Thanks mcuelenaere.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Does VMWare Samba go both ways?
« Reply #10 on: May 02, 2008, 10:13:35 AM »
Quote from: bascule on May 02, 2008, 09:15:03 AM
My bad :(  I meant it didn't have a graphical file explorer. But I only wanted that to look for the device, however that was not required in the end...
If you used Norton Commander before try midnight commander (started as "mc"). It's quite similar but text-based. I won't go into graphical file explorer as there are various around ;)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Does VMWare Samba go both ways?
 

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

Page created in 0.088 seconds with 14 queries.