LGU Tools – lgu2dir & dir2lgu

LGU Tools includes 2 command-line programs for packing and unpacking *.lgu files, which are, basically, archives. The first, lgu2dir, unpacks the file into a directory. The second, dir2lgu, oacks the specified directory into a file.


LGU Tools VersionCompatible OSCompatible Media Nav FirmwareDownload Link
1.0Windows x86/x641.0.2 – 4.1.0DOWNLOAD
2.0Windows x86/x64ALL (1.0.2 – 9.1.3)DOWNLOAD
2.0 + GUIWindows x86/x64ALL (1.0.2 – 9.1.3)DOWNLOAD

How to use


Usage: lgu2dir <lgu file> <out folder>

Example: For file upgrade.lgu, that we want to extract to a folder named patch, we run:

lgu2dir upgrade.lgu patch

This examples assumes that the lgu2dir.exe file is in the same folder as upgrade.lgu. Otherwise, the relative or full path is required. The same goes for the output folder path.


Usage: dir2lgu [options] <content name> <in folder> <out lgu file>
 -n <name>      name label ("      " by default)
 -l             lgu0 format (default)
 -u             ulc2 format
 -p <m1|m2>     preset medianav 1 or 2

The preset is a more user-friendly alternative to choosing the right format. If you open a *.lgu file in a text editor, at the very beginning you can see the patch format, usually LGU0, for MN1, or ULC2, for MN2.
Option -p m1 is equivalent to using -l; option -p m2 is equivalent to -u.

<content name> – version number or name (example: 4.1.1, navi_patch, etc.).
This is the version name that appears on the screen when Media Nav detects an upgrade available on the flash drive (a valid upgrade.lgu file in the root). The update will be performed only when the version is greater than the current version number of the Media Nav firmware, stored in /Storage Card/System/version_info .txt.
A version name that starts with a letter is always considered higher than the version number of any official Media Nav firmware (since they always start with a digit, from 1 to 9), so UpgradeManager.exe performs the update.

In order for the *.lgu file to be available, the file structure should be as follows:

root (your folder)
|-- /upgrade (a folder named upgrade)
    |-- /Storage Card [2|3|4] (storage where files to be copied or replaced)
        |-- <folders and files>

Basically, all your files and folders must be placed under a folder with the same name as the storage folder where you want the files to go. Also, this folder (or folders, if working on multiple storage folders) must be placed under a folder named upgrade. Tip: Unpacking existing firmwares and patches may give you more insight.

Example: For folder patch, that we want to pack as file upgrade.lgu, and it should be used on a MN2 unit, with firmware version 6.0.3 or lower, we run:

dir2lgu -p m2 6.0.4 patch upgrade.lgu

The same rules regarding file paths applies as previously. If we want the file to be used over any firmware version, we can choose a name for the version; example:

dir2lgu -p m2 mypatch patch upgrade.lgu

mypatch will be considered as a newer version, regardless of the firmware installed; any character string starting with a letter will do.

Note: This guide was tested only on version 2.0 of LGU Tools. The first version may not support packing for second generation Media Nav units.

Tools developed by djeman from MsieurLOLO forums.