View Single Post
Old 08-06-2012, 07:12 PM   #3
tonyv began at the beginning.
Posts: 13
Karma: 20
Join Date: Oct 2009
Device: elonex eb600
A guide for kobo touch from memory and bash history so will edit if people have prob
My system is ubuntu 10.04 64bit
Telnet into kobo using this guide
optionally set up usb networking

on kobo
>strings /lib/ | grep ourcery
this is what i got
GNU C Library (Sourcery G++ Lite 2010q1-202) stable release version 2.11.1, by Roland McGrath et al.
if you have a different compiler you can flash to 1.9.17 or
download your version from mentor could try "your version" in google
make directory for downloads
>mkdir ~/kobostuff
>cd ~/kobostuff

>wget (optional)
or get from this

The Sourcery G++ graphical installer is incompatible with the dash shell, which is the
default /bin/sh for recent releases of the Ubuntu and Debian GNU/Linux distributions.

Ubuntu has dash instead of bash to run scripts the Sourcery G++ graphical installer is incompatible with the dash shell hence

>sudo dpkg-reconfigure -plow dash
Install as /bin/sh? No (do this again with yes after install to restore dash )
see pdf above

>sudo apt-get install gettext autoconf libglib2.0-dev ia32-libs
ia32-libs for 64 bit system don't need it for 32
>chmod a+x arm-2010q1-202-arm-none-linux-gnueabi.bin

Accept the default install path of $HOME/CodeSourcery/Sourcery_G++_Lite when prompted. Accept all other installer defaults.

put this line at end of ~/.bashrc
export PATH="/home/"yourusername"/CodeSourcery/Sourcery_G++_Lite/bin:${PATH}"

open new xterm so it reads .bashrc
to test
>arm-none-eabi-g++ -v
the last line of the output should contains: Sourcery G++ Lite 2010q1-202

should be able to compile full_updatescreen.c demo in eink.tar.gz below

arm-none-linux-gnueabi-gcc -Wall full_updatescreen.c -o update

to compile qt and libs set up symbolic links like so
> cd ~/CodeSourcery/Sourcery_G++_Lite/bin
> for f in arm-none-linux-gnueabi-* ; do ln -s $f arm-linux-${f:23}; done

>mkdir ~/kobo
>cd ~/kobo
>git clone git:// koboreader

>mkdir -p ~/kobo/fs ~/kobo/tmp

make new text file /kobo/KoboLabs/build/ with this contents


edit kobo/KoboLabs/build/scripts/
on line starting with ./configure add "-D QT_NO_QWS_CURSOR" at end without quotes
cd ~/kobo/tmp

if sucessful can test qt by compiling eink qt plugin in QtEink.tar.gz
mkdir whatever
cp QtEink.tar.gz whatever
cd whatever
tar -zxvf QtEink.tar.gz
> make clean
> make
copy to this directory on kobo

then compile this crude demo Sketch.tar.gz same as above
transfer to kobo
on kobo
>QWS_DISPLAY=kindlefb // guess where most the code came from see below
>./CppQtExample20 -qws

kobo java based pdf reader has eink driver for swing
Qt plugin for kindle source for kobo plugin
Good luck

I have started a new thread about eink drivers please use this thread for support about setting up enviroment and other about eink drivers .
Attached Files
File Type: gz eink.tar.gz (3.1 KB, 360 views)
File Type: gz QtEink.tar.gz (34.4 KB, 338 views)
File Type: gz Sketch.tar.gz (47.7 KB, 318 views)

Last edited by tonyv; 08-06-2012 at 08:13 PM.
tonyv is offline   Reply With Quote