Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : SDK available


hakim
12-11-2007, 10:53 AM
I have already posted in jinke forum and here I'll just copy my post (original post (http://www.jinke.com.cn/Compagesql/developer/topic.asp?l_id=7&t_id=70&page=1)).

First of all, I am not in any way related to Jinke.
Now the main part.

Download
The chinese servers are VERY slow and people report that they don't receive a link for confirming their registration, so I have uploaded the SDK stuff to my website. Here are the links (download only v3sdk if you have linux):
toolchain-20071015 (http://www.binaryworld.xz.lt/toolchain-20071015.tar.gz)
v3sdk-1.2.1.tar.gz (http://www.binaryworld.xz.lt/v3sdk-1.2.1.tar.gz)

Installing and launching emulator
I am not sure how it is done under windows, but folks using linux, can do it like that:
1) download and extract v3sdk-1.2.1.tar.gz:
wget http://www.binaryworld.xz.lt/v3sdk-1.2.1.tar.gz; tar zxvf v3sdk-1.2.1.tar.gz
2) Go to the extracted directory and install the required files
cd v3sdk-1.2.1; sudo ./install
3) Put simlink, which jinke staff forgot to put:
cd i386/lib/; ln -s libpdf.so.V3 libpdf.so
4) Put some ebooks, mp3s and pics to /root/abook (abook is treated as eReader's SD card)
5) Go to i386/bin and launch the emulator:
cd ../bin; sudo ./demo.sh

Controls
1)1-8 Selection
2)9 Page up
3)0 Page down
4)y Menu/OK
5)n Cancel/Back

Problems
1) Problems with fonts (lots of errors like: fnt_createfont: /root/fonts/truetype/couri.ttf,20 not found);
2) gif and png images are not listed (though you can open them while in picture viewer mode (you can open picture viewer by opening jpg image));
3) mp3 player doesn't work (shows an error: invalid mp3 device);
4) language preferences are not stored.

mrdini
12-11-2007, 05:55 PM
I have already posted in jinke forum and here I'll just copy my post (original post (http://www.jinke.com.cn/Compagesql/developer/topic.asp?l_id=7&t_id=70&page=1)).

First of all, I am not in any way related to Jinke.
Now the main part.

Download
The chinese servers are VERY slow and people report that they don't receive a link for confirming their registration, so I have uploaded the SDK stuff to my website. Here are the links (download only v3sdk if you have linux):
toolchain-20071015 (http://www.binaryworld.xz.lt/toolchain-20071015.tar.gz)
v3sdk-1.2.1.tar.gz (http://www.binaryworld.xz.lt/v3sdk-1.2.1.tar.gz)

I would be very careful of hosting these files elsewhere if I were you - if I understand the developer agreement correctly, you aren't really supposed to be doing that! :P


Installing and launching emulator
I am not sure how it is done under windows, but folks using linux, can do it like that:
1) download and extract v3sdk-1.2.1.tar.gz:
wget http://www.binaryworld.xz.lt/v3sdk-1.2.1.tar.gz; tar zxvf v3sdk-1.2.1.tar.gz
2) Go to the extracted directory and install the required files
cd v3sdk-1.2.1; sudo ./install
3) Put simlink, which jinke staff forgot to put:
ln -s i386/lib/libpdf.so.V3 i386/lib/libpdf.so
4) Put some ebooks, mp3s and pics to /root/abook (abook is treated as eReader's SD card)
5) Go to i386/bin and launch the emulator:
cd i386/bin; sudo ./demo.sh

Something to keep in mind - the SDK installs in /root/ so it would be HIGHLY inadvisable to install this on a production system. I installed my copy inside a QEMU image, as I use Mac OS X so...

What I don't get about the SDK is - how do we install stuff onto an Hanlin Vx reader, or even create an app? I've not gotten round to writing anything yet, as the documentation's kinda just specifications & doesn't exactly tell you how to achieve things.

Ah well...

hakim
12-12-2007, 12:33 AM
I would be very careful of hosting these files elsewhere if I were you - if I understand the developer agreement correctly, you aren't really supposed to be doing that! :P
They customize linux OS for their needs, but don't give out complete source code and they expect me to respect their agreement? Anyway, it's Lithuania here - in worst case my hosting company can ask me to remove the files. BTW, I saw earlier versions of these already hosted on one russian ftp server.

Something to keep in mind - the SDK installs in /root/ so it would be HIGHLY inadvisable to install this on a production system. I installed my copy inside a QEMU image, as I use Mac OS X so...
I think for anyone who knows what sudo means it should be obvious that it's not installed in user's home directory...

