Giter Club home page Giter Club logo

raspberry-pi-3_embedded-linux's Introduction

raspberry-pi-3_embedded-linux

This project provides Buildroot configuration and scripts to generate a custom Embedded Linux Image for a Raspberry PI 3.

Open a terminal in the raspberry-pi-3_embedded-linux directory and follow these steps to build a basic image for the Raspberry PI 3.

Description

Getting Started

Setup

  1. Change the following scripts to executables:

    $ chmod +x setup-env.sh build.sh run-emu.sh

  2. Get all the sources needed to build the image and configure buildroot by typing:

    $ ./setup-env.sh

Build

  1. Now we can build the rpi 3 image by typing:

    $ ./build.sh make

If any error occurred on the build, open the build.log in the buildroot directory.

  1. Build the fbcp binary to enable the /dev/fb1 to display the content in the LCD screen:

    "$ build.sh fbcp"

  2. Copy the fbcp and additionals files to the sdcard.img created by buildroot to enable the 3.5" SPI LCD screen.

    $ ./build.sh cp2sd

  3. Insert the sdcard and flash the rpi3 image:

    $ ./build.sh flash /dev/mmcblk0

The flash command will format the sdcard to FAT32 before flashing, so you don't have to manually format the sdcard. Important: Do not use /dev/mmcblk0p1, it won't work.

Run

  1. Now you can insert the sdcard in the raspberry pi 3 with the 3.5 LCD screen and power it up.

The following message should appear:

"Welcome to Embedded linux on Raspberry Pi 3!"
  1. Login to the raspberry:

    $ rpi login: root $ password: rpi3

References

  1. Wifi firmware fix: http://lists.busybox.net/pipermail/buildroot/2016-April/159688.html

  2. TFT screen and fbcp setup: https://github.com/recalbox/recalbox-os/wiki/TFT-Screen-SPI-Bus-%28EN%29

  3. Connect to a wifi network: http://linuxcommando.blogspot.com/2013/10/how-to-connect-to-wpawpa2-wifi-network.html

    http://recalbox-wiki-rtfd.readthedocs.io/en/4.0/EN/Utility---Use-of-fbcp-for-small-TFT-screen-(EN)/

    https://delog.wordpress.com/2014/10/10/wireless-on-raspberry-pi-with-buildroot/

  4. Hotspot:

    https://frillip.com/using-your-raspberry-pi-3-as-a-wifi-access-point-with-hostapd/

    https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=141807

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.