View Full Version : iLiad Iliad internals


ali
07-18-2006, 10:53 AM
I think we should stop discussing the hacking stuff in the general user-oriented threads, hence I started this one.


What I really love: This is /usr/bin/do_updates.sh:

#!/bin/sh
echo "No updates needed."



Some general things:


There is a tar installed - doing a

ssh root@192.168.1.100 'tar -cf - /' > iliad.tar

worked flawlessly, gave me a 180M filesystem dump
You cannot run a terminal, because there is none. No xterm, rxvt, gnome-terminal and so on
The browser is Minimo (http://www.mozilla.org/projects/minimo/)
This is running:

PID Uid VmSize Stat Command
1 root 516 S init [5]
2 root SW [keventd]
3 root SWN [ksoftirqd_CPU0]
4 root SW [kswapd]
5 root SW [bdflush]
6 root SW [kupdated]
7 root SW [kUCB1x00d]
8 root SW [tffs1]
9 root SW [mtdblockd]
10 root SW [khubd]
205 root 600 S /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
265 root 708 S /sbin/cardmgr
278 root 568 S /sbin/syslogd -n -C 64 -m 20
280 root 552 S /sbin/klogd -n
296 root SW [wlan_main_servi]
297 root SW [wlan_reassoc_se]
380 root 568 S /sbin/syslogd
381 root 564 S /usr/bin/displayMgr -p -w /var/waveform.bin
382 root 516 S /usr/bin/erbusyd
383 root 2400 S /usr/bin/Xfbdev -screen 768x1024x8 -3button -dpi 100 -ac
384 root 2044 S /usr/bin/matchbox-window-manager -use_titlebar no -use_cursor no
388 root 3900 S /usr/bin/pageBar
389 root 2020 S /usr/bin/matchbox-panel --size 39 --no-menu --bgcolor White
393 root 5784 S /usr/bin/contentLister --sync
394 root 516 S /usr/bin/erbusyd
395 root 916 S /usr/bin/powerMgr
396 root 516 S /usr/bin/erbusyd
451 root 916 S /usr/bin/powerMgr
452 root 916 S /usr/bin/powerMgr
453 root 916 S /usr/bin/powerMgr
567 root 5784 S /usr/bin/contentLister --sync
568 root 5784 S /usr/bin/contentLister --sync
582 root 620 S udhcpc -b -p /var/run/udhcpc.wlan0.pid -i wlan0
648 root 5784 S /usr/bin/contentLister --sync
686 root SW [usbplugd]
693 root 572 S msdisk
726 root 480 S /sbin/getty -L ttyS2 115200 vt100
748 root 5784 S /usr/bin/contentLister --sync
751 root 5784 S /usr/bin/contentLister --sync
851 root 1504 S mb-applet-icon-container
1507 root 636 S udhcpc -b -p /var/run/udhcpc.eth0.pid -i eth0
1518 root 1200 R /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
1519 root 892 S -sh
1632 root 1668 S /usr/bin/matchbox-keyboard
1751 root 708 R ps

package management is done via ipkg, ipk list_installed gives

base-files - 3.0.14-r46 -
base-passwd - 3.5.9-r24 -
busybox - 1.01-r1 -
cf8385-kernel-module - 0.114-r1 -
contentlister - 0.24+svn20060628-r0 -
contentlister-locale-en - 0.24+svn20060628-r0 -
contentlister-locale-nl - 0.24+svn20060628-r0 -
contentlister-locale-zh - 0.24+svn20060628-r0 -
displaymgr - 0.17+svn20060628-r0 -
dropbear - 0.46-r3 -
ecdc - 0.24+svn20060628-r0 -
ecdc-locale-en - 0.24+svn20060628-r0 -
ecdc-locale-nl - 0.24+svn20060628-r0 -
ecdc-locale-zh - 0.24+svn20060628-r0 -
erbrowser - 0.21+svn20060628-r0 -
erbusyd - 0.22+svn20060628-r0 -
ereader-fonts-t1 - 0.1-r0 -
ersetup - 0.24+svn20060628-r0 -
ersetup-locale-en - 0.24+svn20060628-r0 -
ersetup-locale-nl - 0.24+svn20060628-r0 -
ersetup-locale-zh - 0.24+svn20060628-r0 -
erutils - 0.22+svn20060628-r0 -
fuser - 20.2-r3 -
gdk-pixbuf-loader-bmp - 2.6.7-r18 -
gdk-pixbuf-loader-jpeg - 2.6.7-r18 -
gdk-pixbuf-loader-png - 2.6.7-r18 -
glibc-charmap-utf-8 - 2.3.2+cvs20040726-r17 -
glibc-gconv - 2.3.2+cvs20040726-r17 -
glibc-gconv-euc-cn - 2.3.2+cvs20040726-r17 -
glibc-gconv-iso8859-1 - 2.3.2+cvs20040726-r17 -
glibc-gconv-libgb - 2.3.2+cvs20040726-r17 -
glibc-localedata-en-us - 2.3.2+cvs20040726-r17 -
glibc-localedata-i18n - 2.3.2+cvs20040726-r17 -
glibc-localedata-iso14651-t1 - 2.3.2+cvs20040726-r17 -
glibc-localedata-nl-nl - 2.3.2+cvs20040726-r17 -
glibc-localedata-translit-circle - 2.3.2+cvs20040726-r17 -
glibc-localedata-translit-cjk-compat - 2.3.2+cvs20040726-r17 -
glibc-localedata-translit-compat - 2.3.2+cvs20040726-r17 -
glibc-localedata-translit-font - 2.3.2+cvs20040726-r17 -
glibc-localedata-translit-fraction - 2.3.2+cvs20040726-r17 -
glibc-localedata-translit-narrow - 2.3.2+cvs20040726-r17 -
glibc-localedata-translit-neutral - 2.3.2+cvs20040726-r17 -
glibc-localedata-translit-small - 2.3.2+cvs20040726-r17 -
glibc-localedata-translit-wide - 2.3.2+cvs20040726-r17 -
glibc-localedata-zh-cn - 2.3.2+cvs20040726-r17 -
gtk+ - 2.6.7-r18 -
initscripts - 1.0-r66 -
ipkg - 0.99.154-r0 -
ipkg-collateral - 1.0-r2 -
ipkg-link - 1.6cvs20051025-r1 -
isp1362-kernel-module - 1.21-r1 -
kernel - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-image-2.4.19-rmk7-pxa2-irex1 - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-ide-cs - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-ide-disk - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-ide-mod - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-ide-probe-mod - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-mmc-block - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-mmc-core - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-mmc-pxa - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-scsi-mod - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-sd-mod - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-sg - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-smc91x - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-module-usb-storage - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
kernel-modules - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
lesstif - 0.94.4-1 -
libatk-1.0-0 - 1.10.1-r0 -
libc6 - 2.3.2+cvs20040726-r17 -
libcrypto0.9.7 - 0.9.7e-r1 -
libcurl3 - 7.14.0-r2 -
liberdm2 - 0.22+svn20060628-r0 -
liberipc0 - 0.22+svn20060628-r0 -
liberlog1 - 0.22+svn20060628-r0 -
liberreg - 0.22+svn20060628-r0 -
libexpat0 - 1.95.7-r0 -
libfakekey0 - 0.1-r1 -
libfontconfig-utils - 2.2.95-r1 -
libfontconfig1 - 2.2.95-r1 -
libfreetype6 - 2.1.10-r0 -
libgcc1 - 3.4.4-r3 -
libgcrypt11 - 1.2.1-r0 -
libglib-2.0-0 - 2.6.6-r0 -
libgpg-error0 - 1.0-r0 -
libice6 - 6.3.3-r1 -
libidl-2-0 - 0.8.6-r1 -
libipkg0 - 0.99.154-r0 -
libiw27 - 27-r1 -
libjpeg62 - 6b-r0 -
libmb1 - 1.7-r1 -
libpng12-0 - 1.2.8-r0 -
libsm6 - 6.0.3-r1 -
libssl0.9.7 - 0.9.7e-r1 -
libstartup-notification-1-0 - 0.8-r0 -
libstdc++6 - 3.4.4-r3 -
libx11-6 - 6.2.1cvs20051025-r5 -
libxau0 - 0.1.1-r1 -
libxcursor1 - 1.1.2-r2 -
libxext6 - 0.0cvs20051025-r1 -
libxfixes0 - 2.0.1-r1 -
libxfont1 - 1.4.2-r2 -
libxft2 - 2.1.6-r1 -
libxml2 - 2.6.10-r0 -
libxp - 0.0cvs20051025-r0 -
libxpm4 - 3.5.1-r1 -
libxrandr2 - 1.0.2-r1 -
libxrender1 - 0.8.4-r1 -
libxsettings-client0 - 0.14-r0 -
libxt6 - 0.1.5-r1 -
libxtst6 - 0.0cvs20051025-r3 -
libz1 - 1.2.3-r0 -
linux-hotplug - 20040920-r8 -
locale-base-en-us - 2.3.2+cvs20040726-r17 -
locale-base-nl-nl - 2.3.2+cvs20040726-r17 -
locale-base-zh-cn - 2.3.2+cvs20040726-r17 -
makedevs - 1.0.0-r2 -
matchbox-common - 0.9.1-r0 -
matchbox-keyboard - 0.0.0+svn20060628-r24 -
matchbox-panel - 0.0.0+svn20060628-r24 -
matchbox-wm - 0.9.5-r0 -
minimo - 0.0cvs20051025-r9 -
modutils-depmod - 2.4.27-r7 -
modutils-initscripts - 1.0-r2 -
msdisk - 1.21-r1 -
netbase - 4.21-r7 -
pagebar - 0.22+svn20060628-r0 -
pango - 1.8.1-r3 -
pango-module-basic-fc - 1.8.1-r3 -
pango-module-basic-x - 1.8.1-r3 -
pcmcia-cs - 3.2.8-r23 -
portmap - 5-9-r5 -
powermgr - 0.22+svn20060628-r0 -
scribble - 0.17+svn20060628-r0 -
setserial - 2.17-r1 -
sysvinit - 2.86-r19 -
sysvinit-inittab - 2.86-r19 -
sysvinit-pidof - 2.86-r19 -
t1lib - 5.0.2-r2 -
tar - 1.13.93-r1 -
task-bootstrap - 1.0-r25 -
task-ereader - 1.0-r24 -
tinylogin - 1.4-r3 -
ttf-bitstream-vera - 1.10-r0 -
tweak-ereader-image - 0.2+svn20060628-r0 -
update-modules - 1.0-r3 -
update-rc.d - 0.7-r0 -
wireless-tools - 27-r1 -
xcursor-transparent-theme - 0.1.1-r0 -
xpdf - 3.0.1+svn20060628-r24 -
xserver-kdrive-fbdev - 0.0cvs20050207-r17 -

arivero
07-18-2006, 12:48 PM
You cannot run a terminal, because there is none. No xterm, rxvt, gnome-terminal and so on
The browser is Minimo (http://www.mozilla.org/projects/minimo/)
This is running:

PID Uid VmSize Stat Command
383 root 2400 S /usr/bin/Xfbdev -screen 768x1024x8 -3button -dpi 100 -ac
384 root 2044 S /usr/bin/matchbox-window-manager -use_titlebar no -use_cursor no
388 root 3900 S /usr/bin/pageBar
389 root 2020 S /usr/bin/matchbox-panel --size 39 --no-menu --bgcolor White
393 root 5784 S /usr/bin/contentLister --sync
726 root 480 S /sbin/getty -L ttyS2 115200 vt100

package management is done via ipkg, ipk list_installed gives

glibc-charmap-utf-8 - 2.3.2+cvs20040726-r17 -
glibc-gconv - 2.3.2+cvs20040726-r17 -
kernel-image-2.4.19-rmk7-pxa2-irex1 - 2.4.19-rmk7-pxa2-irex1-svn20060628-r0 -
libc6 - 2.3.2+cvs20040726-r17 -
libfreetype6 - 2.1.10-r0 -
libglib-2.0-0 - 2.6.6-r0 -
libx11-6 - 6.2.1cvs20051025-r5 -
libxrandr2 - 1.0.2-r1 -
xserver-kdrive-fbdev - 0.0cvs20050207-r17 -

[/list]

AGHHHHH a 2.4 kernel. Kill, kill them. Kill...

Well, let me be positive. As far as we know, they could be thinking already in a 2.6 update. This should be very convenient for the usb and bluetooth layers (but no bluetooth in this hardware). On other hand, perhaps 2.4 is less resource hungy.

libxrandr2 is present. This mean the screen can be rotated.
http://syslog.movial.fi/archives/7-xrandr-on-nokia-770.html

There is a terminal in the serial port.

I am guessing the window manager expects all the applications to run in fullscreen. This should explain why the xpdf does not zoom: zoom keys are disabled in the fullscreen mode, at least in my desktop system.

arivero
07-18-2006, 02:39 PM
Ali, could you repeat the process dump with the xpdf running?. If the zoom problem is that it is running as xpdf -fullscreen then we could perhaps try to patch it or to launch with other options. Or perhaps it is in -remote mode (it should be the trick to remember the pages and all that).

ali
07-18-2006, 03:24 PM
Ali, could you repeat the process dump with the xpdf running?. If the zoom problem is that it is running as xpdf -fullscreen then we could perhaps try to patch it or to launch with other options. Or perhaps it is in -remote mode (it should be the trick to remember the pages and all that).

No, is not. This is /mnt/settings/er_registry.txt (with X-ed passwords):

[USER_SETTING]
language=en_EN
volume=1
longkeypresstimeout=500
[USER_PROFILE]
name=XXX
email=XXX
password=XXX
redirectUrl=https://ids.irexnet.com:443/redirector
[VERSION]
registry=24
[BOOKS_CATEGORY]
locationArray=/opt/content/books;
searchType=or
searchRecursive=false
searchStringArray=;
searchFieldArray=;
sortFieldType=title
sortAscending=true
[NEWSPAPERS_CATEGORY]
locationArray=/opt/content/newspapers;
searchType=or
searchRecursive=false
searchStringArray=;
searchFieldArray=;
sortFieldType=title
sortAscending=true
[DOCUMENTS_CATEGORY]
locationArray=/opt/content/documents;
searchType=or
searchRecursive=false
searchStringArray=;
searchFieldArray=;
sortFieldType=title
sortAscending=true
[NOTES_CATEGORY]
locationArray=/opt/content/notes;
searchType=or
searchRecursive=false
searchStringArray=;
searchFieldArray=;
sortFieldType=title
sortAscending=true
[MODE_CATEGORY]
locationArray=/var/mode;
searchStringArray=;
searchFieldArray=;
searchType=or
searchRecursive=false
sortFieldType=fsname
sortAscending=true
[MAIN_CATEGORY]
locationArray=/mnt/free;
searchStringArray=;
searchFieldArray=;
searchType=or
searchRecursive=false
sortFieldType=title
sortAscending=true
[CF_CATEGORY]
locationArray=/mnt/cf;
searchStringArray=;
searchFieldArray=;
searchType=or
searchRecursive=false
sortFieldType=title
sortAscending=true
[SD_CATEGORY]
locationArray=/mnt/card;
searchStringArray=;
searchFieldArray=;
searchType=or
searchRecursive=false
sortFieldType=title
sortAscending=true
[USB_CATEGORY]
locationArray=/mnt/usb;
searchStringArray=;
searchFieldArray=;
searchType=or
searchRecursive=false
sortFieldType=title
sortAscending=true
[DOWNLOAD_HISTORY_CATEGORY]
locationArray=/var/downloadhistory;
searchStringArray=;
searchFieldArray=;
searchType=or
searchRecursive=false
sortFieldType=date
sortAscending=false
[BOOK_LASTREAD]
extension=pdf
documentPath=/opt/content/books/catcher2.pdf
manifestPath=
position=
[NEWSPAPER_LASTREAD]
extension=html
documentPath=/opt/content/newspapers/viewthings.html
manifestPath=
position=
[DOCUMENT_LASTREAD]
extension=pdf
documentPath=/opt/content/documents/kuhn04approx.pdf
manifestPath=
position=
[NOTE_LASTREAD]
extension=xeb
documentPath=/opt/content/notes/Notepad.xeb
manifestPath=
position=
[USER_APPLICATIONS]
uaIDList=BROWSER;XPDF;APABIMOBI;IMAGEVIEWER;SETUP; PROFILES;ARINC;EBA
[BROWSER]
category=viewer
arguments=<MANIFEST> <FILENAME>
exec=/usr/bin/browser
xResourceName=browser
channel=1
extensions=XHTML;xhtml;html;HTML;htm;HTM;txt;TXT
[XPDF]
category=viewer
arguments=<FILENAME>
exec=/usr/bin/xpdf
xResourceName=win
channel=2
extensions=pdf;PDF;
[APABIMOBI]
category=viewer
arguments=<FILENAME>
exec=/usr/bin/xebreader
xResourceName=xebreader
channel=5
extensions=xeb;XEB;
[IMAGEVIEWER]
category=viewer
arguments=<MANIFEST> <FILENAME>
exec=/usr/bin/scribble
xResourceName=scribble
channel=7
extensions=jpg;JPG;jpeg;JPEG;png;PNG;bmp;BMP
[SETUP]
category=setup
arguments=
exec=/usr/bin/setup
xResourceName=setup
channel=3
extensions=
[PROFILES]
category=setup
arguments=
exec=/usr/bin/connectionMgr --edit-only
xResourceName=connectionMgr
channel=12
extensions=
[ARINC]
category=viewer
arguments=<FILENAME>
exec=/usr/bin/arinc
xResourceName=arinc
channel=13
extensions=ari;ARI
[EBA]
category=viewer
arguments=<FILENAME>
exec=/usr/bin/eba
xResourceName=eba
channel=14
extensions=eba;EBA
[ICONS_GRAYSCALE_16]
iconID=battery;bookmark;collapse;connectivity;copy ;cut;empty;error;erase;expand;filemanager;fontlarg er;fontsmaller;keyboard;orientation;paste;pen;pen1 pixel;pen3pixel;pen5pixel;pen7pixel;penheavier;pen lighter;penpressure;selecttext;share;summarize;tra shcan;zoomin;zoomout;
battery=/usr/share/pixmaps/battery00_grey.png;/usr/share/pixmaps/battery00.png;/usr/share/pixmaps/battery01.png;/usr/share/pixmaps/battery02.png;/usr/share/pixmaps/battery03.png;/usr/share/pixmaps/battery04.png;/usr/share/pixmaps/battery05.png;
bookmark=/usr/share/pixmaps/bookmark.png;/usr/share/pixmaps/bookmark_grey.png;/usr/share/pixmaps/bookmark_selected.png;
collapse=/usr/share/pixmaps/collapse.png;/usr/share/pixmaps/collapse_grey.png;/usr/share/pixmaps/collapse_selected.png;
connectivity=/usr/share/pixmaps/connectivity00_grey.png;/usr/share/pixmaps/connectivity00.png;/usr/share/pixmaps/connectivity01.png;/usr/share/pixmaps/connectivity02.png;/usr/share/pixmaps/connectivity03.png;/usr/share/pixmaps/connectivity04.png;
copy=/usr/share/pixmaps/copy.png;/usr/share/pixmaps/copy_grey.png;/usr/share/pixmaps/copy_selected.png;
cut=/usr/share/pixmaps/cut.png;/usr/share/pixmaps/cut_grey.png;/usr/share/pixmaps/cut_selected.png;
empty=/usr/share/pixmaps/empty.png;/usr/share/pixmaps/empty_grey.png;/usr/share/pixmaps/empty_selected.png;
error=/usr/share/pixmaps/error.png;
erase=/usr/share/pixmaps/erase.png;/usr/share/pixmaps/erase_grey.png;/usr/share/pixmaps/erase_selected.png;
expand=/usr/share/pixmaps/expand.png;/usr/share/pixmaps/expand_grey.png;/usr/share/pixmaps/expand_selected.png;
filemanager=/usr/share/pixmaps/filemanager.png;/usr/share/pixmaps/filemanager_grey.png;/usr/share/pixmaps/filemanager_selected.png;
fontlarger=/usr/share/pixmaps/fontlarger.png;/usr/share/pixmaps/fontlarger_grey.png;/usr/share/pixmaps/fontlarger_selected.png;
fontsmaller=/usr/share/pixmaps/fontsmaller.png;/usr/share/pixmaps/fontsmaller_grey.png;/usr/share/pixmaps/fontsmaller_selected.png;
keyboard=/usr/share/pixmaps/keyboard.png;/usr/share/pixmaps/keyboard_grey.png;/usr/share/pixmaps/keyboard_selected.png;
orientation=/usr/share/pixmaps/orientation.png;/usr/share/pixmaps/orientation_grey.png;/usr/share/pixmaps/orientation_selected.png;
paste=/usr/share/pixmaps/paste.png;/usr/share/pixmaps/paste_grey.png;/usr/share/pixmaps/paste_selected.png;
pen=/usr/share/pixmaps/pen.png;/usr/share/pixmaps/pen_grey.png;/usr/share/pixmaps/pen_selected.png;
pen1pixel=/usr/share/pixmaps/pen1pixel.png;/usr/share/pixmaps/pen1pixel_grey.png;/usr/share/pixmaps/pen1pixel_selected.png;
pen3pixel=/usr/share/pixmaps/pen3pixel.png;/usr/share/pixmaps/pen3pixel_grey.png;/usr/share/pixmaps/pen3pixel_selected.png;
pen5pixel=/usr/share/pixmaps/pen5pixel.png;/usr/share/pixmaps/pen5pixel_grey.png;/usr/share/pixmaps/pen5pixel_selected.png;
pen7pixel=/usr/share/pixmaps/pen7pixel.png;/usr/share/pixmaps/pen7pixel_grey.png;/usr/share/pixmaps/pen7pixel_selected.png;
penheavier=/usr/share/pixmaps/penheavier.png;/usr/share/pixmaps/penheavier_grey.png;/usr/share/pixmaps/penheavier_selected.png;
penlighter=/usr/share/pixmaps/penlighter.png;/usr/share/pixmaps/penlighter_grey.png;/usr/share/pixmaps/penlighter_selected.png;
penpressure=/usr/share/pixmaps/penpressure.png;/usr/share/pixmaps/penpressure_grey.png;/usr/share/pixmaps/penpressure_selected.png;
selecttext=/usr/share/pixmaps/selecttext.png;/usr/share/pixmaps/selecttext_grey.png;/usr/share/pixmaps/selecttext_selected.png;
share=/usr/share/pixmaps/share.png;/usr/share/pixmaps/share_grey.png;/usr/share/pixmaps/share_selected.png;
summarize=/usr/share/pixmaps/summarize.png;/usr/share/pixmaps/summarize_grey.png;/usr/share/pixmaps/summarize_selected.png;
trashcan=/usr/share/pixmaps/trashcan.png;/usr/share/pixmaps/trashcan_grey.png;/usr/share/pixmaps/trashcan_selected.png;
zoomin=/usr/share/pixmaps/zoomin.png;/usr/share/pixmaps/zoomin_grey.png;/usr/share/pixmaps/zoomin_selected.png;
zoomout=/usr/share/pixmaps/zoomout.png;/usr/share/pixmaps/zoomout_grey.png;/usr/share/pixmaps/zoomout_selected.png;
[NW_0]
name=wlan/home
connection=1
proxy=false
addressmode=1
ssid=XXX
channel=0
wirelessmode=0
wepmode=2
wepkey=XXX
[NW_1]
name=wlan/home
connection=1
proxy=false
addressmode=1
ssid=XXX
channel=0
wirelessmode=0
wepmode=2
wepkey=XXX
[NW_2]
name=eth/home
connection=0
proxy=false
addressmode=1
[NETWORK_CONFIG]
networklist=NW_0;NW_1;NW_2;
wired=
wireless=

ali
07-18-2006, 03:34 PM
AGHHHHH a 2.4 kernel. Kill, kill them. Kill...

Well, let me be positive. As far as we know, they could be thinking already in a 2.6 update. This should be very convenient for the usb and bluetooth layers (but no bluetooth in this hardware). On other hand, perhaps 2.4 is less resource hungy.

IIRC, the zaurus still runs 2.4.x because of the SD slot -- the module is closed-source and full of patents.

(The "S" in "SD" stands for secure, which, just like with tcpa (http://www.againsttcpa.com), is not security for the user, but intellectual property bullshit)

Also, I'd second your worries about being resource hungry.

Tscherno
07-18-2006, 03:37 PM
No, is not. This is /mnt/settings/er_registry.txt (with X-ed passwords):
Any idea what's behind [ARINC] and [EBA]?

arivero
07-18-2006, 03:40 PM
IIRC, the zaurus still runs 2.4.x because of the SD slot -- the module is closed-source and full of patents.


Hmm add to this the issue of upwards (or is it backwards?) compatibility and we could hope these binaries to work, if properly installed.

Same for Sony binaries. Someone please check the binaries in http://dftuz.unizar.es/~rivero/lbdjvu.tgz

except the clearpic/putpic.arm code, which is sony-specific (and could cause havoc in the iLiad framebuffer!!!) and the getTTkeys scripts (again, sony based hardware), the rest of the software could be useful. If it is not, I am pretty sure it can be recompiled for the iLiad. In fact I should, because I did not compiled the pnm2jpeg tool.

ali
07-18-2006, 04:13 PM
Any idea what's behind [ARINC] and [EBA]?

Apparently some file types with according viewers. However, the viewer binaries (/usr/bin/arinc, /usr/bin/eba) don't exist.

arivero
07-18-2006, 04:36 PM
It could be feasible to add types .smallpdf and .bifpdf to launch different zoom options of the xpdf. That should be a temporary path

Also intriguing could be to try xpdf -cont. Some preprocessing must be involved here.

arivero
07-18-2006, 07:51 PM
erbusyd takes care of /dev/buttons... but in theory it is just a "eReader busy indicator daemon"

displayMgr manages somehow the e-ink display.

Usage: displayMgr -<option> <argument>
no arguments : start server process (local access only)
-a : allow messages to be sent from any host (starts server process)
-h : display this message
-p : disable partial update
-w <filename> : load waveform from filename

the "waveform" is not a sound, but the signal used to clear or update the display. Note the -p option.

powerMgr reads the battery, beeps on low charge and all that.

contentLister is the file manager. It somehow supercedes other tasks, for instance it also opens /dev/buttons and /dev/fb0

etc/er_registry.txt is accessed by erregInit but no by contentLister. Strange. (EDIT: this happens because all the other programs access to the register via
liberreg)

I have a minor question. I can not see who executes home/root/start.sh
:kid: EDIT: OK, it is in rc5.d as S99start

arivero
07-18-2006, 08:04 PM
/usr/lib/ipkg/info is a funny place to look

DHer
07-19-2006, 06:00 AM
there are some things you might try:

remove the line
/usr/bin/wireless.sh stop
from/home/root/start.sh

and check if wlan works on startup (ssh might be usefull if you foobar your display settings)

Xfbdev accepts the common options of the TinyX family of servers. Please see TinyX(1) .

-screen widthxheight[xdepth[xfreq]][@rotation]
use a screen of the specified width, height, screen depth, frequency, and rotation (0, 90, 180 and 270 are legal values).

change the line
/usr/bin/Xfbdev -screen 768x1024x8 -3button -dpi 100 -ac &
from/home/root/start.sh to
/usr/bin/Xfbdev -screen 768x1024x8@90 -3button -dpi 100 -ac &

and restart your iliad.

Please tell me if it worked :)

PS: please have a look at /etc/matchbox/kbdconfig and try the listed key combinations.

Kristoffer
07-19-2006, 06:58 AM
change the line
/usr/bin/Xfbdev -screen 768x1024x8 -3button -dpi 100 -ac &
from/home/root/start.sh to
/usr/bin/Xfbdev -screen 768x1024x8@90 -3button -dpi 100 -ac &

and restart your iliad.


Done!
Nothing changed, seems as if the content listener app, which is supposedly running in fullscreen mode as to the default behavior of matchbox, does not care if its 90 degrees turned or not... bad luck...

tribble
07-19-2006, 07:12 AM
i tried to start xpdf from the command line, and it tells me that DISPLAY is not set properly. Do you think it will work if i set DSIPLAY to 127.0.0.1 ? I have absolutely no clue about X11 programming, guess i have to read a book now
*loads xlib programming to his iLiad* :)

Tscherno
07-19-2006, 07:15 AM
Try 0.0.0.0:0 or 127.0.0.1:0

ali
07-19-2006, 07:16 AM
i tried to start xpdf from the command line, and it tells me that DISPLAY is not set properly. Do you think it will work if i set DSIPLAY to 127.0.0.1 ?

No, try setting DISPLAY to :0.0

If that doesn't work, use ps to find the process id of a running xpdf, look into /proc/ID/environ to see what DISPLAY has to be set to.

DHer
07-19-2006, 07:17 AM
@Kristoffer
hm. what a pity.

@tribble
you tried to start xpdf over ssh? where should it be displayed? If everything is configured right you might spawn a window on the pc you're running your ssh client on.

Kristoffer
07-19-2006, 07:20 AM
No, try setting DISPLAY to :0.0

If that doesn't work, use ps to find the process id of a running xpdf, look into /proc/ID/environ to see what DISPLAY has to be set to.

I set DISPLAY to :0, that's what the start.sh says. It doesn't complain so I guess it's working.

tribble
07-19-2006, 08:15 AM
Has anyone found out how to start your own programms by pressing buttons?
Would be a lot more conveient, that the PDF solution :)

ali
07-19-2006, 08:29 AM
Has anyone found out how to start your own programms by pressing buttons?
Would be a lot more conveient, that the PDF solution :)

