Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-21-2006, 07:58 AM   #1
Antartica
Evangelist
Antartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-books
 
Posts: 415
Karma: 754
Join Date: Jun 2006
Location: Madrid, Spain
Device: iliad, onhandpc, newton, zaurus
Smile Using scratchbox with iliad binaries

I've done some tests using scratchbox and iliad executables work in it!

Scratchbox is a cross-comiling development environment for linux that uses qemu (or real hardware) to execute the "alien" executables (arm in our case) but native tools for cross-compiling and execute the scripts. It's used for maemo development (the nokia 770 webpad).

Using the atached script to execute iliad binaries (edit the script to change the username so that it matches the one of your machine), I was able to execute xpdf and xebreader.

Attached is a screenshot of this nice moment (executing iliad's xpdf in scrtachbox) .

It's used as in:
[sbox-armgcc401libc232: ~] > ./iliad.sh usr/bin/xpdf launch4-a5.pdf
Attached Thumbnails
Click image for larger version

Name:	capture-scratchbox-iliad.png
Views:	436
Size:	43.9 KB
ID:	1266  
Attached Files
File Type: txt iliad.sh.txt (132 Bytes, 253 views)
Antartica is offline   Reply With Quote
Old 07-21-2006, 08:01 AM   #2
arivero
Guru
arivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it is
 
arivero's Avatar
 
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
Of course, you must install scratchbox :-)

http://www.scratchbox.org/download/
http://www.scratchbox.org/download/f...s/1.0/tarball/

This would provide activity enough while you stay in the "paid not shipped" limbo.

Last edited by arivero; 07-21-2006 at 08:06 AM.
arivero is offline   Reply With Quote
Old 07-21-2006, 08:21 AM   #3
TadW
Uebermensch
TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.
 
TadW's Avatar
 
Posts: 2,582
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
If you run Debian or Ubuntu, you can also install Scratchbox this way:

Add the following to /etc/apt/sources.list:

deb http://scratchbox.org/debian/ ./

Then:

$ apt-get update
$ apt-get install scratchbox-core scratchbox-devkit-debian \
scratchbox-devkit-doctools scratchbox-devkit-perl scratchbox-libs \
scratchbox-toolchain-arm-gcc3.3-glibc2.3 \
scratchbox-toolchain-i686-gcc3.3-glibc2.3

You need to set up your user with Scratchbox. Type the following:

$ sudo /scratchbox/sbin/sbox_adduser $USER

Restart your session in order for the group changes to take affect. Once you're back in, log in to your scratchbox:

$ /scratchbox/login
TadW is offline   Reply With Quote
Old 07-21-2006, 09:47 AM   #4
TadW
Uebermensch
TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.
 
TadW's Avatar
 
Posts: 2,582
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
Quote:
Originally Posted by arivero
This would provide activity enough while you stay in the "paid not shipped" limbo.
Morph, but there is no way to get to the binaries before it's being shipped, is there?
TadW is offline   Reply With Quote
Old 07-21-2006, 09:52 AM   #5
arivero
Guru
arivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it is
 
arivero's Avatar
 
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
It is a technicality. I suppose the "paid" status qualifies for begging :-) but not all of the content is GPL'd so it can not be distributed.
arivero is offline   Reply With Quote
Old 07-21-2006, 10:17 AM   #6
TadW
Uebermensch
TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.
 
TadW's Avatar
 
Posts: 2,582
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
*grin*

Is it possible that you attach a list of all files on the iLiad? Like,

ls / -Rla > content.txt
TadW is offline   Reply With Quote
Old 07-22-2006, 03:24 AM   #7
ali
Addict
ali doesn't litterali doesn't litter
 
ali's Avatar
 
Posts: 302
Karma: 116
Join Date: May 2006
Device: Iliad, dude!
I can't get it to run, it always complains about a missing cpu transparency type. I installed qemu, including qemu-arm. Alas, the list of cpu transparency types is empty in sb-menu. Any hints what I could do?
ali is offline   Reply With Quote
Old 07-24-2006, 03:08 AM   #8
Antartica
Evangelist
Antartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-books
 
Posts: 415
Karma: 754
Join Date: Jun 2006
Location: Madrid, Spain
Device: iliad, onhandpc, newton, zaurus
Quote:
Originally Posted by ali
I can't get it to run, it always complains about a missing cpu transparency type. I installed qemu, including qemu-arm. Alas, the list of cpu transparency types is empty in sb-menu. Any hints what I could do?
I'm using Debian 3.1 Sarge. Here you have the packages I've installed and the relevant lines of the sources.list:
$ dpkg --get-selections | grep "scratch\|qemu\|bios"
bochsbios install
qemu install
scratchbox-core install
scratchbox-devkit-cputransp install
scratchbox-devkit-debian install
scratchbox-devkit-perl install
scratchbox-libs install
scratchbox-toolchain-arm-gcc4.01-glibc2.3 install
scratchbox-toolchain-host-gcc install
vgabios install
$ cat /etc/debian_version
3.1
$ grep scratch /etc/apt/sources.list
# scratchbox
deb http://scratchbox.org/debian/ ./

Here are the instructions I used as a guide for installing scratchbox in this machine:
http://www.scratchbox.org/documentat...nstalldoc.html

I'm right now preparing a toolchain for scratchbox using gcc 2.4.2 and glibc 2.3.3 (hope it's ok for the iliad, as crosstool didn't had glibc 2.3.2 in the recommended configurations for arm target).
Antartica is offline   Reply With Quote
Old 07-24-2006, 04:06 AM   #9
ali
Addict
ali doesn't litterali doesn't litter
 
ali's Avatar
 
Posts: 302
Karma: 116
Join Date: May 2006
Device: Iliad, dude!
Hey, it works now. I didn't install scratchbox-devkit-cputransp. Thanks!
ali is offline   Reply With Quote
Old 07-24-2006, 07:40 AM   #10
Antartica
Evangelist
Antartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-booksAntartica has learned how to read e-books
 
Posts: 415
Karma: 754
Join Date: Jun 2006
Location: Madrid, Spain
Device: iliad, onhandpc, newton, zaurus
More news.

I've finished compiling the gcc 3.4 and libc 2.3.3 and setup a new target in scratchbox using that new toolchain. Then, copied the contents of the iliad (yay, now I've mine :-b) to that new scrtachbox user.

I've noticed two things:

1. The libc of the iliad is a 2.3.4, although it's name is 2.3.3 (but hope that the binaries I compile using this new toolchain work)

2. Some of the programs in the iliad use BOTH the X server and the framebuffer directly (that is, /dev/fb0). An example of this is the xebreader and scribble.

Attached is a screenshot using pageBar and xpdf executed in the scratchbox with the DISPLAY exported to a Xnest in my desktop :-). And it works (clicking in the pagebar you go to other pages), ect.
Attached Thumbnails
Click image for larger version

Name:	sapture-scratchbox-iliad2.png
Views:	346
Size:	65.6 KB
ID:	1291  
Antartica is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iLiad Scratchbox VNC Server Usage BTolputt iRex Developer's Corner 2 02-02-2009 01:57 AM
Building Windows Binaries itimpi Calibre 4 01-30-2009 01:22 PM
iLiad colinux + scratchbox ? ericshliao iRex Developer's Corner 2 01-28-2009 09:18 AM
iLiad Integration of ScratchBox and iRex Official SDK ericshliao iRex Developer's Corner 3 10-09-2008 03:51 PM
iLiad Scratchbox and app testing Mythago iRex Developer's Corner 2 03-28-2007 01:27 PM


All times are GMT -4. The time now is 04:14 AM.


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