Git Product home page Git Product logo

tilde-pi's Introduction

CoderDojoDC Tilde Pi

This project generates a simple Linux server that can be loaded onto a Raspberry Pi. The server will be used to teach CoderDojoDC members about the Unix commandline and let them post simple web pages.

Building

If you're using Ubuntu, you may need to install some packages to make Buildroot work. This should be sufficient:

$ sudo apt-get install git g++ libncurses5-dev bc
$ sudo apt-get install libc6:i386 libstdc++6:i386 zlib1g:i386 gcc-multilib # 64-bit Linux

After that, clone this project and run make:

$ make tilde_pi_defconfig
$ make

It can take some time to download and build everything so you may need to be patient. The build products can be found in buildroot/output/images.

Installing

Insert an SDCard on your PC and note where it appears under Linux. If the SDCard is automounted, make sure to umount everything that was mounted. Then run the following, but replace /dev/sdc with the path to the SDCard.

$ sudo dd if=buildroot/output/images/tilde_pi.img of=/dev/sdc bs=1M

Insert the SDCard into a Raspberry Pi Model B, and watch it boot over the serial port. Log in as...

Running in qemu

It's possible to do a lot of work locally in qemu. Run the following to make a qemu build:

$ make clean
$ make tilde_qemu_defconfig
$ make

Then, start up qemu:

$ qemu-system-arm -M vexpress-a9 -kernel buildroot/output/images/zImage \
          -drive file=buildroot/output/images/rootfs.ext2,if=sd \
          -append "console=ttyAMA0,115200 root=/dev/mmcblk0" \
          -serial telnet:localhost:4444,server \
          -net nic,model=lan9118 -net user -nographic

Now that qemu is started, it's waiting for you to connect to the serial port. This is accessible by telneting to port 4444. I.e.

$ telnet localhost 4444

Log in as root:root or fhunleth:fhunleth, etc. for now.

tilde-pi's People

Contributors

fhunleth avatar

Watchers

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