Giter Club home page Giter Club logo

minimal's Introduction

MLinux Minimal - A Tiny Linux distro

MLinux Minimal

Dependencies

For building binary

Install binary building dependencies on Debian

sudo apt-get update && sudo apt-get install gcc cpio xz-utils gawk make grep qemu-utils sed util-linux wget binutils libelf-dev libssl-dev bc flex bison rsync -y

For building tarball

Install tarball building dependencies Debian

sudo apt-get update && sudo apt-get install autoconf automake -y

Build source tarball

You need to install the dependencies first, and make sure you are in source directory.

make -f Makefile.devel dist

Build rootfs, linux kernel and disk image

./configure
make -j$(nproc)

The compressed rootfs will be name to rootfs.tar.xz. The compressed linux kernel will be name to vmlinuz.xz. The compressed disk image will be name to disk.img.

Configuration options

  • --with-busybox-version=X.X.X

    • Specify the version of Busybox.
    • Default is 1.36.1.
  • --with-linux-version=X.X.X

    • Specify the version of Linux kernel.
    • Default is 6.7.5.
  • --with-busybox-mirror=OFFICIAL | <URL>

    • Specify the mirror of Busybox. If you want to use the official mirror, set it to OFFICIAL. Otherwise, set it to the URL of the mirror.
    • Default is OFFICIAL.
  • --with-linux-mirror=OFFICIAL | CDN | TSINGHUA | ALIYUN | USTC | <URL>

    • Specify the mirror of Linux kernel. If you want to use the Tsinghua mirror, set it to TSINGHUA. Otherwise, set it to the URL of the mirror.
    • Default is OFFICIAL.

Like this:

./configure --with-busybox-version=1.36.1 --with-linux-version=6.7.5 --with-busybox-mirror=OFFICIAL --with-linux-mirror=TSINGHUA

Run

You should use origin binary file instead of XZ compressed one!!!

Using this command to run disk.img.

qemu-system-x86_64 -m 1024 -hda disk.img

Using this command to run vmlinuz.

qemu-system-x86_64 -m 1024 -kernel vmlinuz

This vmlinuz contians initramfs, so you can execute it directly using QEMU.

Copyright

The MLinux Minimal is under GPL 2.0, see file LICENSE.

Download

https://github.com/mlinux-project/minimal/releases

Homepage

https://github.com/mlinux-project/minimal

minimal's People

Contributors

chenpi11 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.