hhdang6637 / embedded_linux_skeleton

Building U-Boot, Linux kernel, and Rootfs from scratch for the embedded system (raspberry-pi)
GNU General Public License v2.0
22 stars 3 forks source link
buildroot embedded embeddedlinux linux linux-kernel orange-pi python qemu raspberry-pi raspberrypi rootfs u-boot

Building U-Boot, Linux kernel, and Rootfs from scratch for the embedded system

Purpose

This repository is a "simple" guide on how to build U-Boot, Linux kernel, and Rootfs from scratch for the linux embedded system.

Dependencies

You'll need the following programs installed on your machine

In ubuntu, run the following command to install all of them:

sudo apt-get install -y build-essential python python-dev swig ccache net-tools dh-autoreconf cmake

Get the source code

git clone https://github.com/hhdang6637/embedded_linux_skeleton.git

Build

To compile and run the example project, run the following commands:

export MODEL=arm_vexpress_a9
cd embedded_linux_skeleton
make

After that, we have the uboot, kernel, and rootfs image files at build/bin/

Test with QEMU

First, run the following command:

./qemu_scripts/qemu_kernel_roofs_start.sh

Login with root and no password.

Access Web Gui: http://127.0.0.1:2080

To be continued...