Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fhunleth/tilde-pi

Very, very, very early experimentation with making a Tilde Server in Buildroot
https://github.com/fhunleth/tilde-pi

Last synced: about 1 month ago
JSON representation

Very, very, very early experimentation with making a Tilde Server in Buildroot

Awesome Lists containing this project

README

        

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