View Single Post
Old 02-22-2014, 03:49 PM   #1
JesseGordon
Junior Member
JesseGordon began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2014
Device: Kindle 3 keyboard
Native graphics demo & How do I attach getty to keyboard?

Good Day,

this is my first post on mobileread.

This is about Kindle 3 / Kindle Keyboard

I found that the graphical user interface of course big java blob run in the virtual /usr/java/bin/cvm which is launched on boot (with a tonna command line parameters) from /etc/init.d/boot_finished

This means that if you want to launch some other program instead (or before) you can add it to this boot_finished file. You may have to make sure paths are set correctly.

I have also written a very hasty hack of a simple primitives graphics "library" to draw lines, circles, and rectangles on the display using /dev/fb0 - which by passes the java user interface. (See attached.)

I compiled it with scratchbox compiler as described here: https://www.mobileread.com/forums/showthread.php?t=59828

Except I had to use deb2tgz because I was using slackware.

Anyway, What I would love to do is have my K3 come up without the java thing going and just present me with a linux command prompt.

The keyboard seems to show up as a regular event device in /dev/input/event0 (for keyboard), event1 (for joypad), and event2 for volume buttons.

However I really want to do is have the kindle boot up and give me a root prompt on the display/keyboard without ever even loading the javabloat.

Then from the command line I can launch whatever of my own compiled C apps I want.
Think of it as a little computer that can run the display for days on a charge.

I know there are terminals, but don't those run within the java system?

I will probably have to write a kernel driver which shows up as a serial port and reads from keyboard and writes to fb0, unless someone already did?

Any advice would be much appreciated.

Thanks,

Jesse

EDIT/PS: I've updated graphics library to also support alpha drawing as well as anti-aliasing, as well as polygons with holes. ~Jesse@3-29-2014
Attached Thumbnails
Click image for larger version

Name:	P1000741-cropped.JPG
Views:	302
Size:	346.8 KB
ID:	119401  
Attached Files
File Type: txt kindle_graphics.c.txt (54.4 KB, 245 views)

Last edited by JesseGordon; 03-30-2014 at 02:52 AM.
JesseGordon is offline   Reply With Quote