Git Product home page Git Product logo

ecu's Introduction

An Engine Control Unit/Module that runs on the bare-metal Raspberry Pi.

Getting Started

  1. To build from source, you will need an ARM compiler.
    • If you are compiling on a Raspberry Pi, the native compiler should work.
    • If you are compiling on another machine, you will need a cross compiler. You can download the latest toolchain from the GCC ARM Embedded Project. Extract the archive to a location of your choosing and add it's bin folder to your PATH.
  2. Fetch the latest code from GitHub.
    • Make a directory to clone to, e.g. mkdir ~/ecu && cd ~/ecu
    • Then git clone https://github.com/MichaelBuhler/ecu.git
  3. Compile the code:
    • cd ~/ecu
    • make
  4. Copy the generated kernel.img (or kernel7.img) file from the /bin folder onto the (micro)SD card.
    • If you have an existing RPi Linux installation you can test this out by replaceing it's /boot/kernel.img with your own. The /boot path is probably it's own partition on the SD card. (If your card has NOOBS, this should the partition numbered 5.)
    • If you want to run the minimum bare-metal installation, reformat your SD card with one FAT32 partition and copy kernel.img to it. You will also need two RPi firmware binaries (bootcode.bin and start.elf); you can pull the latest from GitHub. Place all files at the root of the partition.
  5. Plug in the SD card and boot up your Raspberry Pi.
  6. [Attach the Raspberry Pi to your car's engine.]
  7. Let me know if it works or if it blows up.

ecu's People

Contributors

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