What I don't get about the SDK is - how do we install stuff onto an Hanlin Vx reader, or even create an app? I've not gotten round to writing anything yet, as the documentation's kinda just specifications & doesn't exactly tell you how to achieve things.
I agree. The documentation they provide is not enough.
Also they don't seem to respond to e-mails sent to service AT jinke.com.cn and they don't seem to care what's happening in the forums. "Nice" customer service I would say...

hakim
12-13-2007, 11:21 AM
Just found Openinkpot (http://openinkpot.org/) project. OpenInkpot is a project for creating free and open-source Linux distribution for Hanlin eReader and lBook eReader.

mrdini
12-15-2007, 06:53 PM
Just found Openinkpot (http://openinkpot.org/) project.

Oohh, very interesting! Shame that the direction they're going in isn't the right direction IMHO :(

Consider this...
They're putting their effort into replacing the firmware with a fully open source one, which is commendable.

However, given the SDK, I think effort would be better spent on developing applications. After all, the Hanlins could be a FAR cheaper alternative to the Iliads, and look what they're doing with the Iliads!

A PDF app.
StarDict
Web browser (Minmo or Dillo) - connectivity is an issue though.
etc!

hakim
12-16-2007, 02:29 AM
They're putting their effort into replacing the firmware with a fully open source one, which is commendable.
90% of the software Hanlin uses is under GPL license (take a look here (http://openinkpot.org/wiki/BinariesLicenseInvestigation)). So what they are practically doing now is trying to get the source code of all the GPLed software jinke modified for their needs. As jinke is not willing to give the source, openinkpot ultimately is going to contact copyright holders. Take a look at the mailing list (http://groups.google.com/group/openinkpot-hackers/) for more info.

jeczmien
12-16-2007, 06:25 AM
Oohh, very interesting! Shame that the direction they're going in isn't the right direction IMHO :(

However, given the SDK, I think effort would be better spent on developing applications. After all, the Hanlins could be a FAR cheaper alternative to the Iliads, and look what they're doing with the Iliads!


You're right, but...

Have you try SDK they'd supplied?
Suppose you've developed new plugin - how will you load it to V3? Do you know the way? I don't.

Open reader is needed because Jinkie failed as a GPL user and a software vendor (if they give us a way to upload our extensions probably most of developers time goes to new plugins)

paucls
01-18-2008, 02:45 AM
Hello,

I tried to run the v3 SDK in a VM with CentOS 3.9 and fails:

./nano-X: /lib/tls/libc.so.6: version `GLIBC_2.3.4' not found (required by ./nano-X)
./bs: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

In what Linux Distribution you test the SDK and run ?


Now I'm going to try in a VM with Debian Etch.

hakim
01-18-2008, 04:33 AM
Hello,

I tried to run the v3 SDK in a VM with CentOS 3.9 and fails:

./nano-X: /lib/tls/libc.so.6: version `GLIBC_2.3.4' not found (required by ./nano-X)
./bs: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

In what Linux Distribution you test the SDK and run ?


Now I'm going to try in a VM with Debian Etch.
I've tried it on ubuntu which is based on debian.

Do you have libstdc++6 and libc6 installed? Is version of libc6 => 2.3.4?

paucls
01-18-2008, 04:43 AM
OK, with Debian Etch 4.0r2 the V3 SDK runs OK.

Thanks hakim !!!

ottocol
03-06-2008, 05:31 AM
I've been looking the SDK and I see makefiles for compiling plugins as a shared library, but I don't know how could I install this library on the real V3 żanybody knows? Jinke forums don't look very dynamic!

hakim
03-06-2008, 10:52 AM
I've been looking the SDK and I see makefiles for compiling plugins as a shared library, but I don't know how could I install this library on the real V3 żanybody knows? Jinke forums don't look very dynamic!

I suggest writing an e-mail directly (I think there are some people from jinke on this forum too (LVD maybe one of them?) ). Also you might find OpenInkpot (http://www.mobileread.com/forums/showthread.php?t=17414) project pretty useful ;)

dottedmag
03-07-2008, 09:53 AM
but I don't know how could I install this library on the real V3 żanybody knows?

You will need to build new firmware image and flash it to the device.

BTW, there are utilities in our (http://openinkpot.org/) repository for this.

Talisman
03-09-2008, 06:48 AM
IRC log with solution of some problems:
2008-03-09T17:10:38 <Talisman> talis@ubuntu-vm:~/v3sdk-1.2.1/i386/bin$ ./demo.sh
2008-03-09T17:10:38 <Talisman> No protocol specified
2008-03-09T17:10:38 <Talisman> nano-X: Can't connect to X11 server
2008-03-09T17:10:38 <Talisman> No protocol specified
2008-03-09T17:10:39 <Talisman> Cannot initialise screen
2008-03-09T17:10:39 <Talisman> nxclient: Can't shmget key 567: No such file or directory
2008-03-09T17:10:39 <Talisman> mount: only root can do that
2008-03-09T17:10:49 <Talisman> what can I do with this problem?
2008-03-09T17:11:02 <jekhor> xhost +
2008-03-09T17:14:12 <Talisman> ?
2008-03-09T17:16:46 <jekhor> execute this command
2008-03-09T17:19:10 <Talisman> vmplanet@ubuntu-vm:/home/talis/v3sdk-1.2.1/i386/bin$ xhost +
2008-03-09T17:19:10 <Talisman> access control disabled, clients can connect from any host
2008-03-09T17:19:49 <Talisman> same errors:
2008-03-09T17:19:52 <Talisman> vmplanet@ubuntu-vm:/home/talis/v3sdk-1.2.1/i386/bin$ ./demo.sh
2008-03-09T17:19:52 <Talisman> Cannot bind to named socket
2008-03-09T17:19:52 <Talisman> nxclient: retry connect attempt 1
2008-03-09T17:20:11 <Talisman> are you joking my virtual ps?
2008-03-09T17:22:21 <Talisman> *pc?
2008-03-09T17:22:46 <Talisman> hm... this command allow acess only for X terminal... sorry
2008-03-09T17:36:05 <LunohoD> sudo ./demo.sh
2008-03-09T17:42:00 <Talisman> VERY BIG THX!!!!!
2008-03-09T17:42:05 <Talisman> it is works now!

hakim
03-09-2008, 06:58 AM
Talisman, just read my first post...

Talisman
03-09-2008, 08:09 AM
Talisman, just read my first post...

please, add in first post:

xhost +
sudo ./demo.sh

:thumbsup:

Talisman
03-09-2008, 09:43 AM
Here:

ftp://66.246.229.102/incoming/SDK_V3/
login:
sdk@lbook.org
pass:
lbook

You can find:
File: crcrootfs_v3.tar.gz 25406 KB 8/6/2007 12:00:00 AM
File: p1010013.jpg 754 KB 8/6/2007 12:00:00 AM
File: v3sdk-1.0-with-toolchain.tar.gz 68102 KB 8/6/2007 12:00:00 AM
File: v3sdk-1.0.tar.gz 18816 KB 8/6/2007 12:00:00 AM

hakim
03-09-2008, 09:43 AM
please, add in first post:

xhost +
sudo ./demo.sh
sudo ./demo.sh was there from the beginning. I am using Ubuntu and it does work for me without "xhost +", so I don't see any point adding it.

Talisman
03-09-2008, 10:20 AM
oh... sorry :)

0..9 => 0..9
y => Ok
n => Esc
< => preview page
> => next page
+ Shift = long push

2 moders: clear my offtop

ottocol
03-10-2008, 10:45 AM
You will need to build new firmware image and flash it to the device.

BTW, there are utilities in our (http://openinkpot.org/) repository for this.

But I would need an image of the V3 filesystem to be able to modify it and generate the V3Update.bin. In the FTP server referenced by Talisman (thanks guy!) I have downloaded a crcrootfs_v3.tar.g that appears to be exactly this kind of stuff, BUT I would need the last firmware version, Is it possible to reverse the processs? from the V3Update.bin from Jinke, extract the files, update them and repackage them again.

By the other side I think openinkpot is a great idea, but is it workable right now? you have instructions on the web site for building the system, but I'm not talking about the bare system, but writing applications for it. have you planned a kind of an API for the developer? I assume you are not porting jinke applications but writing new ones, so your "SDK" would be a different one.

dottedmag
03-10-2008, 12:51 PM
> Is it possible to reverse the processs? from the V3Update.bin from Jinke, extract the files, update them and repackage them again.

Yes. Have a look at utils/mkv3update/scripts/firmware_unpack.sh

> but is it workable right now?

Not yet. You may build the firmware, but you'll get only bare system with X11 and without any graphical toolkit or X input method.

>have you planned a kind of an API for the developer?

It will be pretty standard Linux system, with X11, Enlightenment as GUI and any libraries you want (most of them are available from OpenEmbedded repository).