Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 11-13-2010, 01:03 PM   #1
racagalro
Junior Member
racagalro doesn't litterracagalro doesn't litter
 
Posts: 1
Karma: 176
Join Date: Nov 2010
Device: cooler
Pocketbook free SDK in Cooler ereader

I've made some test in running Pockebook free SDK in a Cooler ereader. I succeded partially but now I need some help.

First, let me explain how I did it.
Before I begin I have to say I'm not running Cooler firmware in my box, I'm running Booq firmware instead but I think this is not relevant as both are based on the same Netronix EB600 original software.

This firmware comes with a backdoor.sh scripts that allows to run a personal script at boot time. I discover this when I found browsing the Internet that it is used by kewler and skinmod scripts in order to change themes in the Cooler box.

I exploit this same trick to run the SDK example grays.app in my box. First I compiled the program for ARM processor using the SDK. As far as the program uses libinkview.so and this library is not in the original Netronix firmware I put it also in the directory and used LD_LIBRARY_PATH to be sure it is used by the program. I do the same with libcurl.so. The rest of dynamic libraries needed by libinkview.so were provided by the Netronix software.

The program executed but fails because cannot find devices pvi_ioc, ebr_adc and inkdrv. I found in Openinkpot web site a listing of Pocketbook filesystem and saw that pvi_io and pvio_ioc has the same major and minor, also with adc and ebr_adc, also with inkdrv and fb0. As far as these drivers where in Netronix firmware I created those needed by libinkview.so with the same major/minor as they have in Netronix firmware. And it worked.

Finally, the program grays.app failed because some fonts from /ebrmain were not found. So, I copied the whole ebrmain directory from SDK to the Cooler flash and linked it to the right pathname. It worked fine, and I could see the greyed squares of grays.app in the Cooler screen.


This is the good part of the history. However, there is a problem which halting me right now: the press of any of the keys of the box is not detected by the grays.app.

I made also this same test with the more completed inkdemo example. Same result: Pressing of any of the keys is not detected by the program.

I need some help about this subject. Which of the three devices (pvi_io, adc or fb0) used by libinkview.so is responsible of detecting the pressing of a key and to pass it to the library? I'm guessing that the drivers provided by Netronix are good for libinkview.so but maybe is not so and differences are high enough to avoid compatibility.

How can I go further. Anyone there can help me?


Find here after the listing s of the scripts I'm using.

backdoor.sh
#!/bin/sh

# kewl-er backdoor script for the Cool-ER reader

if [ -e /mnt/flash/cogedatos.sh ]; then
sh /mnt/flash/cogedatos.sh
fi

#if [ -e /mnt/flash/.plugins/random.sh ]; then
# sh /mnt/flash/.plugins/random.sh
#fi




cogedatos.sh
#!/bin/sh


logPath=/mnt/flash/cogedatos.txt

/bin/led 2 &

LD_LIBRARY_PATH=/mnt/flash:$LD_LIBRARY_PATH

export LD_LIBRARY_PATH=/mnt/flash

# This is a security line in order to avoid execution in followings boots
mv /mnt/flash/backdoor.sh /mnt/flash/backdoor_sh

# I create the devices
mknod -m 660 /dev/pvi_ioc c 10 190
mknod -m 660 /dev/ebr_adc c 10 132
mknod -m 660 /dev/einkdrv c 29 0
ls -l /dev|grep pvi > /mnt/flash/lsdev.out
ls -l /dev|grep adc >> /mnt/flash/lsdev.out
ls -l /dev|grep eink >> /mnt/flash/lsdev.out

# Create the links and copy config files
rm -f /ebrmain
rm -f /mnt/ext1/ext1
ln -s /mnt/flash/ebrmain /ebrmain >> /mnt/flash/lsdev.out
ln -s /mnt/flash/ext1 /mnt/ext1 >> /mnt/flash/lsdev.out
cp /mnt/flash/ext1/test.cfg /mnt/ext1/test.cfg >> /mnt/flash/lsdev.out
df >> /mnt/flash/lsdev.out
ls -lR /ebrmain >> /mnt/flash/lsdev.out
ls -lR /mnt/ext1 >> /mnt/flash/lsdev.out
hwclock -s

# Run the program
/mnt/flash/grays.app > $logPath 2>&1 &


# Security code to kill the program in case of problems
sleep 30
killall grays.app


sync
killall led
/bin/poff

Last edited by racagalro; 11-13-2010 at 01:09 PM.
racagalro is offline   Reply With Quote
Reply

Tags
booq, cooler, free, pocketbook, sdk

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cooler-er don't want to start Edvb Interead COOL-ER 4 10-15-2010 05:36 AM
Download free eReader app, get a free coffee! kjk News 7 07-10-2010 04:31 AM
Wiki for Pocketbook Free/Development wallnuss PocketBook 18 05-29-2010 09:03 AM
Pocketbook SDK, Linux and Wine mikmak PocketBook 10 12-09-2009 07:17 AM
Hardware Cooler et le copyright Godzil Forum Français 0 09-08-2009 01:20 PM


All times are GMT -4. The time now is 07:03 PM.


MobileRead.com is a privately owned, operated and funded community.