zzc7211 / BiscuitOS

Common scripts to build BiscuitOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BiscuitOS 中文

TOP_PIC

BiscuitOS is a Linux-Distro that base on legacy or newest Linux kernel (such as Linux 0.11, 1.x, 2.x, 3.x, 4.x, 5.x and more). BiscuitOS is an open and free operating system that developers can use under the GNU General Public License.

The target of BiscuitOS is to create an operating system debugging and running environment that makes developers focus on CODE and doesn't waste time on how to build or port an operating system to different hardware.

This project is named BiscuitOS that is a specific builtroot for BiscuitOS. All developers can configure various kernel/rootfs features and create a full harddisk-image. The BiscuitOS works on Intel-x86 family CPU (such as i386, i486 ...)/ ARM32 or ARM64, and the project offers an emulate to run BiscuitOS without hardware. So, don't stop, and play Linux with BiscuitOS.

To Prepare

BiscuitOS support to build on host and Docker, if you want to build on Docker, running the commands below:

wget https://raw.githubusercontent.com/BiscuitOS/BiscuitOS/Stable_long/scripts/Docker/build.sh
./build.sh

If you don't want to use Docker, Before the tour, you need to install essential toolchains on the host PC (such as Ubuntu16.04). Execute commands:

sudo apt-get install -y qemu gcc make gdb git figlet
sudo apt-get install -y libncurses5-dev iasl wget
sudo apt-get install -y device-tree-compiler
sudo apt-get install -y flex bison libssl-dev libglib2.0-dev
sudo apt-get install -y libfdt-dev libpixman-1-dev
sudo apt-get install -y python pkg-config u-boot-tools intltool xsltproc
sudo apt-get install -y gperf libglib2.0-dev libgirepository1.0-dev
sudo apt-get install -y gobject-introspection
sudo apt-get install -y python2.7-dev python-dev bridge-utils
sudo apt-get install -y uml-utilities net-tools
sudo apt-get install -y libattr1-dev libcap-dev
sudo apt-get install -y kpartx libsdl2-dev libsdl1.2-dev
sudo apt-get install -y debootstrap bsdtar
sudo apt-get install -y libelf-dev gcc-multilib g++-multilib
sudo apt-get install -y libcap-ng-dev
sudo apt-get install -y libmount-dev libselinux1-dev libffi-dev libpulse-dev
sudo apt-get install -y liblzma-dev python-serial
sudo apt-get install -y libnuma-dev libnuma1 ninja-build
sudo apt-get install -y libtool libsysfs-dev libasan

On 64-Bit Machine:

sudo apt-get install lib32z1 lib32z1-dev libc6:i386

NOTE!

If It is the first time you use git, please configure git as below

git config --global user.name "Your Name"
git config --global user.email "Your Email"

To Start

First of all, You need to obtain the source code of BiscuitOS from GitHub, follow these steps to get the newest and stable branch. The BiscuitOS project will help you easily to build a customization-BiscuitOS.

git clone https://github.com/BiscuitOS/BiscuitOS.git

Next step, we need to build BiscuitOS with common Kbuild syntax. The BiscuitOS support multiple kernel version and filesystem types, you can configure BiscuitOS as you wish. The Kbuild will help you easily to build all software and kernel. So utilize commands on your terminal:

cd */BiscuitOS
make defconfig
make

Then, the BiscuitOS will auto-compile and generate a distro-Linux, more useful information will be generated. Check README.md which determines how to use it. as follow:

 ____  _                _ _    ___  ____  
| __ )(_)___  ___ _   _(_) |_ / _ \/ ___| 
|  _ \| / __|/ __| | | | | __| | | \___ \ 
| |_) | \__ \ (__| |_| | | |_| |_| |___) |
|____/|_|___/\___|\__,_|_|\__|\___/|____/ 
                                          
***********************************************
Output:
 */BiscuitOS/output/linux-x.x.x 

linux:
 */BiscuitOS/output/linux-x.x.x/linux/linux 

README:
 */BiscuitOS/output/linux-x.x.x/README.md 

***********************************************

Silence information

export BS_SILENCE=true

Offical Website and Blog

BiscuitOS Home Page

BiscuitOS Blog Index

Email: BuddyZhang1 buddy.zhang@aliyun.com

About

Common scripts to build BiscuitOS

License:GNU General Public License v2.0


Languages

Language:Makefile 72.0%Language:Shell 14.4%Language:C 10.5%Language:C++ 1.7%Language:Perl 0.5%Language:Yacc 0.5%Language:Lex 0.2%Language:Roff 0.1%Language:Dockerfile 0.0%