Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : How-to: build a toolchain for the iliad using crosstool


Antartica
07-25-2006, 09:21 AM
Hi all!

I've built a toolchain for the iliad using crosstool (for using it with scratchbox, but it also works without it). Here are the instructions (tested on Debian Sarge):

1. Untar the attached file in the home of your user (it's a tar.gz despite the .zip extension -- the .zip was a workaround to be able to upload the file). It should create a crosstool subdirectory
2. Download crosstool 0.42 (crosstool-0.42.tar.gz) from http://www.kegel.com/crosstool/crosstool-0.42.tar.gz to the crosstool subdirectory and unpack it there. You should have now a lot of files in ~/crosstool/crosstool-0.42/
3. cd ~/crosstool/crosstool-0.42/
4. cp ../demo-iliad.sh .
5. Edit demo-iliad.sh and change RESULT_TOP to suit your tastes
6. Execute the following ". ../prepare.sh" just to be sure there is no LD_LIBRARY_PATH set
7. Start compiling the new toolchain with "./demo-iliad.sh"
8. Wait a lot of time while the toolchain builds
9. That's all, you should have your new toolchain in the specified RESULT_TOP directory.

Notes:

1. The libc is built against linux-2.4.19-rmk7-pxa2, but not linux-2.4.19-rmk7-pxa2-irex as irex hasn't published the patch yet.
2. The libc used is 2.3.3, but the iliad has 2.3.4 with the name renamed to 2.3.3; executables built with this toolchain should work in the iliad, but the executables in the iliad doesn't like the libc of the toolchain (no problem, but you should know it, just if a problem arises...)

Have fun!

Antartica
03-18-2007, 02:24 PM
I'm preparing the instructions for building the toolchain from scrtach, aimed at iliad firmware 2.9

The "work in progress" wiki page is here:

Notes about building a toolchain for the iliad using crosstool (http://http://wiki.mobileread.com/wiki/Notes_about_building_a_toolchain_for_the_iliad_usi ng_crosstool)

Any needed files will be attached to this post O:-).

deadite66
03-18-2007, 02:50 PM
maybe someone could make a vmware (vmplayer is free) image with the crosscompiler already setup

Alexander Turcic
03-19-2007, 04:07 AM
maybe someone could make a vmware (vmplayer is free) image with the crosscompiler already setup
That is an excellent idea!! Any volunteers?

PS: We could also host the vmware image if it's kept to a minimum size.

Adam B.
03-19-2007, 05:39 AM
That is an excellent idea!! Any volunteers?

PS: We could also host the vmware image if it's kept to a minimum size.

I had planned to set this up once Antartica posts an updated tool chain. :cool: However, my current VMware image is 2GB... Bittorrent may be a better choice. I'll see what I can do about keeping the file size down.

Alexander Turcic
03-19-2007, 05:45 AM
I had planned to set this up once Antartica posts an updated tool chain. :cool: However, my current VMware image is 2GB... Bittorrent may be a better choice. I'll see what I can do about keeping the file size down.
I agree, a torrent seems best.

deadite66
03-19-2007, 05:54 AM
someone made a 121MB image based off DSL (Damn small linux) for zaurus development.
no idea if this is compatible or just an example of how small you can make a build system.
http://kopsisengineering.com/kopsis/SharpZaurusSdkDsl

yokos
03-19-2007, 06:22 AM
However, my current VMware image is 2GB... Bittorrent may be a better choice. I'll see what I can do about keeping the file size down.
I agree, a torrent seems best.
Another alternative would be to use a one-click-hoster like uploaded.to (http://uploaded.to/?lang=ENG) or oxedion.com to share such a large VM-image. I don't know, whether we are enough users for BT [the more users the better].
[Edit:] Both sites don't have a waiting time like rapidshare after a download. It's free to up~ & download.

b_k
03-19-2007, 06:54 AM
I had planned to set this up once Antartica posts an updated tool chain. :cool: However, my current VMware image is 2GB... Bittorrent may be a better choice. I'll see what I can do about keeping the file size down.
i think thats uncompressed, isn't it?
with some sort of compression you should get some reasonable file size. (given that you can be able to fit a default ubuntu install into < 800 MB, example: http://www.vmware.com/vmtn/appliances/directory/693)

Adam B.
03-19-2007, 07:22 AM
i think thats uncompressed, isn't it?
with some sort of compression you should get some reasonable file size. (given that you can be able to fit a default ubuntu install into < 800 MB, example: http://www.vmware.com/vmtn/appliances/directory/693)

You're right, that is uncompressed. I just Gzip'd it, turned out to be 384MB. That's a much more reasonable size....

narve
03-19-2007, 01:34 PM
You're right, that is uncompressed. I just Gzip'd it, turned out to be 384MB. That's a much more reasonable size....
I don't think torrent is the correct solution for this, too few users. Even emule would be better I think.

Anyway, if hosting is a big problem I can host it at home (I have ASDL2+) or at work (2Mib/s outgoing optical thingy), should be more than enough.

Alexander Turcic
03-19-2007, 01:45 PM
Sounds good. We would definitely store it @ MR as well but it would be necessary to find backup download sites.

narve
03-19-2007, 04:25 PM
Sounds good. We would definitely store it @ MR as well but it would be necessary to find backup download sites.
No problem. It is a shame to waste all that free bandwith :)

DHer
03-20-2007, 03:15 AM
my hoster recently offered me unlimited traffic - so i'd also love to donate a backup server.

b_k
03-20-2007, 03:31 AM
what about this?
the download is not so nice, but mostly you get a steady connection between 70 and 100kb/s. and be warned, i have my Opera fed with some up2date adblocker list, so I can't see ads that may or may not be there.

http://www.gigeshare.com/