Author Topic: opie camera on 3.5.1 ??  (Read 5293 times)

dansawyer

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
    • http://
opie camera on 3.5.1 ??
« 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

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
opie camera on 3.5.1 ??
« Reply #1 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
« Last Edit: October 16, 2004, 07:02:49 am by Mickeyl »
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

dansawyer

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
    • http://
opie camera on 3.5.1 ??
« Reply #2 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

dansawyer

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
    • http://
opie camera on 3.5.1 ??
« Reply #3 on: October 16, 2004, 03:21:34 pm »
update -

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

Dan

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
opie camera on 3.5.1 ??
« Reply #4 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  
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

dansawyer

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
    • http://
opie camera on 3.5.1 ??
« Reply #5 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

dansawyer

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
    • http://
opie camera on 3.5.1 ??
« Reply #6 on: October 16, 2004, 05:15:43 pm »
That fixed it. It now works.

Windrose

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
opie camera on 3.5.1 ??
« Reply #7 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
================================
Die Welt ist alles, was der Fall ist.
...
Wovon man nicht sprechen kann, darüber muß man schweigen.
================================

masterzen

  • Newbie
  • *
  • Posts: 17
    • View Profile
opie camera on 3.5.1 ??
« Reply #8 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

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
opie camera on 3.5.1 ??
« Reply #9 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
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

Windrose

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
opie camera on 3.5.1 ??
« Reply #10 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
================================
Die Welt ist alles, was der Fall ist.
...
Wovon man nicht sprechen kann, darüber muß man schweigen.
================================

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
opie camera on 3.5.1 ??
« Reply #11 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.
« Last Edit: November 03, 2004, 08:50:48 am by Mickeyl »
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

Windrose

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
opie camera on 3.5.1 ??
« Reply #12 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
================================
Die Welt ist alles, was der Fall ist.
...
Wovon man nicht sprechen kann, darüber muß man schweigen.
================================

masterzen

  • Newbie
  • *
  • Posts: 17
    • View Profile
opie camera on 3.5.1 ??
« Reply #13 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.
« Last Edit: November 03, 2004, 04:46:43 pm by masterzen »

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
opie camera on 3.5.1 ??
« Reply #14 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.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.