GithubHelp home page GithubHelp logo

molejar / emlinux Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 2.0 1.27 MB

Embedded Linux tools for i.MX platform

License: MIT License

Shell 100.00%
embedded-linux linux-os virtual-machine debian rootfs kernel bootloader imx6 imx7

emlinux's Introduction

Enablement for Embedded Linux Development

This repository contains a set of automatization scripts for:

  • generating virtual machine with Linux OS (debian or ubuntu)
  • compiling toolchain, u-boot and kernel
  • building rootfs for different Linux distributions like debian, ubuntu, ...
  • creating or extracting bootable SD Card image

Motivation

Building a bootable SD-Card image with Debian based embedded Linux OS for i.MX platform is too complex task. This project is trying to decrease its complexity and make the process much easier and user friendly.

Installation

In Debian based Linux distributions just install the package emlinux-tools_x.x.x_all.deb from release section.

   $ wget --quiet https://github.com/molejar/emLinux/releases/download/x.x.x/emlinux-tools_x.x.x_all.deb
   $ sudo dpkg -i emlinux-tools_x.x.x_all.deb

Replace x.x.x with the version number of last release !

In Windows OS you will need to use the Virtual Machine. I have created a Vagrant script which will do all the work for you. Just download the emlinux-vm_x.x.x.zip and extract it into your disk. Then continue reading here: Virtual Machine Builder

Usage

The following picture describes general usage of this automatization scripts. As you can see from picture, every script covers a specific role in image build process and is accessible as standard shell command.

Embedded Linux Tools

All Implemented commands:

  • build_toolchain - Prepare toolchain for bootloader and kernel building
  • build_barebox - Build BareBox Bootloader (replacement of U-Boot)
  • build_uboot - Build U-Boot Bootloader from sources in git repo
  • build_kernel - Build Linux Kernel from sources in git repo
  • build_rootfs - Build minimal RootFS based on Debian packages
  • build_image - Create SD Card image from uboot, kernel and rootfs

With argument -h or -? you can print the command usage. Read Wiki page for more details.

For embedded Linux development under Windows OS read Step-By_step tutorial.

GPU and VPU support

Description for GPU and VPU is here

Development

Clone this repository into your local disk (running Linux OS).

   $ git clone https://github.com/molejar/emLinux.git
   $ cd emLinux

In Debian based Linux distributions install all dependencies and execute install.sh script.

   $ sudo apt-get install build-essential, u-boot-tools, device-tree-compiler, qemu-user-static
   $ sudo apt-get install binfmt-support, debootstrap, binutils, parted, realpath, git, lzop, gzip, zip

   $ sudo ./install.sh

In other Linux distributions use Virtual Machine Builder.

   $ vagrant up
   $ ...

TODO

Usefull Links

emlinux's People

Contributors

cosminstoicastefan avatar maslostvarohem avatar molejar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

emlinux's Issues

build_kernel takes ages to search for a toolchain

I have installed the toolchain, but build-Kernel seems stuck while searching it. How long should it usually take? It is showing me the following message since two hours:
[INFO] Searching Compiler, please wait!

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.