OESF Portables Forum
Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Qt/Qtopia => Topic started by: ArchiMark on January 18, 2005, 05:06:06 pm
-
Hope someone can advise...have a feeling that there's something simple I'm overlooking....
Installed Dev_Img-1.5 on my C3000 yesterday. I have used Dev_Img-1.5 successfully a year ago on the C860 I had then....so a bit rusty now...
Just tried compiling a simple "HelloWorld" file as a test...
Here's the error messages I got...
gcc: hello1: No such file or directory
gcc: installation problem, cannot exec `/usr/lib/gcc-lib/armv4l-redhat-linux/2.95.1/cpp': Exec format error
gcc: installation problem, cannot exec `/usr/lib/gcc-lib/armv4l-redhat-linux/2.95.1/cc1plus': Exec format error
gcc: installation problem, cannot exec `as': No such file or directory
Any suggestions?
Thanks!
Mark
-
Some additional info, maybe this will help someone advise me.....
Here's my etc/fstab file:
/dev/mtdblock2 / jffs2 ro, noatime 1 1
/dev/mtdblock3 /home jffs2 defaults, noatime 1 2
none /dev/shm tmpfs size=1m,noauto 0 0
/dev/mmcda1 /mnt/card auto noauto, owner 0 0
none /dev/pts devpts gid=5, mode=620 0 0
/mnt/card/Documents /mnt/dev cramfs loop, noauto 0 0
/mnt/card/Documents/dev_img-1.5 /mnt/dev cramfs loop, noauto 0 0
/mnt/card/dev_img-1.5 /mnt/dev cramfs loop, noauto 0 0
/mnt/card/dev_img-1.5 /home/zaurus/develop cramfs loop, noauto 0 0
Does this look right??
Any other ideas?
If I want to try installing dev_img-1.5 again, what should I do before trying reinstall?
Thanks,
Mark
-
Oooops....
Duplicated post (deleted)....
Mark
-
Follow cmisip's installation instruction at home.comcast.net/~cmisip/zaurus.htm.
It is the best to date.
-
Thanks for your help, freizugheit!
However.....
"PAGE UNAVAILABLE
This URL you typed is unavailable at this time."
Oh well.....
Mark
-
Got reply to PM from cmisip regarding his webpage....
Turns out his instructions were for zgcc anyway, not Dev_Img....
So could anyone else out there please advise???
Thank!
Mark
-
Just curious....anyone out there in ZLand got Dev_Img-1.5 working on their C3000?
Meanwhile, anybody out there have any other advice??
Would REALLY like to get Dev_Img-1.5 working on my C3000. It was great having int on my ol' C860....
Thanks,
Mark
-
Afternoon Update:
Reinstalled Dev_Img-1.5. Seems like things are working better now...but not quite there yet....
After install, typed ./gcc
and got gcc: No input files
. So as I recall that means install should be OK.
Tried compiling simple 'Hello World' file.
Got the following error messages:
gcc: installation problem, cannot exec `as': No such file or directory
/home/zaurus/Documents/Text_Files/hello.cpp: In function `int main(int, char**)':
/home/zaurus/Documents/Text_Files/hello.cpp:8: `QPushbutton' undeclared (first use this function)
/home/zaurus/Documents/Text_Files/hello.cpp:8: (Each declared identifier is reported only once
/home/zaurus/Documents/Text_Files/hello.cpp:8: for each function it appears in.)
/home/zaurus/Documents/Text_Files/hello.cpp:8: parse error before `( '
/home/zaurus/Documents/Text_Files/hello.cpp:9: `hello' undeclared (first use this function)
/home/zaurus/Documents/Text_Files/hello.cpp:14: parse error at end of input
/home/zaurus/Documents/Text_Files/hello.cpp:14: output pipe has been closed
Don't understand the first error message line, what is that about???
( I do see something in the /bin directory names `as'....).
The rest of the error messages relate to the code itself that I wrote, I should be able to fix those issues....
Appreciate any and all input!!
Thanks,
Mark
-
Maybe it's a permissions problem? Whan are permissions of as executable in /mnt/dev/bin? Is is executable by user zaurus?
-
Well, maybe I have bigger problems, Maslovsky.....
I typed cd /mnt/dev/bin
and got back No such file or directory
So then I did$ su
#cd /mnt/dev/bin
cd: can't cd to /mnt/dev/bin
#cd /mnt/dev
#ls -l
#lrwxrwxrwx 1 root root develop -> /home/zaurus/develop
So wonder if this is installation related problem??
Maybe related to how C3000 is setup versus the C760/C860 are setup relative to the compiler_setup script???
Just some thoughts, but what do I know??
Really appreciate any help!
Thanks,
Mark
-
Where there any error messages during setup? Can you create /mnt/dev directory? Maybe you'll need to remount your partitions to rw before running dev-img setup
-
Where there any error messages during setup?
Yes, there were some error messages when I first tried to install.
I found some notes I made I think these are from when I was installing Dev_Img-1.5....
#cd /mnt/card/Documents
#./image_setup.sh /mnt/card/dev_img-1.5 /mnt/dev
# setting mount point /mnt/dev....
#mounting image /mnt/card/dev_img-1.5
#mount: /mnt/card/Documents: ls a directory
#mount: Could not setup loop device
#Failed to mount image /mnt/card/Documents on /mnt/dev
** I did try to install Dev_Img-1.5 again after getting these error messages. Maybe this is part of the problem too??
Can you create /mnt/dev directory?
It is there already and has 'develop' inside of it.
Although now I see something that really looks very strange....
I'm using tkcExplorer to literally see all my directories and files. It shows that within /mnt/dev/develop is another 'develop' directory. And then there's another 'develop' directory within that one and so on and so on....
So I assume that something got really messed up during installation and second installation, right??
Maybe you'll need to remount your partitions to rw before running dev-img setup
OK, so are you saying that I should
A) First remount partitions to rw and then
Run the 'compiler_setup.sh' script again to reinstall Dev_Img-1.5 ??
Do I need to do anything else before doing this or removing the existing Dev_Img-1.5 installation??
Thanks!
Mark
-
OK, would like to try installing dev_img-1.5 one more time on my C3000....
Tried running 'image_setup.sh' and here's what I get:
Setting mount point /home/zaurus/develop...
Mounting image /mnt/card/dev_img-1.5...
Mount: Mounting /usr/mnt.rom/card/dev_img-1.5 on /home/zaurus/develop
failed: Block device required
Failed to mount image /mnt/card/dev_img-1.5 on /home/zaurus/develop
When I type 'mount' I get:
rootfs on /type rootfs (fw)
/dev/root on / type jffs2 (ro)
/proc on /proc type proc (rw)
/dev/mtdblock3 on /home type jffs2 (rw,noatime)
/dev/ram1 on /dev type minix (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda1 on /hdd1 type ext3 (ro, noatime)
/dev/hda2 on /hdd2 type ext3 (rw, noatime)
/dev/hda3 on /hdd3 type vfat (rw, noatime)
none on /dev/pts type devpts (rw)
/dev/mmcda1 on /usr/mnt.rom/card type vfat (rw, noatime)
Any suggestions as to how to get install working???
Thanks!!
Mark
-
OK, this is what you should have start with
I wonder if /home/zaurus is actualy a link to som other directory. Give me the output of ls -l /home command.
-
Thanks for your help, maslovsky!
OK, output of 'ls -l /home is:
lrwxrwxrwx 1 root root 15 Oct 27 21:14 QtPalmtop -> /hdd2/QtPalmtop
drwxr-xr-x 7 root root 0 Oct 27 20:24 dev
drwxr-sr-x 11 root root 0 Dec 31 1969 etc
drwxr-xr-x 6 root root 0 Jan 31 09:56 root
drwxr-xr-x 2 root root 0 Feb 2 17:21 samba
drwxr-xr-x 7 root root 0 Oct 27 20:24 sharp
drwxr-xr-x 3 root root 0 Oct 27 21:13 system
lrwxrwxrwx 1 root root 9 Oct 27 20:24 tmp -> /hdd2/tmp
drwxr-xr-x 2 root root 0 Oct 27 20:24 userdata
drwx------- 9 zaurus qpe 0 Feb 2 11:49 zaurus
Hope this helps....
Thanks,
Mark
-
Well, /home/zaurus is not a link, but permissions seem to be a little strange to me. Try chmod a+rx /home/zaurus and then install again.
-
Thanks for your help, Maslovsky....
OK, did what you suggested:
su
chmod a+rx /home/zaurus
and then
cd /mnt/card
./image_setup.sh /mnt/card/dev_img-1.5 /home/zaurus/develop
and got the same error message as before:
Setting mount point /home/zaurus/develop...
Mounting image /mnt/card/dev_img-1.5...
Mount: Mounting /usr/mnt.rom/card/dev_img-1.5 on /home/zaurus/develop
failed: Block device required
Failed to mount image /mnt/card/dev_img-1.5 on /home/zaurus/develop
Any other suggestions or things to try???
Thanks,
Mark
Really would like to get Dev_Img-1.5 Working on his C3000
-
Any input anybody??
Would really like to get dev_img-1.5 running properly....
Thanks,
Mark
-
Can you mount image manualy?
mount -t cramfs <dev-image> <some_place> -o loop
-
Thanks so much for your help, Maslovsky!
Hopefully, one day this puzzle will be solved!....
Meanwhile....
I screwed up my Z yesterday morning trying to reflash...so didn't get things back to normal till this morning...
Reflashed with new kernel that supposed to have 'squashfs' in it. So, thought I'd try installing dev_img-1.6 instead.
Just tried install again, once with your setup script and once manually per your instructions....
Here's what I get now:
#su
#chmod a+rx /home/zaurus
#cd /mnt/card
#./image_setup.sh /mnt/card/dev_img-1.6 /home/zaurus/develop
Setting mount point /home/zaurus/develop...
Mounting image /mnt/card/dev_im-1.6...
mount: /mnt.rom/card/dev_img-1.6: No such file or directory
mount: Could not setup loop device
Failed to mount image /mnt/card/dev_img-1.6 on /home/zaurus/develop
#mount -t cramfs /mnt/card/dev_img-1.6 /home/zaurus/develop
mount: Mounting /mnt/card/dev_img-1.6 on /home/zaurus/develop failed:
Block device required
Any suggestions??
Thanks,
Mark
-
mount: /mnt.rom/card/dev_img-1.6: No such file or directory
Is that file indeed om the root of your SD card?
-
mount: /mnt.rom/card/dev_img-1.6: No such file or directory
Is that file indeed om the root of your SD card?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=66046\"][{POST_SNAPBACK}][/a][/div]
Yes...
#cd /mnt/card
#ls -l
-rwxrwxrwx 1 root root 38379520 Jan 9 20:58 dev_img-1.6
-rwxrwxrwx 1 root root 887 Jan 9 21:02 image_setup.sh
Plus I have other files at root level of card....would that make a difference?
Also, just did the following:
#ls -l /dev/loop*
brw-rw---- 1 root operator 7,0 Oct 27 20:24 /dev/loop0
brw-rw---- 1 root operator 7,1 Oct 27 20:24 /dev/loop1
So did the following to add another loop device:
#mknod /dev/loop2 b 7 2
#ls -l /dev/loop*
brw-rw---- 1 root operator 7,0 Oct 27 20:24 /dev/loop0
brw-rw---- 1 root operator 7,1 Oct 27 20:24 /dev/loop1
brw-r--r-- 1 root root 7,2 Feb 7 20:14 /dev/loop2
Tried install again manual and with script...
Get same error messages as before:
#./image_setup.sh /mnt/card/dev_img-1.6 /home/zaurus/develop
Setting mount point /home/zaurus/develop...
Mounting image /mnt/card/dev_im-1.6...
mount: /mnt.rom/card/dev_img-1.6: No such file or directory
mount: Could not setup loop device
Failed to mount image /mnt/card/dev_img-1.6 on /home/zaurus/develop
#mount -t cramfs /mnt/card/dev_img-1.6 /home/zaurus/develop -o loop
mount: Mounting /mnt/card/dev_img-1.6 on  /home/zaurus/develop failed:
Invalid argument
Thanks,
Mark
-
The only thing that comes to my mind is to update permisssions of your loop2 device to match those of loop0 and loop2.
Another idea - can you mount other cramfs images? I wonder if default C3000 kernel has cramfs support compiled in...
-
The only thing that comes to my mind is to update permisssions of your loop2 device to match those of loop0 and loop2.
OK, will try that....assume you mean 'of loop0 and loop1'...
Another idea - can you mount other cramfs images?
Well, after failing to get dev_img installed. I did get 'zgcc' working. But I want to use 'dev_img' as it has more goodies in it'...
I wonder if default C3000 kernel has cramfs support compiled in...
I will try and check that...maybe with the new 'Tetsu' kernel I flashed the other day...it has squashfs in it...so will check...
THANKS!
Mark
-
OK, checked things out...
#cat /proc/filesystems
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev tmpfs
nodev shm
nodev pipefs
ext3
ext2
cramfs
nodev ramfs
minix
vfat
iso9660
nodev nfs
nodev smbfs
ntfs
jffs2
nodev devpts
Hope this helps....
Mark
-
OK, finally got Dev_Img-1.6 installed and WORKING on my C3000!!!!!
Only took a week plus the considerable help from another OE forum member....
Wish I could write up a simple summary of what it took to get it working, but right now my head is still spinning from all the steps I had to do...
Would be great to have though in case I ever need to reinstall...
So guess I'll keep my C3000 after all.....
Mark
Very Happy* Silicone Valley Zster
*Well, more or less...will be really happy when Cacko/pdaXrom is available for C3000...
-
Errm....I am having the problem on my new C1000. using Dev Img 1.6 with a "No such Device" error.
I dont remember any problems with 1.5 on my 860.
Help please....
Thanks
OK, finally got Dev_Img-1.6 installed and WORKING on my C3000!!!!!
Only took a week plus the considerable help from another OE forum member....
Wish I could write up a simple summary of what it took to get it working, but right now my head is still spinning from all the steps I had to do...
Would be great to have though in case I ever need to reinstall...
So guess I'll keep my C3000 after all.....
Mark
Very Happy* Silicone Valley Zster
*Well, more or less...will be really happy when Cacko/pdaXrom is available for C3000...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67165\"][{POST_SNAPBACK}][/a][/div]
-
I'm probably responsible for the original idea to put the zgcc suite in a cramfs form. See my notes at my Zaurus On-board programming web site. (http://FoxFrenchTranslations.com/zaurus) I have heard that OZ 3.51, and perhaps other builds, lacks complete support in bash for mount ..... -o loop.
-
I have heard that OZ 3.51, and perhaps other builds, lacks complete support in bash for mount ..... -o loop.
This has been fixed in OZ 3.5.2 and later releases.
-
i tried dev image 1.3 1.5 1.6 which had 1.5 in the 1.6 zip file <-crazy
could not get any of these to run even after 48 hours straight reading and trying various methods. I decided to brush the dust under the mattress.
Any idea how to install these on sd on a c1000?
-
Here is a recap of what I did to get dev-img-1.5 working on my C760:
I initially failed to use the image_setup.sh script correctly and had to manually delete multiple incorrect lines from /etc/fstab. I ended up having to do the configuration manually.
I originally did not understand the reason for having a /mnt/dev mount point that is different from "/home/zaurus/develop" in the image_setup.sh script. Why not just mount the "dev_img-1.5" file directly to "/home/zaurus/develop"? The answer is at the end.
Here are the steps that I had to use to get the compiler working on my Sharp ROM on my Zaurus SL-C760's SD card:
Unzip the dev-img-1.5.zip file to /mnt/card
Execute the commands:
cd /home/zaurus
mkdir develop
su root
Add the following line to "/etc/fstab":
/usr/mnt.rom/card/dev_img-1.5  /home/zaurus/develop  cramfs  auto,loop  0 0
Execute:
mount develop (still as the root user, while your current directory is /home/zaurus)
Add the following line to ".bashrc":
export PATH="$PATH:/home/zaurus/develop/bin"
exit (to stop being the root user)
exit (to exit the terminal program and go back into Qtopia)
Go back in the terminal so that the new .bashrc can take effect.
Execute:
echo $PATH ("/home/zaurus/develop/bin" should appear in the path, otherwise edit .bashrc again)
su root
compiler_setup.sh
exit (to stop being the root user)
The compiler_setup.sh script is located in /home/zaurus/develop/bin once /home/zaurus/develop is mounted.
Try to compile a "Hello, World!" program.
I find that /home/zaurus/develop does not automatically mount on a reboot. I keep having to "su root; mount develop; exit".
I learned today that a program called autoconf is hard-coded to look in "/mnt/dev/bin" for a file that is in "/home/zaurus/develop/bin". That means that you have to execute commands like:
su root
cd /mnt
ln -s /home/zaurus/develop dev
exit
to link /mnt/dev to /home/zaurus/develop.