[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Last ditch on PlanB driver



On Sunday 16 January 2005 12:55 pm, david wrote:
> Dylan Beaudette wrote:
> >On Friday 14 January 2005 10:26 am, Sean Jewett wrote:
> >>Has anyone managed to get the planb driver to work (or better yet, with
> >>the v4l stuff)?  If so, how?  What kernel, what distro, what phase of the
> >>moon?
> >
> >Yes. I have a working planb setup on an 8500/250 604e machine, running a
> >custom compiled "2.4.23-pre5-ben0" kernel.
> >
> >I am no at the machine right now, but i can forward some email
> > conversations that i have had about a year ago concerning the project.
>
> Hi Dylan
>
> I would very much appreciate any information you have on this project
> when you can spare a moment or two :)
>
> thanks in advance
>
> david

Well it has been a while since I have messed around with all of this... and it 
seems that the 'Ben' -series PPC kernel tree is no longer maintained... 

I am not sure if the Bitkepper PPC kernel tree, or the official tree have code 
that is working... check here: http://www.ppckernel.org/tree.php?id=5 for the 
bitkeeper PPC kernel

also... I don't have the source code that I used to compile this kernel! i 
thought that I did somewhere... but it is not on this machine anymore...

I will try to get the planb driver working with a more modern kernel and 
report back here when i have some spare time. also -- i am pretty sure that 
the planb driver needs the i2c subsystem in order to function.

I have used the program 'webcam' to capture images from the video input 
hardware. here is some configuration information:
-----------------------------------------------------------------------
[grab]
device = /dev/video0
text = "food? %Y-%m-%d %H:%M:%S"
width = 640
height = 480
delay = 60
input = composite
norm = ntsc
rotate = 0
top = 0
left = 0
bottom = -1
right = -1
quality = 85
trigger = 0
once = 0
-----------------------------------------------------------------------

i usually run webcam like this:
webcam webcam.conf
here is some sample output:
-----------------------------------------------------------------------
dylan@surf:~/notes$ webcam webcam.conf 
reading config file: webcam.conf
ioctl: VIDIOCSCHAN(0,Composite,flags=0x0,type=2,norm=3): Invalid argument
ioctl: VIDIOCMCAPTURE(0,fmt=4,size=48x32): Invalid argument
video4linux webcam v1.3 - (c) 1998-2001 Gerd Knorr
grabber config:
  size 640x480 [16 bit YUV 4:2:2 (packed)]
  input composite, norm ntsc, jpeg quality 85
  rotate=0, top=0, left=0, bottom=480, right=640
write config:
  local transfer /home/httpd/uploading.jpg => /home/httpd/cam.jpg
"food? 2005-01-16 19:08:17"
-----------------------------------------------------------------------

here is a sample image generated by webcam (no video signal, so it is a black 
screen...)
http://surfdavis.no-ip.com/cam.jpg


here is some information from the 8500, with planb module:
-------------------------------------------------------------------------
surf:/# modprobe planb
surf:/# tail /var/log/messages
Jan 16 18:59:15 surf kernel: Linux video capture interface: v1.00
Jan 16 18:59:15 surf kernel: PCI: Enabling device 01:0d.0 (0014 -> 0016)
Jan 16 18:59:15 surf kernel: PlanB: PowerMacintosh video input driver rev. 
2.11
Jan 16 18:59:15 surf kernel: PlanB: SAA7196 video processor rev. 1
-------------------------------------------------
surf:/# lsmod
Module                  Size  Used by    Not tainted
planb                  41124   0  (unused)
videodev                5312   2  [planb]
dmasound_pmac          69104   0 
dmasound_core          13560   0  [dmasound_pmac]
soundcore               4520   3  [dmasound_core]
i2c-core               14584   0  [dmasound_pmac]


-- 
Dylan Beaudette
Soil Science Graduate Group
University of California at Davis



Reply to: