OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: ZDevil on January 13, 2007, 07:28:54 am

Title: Ripping Off The Zgcc Image
Post by: ZDevil on January 13, 2007, 07:28:54 am
Hi there,

From time to time I tried the cross-compiler in Kubuntu, but often ends up missing certain librarie or linking to the wrong (the PC's) ones. Using the native image to compile on-board is handy, but the problem is things are missing from the image and stuff added or symlinked to the dir where zgcc is mounted (/opt/native/arm/3.4.6-xscale-softvfp) won't work as soon as the zgcc image is mounted .
Dunno if someone has mentioned this before. Here is my dirty yet simple solution:

Just rip off everything from the zgcc image by first mounting it anywhere and then copy everything from there to /mnt/card/opt/native/arm/3.4.6-xscale-softvfp, followed by symlinking the dir to the main memory.

As a result I got many more apps compiled compared to using the zgcc image alone.

The good thing is then i can do whatever i want to the dev environment (adding, removing and symlinking things).
The downside of course is space. But since I am doing this on my 4GB SD card so this is no big deal at all.

What do you folks think? Is this a stupid way of doing things or is there a better solution?
Title: Ripping Off The Zgcc Image
Post by: Meanie on January 13, 2007, 07:38:03 am
Quote
Hi there,

From time to time I tried the cross-compiler in Kubuntu, but often ends up missing certain librarie or linking to the wrong (the PC's) ones. Using the native image to compile on-board is handy, but the problem is things are missing from the image and stuff added or symlinked to the dir where zgcc is mounted (/opt/native/arm/3.4.6-xscale-softvfp) won't work as soon as the zgcc image is mounted .
Dunno if someone has mentioned this before. Here is my dirty yet simple solution:

Just rip off everything from the zgcc image by first mounting it anywhere and then copy everything from there to /mnt/card/opt/native/arm/3.4.6-xscale-softvfp, followed by symlinking the dir to the main memory.

As a result I got many more apps compiled compared to using the zgcc image alone.

The good thing is then i can do whatever i want to the dev environment (adding, removing and symlinking things).
The downside of course is space. But since I am doing this on my 4GB SD card so this is no big deal at all.

What do you folks think? Is this a stupid way of doing things or is there a better solution?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151071\"][{POST_SNAPBACK}][/a][/div]

use squashfs. its compressed and you can appendd/add files to the image
Title: Ripping Off The Zgcc Image
Post by: ZDevil on January 13, 2007, 08:09:26 am
Thanks Meanie! I'm totally ignorant of the differences between these different formats. A naive question: do you mean i can add/append things after mounting the image?