Coder Social home page Coder Social logo

jsdelivrbot / buildroot-s6 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elebihan/buildroot-s6

0.0 2.0 0.0 50.17 MB

This repository is deprecated. Use buildroot-demo-s6

License: GNU General Public License v2.0

Makefile 67.58% Arc 0.05% Shell 5.56% Tcl 0.30% Batchfile 0.03% M4 1.91% HTML 4.32% CSS 0.21% JavaScript 0.10% C 10.96% Perl 1.30% C++ 1.44% Lex 0.18% Yacc 0.42% Ruby 0.04% CMake 0.04% Python 5.55%

buildroot-s6's Introduction

buildroot-s6: s6 Supervision for Embedded Devices

Overview

s6 is small and secure supervision suite. Its companion, s6-rc is a complete service manager.

buildroot is a tool to generate embedded Linux systems.

buildroot-s6 allows the user to build a firmware for an embedded Linux device using s6 and s6-rc as its init system instead of SysV or systemd.

Several predefined configurations to showcase s6 are provided:

  • QEMU/x86
  • Raspberry Pi
  • HardKernel ODROID-C2

How to Build a Firmware

QEMU

In this configuration, all the programs are built using the GNU libc and dynamically linked. To build a firmware, execute:

$ make BR2_EXTERNAL=$PWD/custom O=$PWD/output-x86 -C buildroot demo_s6_qemu_x86_defconfig
$ make O=$PWD/output-x86 -C buildroot

Once the build is finished, the images for QEMU are available in ./output-x86/images. Run it like this:

$ qemu-system-i386 -M pc -kernel output-x86/images/bzImage \
    -drive file=output-x86/images/rootfs.ext2,if=virtio,format=raw \
    -append "root=/dev/vda" \
    -net nic,model=virtio \
    -net user,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:80

It is possible to connect via SSH to the target using:

$ ssh -p 2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost

The web server running on the target can be accessed by opening a web browser at http://localhost:8080.

Raspberry Pi

In this configuration, all the programs are built using musl libc and statically linked. To build a firmware, execute:

$ make BR2_EXTERNAL=$PWD/custom O=$PWD/output-rpi -C buildroot demo_s6_rpi_defconfig
$ make O=$PWD/output-rpi -C buildroot

Once the build is finished, the images for the SD card are available in ./output-rpi/images.

ODROID-C2

In this configuration, all the programs are built using the GNU libc and dynamically linked. To build a firmware, execute:

$ make BR2_EXTERNAL=$PWD/custom O=$PWD/output-odroidc2 -C buildroot demo_s6_odroidc2_defconfig
$ make O=$PWD/output-odroidc2 -C buildroot

Once the build is finished, the images for the SD card are available in ./output-odroidc2/images.

buildroot-s6's People

Contributors

aldot avatar arnout avatar axellin avatar baruchsiach avatar bkuhls avatar culssw avatar danomimanchego123 avatar djdeath avatar elebihan avatar erikbandersen avatar fabio-porcedda avatar fperrad avatar gustavoz avatar jacmet avatar jerome-pouiller avatar lucaceresoli avatar maximeh avatar mripard avatar nkukard avatar patrickdepinguin avatar pauliuszaleckas avatar pseiderer avatar romainnaour avatar sjhill71 avatar spdawson avatar tpetazzoni avatar tsed avatar vapier avatar yann-morin-1998 avatar yegorich avatar

Watchers

 avatar  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.