ifly7charlie / XCSoar-Kobo-Build

5 stars 2 forks source link

About

This repository is a fork of the KoboLabs e-reader that provides a build environment and a USB Host kernel for running XCSoar on a Kobo Mini.

Caveats

This has only been tested on a Kobo Mini, but it will probably work on other new kobo devices

At present you can't boot your device between e-Reader and XCSoar without reflashing the kernel. This will be rectified with an 'auto-reflash' option in the boot sequence

Rebuilding

Kernel

Unfortunately the Kobo Kernel must be compiled with an older version of GCC (4.4) and XCSoar requires 4.6 or later. To resolve this you will need to build chains - one for the XCSoar packages and one for the kernel.

Setup

bunzip2 arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

sudo tar -C /usr -xvf arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar --strip 1

Building

Installing

dd if=arch/arm/boot/uImage of=/dev/[your memory card] bs=512 seek=2048

or

copy to /mnt/onboard/.kobo/upgrade/uImage and touch /mnt/onboard/.kobo/KoboRoot.tgz then insert card and reboot kobo

or

copy to SD card (XCSoar installed), or normal Kobo plugged into laptop in .kobo/upgrade/uImage touch .kobo/KoboRoot.tgz then reboot kobo

note that the memory card is the WHOLE card, not a partition. So if your card is /dev/sdb use this not the root partition of /dev/sdb1. The kernel is installed outside of the filesystem at an absolute offset!

Building XCSoar

This is a two part process - one is seting up the build environment, which can be done using this git repository. The second is actually building XCSoar, which requires code from the XCSoar repository

Setup - CodeSourcery

Setup - G++ - Hardware Float

sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf

Building

Compiling XCSoar