OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: dansawyer on October 15, 2004, 04:31:07 pm

Title: opie camera on 3.5.1 ??
Post by: dansawyer on October 15, 2004, 04:31:07 pm
All,

I am trying to use the Z camera on 3.5.1. The package has been upgraded to the pakcage in upgrades.

The install create the sharpzdc links in /etc/pcmcia.

The camera icon appears on the Opie screen.

The card manager recognized the camera.

The install creates a modue in a /lib/modues/2.4.6... dir.
Should this be in the .18 dir??

Attempts to run the camera result in a short icon flash in the status bar but nothing happens.

Help? Do I need to force load the module? Should it load by itself?

What am I missing??

Dan
Title: opie camera on 3.5.1 ??
Post by: Mickeyl on October 16, 2004, 07:01:00 am
Sounds like you are using packages from wrong feeds. Look below:

Code: [Select]
mickey@gandalf:/tmp$ wget http://openzaurus.org/official/unstable/3.5.1/upgrades/sharp-camera-support_2.4.18-rmk7-pxa3-embedix-r1_arm.ipk .
mickey@gandalf:/tmp$ ipkgfiles sharp-camera-support_2.4.18-rmk7-pxa3-embedix-r1_arm.ipk
drwxr-xr-x root/root         0 2004-10-11 17:25:51 ./
drwxr-xr-x root/root         0 2004-10-11 17:25:51 ./etc/
drwxr-xr-x root/root         0 2004-10-11 17:25:51 ./etc/pcmcia/
drwxr-xr-x root/root         0 2004-10-11 17:25:51 ./etc/pcmcia/cis/
-rw-r--r-- root/root        61 2004-10-11 17:25:51 ./etc/pcmcia/cis/CE-AG06.dat
-rw-r--r-- root/root       282 2004-10-11 17:25:51 ./etc/pcmcia/sharpzdc.conf
-rwxr-xr-x root/root       752 2004-10-11 17:25:51 ./etc/pcmcia/sharpzdc
drwxr-xr-x root/root         0 2004-10-11 17:25:51 ./lib/
drwxr-xr-x root/root         0 2004-10-11 17:25:51 ./lib/modules/
drwxr-xr-x root/root         0 2004-10-11 17:25:51 ./lib/modules/2.4.18-rmk7-pxa3-embedix/
drwxr-xr-x root/root         0 2004-10-11 17:25:51 ./lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/
-rw-r--r-- root/root     26564 2004-10-11 17:25:51 ./lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/sharpzdc_cs.o
Title: opie camera on 3.5.1 ??
Post by: dansawyer on October 16, 2004, 02:29:04 pm
Thanks,

Those files are all there. I have two pkgs installed

sharp-camera-support version 2.4.18... from the upgrade feed (the file sizes match)
opie-camera from the release feed (version 1.0.1-r0)

That is all I have done except to insert the camera. It shows up as an unidentified cf card.

Thanks,
Dan
Title: opie camera on 3.5.1 ??
Post by: dansawyer on October 16, 2004, 03:21:34 pm
update -

It now recognizes the camera; however  it does not work.

Dan
Title: opie camera on 3.5.1 ??
Post by: Mickeyl on October 16, 2004, 04:15:49 pm
I'm sorry, but I can't tell you more than that I got it to work a couple of days ago on a fresh install after installing sharp-camera-support and opie-camera and rebooting. I'm afraid I can't help when I can't reproduce problems  
Title: opie camera on 3.5.1 ??
Post by: dansawyer on October 16, 2004, 04:31:56 pm
One more try:

Attempting to run camera from the command line produces the following:

camera: error while loading shared libraries: libcamera.so.1: cannot open shared object file: No such file or directory

Should trying to run camera force the module to automaticly load??

I will remove the packages and reload them.

Thanks,
Dan
Title: opie camera on 3.5.1 ??
Post by: dansawyer on October 16, 2004, 05:15:43 pm
That fixed it. It now works.
Title: opie camera on 3.5.1 ??
Post by: Windrose on November 02, 2004, 05:06:04 pm
Just removing and reloading worked? I had about the same experience you did. I installed the same packages (this is on an SL5600). The card manager recognizes the camera card. The camera app on the first run after a reboot inflicts a a SIGSEGV. After that occasion it announces that it can't detect the card, and if run from the command line you get:

OGlobal::creating global configuration instance.
OConfig::0Config()
Opie-Camera: Creating ZCameraO::_instance
Opie-Camera: ERROR: Can't open camera driver: Device or resource busy

Windrose
Title: opie camera on 3.5.1 ??
Post by: masterzen on November 02, 2004, 05:14:19 pm
Quote
The camera app on the first run after a reboot inflicts a a SIGSEGV. After that occasion it announces that it can't detect the card, and if run from the command line you get:

OGlobal::creating global configuration instance.
OConfig::0Config()
Opie-Camera: Creating ZCameraO::_instance
Opie-Camera: ERROR: Can't open camera driver: Device or resource busy
I also have a SL-5600, and have the same problem.

