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

Title: Compile Problem - Dev_img-1.5
Post 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...

Code: [Select]
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
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on January 18, 2005, 07:59:48 pm
Some additional info, maybe this will help someone advise me.....

Here's my etc/fstab file:

Code: [Select]
/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
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on January 18, 2005, 08:00:44 pm
Oooops....

Duplicated post (deleted)....

 

Mark
Title: Compile Problem - Dev_img-1.5
Post by: freizugheit on January 19, 2005, 01:47:05 am
Follow cmisip's installation instruction at home.comcast.net/~cmisip/zaurus.htm.

It is the best to date.
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on January 19, 2005, 10:25:40 am
Thanks for your help, freizugheit!

However.....

"PAGE UNAVAILABLE

This URL you typed is unavailable at this time."


 


Oh well.....

Mark
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on January 25, 2005, 03:01:34 pm
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
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on January 26, 2005, 11:55:58 am
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
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on January 26, 2005, 07:44:24 pm
Afternoon Update:

Reinstalled Dev_Img-1.5. Seems like things are working better now...but not quite there yet....

After install, typed
Code: [Select]
./gcc and got
Code: [Select]
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:

Code: [Select]
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
Title: Compile Problem - Dev_img-1.5
Post by: maslovsky on January 27, 2005, 04:04:56 am
Maybe it's a permissions problem? Whan are permissions of as executable in /mnt/dev/bin? Is is executable by user zaurus?
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on January 27, 2005, 10:31:19 am
Well, maybe I have bigger problems, Maslovsky.....

I typed
Code: [Select]
cd /mnt/dev/bin
and got back
Code: [Select]
No such file or directory
So then I did
Code: [Select]
$ 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
Title: Compile Problem - Dev_img-1.5
Post by: maslovsky on January 27, 2005, 02:57:07 pm
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
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on January 27, 2005, 04:25:35 pm
Quote
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....

Code: [Select]

#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??


Quote
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??

Quote
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
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on February 02, 2005, 07:27:26 pm
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:

Code: [Select]
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:

Code: [Select]
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
Title: Compile Problem - Dev_img-1.5
Post by: maslovsky on February 02, 2005, 11:02:26 pm
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.
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on February 02, 2005, 11:31:38 pm
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
Title: Compile Problem - Dev_img-1.5
Post by: maslovsky on February 03, 2005, 01:41:10 am
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.
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on February 03, 2005, 10:03:58 pm
Thanks for your help, Maslovsky....

OK, did what you suggested:

Code: [Select]
su
chmod a+rx /home/zaurus

and then
Code: [Select]
cd /mnt/card
./image_setup.sh /mnt/card/dev_img-1.5 /home/zaurus/develop

and got the same error message as before:

Code: [Select]
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  
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on February 05, 2005, 10:28:36 am
Any input anybody??

Would really like to get dev_img-1.5 running properly....

Thanks,

Mark
Title: Compile Problem - Dev_img-1.5
Post by: maslovsky on February 06, 2005, 05:08:15 am
Can you mount image manualy?

mount -t cramfs <dev-image> <some_place> -o loop
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on February 07, 2005, 04:00:34 pm
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:

Code: [Select]
#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
Title: Compile Problem - Dev_img-1.5
Post by: maslovsky on February 07, 2005, 06:44:45 pm
Quote
mount: /mnt.rom/card/dev_img-1.6: No such file or directory

Is that file indeed om the root of your SD card?
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on February 07, 2005, 07:21:35 pm
Quote
Quote
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...

Code: [Select]
#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:
Code: [Select]
#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:
Code: [Select]
#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:
Code: [Select]
#./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
Title: Compile Problem - Dev_img-1.5
Post by: maslovsky on February 08, 2005, 03:08:16 am
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...
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on February 08, 2005, 09:10:38 am
Quote
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'...

Quote
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'...

Quote
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
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on February 09, 2005, 04:20:32 pm
OK, checked things out...

Code: [Select]
#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
Title: Compile Problem - Dev_img-1.5
Post by: ArchiMark on February 15, 2005, 01:27:02 pm
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...  
Title: Compile Problem - Dev_img-1.5
Post by: Mr Root on May 21, 2005, 11:24:45 am
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

Quote
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]
Title: Compile Problem - Dev_img-1.5
Post by: jfox on June 21, 2005, 12:24:01 am
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.
Title: Compile Problem - Dev_img-1.5
Post by: Mickeyl on June 21, 2005, 06:22:17 am
Quote
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.
Title: Compile Problem - Dev_img-1.5
Post by: Cresho on August 20, 2005, 02:20:24 am
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?
Title: Compile Problem - Dev_img-1.5
Post by: qx773 on August 31, 2005, 11:24:18 pm
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":
Code: [Select]
/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":
Code: [Select]
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.