Garmin NT Maps
Initial idea was to check how far can I push my own custom maps. Garmin is currently commercialy using a modern NT format implementation of the maps and the tools that exist publicly can only generate the old classic format.
Everything below was tested on a GPSMAP H1, using maps I already own as reference.
Why NT exists
NT (“New Technology”, introduced around 2007, arriving with City Navigator NT) was implemented for copy protection. Classic .img maps were trivially copied and cracked and NT format made the data harder to read and tied it to device unlocking. That idea is exactly the wall I hit later - the TRE lock flag and the .gma signature are its modern form.
But to be honest, they implemented a few improvements along the way, that are especially observable in bigger continent-scale maps:
- Scalable routing: Classic routing was organised tile-by-tile. NT groups nodes
into route centres with a hierarchical boundary-node system (
NOD5/NOD6), which handles large contiguous road networks and long cross-tile routes far better. - Compact graph: Arcs store relative neighbour pointers and distances in a handful of bits instead of fixed fields - a smaller routing graph for the same roads.
- Better compression of labels and geometry, so more detail fits in less space.
- Consolidation: One
.GMPper tile instead of six files - thousands of filesystem entries saved on a continent-wide product (see the Huts figures below).
In short: DRM is why NT was created; scalable routing and size are what it bought. “Full-continent routing” is a fair description of the design, less certain as Garmin’s stated motive.
Classic vs NT vs NTU
Three formats show up on the device. They are the same map model underneath - the differences are packaging, encoding and protection.
| Classic | NT | NTU | |
|---|---|---|---|
| Introduced | late 1990s | ~2007 | ~mid-2010s |
| Container | 6 sub-files per tile (TRE RGN LBL NET NOD DEM) |
1 .GMP per tile |
1 .GMP per tile |
| Geometry | classic bit-streams | mostly extended types | mostly extended types |
| Labels | 6-bit / codepage | compressed, encoding 0x0B, CP 65001 |
same |
| Routing | classic NET/NOD |
new NET5/6 + NOD5/6 |
new NET5/6 + NOD5/6 |
TRE lock flag (byte 0x0D) |
0x00 |
0x00 (e.g. TopoActive) |
0x80 (e.g. CN Europe) |
.gma signature |
none | required for routing | required for routing |
Interestingly the NTU body is not encrypted. Measuring sub-file entropy, a locked NTU map (CN Europe, RGN ≈ 5.4, LBL ≈ 6.0 bits/byte) sits right next to an unlocked NT map (TopoActive, RGN ≈ 4.8, LBL ≈ 5.3) - both are plain compression, far from the ≈ 8.0 you’d see from encryption. “NTU” here just means an NT map with the device-unlock DRM flag set; the format is identical.
The container
The .GMP is simple: a 61-byte header (GARMIN GMP, u32 pointers at 0x19
for TRE RGN LBL NET NOD DEM), a copyright string, then the classic sub-files
concatenated - with every internal section offset rebased to the start of the
.GMP. Repacking a normal mkgmap map this way works on the GPSMAP H1: icons, labels
and zoom levels render, and NT even shows POI labels on the map that the classic
container dropped.
What it did to test map
The Huts & Shelters map overlay is 15 tiles. Repacked to NT:
| Classic | NT | |
|---|---|---|
| FAT entries | 48 (15×3 + MPS TYP SRT) |
18 (15 GMP + MPS TYP SRT) |
| 512-byte blocks used | 103 | 91 |
That’s a 62% cut in filesystem entries and ~12% fewer blocks. The raw data is actually a touch larger in NT (each tile repeats the 61-byte header and copyright), so the win is structural: six entries per tile collapse to one, and the per-file block-rounding waste is reclaimed. The payoff scales with tile count - a full-country build is thousands of FAT entries saved. For a map with few, large tiles and big block sizes (for example Slovenia Leisure map) the gain was a negligible 0.15%.
The routing graph
Routing is where NT departs completely. The classic NET/NOD sections are empty;
routing lives in new bit-packed structures. Using GPXSee’s open-source reader and
Gerd Petermann’s mkgmap-dev notes as a map, we wrote our own decoder and validated it
against Garmin tiles with OSM as ground truth.
- Nodes store coordinates as deltas from a per-block base, width-coded by a
3-bit field. The (lon, lat) bit widths are one of
(12,12) (8,16) (16,8) (16,16) (12,20) (20,12) (20,20). - Arcs chain nodes together: each has a relative pointer to its neighbour, a distance, a road (link) id, and flag bits. There are absolute and relative arc encodings, selected by a node flag.
- Decoded against OSM in a Slovenian TopoActive tile (64k links, 48k nodes, 120k arcs): 79–84% of arcs land on a real OSM neighbour; following a road’s arcs reproduces the OSM way 88% of the time.
- Road attributes fell out cleanly: the per-block type table maps to OSM highway
classes (3=primary … 6=residential, 7=service,
0x16=path/footway), the one-way bit matches OSM 96%, the low flag bits are the speed class (maxspeed 30 to 1, 50 to 2, 90 to 4), and the distance field is metres at ≈ 2.4 m per unit - within 5% of OSM segment lengths on 79% of arcs.
I tried with a small custom encoder, turned a few streets into NT routing data, and confirmed it round-trips through my custom reader.
The wall
Loading the test map I hit the wall as the H1 answered:
Cannot authenticate maps. Contact the map content seller for help.
Bisecting it: the display data and the NET section load and draw fine. The instant
the map contains our routing (NOD) data, authentication fails. Every Garmin map on
the device that has NT routing ships a .gma file beside it, maps without routing
have none.
Those .gma files settled it. Each is a fixed 2560-byte, high-entropy block
(entropy 7.93, no internal structure or padding) - the same size whether the map
has 362 tiles or 517, so it signs a digest, not the content inline. A hash or
keyed MAC you could recompute is 32–64 bytes; 2560 bytes of structureless,
content-independent-size data is an asymmetric signature. Producing a valid one
requires Garmin’s private key.
That’s a mathematical dead end, not a configuration one, and it’s where my actions stop.
What this leaves
Nothing functional is lost. Classic-format routing works fully on the H1, so my routable maps simply stay classic - NT was only ever a container optimisation and a nice excercise how far can I push it. For non-routable overlays, NT packaging is a real, working option with better labels and a far smaller filesystem footprint.
References
- GPXSee — the open-source Garmin IMG/NT
reader (
src/map/IMG/, especiallynodfile.cpp,netfile.cpp,rgnfile.cpp). Our routing decoder is a direct port of its NOD5/NOD6 layout. - imgforge — a clear, modern reference for the Garmin IMG and GMP container format.
- mkgmap-dev — Gerd Petermann’s mailing-list threads on NET/NOD internals filled the gaps the readers left.