Menu

Tree [24bed7] master /
 History

HTTPS access


File Date Author Commit
 c 2019-11-24 Dmitriy Nezamaev Dmitriy Nezamaev [952435] First commit
 cpp 2019-11-24 Dmitriy Nezamaev Dmitriy Nezamaev [952435] First commit
 csharp 2019-11-24 Dmitriy Nezamaev Dmitriy Nezamaev [952435] First commit
 .gitignore 2019-11-24 dnezamaev dnezamaev [e0a9c1] Initial commit
 LICENSE 2019-11-24 dnezamaev dnezamaev [e0a9c1] Initial commit
 README.md 2019-11-24 Dmitriy Nezamaev Dmitriy Nezamaev [24bed7] Modified readme, todo.
 TODO 2019-11-24 Dmitriy Nezamaev Dmitriy Nezamaev [24bed7] Modified readme, todo.

Read Me

bzImage-unpacker

Unpacks bzImage file to get uncompressed vmlinux kernel.

What is it?

This is small tool to unpack bzImage file. In fact it does same thing as this script (and script even does more!). It may be useful if you want to run it inside your c/c++/c# code or unpack the file on Windows.

How to use it?

Linux

Make sure zlib package installed (it is on many popular distros by default), otherwise it will not work.

In terminal or command line enter following.

./unpack-bzimage <path_to_file>

Windows

Make sure .Net Framework 2.0 and newer installed.

In command line enter following.

bzImageUnpacker.exe <path_to_file>

How it works?

To understand it please read about bzImage file format.
Here is wiki page.
In few words it contains the gzipped vmlinux file inside,
which starts with GZIP magic bytes 1F 8B and compression method 08.
This tool finds such signature and tries to unpack compressed content
until success or writes it fails.

How to build?

On Linux prerequirments are:

  • zlib
  • gcc or g++
  • make

When you done just make it =)

On Windows there is project for MSVS 2015, but you can build it on almost any version (or even without it, there just two .cs files). It should be fine for .Net Framework 2.0 and newer.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.