Giter Club home page Giter Club logo

tiny-linux's Introduction

Tiny Linux

Script and configuration for building tiny Linux

  1. Prepare source codes and tools.

Download tarballs for Linux kernel and busybox. Then extract.

tiny-linux$ tar xf archive/linux-5.6.14.tar
tiny-linux$ tar jxf archive/busybox-1.31.1.tar.bz2 

Apply pathes if any. For exmaple:

tiny-linux$ cd busybox-1.31.1
busybox-1.31.1$ patch -p 1 -i ../patch/busybox-1.31.1-patch-stime

Set PATH for cross-compile tool and QEMU. For example:

tiny-linux$ export PATH=$PATH:/opt/riscv/bin/
tiny-linux$ export PATH=$PATH:/opt/qemu/bin/
  1. Build all using script/build.sh

Check out the versions of linux kernel and busybox in build.sh. For example:

BUSYBOX_VER=1.31.1 
LINUX_VER=5.6.14

Run build.sh

tiny-linux$ ./script/build.sh
  1. Run tiny Linux in QEMU
tiny-linux$ ./script/run-qemu.sh
  1. Upgrade Linux kernel

From linux 5.13.0 to 5.18.1 for example:

tiny-linux$ cd linux-5.18.1
linux-5.18.1$ cp ../config/config-linux-5.13.0-riscv-initramfs-dts ./.config
linux-5.18.1$ make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- oldconfig # Check out each new configuration
linux-5.18.1$ cp .config ../config/config-linux-5.18.1-riscv-initramfs-d06011648
linux-5.18.1$ cd -
tiny-linux$ vim ./script/build.sh # Define new $LINUX_VER and $LINUX_CONFIG
tiny-linux$ ./script/build.sh linux

tiny-linux's People

Contributors

ianjiangict avatar zetalog avatar

Stargazers

 avatar

Watchers

 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.