Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Running Garmin Mapsource (6137) under Ubuntu with GPS access

  1. #1
    Join Date
    Dec 2009
    Location
    Belgium
    Beans
    Hidden!

    Running Garmin Mapsource (6137) under Ubuntu with GPS access

    Just posting this as it maybe useful for other people. There are some other topics related to running Garmin MapSource under ubuntu. I've got Garmin MapSource (version 6137) working under Lucid with a working GPS link to a Garmin 60CSx handheld.

    Actually, since I have this running, I have completely erased Vista and Win7 from my hard disk as MapSource was the one and only application which sort of kept me sticking to Windows.

    Here's a brief instruction. First install wine:

    > sudo apt-get install wine
    > wine --version
    wine-1.1.42

    Then run winecfg (as normal user); this will create a .wine directory:

    > winecfg
    (just click OK when the dialog shows)

    Now you can install MapSource. The executable is named MapSource_6137.exe. Copy it into your home dir.

    Now do the following (otherwise MapSource_6137.exe will not work):

    > cd ~/.wine/drive_c
    > mkdir Garmin
    > touch Garmin/MapSource.exe

    Now run the executable using wine:

    > chmod +x ~/MapSource_6137.exe
    > wine ~/MapSource_6137.exe

    Follow on screen instruction, accept the license and it will install. At the end of the install you can launch MapSource => DON't do this! Uncheck the checkmark and just exit the installation.

    Now you should be able to run MapSource:

    > cd ~/.wine/drive_c/Garmin/
    > wine ./MapSource.exe

    It will give you the following error message:

    "MapSource could not find any install MapSource map products"

    This is because you don't have any maps yet.

    Personally, I already had a lot of maps that were originally installed under Windows on a Windows D: drive (separate partition). The procedure below described how you can use these maps directly under the Ubuntu/wine MapSource without doing any additional map installation.

    First, mount the partition containing the maps. In my case:

    > sudo mkdir /WinD
    > sudo mount -t ntfs /dev/sdb1 /WinD

    Make it appear as if this is also the "d:" drive for wine:

    > cd ~/.wine/dosdevices
    > ln -s /WinD "d:"

    This will give you a "d:" drive under wine which is linked to my original D: disk which existed under Windows.

    My maps were located in /WinD/Garmin. Here you will find the map directories which were created in the original Windows installation.

    I will just give one example of a map => CNEUR9, this is the City Select Europe version 9 (routable) maps.

    > ls /WinD/Garmin/CNEUR9
    => this will pop up a lot of .img files

    Run "regedit.exe" under wine:

    > cd ~/.wine/drive_c/windows
    > wine ./regedit.exe

    Now go to HKEY_LOCAL_MACHINE > Software > Garmin > MapSource

    You will see that this is empty. Now you should create the proper keys to access your maps. This depends a little bit from map to map. For the CNEUR9, the keys are (adapted to my configuration on the old D: drive which is now mapped throug /WinD under Ubuntu).

    REGEDIT4
    [HKEY_LOCAL_MACHINE\Software\Garmin\MapSource\Famil ies\City Navigator Europe v9]
    "ID"=hex:c6,00
    "IDX"="D:\\Garmin\\CNEUR9\\CNEuro_v9.mdx"
    "MDR"="D:\\Garmin\\CNEUR9\\CNEuro_v9_mdr.img"
    [HKEY_LOCAL_MACHINE\Software\Garmin\MapSource\Famil ies\City Navigator Europe v9\1]
    "Bmap"="D:\\Garmin\\CNEUR9\\CNEuro_v9.img"
    "Loc"="D:\\Garmin\\CNEUR9\\"
    "Notice"="D:\\Garmin\\CNEUR9\\eula_ENU.txt"
    "Tdb"="D:\\Garmin\\CNEUR9\\CNEuro_v9.tdb"

    You can copy these keys from the old Windows MapSource installation (via registry export keys). And then you can import the .reg file exported from Windows in the wine registry. Make sure though that the top line of the .reg file reads: REGEDIT4 (manually edit it after having exported it from Windows).

    Now run MapSource.

    > wine ~/.wine/drive_c/Garmin/MapSource.exe

    Now it should start by showing the maps. However ... the maps will be "locked".
    Now comes the tricky bit. The unlock wizard which is part of the mapsource installation does not work under wine-1.1.42 ... bummer.

    This can be fixed by running an older version of wine (wine_1.1.188). You can download the .deb file from http://wine.budgetdedicated.com/archive/index.html

    Download wine_1.1.18 appropriate for your architecture.

    Now do the following:

    > sudo apt-get purge wine wine1.2
    (this will remove your existing wine; install the wine_1.1.18)
    > sudo dpkg -i ~/Desktop/wine_1.1.18~winehq0~ubuntu~9.04-0ubuntu1_amd64.deb
    (select appropriate file which you downloaded)

    After installation of this package, run the unlock wizard.

    > wine ~/.wine/drive_c/Garmin/UnlockWizard.exe

    Now unlock your maps. My unlock codes were already stored in a file, you can restore them from the file (follow instructions from unlock wizard).

    After having unlocked your maps, remove the wine_1.1.18 version:

    > sudo apt-get purge wine

    And the reinstall the latest wine version (1.1.42)

    > sudo apt-get install wine

    This will say:
    "Unpacking wine1.2 (from .../wine1.2_1.1.42-0ubuntu4_amd64.deb)"

    > wine --version
    wine-1.1.42

    Now you can run MapSource with your unlocked maps:

    > wine ~/.wine/drive_c/Garmin/MapSource.exe

    --- accessing the GPS ---

    I have a Garmin GPSmap 60CSx GPS. You can use it directly under MapSource as follows:

    > sudo modprobe garmin_gps
    > lsmod | grep garmin

    And you should see something like:

    garmin_gps 12482 0
    usbserial 24955 1 garmin_gps
    usbcore 111843 6 garmin_gps,usbserial,btusb,usbhid,ehci_hcd,uhci_hc d

    Turn on the GPS and connect it to the USB port. Then do:

    > ls /dev/tty*

    You should see a device called "ttyUSB0".

    Now we have to make this device visisble as "com1" port under wine:

    > cd ~/.wine/dosdevices
    > ln -s /dev/ttyUSB0 "com1"

    Restart your MapSource using:

    > wine ~/.wine/drive_c/Garmin/MapSource.exe

    In the "Transfer" menu, select "Receive from device". You should now see your device and can transfer tracks, waypoints from your GPS into MapSource.

    Good luck! After I got this working, I erased Windows from my PC
    Last edited by foobar66; May 15th, 2010 at 10:32 AM.
    Ubuntu user # 30697

  2. #2
    Join Date
    Apr 2008
    Location
    Dinkytown, Minnesota, USA
    Beans
    13
    Distro
    Kubuntu

    Re: Running Garmin Mapsource (6137) under Ubuntu with GPS access

    Any reason for not using the latest mapsource files from Garmin (6.16.1 at this time)?

    I will be using OpenStreetMap and Minnesota Topo maps, so no need to unlock these files. This should make my install a little easier.

    I am also running a 60csx receiver.

    Thanks!

  3. #3
    Join Date
    Dec 2009
    Location
    Belgium
    Beans
    Hidden!

    Re: Running Garmin Mapsource (6137) under Ubuntu with GPS access

    Quote Originally Posted by MrWylbur View Post
    Any reason for not using the latest mapsource files from Garmin (6.16.1 at this time)?

    I will be using OpenStreetMap and Minnesota Topo maps, so no need to unlock these files. This should make my install a little easier.

    I am also running a 60csx receiver.

    Thanks!
    Two reasons:
    1) I could not get newer versions to work (I did not investigate why)
    2) Even on XP, newer version did not want to open all of my maps

    Therefore, I am sticking to 6137 version.
    Ubuntu user # 30697

  4. #4
    Join Date
    May 2010
    Beans
    1

    Re: Running Garmin Mapsource (6137) under Ubuntu with GPS access

    Hi foobar66, thanks for the info, it was indeed very useful

  5. #5
    Join Date
    Apr 2009
    Location
    Argentina, Buenos aires (
    Beans
    251
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Running Garmin Mapsource (6137) under Ubuntu with GPS access

    here it explain how to do it

    http://jhau.maliwi.de/linux/gpssw.html

  6. #6
    Join Date
    Dec 2009
    Location
    Belgium
    Beans
    Hidden!

    Re: Running Garmin Mapsource (6137) under Ubuntu with GPS access

    One other remark. You have to be a member of the group called "dialout".

    Go to System > Admin > Users and Groups

    Then add yourself to the "dialout" group.

    Reason:

    /dev/ttyUSB0 has permissions as:

    0 crw-rw---- 1 root dialout 188, 0 2010-11-20 11:20 /dev/ttyUSB0

    So if you add yourself to the dialout group you will have read/write access to the port.
    Ubuntu user # 30697

  7. #7
    Join Date
    Jul 2009
    Location
    New Zealand
    Beans
    12
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Running Garmin Mapsource (6137) under Ubuntu with GPS access

    Hi, I've managed to get the latest Mapsource 6.16.3 to run on WINE 1.3.8 perfectly but can't connect my Dakota GPSr. Tried the above but I get:

    steve@steve-desktop:~$ lsmod | grep garmin
    garmin_gps 14947 0
    usbserial 33019 1 garmin_gps
    steve@steve-desktop:~$ ls /dev/tty*
    /dev/tty /dev/tty19 /dev/tty3 /dev/tty40 /dev/tty51 /dev/tty62
    /dev/tty0 /dev/tty2 /dev/tty30 /dev/tty41 /dev/tty52 /dev/tty63
    /dev/tty1 /dev/tty20 /dev/tty31 /dev/tty42 /dev/tty53 /dev/tty7
    /dev/tty10 /dev/tty21 /dev/tty32 /dev/tty43 /dev/tty54 /dev/tty8
    /dev/tty11 /dev/tty22 /dev/tty33 /dev/tty44 /dev/tty55 /dev/tty9
    /dev/tty12 /dev/tty23 /dev/tty34 /dev/tty45 /dev/tty56 /dev/ttyS0
    /dev/tty13 /dev/tty24 /dev/tty35 /dev/tty46 /dev/tty57 /dev/ttyS1
    /dev/tty14 /dev/tty25 /dev/tty36 /dev/tty47 /dev/tty58 /dev/ttyS2
    /dev/tty15 /dev/tty26 /dev/tty37 /dev/tty48 /dev/tty59 /dev/ttyS3
    /dev/tty16 /dev/tty27 /dev/tty38 /dev/tty49 /dev/tty6
    /dev/tty17 /dev/tty28 /dev/tty39 /dev/tty5 /dev/tty60
    /dev/tty18 /dev/tty29 /dev/tty4 /dev/tty50 /dev/tty61

    Wine configuration maps G: to /media/GARMIN

    Anyone got any ideas?

    Steve
    Intel Core2 2.5GHz, 2M RAM, ATI Radeon HD4350 with dual monitor, Ubuntu 11.04, wireless network thru DLink 504 ADSL modem & TP-LINK 11N TL-WR841ND wireless router

  8. #8
    Join Date
    Dec 2009
    Location
    Belgium
    Beans
    Hidden!

    Re: Running Garmin Mapsource (6137) under Ubuntu with GPS access

    Steve

    I'm guessing a little bit here, but it may be your device is not recognized by udev.

    As root, create a file called /etc/udev/rules.d/51-garmin.rules

    In the file. put the following contents:

    ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="091e", ATTR{idProduct}=="0003", MODE="666", RUN+="/sbin/modprobe garmin_gps", ENV{GENERATE
    D}="1"
    ACTION=="remove", KERNEL=="ttyUSB*", RUN+="/sbin/rmmod -w garmin_gps", RUN+="/sbin/rmmod -w usbserial", ENV{GENERATED}="1"


    vendor and product could be different for you (depending on GPS model). Above values work for a GPSMAP60CSX. With lsusb (while your device is plugged and turned on) you should see the values that you need in case you have a different model.

    I am not sure how to restart udev ... just reboot.

    Then in a terminal type:

    > udevadm monitor

    Now turn on and plug in your device, you should see something like:

    KERNEL[1291441981.586718] add /devices/pci0000:00/0000:00:1d.0/usb4/4-1 (usb)
    KERNEL[1291441981.589642] add /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0 (usb)
    KERNEL[1291441981.636640] add /module/usbserial (module)
    KERNEL[1291441981.636655] add /bus/usb-serial (bus)
    KERNEL[1291441981.636971] add /bus/usb/drivers/usbserial (drivers)
    UDEV [1291441981.636982] add /module/usbserial (module)
    UDEV [1291441981.636992] add /bus/usb/drivers/usbserial (drivers)
    UDEV [1291441981.637002] add /bus/usb-serial (bus)
    KERNEL[1291441981.638149] add /module/garmin_gps (module)
    KERNEL[1291441981.638161] add /bus/usb-serial/drivers/garmin_gps (drivers)
    KERNEL[1291441981.638408] add /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0/ttyUSB0 (usb-serial)
    UDEV [1291441981.638418] add /module/garmin_gps (module)
    KERNEL[1291441981.638431] add /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0/ttyUSB0/tty/ttyUSB0 (tty)
    UDEV [1291441981.638441] add /bus/usb-serial/drivers/garmin_gps (drivers)
    KERNEL[1291441981.638451] add /bus/usb/drivers/garmin_gps (drivers)
    UDEV [1291441981.638884] add /devices/pci0000:00/0000:00:1d.0/usb4/4-1 (usb)
    UDEV [1291441981.639161] add /bus/usb/drivers/garmin_gps (drivers)
    UDEV [1291441981.639176] add /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0 (usb)
    UDEV [1291441981.639385] add /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0/ttyUSB0 (usb-serial)
    UDEV [1291441981.676567] add /devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0/ttyUSB0/tty/ttyUSB0 (tty)

    The last 2 lines now show that udev has rec ognized it and created /dev/ttyUSB0

    Check it with "ls /dev/tty*".

    Let us know if it worked. -*- philip
    Ubuntu user # 30697

  9. #9
    Join Date
    Dec 2009
    Location
    Belgium
    Beans
    Hidden!

    Re: Running Garmin Mapsource (6137) under Ubuntu with GPS access

    I tried as well with wine-1.3.8 and Mapsource 6.16.3 and GPS transfer from/to my GPSmap60CSX is working (see all instructions in above thread).
    Ubuntu user # 30697

  10. #10
    Join Date
    Dec 2009
    Location
    Belgium
    Beans
    Hidden!

    Re: Running Garmin Mapsource (6137) under Ubuntu with GPS access

    Bye the way: all .exe files for Mapsource can be found here:
    http://www.gawisp.com/perry/mapsource/
    Ubuntu user # 30697

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •