The GPL-GPS Project/ GpsWinDevGuide

GPL-GPS Development on Windows 2000/XP Hosts

This page describes how to do GPL-GPS on Windows 2000/XP hosts. While we strongly recommend that you do your GPL-GPS development under Linux, we understand that sometimes you just can't seem to find the Linux gurus to help you out and there's never enough time to get your system up and running. So for all of you Linux, weenies out there, here's the Windows development instructions. Note that you'll be battling with Windows Annoyances throughout this entire process, so be warned.

  1. GPL-GPS Development on Windows 2000/XP Hosts
  2. Get CygWin
  3. Get the eCos Configuration Tools
  4. Get the latest eCos Source out of CVS
  5. Get the latest arm-elf toolchain
  6. Get the latest GPL-GPS software
  7. Setup the eCos Configtool
  8. Compile redboot_ram
  9. Compile redboot_rom
  10. Connect and verify the connection to the MG5001
  11. Save a copy of the MG5001's commercial firmware
  12. Upload redboot_ram into the MG5001's RAM
  13. Burn redboot_rom into the MG5001's flash

Get CygWin

Get the eCos Configuration Tools

Get the latest eCos Source out of CVS

Get the latest arm-elf toolchain

Get the latest GPL-GPS software

(skip this step if you just grabbed the source out of the tarball)

Setup the eCos Configtool

Compile redboot_ram

(skip this step if you're just using the RedBoot binaries from the tarball)

Compile redboot_rom

(skip this step if you're just using the images from the tarball)

Connect and verify the connection to the MG5001

Save a copy of the MG5001's commercial firmware

Upload redboot_ram into the MG5001's RAM

Thanks to Tak, who's Hyperterminal instructions this is based on: http://www.geocities.com/tebinuma/osgps/redboot.html . He also has pretty pictures, to boot ;)

Burn redboot_rom into the MG5001's flash

In TeraTerm, type

RedBoot> load -r -b 0x20020000 -m xmodem
CRaw file loaded 0x20020000-0x2002e7d7, assumed entry at 0x20020000
xyzModem - CRC mode, 465(SOH)/0(STX)/0(CAN) packets, 7 retries

And then finally, to burn the file into flash:

RedBoot> fis write -f 0x60000000 -b 0x20020000 -l 0x10000
* CAUTION * about to program FLASH
            at 0x60000000..0x6000ffff from 0x20020000 - continue (y/n)? y
... Erase from 0x60000000-0x60010000: .
... Program from 0x20020000-0x20030000 at 0x60000000: .
RedBoot>

Now powercycle or reset the the receiver and you should get:

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 00:44:46, Mar 30 2005

Platform: GPS-4020 (ARM7TDMI)
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.

RAM: 0x20000000-0x20040000, [0x200059c0-0x20040000] available
FLASH: 0x60000000 - 0x60040000, 4 blocks of 0x00010000 bytes each.
RedBoot>

CONGRATULATIONS! You've just installed the RedBoot boot loader onto your GPS receiver. Now we can move on to the eCOS and GPS side of things!