I don't have my Iliad by hand. Try this:

Make a textfile /usr/bin/eba with this contents: (Second line is dot space dblquote dollar at dblquote)
#!/bin/sh
. "$@"

Make it executable (via "chmod 755 /usr/bin/eba")

Now copy a shell script into a document folder (i.e., newspapers,documents,etc) but give it the extension ".eba", for example:

run-wired.eba could look like this:
#!/bin/sh
/usr/bin/wired.sh start


Now clicking ("viewing") the run-wired.eba file from the gui should start wired networking.

Tscherno
07-19-2006, 08:45 AM
I don't have my Iliad by hand. Try this:

Make a textfile /usr/bin/eba with this contents: (Second line is dot space dblquote dollar at dblquote)
#!/bin/sh
. "$@"

Make it executable (via "chmod 755 /usr/bin/eba")

Now copy a shell script into a document folder (i.e., newspapers,documents,etc) but give it the extension ".eba", for example:

run-wired.eba could look like this:
#!/bin/sh
/usr/bin/wired.sh start


Now clicking ("viewing") the run-wired.eba file from the gui should start wired networking.
Great idea! But could cause trouble if they deliver the "real" eba-thing. How about creating an Entry in the Config-File for .sh-Files?

ali
07-19-2006, 08:47 AM
Great idea! But could cause trouble if they deliver the "real" eba-thing. How about creating an Entry in the Config-File for .sh-Files?

