View unanswered posts | View active topics It is currently Sun May 19, 2019 6:21 am



Reply to topic  [ 15 posts ]  Go to page 1, 2  Next
 PWC driver 
Author Message

Joined: Fri Oct 28, 2011 2:32 pm
Posts: 14
Post PWC driver
I am trying to install PWC driver support for a Phillips SPC900 camera.
I do know know what I am doing wrong, but the following are symptoms

0) I have downloaded https://gitorious.org/trimslice-kernel
1) plug camera in - see it listed using lsusb
2) try lsmod and cannot see PWC driver loaded
3) did make menuconfig and set v4l to load
4)rebuilt kernel and modules, then
5) restart and same thing as above

6) I have just looked at the /boot folder and note that although a new vmlinux is being created each time, the original uImage stays that same date.

7) is that my problem??
8) I have tried to rebuild uImage from the top level folder, but that fails
what am I doning wrong.

advice needed here.
Phil


Tue Nov 01, 2011 3:32 pm
Profile

Joined: Wed May 25, 2011 11:05 am
Posts: 521
Post Re: PWC driver
1st-
make menuconfig
Make sure the drivers selected
Device Drivers
Multimedia support
Video capture adapters
V4L USB devices
USB Philips Cameras

2nd
make -j2
make modules_install
make uImage

3rd
Copy arch/arm/boot/uImage into /boot

You might need a package uboot-mkimage to make the uImage


Tue Nov 01, 2011 4:23 pm
Profile

Joined: Fri Oct 28, 2011 2:32 pm
Posts: 14
Post Re: PWC driver
Thanks for that. I can see some of what you say.

But in kernel 2.6.38.3 the menuconfig does not list V4L USB devices, nor USB Philips cameras.

I will try installing uImage as you suggest.

Best

Phil


Wed Nov 02, 2011 8:34 am
Profile

Joined: Wed May 25, 2011 11:05 am
Posts: 521
Post Re: PWC driver
I just checked, it is there. This is the best source for the kernel
https://gitorious.org/trimslice-kernel/ ... slice-1.02
A few extra steps before menuconfig
make clean
make mrproper
make trimslice_defconfig

Edit, make sure you halt and not reboot, it seems to me the uImage is cached on reboot


Wed Nov 02, 2011 9:15 am
Profile

Joined: Fri Oct 28, 2011 2:32 pm
Posts: 14
Post Re: PWC driver
Thanks for your help, but I am now well confused. I ahve several points of confusion.

1) make menuconfig initially defaults to 'M' for inserting modules manually for the PWC driver etc. Yet upon reboot 'insmod pwc' fails saying it cannot find 'pwc'.

I overcame this by overriding the defaults to ensure the kernel was built with v4l and pwc drivers already built-in (this is good for me as we will always have a camera on our robots).

2) I have followed your instructions, but following all the build steps (all work fine) except that uImage in /boot is not updated, still showing the June/July creation date.

It seems that ./arch/arm/boot/zImage is built however. So I tried to copy using the recommended cmd to expand the zImage into the uImage.

Of course when I halt and then boot the system fails.

I will restore my SDcard image and try again tomorrow, but can you advise on the correct cmd please for the step in your instructions "make uImage"



Phil


Thu Nov 03, 2011 6:42 pm
Profile

Joined: Wed May 25, 2011 11:05 am
Posts: 521
Post Re: PWC driver
I don't know what os you have, you need to install mkimage, then make uImage, then copy it


Thu Nov 03, 2011 6:48 pm
Profile

Joined: Fri Oct 28, 2011 2:32 pm
Posts: 14
Post Re: PWC driver
Hi,

Well I have fixed the uImage and now got that working OK.
I also (after doing a make modules_install) copied ./modules_install to /boot.

But when I reboot (after a halt) I cannot get the v4l or pwc drivers to load.
I set menuconfig to load as default into the kernel, but when i do a lsmod
I cannot see them at all.

Any ideas why>?

Best

Phil


Fri Nov 04, 2011 10:50 am
Profile

Joined: Thu Jun 09, 2011 6:22 pm
Posts: 17
Post Re: PWC driver
What did you select in the menuconfig for the drivers, did you select build into kernel (a [*] next to the option) or build as a module (a [M] next to the option). In the first case the built kernel has the driver inside and no module is present (check dmesg or the serial console for output from what the kernel is saying). In the second case you need to load the module using modprobe or some form of automagic loading (dunno what linux you are using each has that set up in a different way, usually it's /etc/modules.conf or /etc/mopdprobe.conf)


Fri Nov 04, 2011 11:04 am
Profile

Joined: Wed May 25, 2011 11:05 am
Posts: 521
Post Re: PWC driver
"copied ./modules_install to /boot."
Why do that?

"I set menuconfig to load as default into the kernel"
You only make menuconfig before making the kernel, never seen again

Will show you again what to type, don't type lines starting with #

Code:
#assume you have kernel and extracted it, and you are in the directory
#A few extra steps before menuconfig
apt-get install uboot-mkimage
make clean
make mrproper
make trimslice_defconfig
make menuconfig
#Make sure the drivers selected, navigate to this
# Device Drivers
#  Multimedia support
#   Video capture adapters
#    V4L USB devices
#     USB Philips Cameras (or whatever camera)
#Now exit and save
make -j2
make modules_install
make uImage
cp arch/arm/boot/uImage /boot/uImage
halt
#Now power up, once up and logged in plug in camera and type dmesg, right at the bottom will be messages about the camera


Fri Nov 04, 2011 11:42 am
Profile

Joined: Fri Oct 28, 2011 2:32 pm
Posts: 14
Post Re: PWC driver
OK, thanks Sorted.
Now I just have driver issues!

Phil


Fri Nov 04, 2011 7:21 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 15 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.