OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: djtreble on September 29, 2004, 06:34:46 pm
-
Downloaded http://mirror1.pdaxrom.org/zgcc-3.3.2.img (http://mirror1.pdaxrom.org/zgcc-3.3.2.img) .
Instructions:
Quick install instructions: Put the file in /home/root and reboot
Sounds too good to be true and sure enough nothing happened.
or manually mount the file to /opt/arm/3.3.2
#mount /home/root/zgcc-3.3.2.img /opt/arm/3.3.2/
mount: /home/root/zgcc-3.3.2.img is not a block device (maybe try '-o loop')
#mount -o loop /home/root/zgcc-3.3.2.img /opt/arm/3.3.2/
mount: you must specify a filesystem type
#mount -o loop -t cramfs /home/root/zgcc-3.3.2.img /opt/arm/3.3.2/
mount: wrong fs type
What next?
Sorry if I'm being really dense.
Cheers
Dan
-
tryed adding
/home/root/zgcc-3.3.2.img /opt/arm/3.3.2 cramfs auto,loop 0 0
to
/etc/fstab
can't mount it, still no joy... :-(
-
After some more reading I'm guessing I need to install the gcc and gcc-headers package.
Thanks for telling me everyone!
-
So is it working for you? Can you please summarize what you needed to do?
-
Nope, still not working. Here's what I have tried and worked out:
Mounting Zazz's zsdk (https://www.oesf.org/forums/index.php?showtopic=3490&hl=zsdk) is really easy and as far as I could tell worked, short of me exporting a few paths.
The only think I didn't like is that the compiler is configured as an arm cross compiler for arm, if that makes any sense. Functionally it should be identical to a native compiler, it just might take a bit more work configuring things to be built with it.
The binutils, gcc and gcc-headers packages in feed2 all seem work, I just couldn't find the space to install them. I tried to symlink my /opt/ directory to a directory on my SD card, but ipkg just trashed the symlink and installed to internal flash. I need to work out how to install them on my SD card.
I'm pretty sure the zgcc-3.3.2.img is a version of the above packages and would be ideal if I could work out how to mount it. Anyone?
Cheers
Dan
-
Got it with a bit of hex editing. http://mirror1.pdaxrom.org/zgcc-3.3.2.img (http://mirror1.pdaxrom.org/zgcc-3.3.2.img) is actually a gziped cramfs image. So to mount it we need to do something like this...
#mv zgcc-3.3.2.img zgcc-3.3.2.img.gz
#gunzip zgcc-3.3.2.img.gz
#mkdir -p /opt/arm/3.3.2
#mount -o loop,ro -t cramfs /mnt/card/zgcc-3.3.2.img /opt/arm/3.3.2
And to check it's pathed and 'working'
#gcc -v
Thank god for that!
Now if only the file had been named zgcc-3.3.2.cramfs.gz , I wouldn't have had nearly as much fun!
-
Well done djtreble. You've probably saved a lot of people from the same issues.
- Bundabrg
-
For rc5
http://mirror1.pdaxrom.org/rc5/zgcc-3.3.2.img (http://mirror1.pdaxrom.org/rc5/zgcc-3.3.2.img)
is NOT gzipped.
it wants mounting to a slightly different directory though
#mkdir -p /opt/arm/3.3.2-vfp
#mount -o loop,ro -t cramfs /mnt/card/zgcc-3.3.2.img /opt/arm/3.3.2-vfp
Hope this helps someone.
Cheers
Dan
-
I have some problem however with the IPK making. The SDK tutorial on the pdaXrom site says:
# Compile/Install the program there using, make DESTDIR=ipkg_tmp install
This usually gives me an error. With hnb (http://hnb.sf.net) it says it can't find the program called "install" and gnuplot (http://www.gnuplot.info) doesn't install in that directory, only in the system, as it would normally. (I wanted to recompile them with the new VFP thingie)
Please, I want to contribute IPKs, but I can't pack them if they don't install nicely in this dir.
I searched for the "install" program and the package called coreutils has it on my Debian system. Any suggestion how to get it in pdaXrom. (I'm using RC5 native SDK)
I tried to crosscompile things with SDKs before, but I got too many errors at the configure scripts and so... So I tried the native SDK and it's as easy to use as to compile programs for my desktop Linux system. Give it a go if you felt similar before!
Zumi, the compiler
-
I have started a new thread (https://www.oesf.org/forums/index.php?act=ST&f=73&t=7810) for install and coreutils.
As a general note you will often need other small tools that are not in the sdk
or in the base rom.
Compiling various thing I found configure and install script required for instance:
make (of course)
file
diffutils
coreutils (install program)
-
Can i recompile with NativeSDK some pdaXrom programs (mb-applet-power)?
-
Though I didn't try, i think so. At least matchbox header files are included.
-
Though I didn't try, i think so. At least matchbox header files are included.
1. When I try to compile little program:
#include
int main()
{
 return 0;
}
there are a lot of errors
2. When I try to compile this program:
#include
int main()
{
 return 0;
}
compiler couldn't find file "iostream"
-
1.
try gcc -I/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/include/freetype2/ -o main main.c
2.
#include <iostream> is a c++ notation if i am not mistaken
try with g++