Author Topic: Ripping Off The Zgcc Image  (Read 1277 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Ripping Off The Zgcc Image
« 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?
« Last Edit: January 13, 2007, 07:29:47 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Ripping Off The Zgcc Image
« Reply #1 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
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Ripping Off The Zgcc Image
« Reply #2 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?
« Last Edit: January 13, 2007, 08:09:39 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]