QPDF2 - pdf reader for OPIE
Install QPDF2:
# ipkg install qpdf2 -d loop0
# ipkg-link add qpdf2; ipkg-link add t1lib
Works out of the box
My Zaurus setup and installation weblog. So the next time I reflash it I won't have to search for all the answers again...
Best viewed with Mozilla Firefox
Install QPDF2:
# ipkg install qpdf2 -d loop0
# ipkg-link add qpdf2; ipkg-link add t1lib
Posted by YoG at 12:30 AM 1 comments
I've added some links to the files I've used in the last post
Posted by YoG at 1:53 PM 0 comments
GPE fail to load, so I decided to reflash the whole thing.
Before reflashing, I moved the root folder to root.old.
# mv /home/root /home/root.oldDownloaded the OpenZaurus 3.5.4.1 OPIE Image from ewi546.ewi.utwente.nl mirror and followed the OpenZaurus C7x0/Install Howto.
# dd if=/dev/zero of=ext2.img bs=1024 count=512000Format the image as ext2: # mkfs.ext2 /media/card/images/loop0.imgCreate a directory to accommodate the mount:
# mkdir /media/loop0to manually mount the image:
# mount -t ext2 -o loop /media/card/images/loop0.img /media/loop0add it to fstab so it will be auto-mounted upon reboot, add the following line at the end of /etc/fstab:
/media/card/images/loop0.img /media/loop0 ext2 loop,rw 0This can be verified by:
# mount /media/loop0Exit OPIE:
# /etc/init.d/opie stopMove /home/ and /opt/ directories to loop0:
# mkdir /media/loop0/homeRestart OPIE
# mv /home/root /media/loop0/home
# ln /media/loop0/home/root /home/root -s
# mv /opt /media/loop0/
# ln /media/loop0/opt /opt -s
# /etc/init.d/opie start
ip: 192.168.0.100PC Side:
Subnet Mask: 255.255.255.0
Gateway: 192.168.0.1
DNS: 192.168.1.1
ip: 192.168.0.1
Subnet Mask: 255.255.255.0
Gateway: 192.168.0.100
DNS: 192.168.1.1
#! /bin/shEnable networking
# Check if usb storage module is loaded, if it does remove it.
if ["`lsmod | grep g_file_storage`" != "" ]; then
echo g_file_storage is loaded
echo Unloading g_file_storage
rmmod g_file_storage
fi
# Check if usb networking module is loaded, if it does remove it.
if ["`lsmod | grep g_ether`" != "" ]; then
echo Stopping USB networking module...
echo Unloading g_file_storage
rmmod g_ether
fi
#Load USB networking module:
echo Starting USB networking module...
modprobe g_ether
#Enable the network interface.
echo Bringing up network interface:
ifup usb0
# /media/card/myScripts/enableUSB.shTo automatically enable networking on reboot:
# ln -s /media/card/myScripts/enableUSB.sh /etc/rcS.d/S49localFor ssh to work a password must be set:
# passwdNow ssh can connect to the Zaurus from the host computer.
dest loop0 /media/loop0/packages/
# ipkg update
# ipkg install -d loop0 timezones-asiaFor some reason /etc/profile does not search for ~/.profile to fix it I added before the export line:
# ipkg-link add timezones-asia
if [ -e "$HOME/.profile" ]; thenSet the local timezone in ~/.profile
. $HOME/.profile
fi
export TZ="Asia/Jerusalem"Update the clock:
# ntpdate nist1.datum.com
# ipkg install -d loop0 mplayerThe mplayer from the feed is missing the font files (maybe the local fonts can be used...) to have OSD mplayer fonts should be copied to ~/.mplayer/fonts.
# ipkg-link add liblzo1; ipkg-link add libmad0; ipkg-link add libmp3lame0; ipkg-link add libsdl-1.2-0; ipkg-link add mplayer; ipkg-link add mplayer-common
# mplayer -input cmdlistto see a list of keys:
# mplayer -input keylistI'm using mpfsr.sh script to run mplayer:
#! /bin/sh
if [ "$1" = "" ]; then
echo "Please supply filename"
else
#disable screen saver and autosleep:
qcop QPE/System 'setScreenSaverMode(int)' 2
qcop QPE/System 'setScreenSaverIntervals(int,int,int)' 0 0 0
#change resolution to 240x320:
fbset -n -xres 240 -yres 320 -match;
#Invert rotation, for some reason with default rotation SDL runs upside down. and then start mplayer:
SDL_QT_INVERT_ROTATION=1 mplayer $@
#change resolution back to normal:
fbset -n -xres 640 -yres 480 -match;
#enable screensaver and autosleep:
qcop QPE/System 'setScreenSaverIntervals(int,int,int)' -1 -1 -1
qcop QPE/System 'setScreenSaverMode(int)' 100
#Update the screen otherwise the screen remains black.
qcop "QPE/System" "applyStyle()";
fi
# mkdir /opt/QtPalmtop/apps/myApps
# mkdir /opt/QtPalmtop/apps/myScripts
[Desktop Entry]Restart OPIE for the changes to take effect:
File=/opt/opie/apps/myApps/.directory
Icon=myAppsIcon
Type=application/octet-stream
Name=MyApps
# /etc/init.d/opie stopInstall BASH:
# /etc/init.d/opie start
# ipkg install -d loop0 bashThe default shell cannot be changed in /etc/passwd, but I can add to ~/.profile:
# ipkg-link add bash
exec /bin/bashwhich will do the trick this is a very bad solution.
unset HISTFILE
# ipkg install -d loop0 lessInstall opie-autorotateapplet
# ipkg-link add less
# ipkg install -d loop0 opie-autorotateappletInstall opie-reader
# ipkg-link add opie-autorotateapplet
# ipkg install -d loop0 opie-readerHebrew fonts
# ipkg-link add opie-reader; ipkg-link add opie-reader-codec-aportis; ipkg-link add opie-reader-codec-arrierego; ipkg-link add opie-reader-codec-chm; ipkg-link add opie-reader-codec-isilo; ipkg-link add opie-reader-codec-plucker; ipkg-link add opie-reader-codec-ppms; ipkg-link add opie-reader-codec-reb; ipkg-link add opie-reader-codec-weasel; ipkg-link add opie-reader-filter-htmlfilter
Install ZKBApplet# ipkg install -d loop0 qte-font-unifont-160
# ipkg-link add qte-font-unifont-160;ipkg-link add
qpf-font-common
# ipkg install -d loop0 opie-zkbappletZKBApplet requires a XML file with the key definitions. this file should be placed in /opt/QtPalmtop/share/zkb/.
# ipkg-link add opie-zkbapplet
# ipkg install -d loop0 opie-clipboardapplet
# ipkg-link add opie-clipboardapplet
Disable LCD Softkeys:# ipkg install -d loop0 opie-networkappletCouldn't make this to work...
# ipkg-link add opie-networkapplet
# ipkg install -d loop0 opie-memoryapplet
# ipkg-link add opie-memoryapplet
# ipkg install -d loop0 /media/card/scummvm-qpe_0.6.1b-r0_arm.ipkAt the beginning the cursor is a bit off, to fix that, choose "Fix aspect ratio" under options (in the main screen).
# ipkg-link add libmpeg2; ipkg-link add libogg0; ipkg-link add libvorbisidec1; ipkg-link add scummvm-qpe
# ipkg install -d loop0 knights
# ipkg-link add knights; ipkg-link add phalanx
Posted by YoG at 1:42 PM
Labels: autorotate, bash, chess, hebrew, Knights, LCD Softkeys, mplayer, OpenZaurus, opie, opie-reader, reflash, ScummVM, usb networking
I stopped compiling last night, today when I tried to continue I got the following error:
install: cannot stat `/stuff/tmp/work/all-linux/ttf-dejavu-2.13-r0/dejavu-ttf-2.13/*.ttf': No such file or directorywhen trying to install ttf-deavu-2.13-r0. The problem is probably a defective /stuff/sources/dejavu-ttf-2.13.tar.bz2. Removed that file (and also its md5 counterpart). And then:
# bitbake -crebuild ttf-dejavuThis caused bitbake to download the file again and to build it ok. Continue with freeciv:
***Can't link to Pango. Pango is required to compileAccording to /stuff/tmp/work/armv5te-linux/gtk+-2.8.9-r7/gtk+-2.8.9/config.log cairopango-1.0 library is missing...
*** GTK+...
Posted by YoG at 6:58 PM 0 comments
Labels: bitbake, cannot stat, FreeCiv, OpenEmbedded, OpenZaurus
I subscribed to Google Analytics to get some statistics about the blog.
Posted by YoG at 10:52 PM 0 comments
Labels: Analytics, Google, Statistics
bitbake failed compiling libX11 with the following error, with makekeys causing floating point exception. Somebody just posted a fix in the OE Bugtracker.
So I'll try to continue...
To fix the bug I edit: /stuff/tmp/work/armv5te-linux/diet-x11-X11R7.1-1.0.1-r4/libX11-X11R7.1-1.0.1/src/util/makekeys.c
and change
KeySym val;to
} info[KTNUM];
#define MIN_REHASH 10
#define MATCHES 10
char tab[KTNUM];
I created a /stuff/setVars to setup the enviroment, with the two export command in it:
KeySym val;
} info[KTNUM];
#define MIN_REHASH 15
#define MATCHES 10
char tab[KTNUM];
export PATH=/stuff/bitbake/bin:$PATH
export BBPATH=/stuff/build:/stuff/org.openembedded.dev
# cd /stuff/This fixed the problem.
# . setVars
# bitbake freeciv
Posted by YoG at 9:37 PM 0 comments
Labels: bitbake, bug, Compile, FreeCiv, OpenEmbedded, OpenZaurus
I want to compile FreeCiv for the Zaurus:
# export PATH=/stuff/bitbake/bin:$PATH
# export BBPATH=/stuff/build:/stuff/org.openembedded.dev
# bitbake freeciv
Posted by YoG at 2:20 AM 0 comments
Labels: bitbake, Compile, FreeCiv, OpenEmbedded, OpenZaurus
Wandered around google and stumbled upon this place...
Maybe I'll use it for my Zaurus log...
Posted by YoG at 12:24 AM 0 comments