| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Want to organize your cloud files? Sign up for a free webinar to see how Dokkio (a new product from PBworks) can help you find, organize, and collaborate on your Drive, Gmail, Dropbox, and Slack files: Weds, May 27 at 2PM Eastern / 11AM Pacific
View
 

MG35Tool

Page history last edited by Vasile 11 years ago

 

MG35Tool

 

MG35Tool (mg35tool) is a tool for splitting and combining .upgrade files for the MG-35 media player.

Version: 1.3

Status: Done

Precompiled Windows binary: mg35tool.zip

 



 

Description

mg35tool automatically removes all header information when splitting files and automatically recalculates it again when joining files.

 

This tool works on both Windows and Linux and this file contains both executables and source code.

 

Usage

 

mg35tool <split | join > [-v <version>] [-t <model>] [-b <boot_file>]

         [-k <kernel_file>] [-c <cramfs_file>] <upgrade_file>

Options:

split

Extract the individual pieces from an existing .upgrade file.

join

Combine several existing pieces into a new .upgrade file.

-b <boot_file>

Specifies name of boot loader file. Default when splitting

is boot.rom. When joining, the BOOT section of the update

file is only included if this option is specified.

-k <kernel_file>

Specify a compressed kernel file. Default is linux.gz

-c <cramfs_file>

Specify a compressed filing system file. Default is cramfs.img.

-v <version>

Specify the version of the .upgrade file in the format major.minor.patch

This information will be built into the upgrade file's header when

joining. This option has no effect when splitting.

-t  { MG25 | MG35 | MG350HD | MG350SHD | AUTO }

Specify the Mediagate hardware model.  Default is MG35 for join, AUTO for split.

<upgrade_file>

The name of the .upgrade file to join or split.

 

Examples

 

 

mg35tool split MG35_1.4.3.upgrade

This will split the upgrade file and produce three files: boot.rom, linux.gz and cramfs.img

 

 

mg35tool join -k kernel.gz -c test.img MG35-test.upgrade

This will take kernel.gz and test.img and produce an upgrade file with a ROFS section but no BOOT section. All sizes and checksums will be calculated automatically as will the offset to the CramFS that is required to directly precede the kernel.

 

Note: .upgrade files without boot sections work very well on the MG-35 and are highly recommended!

 

History

Version 1.3 - John

  • Added MG-350S support

  • Added auto-format determination (for split only)

 

Version 1.2 - Bitbasher

  • Added MG-25 support

 

Version 1.1 - PBarette

  • Added MG-350 support

 

Version 1.0 - PBarette

  • Created for MG-35 support

    • splitting and joining

 

Comments (0)

You don't have permission to comment on this page.