Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-18-2012, 01:25 PM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Post Buildroot - Things added for the kindle

This is a quickie list to remind me of the things I am adding to buildroot.
Specifically software packages.

I will probably update this top-post to be a how to at some point.

The list will grow as and when.
Things added to buildroot

AALIB (and aafire)

Spoiler:
Quote:
[root@kindle us]# aafire --help
-driver select driver
available drivers:linux curses stdout stderr
-kbddriver select keyboard driver
available drivers:curses stdin
-mousedriver select mouse driver
available drivers:cursesdos

Size options:
-width set width
-height set height
-minwidth set minimal width
-minheight set minimal height
-maxwidth set maximal width
-maxheight set maximal height
-recwidth set recomended width
-recheight set recomended height

Attributes:
-dim enable usage of dim (half bright) attribute
-bold enable usage of bold (double bright) attribute
-reverse enable usage of reverse attribute
-normal enable usage of normal attribute
-boldfont enable usage of boldfont attrubute
-no<attr> disable (i.e -nobold)

Font rendering options:
-extended use all 256 characters
-eight use eight bit ascii
-font <font> select font(This option have effect just on hardwares
where aalib is unable to determine current font
available fonts:vga8 vga9 mda14 vga14 X8x13 X8x16
X8x13bold vgagl8 line

Rendering options:
-inverse enable inverse rendering
-noinverse disable inverse rendering
-bright <val> set bright (0-255)
-contrast <val>set contrast (0-255)
-gamma <val> set gamma correction value(0-1)

Ditherng options:
-nodither disable dithering
-floyd_steinberg floyd steinberg dithering
-error_distribution error distribution dithering
-random <val> set random dithering value(0-inf)
Monitor parameters:
-dimmul <val> multiply factor for dim color (5.3)
-boldmul <val> multiply factor for dim color (2.7)
The default parameters are set to fit my monitor (15" goldstar)
With contrast set to maximum and bright set to make black black
This values depends at quality of your monitor (and setting of controls
Defaultd settings should be OK for most PC monitors. But ideal monitor
Needs dimmul=1.71 boldmul=1.43. For example monitor used by SGI is very close to this values. Also old 14" vga monitors needs higher values.


WMCTL http://tomas.styblo.name/wmctrl

Spoiler:
Quote:
[root@kindle us]# wmctrl --help
wmctrl 1.07
Usage: wmctrl [OPTION]...
Actions:
-m Show information about the window manager and
about the environment.
-l List windows managed by the window manager.
-d List desktops. The current desktop is marked
with an asterisk.
-s <DESK> Switch to the specified desktop.
-a <WIN> Activate the window by switching to its desktop and
raising it.
-c <WIN> Close the window gracefully.
-R <WIN> Move the window to the current desktop and
activate it.
-r <WIN> -t <DESK> Move the window to the specified desktop.
-r <WIN> -e <MVARG> Resize and move the window around the desktop.
The format of the <MVARG> argument is described below.
-r <WIN> -b <STARG> Change the state of the window. Using this option it's
possible for example to make the window maximized,
minimized or fullscreen. The format of the <STARG>
argument and list of possible states is given below.
-r <WIN> -N <STR> Set the name (long title) of the window.
-r <WIN> -I <STR> Set the icon name (short title) of the window.
-r <WIN> -T <STR> Set both the name and the icon name of the window.
-k (on|off) Activate or deactivate window manager's
"showing the desktop" mode. Many window managers
do not implement this mode.
-o <X>,<Y> Change the viewport for the current desktop.
The X and Y values are separated with a comma.
They define the top left corner of the viewport.
The window manager may ignore the request.
-n <NUM> Change number of desktops.
The window manager may ignore the request.
-g <W>,<H> Change geometry (common size) of all desktops.
The window manager may ignore the request.
-h Print help.

Options:
-i Interpret <WIN> as a numerical window ID.
-p Include PIDs in the window list. Very few
X applications support this feature.
-G Include geometry in the window list.
-x Include WM_CLASS in the window list or
interpret <WIN> as the WM_CLASS name.
-u Override auto-detection and force UTF-8 mode.
-F Modifies the behavior of the window title matching
algorithm. It will match only the full window title
instead of a substring, when this option is used.
Furthermore it makes the matching case sensitive.
-v Be verbose. Useful for debugging.
-w <WA> Use a workaround. The option may appear multiple
times. List of available workarounds is given below.

Arguments:
<WIN> This argument specifies the window. By default it's
interpreted as a string. The string is matched
against the window titles and the first matching
window is used. The matching isn't case sensitive
and the string may appear in any position
of the title.

The -i option may be used to interpret the argument
as a numerical window ID represented as a decimal
number. If it starts with "0x", then
it will be interpreted as a hexadecimal number.

The -x option may be used to interpret the argument
as a string, which is matched against the window's
class name (WM_CLASS property). Th first matching
window is used. The matching isn't case sensitive
and the string may appear in any position
of the class name. So it's recommended to always use
the -F option in conjunction with the -x option.

The special string ":SELECT:" (without the quotes)
may be used to instruct wmctrl to let you select the
window by clicking on it.

The special string ":ACTIVE:" (without the quotes)
may be used to instruct wmctrl to use the currently
active window for the action.

<DESK> A desktop number. Desktops are counted from zero.

<MVARG> Specifies a change to the position and size
of the window. The format of the argument is:

<G>,<X>,<Y>,<W>,<H>

<G>: Gravity specified as a number. The numbers are
defined in the EWMH specification. The value of
zero is particularly useful, it means "use the
default gravity of the window".
<X>,<Y>: Coordinates of new position of the window.
<W>,<H>: New width and height of the window.

The value of -1 may appear in place of
any of the <X>, <Y>, <W> and <H> properties
to left the property unchanged.

<STARG> Specifies a change to the state of the window
by the means of _NET_WM_STATE request.
This option allows two properties to be changed
simultaneously, specifically to allow both
horizontal and vertical maximization to be
altered together.

The format of the argument is:

(remove|add|toggle),<PROP1>[,<PROP2>]

The EWMH specification defines the
following properties:

modal, sticky, maximized_vert, maximized_horz,
shaded, skip_taskbar, skip_pager, hidden,
fullscreen, above, below

Workarounds:

DESKTOP_TITLES_INVALID_UTF8 Print non-ASCII desktop titles correctly
when using Window Maker.

The format of the window list:

<window ID> <desktop ID> <client machine> <window title>

The format of the desktop list:

<desktop ID> [-*] <geometry> <viewport> <workarea> <title>


Author, current maintainer: Tomas Styblo <tripie@cpan.org>
Released under the GNU General Public License.
Copyright (C) 2003


SDL (mutex tweaks) - aalib support

LBREAKOUT2

Other stuff I can't remember hence this list...

Re-added basic Xephyr building back into the xserver-xorg build.
Quote:
Config: select BR2_PACKAGE_XLIB_LIBXV
mk: --enable-xephyr
[root@kindle us]# mntroot rw
system: I mntroot:def:Making root filesystem writeable
[root@kindle /]# cd /; ln -s /mnt/us/usr mntususr
[root@kindle /]# sed -i 's_${prefix}_/mntususr_g' /mnt/us/usr/bin/Xephyr
[root@kindle us]# mntroot ro
system: I mntroot:def:Making root filesystem read-only

[root@kindle /]# Xephyr :1 -title "L:A_N:application_ID:xephyr_O:R_PC:N" -screen
800x600 -cc 4 -dpi 135


TBC


This list will not aim to exhaustively encompass the other changes such as
Custom Kernel build, Custom Busybox, CTNG Config for the 5, Kindle specific filesystem skeleton, etc.

Last edited by twobob; 11-18-2012 at 10:59 PM. Reason: info, Xephyr
twobob is offline   Reply With Quote
Old 10-19-2012, 08:29 AM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Tiny guide to adding things to buildroot: https://www.mobileread.com/forums/sho...5&postcount=19

A similar earlier guide: https://www.mobileread.com/forums/sho...&postcount=106

helpful thoughts on cross pkg-config - and maybe the future

http://www.freedesktop.org/wiki/Soft...ompileProposal

Quote:
The pkg-config tool works with a collection of .pc files that describe available packages for linking. These files are located using the following rules:

searching directories listed in $PKG_CONFIG_PATH
when $PKG_CONFIG_LIBDIR is specified, it will override the compiled in default directory (e.g. /usr/lib/pkgconfig) and the PKG_CONFIG_PATH.
Note that when specifying PKG_CONFIG_LIBDIR, pkg-config will completely ignore the content in PKG_CONFIG_PATH, even if the documentation states different things.

In a cross compile situation, some .pc files on the system will be for the build machine and some will be for the target machine. In order to make sure that the build machine's .pc files are not found, both the $PKG_CONFIG_PATH and $PKG_CONFIG_PATH environment variables must be set to directories containing only target machine `.pc files.

Last edited by twobob; 12-16-2012 at 11:56 PM.
twobob is offline   Reply With Quote
Advert
Old 08-22-2013, 10:18 AM   #3
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Post

Added DOSBOX
Latest Build via SVN

Many Many Many thanks to the #dosbox IRC peeps for putting up with me while I did it.

The files included here are simply the dosbox.mk and Config.in
Attached Thumbnails
Click image for larger version

Name:	Selection_567.png
Views:	341
Size:	6.9 KB
ID:	109772  
Attached Files
File Type: zip dosbox-SVN-buildroot-package-files.zip (976 Bytes, 244 views)
twobob is offline   Reply With Quote
Reply

Tags
buildroot, kindle, kindle touch


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Buildroot a linux 2.6.26-lab126 kernal. (3.3) twobob Kindle Developer's Corner 155 05-08-2016 12:08 AM
Making a ctng Toolchain for the Kindle Touch via Buildroot twobob Kindle Developer's Corner 16 11-25-2012 08:35 PM
[?] added in Kindle mnj Conversion 7 10-18-2012 07:57 AM
Date Added column? Can I set date when book added to library? fitzhugh Calibre 4 06-03-2012 05:42 PM
Can kindle touch be added new font! tungvu1982 Amazon Kindle 1 12-09-2011 10:30 AM


All times are GMT -4. The time now is 01:23 AM.


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