Should also work. Until they deliver a new er_registry.txt. In the end, it doesn't matter.

arivero
07-19-2006, 10:10 AM
I don't have my Iliad by hand. Try this:

Make a textfile /usr/bin/eba ...

I think we must offer a solution for people do not willing to try the ssh connection (thus the pdf idea) and then another more interesting set of patchs for advanced users.

arivero
07-19-2006, 10:12 AM
I set DISPLAY to :0, that's what the start.sh says. It doesn't complain so I guess it's working.

You guess? You can not see it?

Try to use the /usr/bin/displayMgrClient utility to update the display. Accoding its help, you can also set a frequency of update (integer multiples of one second :( )

ali
07-19-2006, 10:23 AM
I think we must offer a solution for people do not willing to try the ssh connection (thus the pdf idea) and then another more interesting set of patchs for advanced users.

I guess the way is to provide a pair of shell script & pdf file to be copied into, say, newpapers, so that double-clicking in the pdf starts /mnt/free/newspapers/hackit.sh (assuming there's no "noexec" mount option set for /mnt/free, but at least /etc/fstab doesn't contain it). hackit.sh could then patch er_registry.txt.

arivero
07-19-2006, 10:26 AM
I guess the way is to provide a pair of shell script & pdf file to be copied into, say, newpapers, so that double-clicking in the pdf starts /mnt/free/newspapers/hackit.sh (assuming there's no "noexec" mount option set for /mnt/free, but at least /etc/fstab doesn't contain it). hackit.sh could then patch er_registry.txt.

Yes, it is the right way. We can do a complete A5 document letting users to test the innovations without installing and letting them to permanently install the modifications by executing hackit.sh

R2D2
07-19-2006, 10:36 AM
*thumbsup*

CommanderROR
07-19-2006, 10:52 AM
great idea!

That way people like me (programming Noobs...) can play around with stuff without damaging their system...^^

tribble
07-19-2006, 11:02 AM
I don't have my Iliad by hand. Try this:

Make a textfile /usr/bin/eba with this contents: (Second line is dot space dblquote dollar at dblquote)
#!/bin/sh
. "$@"

Make it executable (via "chmod 755 /usr/bin/eba")

Now copy a shell script into a document folder (i.e., newspapers,documents,etc) but give it the extension ".eba", for example:

run-wired.eba could look like this:
#!/bin/sh
/usr/bin/wired.sh start


Now clicking ("viewing") the run-wired.eba file from the gui should start wired networking.

Works like a charm. Guess i have to try just extending the registry file and add another programm with an additional file extension.

/EDIT. Added a wlan startscript


#!/bin/sh
/usr/bin/wireless.sh start <ssid> enc <key>


<ssid> being your ssid and <key> your wepkey

Kristoffer
07-19-2006, 11:07 AM
You guess? You can not see it?

Try to use the /usr/bin/displayMgrClient utility to update the display. Accoding its help, you can also set a frequency of update (integer multiples of one second :( )


Hehe, yeah, it's working, no more guessing neccessary :wink:
Screen gets updated in the specified period...

arivero
07-19-2006, 11:11 AM
Hehe, yeah, it's working, no more guessing neccessary :wink:
Screen gets updated in the specified period...

Ok, it is working :p . Do you get zoom controls? Take a view to man xpdf somewhere ; even if zoom can not be controled from the screen, we should be able to control it from the ssh console by launching in -remote mode.

Ahh, my machine is in the lot to be shipped tomorrow.

ali
07-19-2006, 11:12 AM
That way people like me (programming Noobs...) can play around with stuff without damaging their system...^^

Nah, it just means you can brick your Iliad without the need to type weird command lines first. :)

tribble
07-19-2006, 11:33 AM
Do you get zoom controls?

Tried to use the -z parameter, but i didnt see any change.

DHer
07-19-2006, 11:43 AM
what happens if you don't start it in -fullscreen mode?

and, second, did someone already do a "modprobe hid" and "modprobe keybdev" for usb keyboards?

arivero
07-19-2006, 11:45 AM
what happens if you don't start it in -fullscreen mode?

and, second, did someone already do a "modprobe hid" and "modprobe keybdev" for usb keyboards?

Not there, the hid module :-(

tribble
07-19-2006, 11:50 AM
what happens if you don't start it in -fullscreen mode?


didnt use -fullscreen, is there a config file for xpdf where that parameter coud be set?

And is there a way to get xpdf to open a certain page?

Tscherno
07-19-2006, 12:01 PM
http://linux.math.tifr.res.in/manuals/man/xpdf.html

xpdf [options] [PDF-file [page]]

ali
07-20-2006, 02:19 PM
This shell script should patch er_registry such that afterwards .sh scripts can be executed from the gui. As my Iliad is disconnected, I'd like someone to try it out. (Somebody who knows what he's doing! This may brick your Iliad! Double-check your gui doesn't break, or patch /home/root/start.sh so you can login without gui afterwards.)

#!/bin/sh

REGFILE=/mnt/settings/er_registry.txt
BACKUP=$REGFILE.backup

if /bin/grep -q 'SHELL' $REGFILE
then
echo "Already patched -- doing nothing"
exit 1
fi

cp -a $REGFILE $BACKUP
sed 's/\(^uaIDList=.*$\)/\1;SHELL/g' $BACKUP > $REGFILE
cat >>$REGFILE <<EOF
[SHELL]
category=viewer
arguments=<FILENAME>
exec=/bin/sh -c
xResourceName=moomoo
channel=77
extensions=SH;sh
EOF

Tscherno
07-21-2006, 02:32 AM
Could someone post the Exec-PDF again in this thread, please?

arivero
07-21-2006, 05:28 AM
Could someone post the Exec-PDF again in this thread, please?
The last version (pdflatex from antartica) appeared here
http://www.mobileread.com/forums/showpost.php?p=32880&postcount=250

The first version of the pdf idea appears in post 201 of the thread, and then in posts 234-237-241-244 (http://www.mobileread.com/forums/showpost.php?p=32859&postcount=244) it is developed.

It will evolve more, I'd bet. I miss icons :D.

Note that ali has created a thread to post "release" versions for end users, named "Hacks for Users (http://www.mobileread.com/forums/showthread.php?t=7063)".