The module (sharpzdc_cs) produces an oops in the kernel. Then it remains 'used' and you can't unload it (only a reboot can help). (try dmesg to see what I mean).

From what I understood (I'm still looking for a complete ksymoops, mine borrowed from debian-arm seems to work but with a few gotchas), the driver crashes in WaitCapture.

I think there might be a bad interaction between the kernel and this closed source kernel.

Did someone tried the sharp camera package ?
Anyone succeeded in using the Camera on a SL-5600 and OZ3.5.1 ?

Thanks,
Brice
Title: opie camera on 3.5.1 ??
Post by: Mickeyl on November 03, 2004, 05:50:41 am
I don't have a 5600. Perhaps the low level sharpzdc.o module is different on the 5600. Someone with a 5600 w/ SharpROM should diff the modules and if so, sent us the correct one to openzaurus-devel@lists.sf.net
Title: opie camera on 3.5.1 ??
Post by: Windrose on November 03, 2004, 08:25:58 am
Quote
Someone with a 5600 w/ SharpROM should diff the modules and if so, sent us the correct one to openzaurus-devel@lists.sf.net.
I have that stuff, be happy to do it for you, 'cept I don't know how. Could you step-by-step me, or is it too complicated? Want an email to do it off-forum?

W
Title: opie camera on 3.5.1 ??
Post by: Mickeyl on November 03, 2004, 08:49:29 am
Copy the module to your Zaurus, launch a console a do a 'diff <oldModule> <newModule>'. Then tell us the results. If they're different, we need to add the 5600 camera module to OE.
Title: opie camera on 3.5.1 ??
Post by: Windrose on November 03, 2004, 03:22:58 pm
Quote
Perhaps the low level sharpzdc.o module is different on the 5600. Someone with a 5600 w/ SharpROM should diff the modules and if so, sent us the correct one to openzaurus-devel@lists.sf.net
Just to ensure that I'm on something like the same page, we are talking about a module named
/lib/modules/<something something something>/sharpzdc.o

and not

/lib/modules/2.4.18-rmk7-pxa3-embedix/pcmcia/sharpzdc_cs.o

right? They're two different things?

Windrose
Title: opie camera on 3.5.1 ??
Post by: masterzen on November 03, 2004, 04:45:39 pm
Quote
Copy the module to your Zaurus, launch a console a do a 'diff <oldModule> <newModule>'. Then tell us the results. If they're different, we need to add the 5600 camera module to OE.
I grabbed the module from the original Sharp initrd.bin (it was quite complicated to do, especially since my host is a linux/ppc computer), and the modules are different.

I then overwrited the OZ modules with the sharp's one, and guess what, opie-camera is now working fine.
So I think you'll have to add a specific module for the 5600.
Title: opie camera on 3.5.1 ??
Post by: Mickeyl on November 03, 2004, 06:31:00 pm
Very good. Please send the 5600 module to me @ mickeyl@handhelds.org
C7x0 folks might also send me their module, since it probably doesn't work there either.
Title: opie camera on 3.5.1 ??
Post by: masterzen on November 04, 2004, 05:17:07 am
Quote
Very good. Please send the 5600 module to me @ mickeyl@handhelds.org
C7x0 folks might also send me their module, since it probably doesn't work there either.
OK,

I'll do that as soon as I come back home.
Unfortunately it seems Opie-camera does not handle quite well the resulting images, as the saved jpgs  look fine only with the native resolution (320x240).
All other settings results in screwed images.
Title: opie camera on 3.5.1 ??
Post by: Windrose on November 04, 2004, 09:10:43 am
Quote
I grabbed the module from the original Sharp initrd.bin (it was quite complicated to do, especially since my host is a linux/ppc computer), and the modules are different.
On a bit of a tangent, are the instructions for how to uncompress/mount/whatever an initrd.bin image on one's desktop computer available anywhere? Most the links I managed to find by various google queries don't exist anymore.

Windrose
Title: opie camera on 3.5.1 ??
Post by: masterzen on November 04, 2004, 10:02:09 am
Quote
Quote
I grabbed the module from the original Sharp initrd.bin (it was quite complicated to do, especially since my host is a linux/ppc computer), and the modules are different.
On a bit of a tangent, are the instructions for how to uncompress/mount/whatever an initrd.bin image on one's desktop computer available anywhere? Most the links I managed to find by various google queries don't exist anymore.

Windrose
I've found that howto:
How to read/modify initrd.bin (http://externe.net/zaurus/forum/viewtopic.php?t=273&view=next)

There are a few gotchas:
Title: opie camera on 3.5.1 ??
Post by: dansawyer on November 04, 2004, 01:40:39 pm
Close to topic:

What is the best, most stable viewer on 3.5.1? I can create images but cannot view them.  

Dan
Title: opie camera on 3.5.1 ??
Post by: Mickeyl on November 04, 2004, 01:42:31 pm
opie-eye from the upgrades feed.