View Single Post
Old 08-06-2012, 07:12 PM   #3
tonyv
Member
tonyv began at the beginning.
 
Posts: 12
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
http://wiki.mobileread.com/wiki/Kobo_Touch_Hacking
optionally set up usb networking




on kobo
>strings /lib/libc.so.6 | 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
site:sourcery.mentor.com "your version" in google
make directory for downloads
>mkdir ~/kobostuff
>cd ~/kobostuff

>wget https://sourcery.mentor.com/public/g...ux-gnueabi.bin
>wget https://sourcery.mentor.com/sgpp/lit...ng-started.pdf (optional)
or get from this
http://www.codesourcery.com/sgpp/lit...al/release1293

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
>./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://github.com/kobolabs/Kobo-Reader.git koboreader

>KOBOLABS=$HOME/kobo/KoboLabs
>mkdir -p ~/kobo/fs ~/kobo/tmp

make new text file /kobo/KoboLabs/build/build-config-user.sh with this contents

DEVICEROOT=$HOME/kobo/fs
QT_EXTRA_ARGS=--prefix=$HOME/kobo/qt

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



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
>~/kobo/qt/bin/qmake
> make clean
> make
copy libKindleFb.so to this directory on kobo
/usr/local/Trolltech/QtEmbedded-4.6.2-arm/plugins/gfxdrivers/

then compile this crude demo Sketch.tar.gz same as above
transfer to kobo
on kobo
>LD_LIBRARY_PATH=/usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib
>QWS_DISPLAY=kindlefb // guess where most the code came from see below
>QWS_MOUSE_PROTO=tslib:/dev/input/event1
>./CppQtExample20 -qws



ref
http://blog.ringerc.id.au/2011/01/pr...nment-for.html
kobo java based pdf reader has eink driver for swing
http://www.blogger.com/comment.g?blo...12809223613654 http://code.google.com/p/mediaz/
Qt plugin for kindle source for kobo plugin
http://www.griffin.net/2010/01/hacki...nd-sudoku.html
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, 185 views)
File Type: gz QtEink.tar.gz (34.4 KB, 158 views)
File Type: gz Sketch.tar.gz (47.7 KB, 145 views)

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