Forum: Blackrhino - Help forum for the Blackrhino Linux distro for the PS2. No warez allowed!


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: EyeToy on PS2Linux 2.4.17 , BlackRhino
  

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
  1. #1 EyeToy on PS2Linux 2.4.17 , BlackRhino 
    wisi is offline Member
    Join Date
    Nov 2008
    Posts
    100
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I found information that the ov511 driver works with the EyeToy camera. I recompiled the kernel, enabling video4linux and this driver, but I don't know where is the /dev/video device. The problem may be that the ov511 isn't for this specific EyeToy, as it is SCEH-0004 by Namtai. And is supposed to be using the same chip as D-Link DSB-C310 v1.10 .
    Upon connecting the camera to the PSTwo I get:
    Code:
    ov511.c: Unknown product ID
    ov511.c: Unknown product ID
    ov511.c: Unknown product ID
    ov511.c: Unknown product ID
    ov511.c: Unknown product ID
    usb.c: USB device 7 (vend/peod 0x54c/0x155) is not claimed by any active driver.
    Last edited by wisi; 01-12-2011 at 03:21 AM.
    Reply With Quote  

  2. #2  
    yoshi314's Avatar
    yoshi314 is offline linux junkie
    Join Date
    Mar 2008
    Posts
    1,786
    Downloads
    6
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    18
    i think it might be ov519, with jpeg decoding.
    Reply With Quote  

  3. #3  
    wisi is offline Member
    Join Date
    Nov 2008
    Posts
    100
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I tried this Lee Maguire – Using an EyeToy under Linux tutorial, but when I tytpe insmod ov51x , the following shows up:
    Code:
     .../usb/ov51x.o: unresolved symbol _gp_disp
    After creating /dev/video and /dev/video0 , doing cat /dev/video and cat /dev/video0 ->
    Code:
    No such device
    With this Ov51x JPEG hacked Wiki I cannot compile the source of the driver - "make: *** No targets. Stop." - That is because the newer versions post 1.0 included cannot work with older kernels.
    The goal is running this program - EffecTV: Index I its source there is a manual specificly for ps2linux (using ov511 driver and a patch), but I am not sure which driver will work with this specific EyeToy.

    One more try with SCPH-30003 and HDD booted linux. This happens uppon plugging the camera -
    Code:
    ov511.c: Unknown product ID
    unable to handle kernel paging request at virtual address 70000044, epc ==8019f
    80, ra == 8019fe54 
    ops in fault.c:do_page_fault, line 229:
    (after that there are many letters and numbers)
    - So most likely I have configured the kernel improperly.

    Edit 2: Compiling Ov51x JPEG hacked Wiki (ver 0.5.4 the latest that supports kernel 2.4) goes without errors, but after "make install" - there are many messages:
    Code:
    depmod: Unhandled relocation of type 12 for
    To fix that I tried installing new modutils and compiling with prebild gcc 3.0.3 from playstation2-linux.com , but no progress.

    Edit 15.01.2011: I got the driver - http://www.rastageeks.org/downloads/...g-0.5.4.tar.gz to install without "error" messeges by modifying the Makefile - add
    Code:
    -mno-abicalls -fno-pic -mlong-calls -G 0
    to the "CFLAGS" variable in the beginning and when I plug the camera it gets recognised.

    Now when trying to open /dev/video0 (I created it - "mknod /dev/video0 c 81 0" and then "cd /dev" "./MAKEDEV") it says: "modprobe: Can't locate module char-major-81-0". That might mean that the kernel does not have support for usb capture device.
    That can be "fixed" by adding an entry to "/etc/modules.conf" :
    Code:
    alias char-major-81-0 <tab>videodev
    I don't know if that actually fixes the problem or only stops the message.
    When doing "cat /dev/video0" - "No such device" same for "/dev/ps2video" "/dev/ps2video0" "/dev/video". Where is the video device?

    Edit 16.01.2011: So here is the solution I used http://ovcam.org/ov511/download/ov51...0-mark.tar.bz2 driver with edited Makefile as stated above and now when the modules are loaded and the camera is connected, typing "cat /dev/ps2video0" there are many strange symbols - The camera can be accessed! Now remains to create a link to /dev/video0:
    "ls -s /dev/ps2video0 /dev/video0" and run "effectv" or mplayer - "mplayer -tv driver-v4l:fps=15 -vo jpeg tv://"

    Next problem - no image in the effectv window. - The screen is green with a line at the top which looks like what analog televisors show when there is no signal - "snow".
    However grabbing jpeg-s from the wdriver with the program in the "test" directory of this driver - http://ovcam.org/ov511/download/ov51...0-mark.tar.bz2 works fine.

    I think this is the answer to my question:
    Q: Why doesn't your driver work with my Video4Linux application (Xawtv, for example)?
    A: The problem is that Video4Linux currently has no way to describe data as being in JPEG format (there might be an ID for MJPEG, but that is different). As a result no applications support JPEG input yet. Since there is no generally accepted library for handling Video4Linux format conversions, every application will need to be modified to support JPEG. The alternative (decompressing JPEG in the kernel) would never be accepted by the kernel maintainers, and it would cause quality loss if the app wanted to recompress to JPEG. Fortunately, JPEG is pretty easy to implement in an application by using the libjpeg library. If I get some free time, I will try to do this with Xawtv and maybe Gnomemeeting.
    from Linux OV511 Driver - Frequently Asked Questions So it there any way to get it working?
    While "make"-ing ov51x-jpeg there is a warning: "passing argument 1 of 'video_unregister_device' from incompatible pointer type". I think that this is what crashes linux ("kernel panic bad unregister") when the camera is unpluged or the driver is "rmmod"-ed. This driver doesn't works - "/dev/ps2video0 - No such device" For now only ov51x-1.65-1.10-mark driver works (1.11 does not work - the above problem) and it works only with the getjpeg.c program, no mplayer, no effectv.
    Attached Thumbnails Attached Thumbnails dsc00434.jpg  
    Last edited by wisi; 01-16-2011 at 08:04 AM.
    Reply With Quote  

  4. #4  
    wisi is offline Member
    Join Date
    Nov 2008
    Posts
    100
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Is there anything that can be done to get the ov51x-jpeg driver working on ps2linux?

    Edit 24.01.2011
    Got it to work!

    Too bad it cannot be used sufficiently as the CPU usage is constantly 100%. Maybe framedroping or lower resolution can "fix" this. Also using the "-palette grey" option may speed up things.

    ov51x-jpeg-0.5.3 source should be installed:
    The archives are ZIP (I will upload tar.gz)
    Code:
    #install effectv binary to /usr/bin (this is only required to run the program)
    #extract it
    cd ov51x-jpeg-0.5.3
    make
    make install-2.4
    modprobe ov519_decomp
    # this will automatically load module "videodev" and "ov51x"
    effectv -device /dev/ps2video0 
    # if it doesn't work then try "/dev/video*" "/dev/ps2video*" where "*" can be " ", "0", or "1"
    use the up and down arrows on the kbd to change the effects.

    Do "modprobe audio" to load usb audio driver.
    Mplayer:
    Video and audio.
    !! This is terably slow. Cannot be conntrolled, very hard to stop the program.
    Better use only video or only audio! - change one of "-ao none" "-vo none".
    For some reason the audio is very bad.
    Code:
    mplayer -tv driver=v4l:width=640:height=480:outfmt=i420:device=/dev/ps2video0:forceaudio:adevice=/dev/dsp3 -vo sdl -ao sdl -framedrop tv://
    # better change 640 to 320 and 480 to 240 to get better speed
    #audio will most likely not work. To get it "partialy" working add the following after "/dev/dsp3":
    :immediatemode=0
    To get the audio from the mic in the camera to the speakers use:
    Code:
    dd if=/dev/dsp3 of=/dev/dsp
    That works worse than the above. (probably more arguments are needed to controll the command)
    Better do "cat /dev/dsp*" in terminal window before that to determine where is the audio device.

    XawTV also works with this driver and the EyeToy but the image is "rather blue"(Much like the Avatar movie ). The same effect is observed on Ubnuntu 10 with kernel 2.6 - so the problem is in the app (probably wrong palette setting). Installation of xawtv is easy, compiling and installing goes without errors and the application works fine. (There are only some warnings on startup.)
    Enabling audio device ("-C /dev/dsp3") causes very slow responce and eventualy jams up the PSTwo.

    The "getjpeg" program in ov51x-1.65-1.1x-mark will not work with the ov519 decompressor - the getjpeg program may work if it's from later versin ex: 1.5.7 (I tried and it didn't work- file is created but cannot be oppened by jpeg picture viewer programs).

    Capturing a picture with the EyeToy can be done with Mplayer - by setting "-vo" to "-vo jpeg".


    INSTALLATION:

    Kernel
    Use the attached kernel 2.4.17 (vmlinux_v4l.gz) in KernelLoader.
    Extract the "linux-2.4.17_ps2_v4l.tar.gz" to "/installs" directory (for example).
    WARNING! Installing this will delete all previously installed modules!!!
    You can make a backup of the "/lib/modules/2.4.17_mvl21" folder in the same directory and edit the modules.dep file in the newly installed folder, also adding the removed modules.
    Code:
    su
    changeme
    mkdir /installs
    cd /installs
    tar xjvf /where_the_file_is/linux-2.4.17_ps2_v4l.tar.gz
    cd linux-2.4.17_ps2
    make modules_install
    This will take some time.

    ov51x-jpeg-0.5.3 :
    Extract ov51x-jpeg-0.5.3-e2.tar.gz to some directory on the root fs - for example /installs :
    Code:
    tar xzvf /where_the_file_is/ov51x-jpeg-0.5.3-e2.tar.gz
    cd ov51x-jpeg-0.5.3
    make
    make install-2.4
    # (edited after deba5er's post:)devices in /dev directory saometimes don't exist, so they have to be created: 
    mknod  /dev/video0 c 81 0
    mknod  /dev/video1 c 81 1
    mknod  /dev/ps2video0 c 81 0
    mknod  /dev/ps2video1 c 81 1
    cd /dev
    ./MAKEDEV
    EffecTV
    Code:
    cd /
    tar xzvf /where_effectv_is/effectv-0.3.9-bin.tar.gz
    OR

    Code:
    cd /installs
    tar xzvf /where_effectv_is/effectv-0.3.11_ps2.tar.gz
    cd effectv-0.3.11_ps2
    make clean   #skip this
    make           #and this if you don't want to wait
    make install
    cp ./effectv /usr/bin
    When the capture program is startder, linux sometimes complains about "char-major-81-0" Fix:
    "vim /etc/modules.conf"
    and add (or change)
    Code:
    alias char-major-81-0<TAB>ov51x
    alias char-major-81-1<TAB>ov51x
    -End of INSTALLATION-
    Effectv 0.3.11 does not compile on ps2linux. It would be good if somebody fixes it, as it has more effects and the Changelog states that newer versions are optimized to run faster.

    Edit:
    Fixed it.
    1. /effects/bluescreen.c :
    All the variables for which there is an error "undeclared" should be declared right after the lines:
    Code:
    	int k;
    	int d;
    	RGB32 *bg=bgimage;
    	RGB32 *bs_min=bluescreen_min;
    	RGB32 *bs_max=bluescreen_max;
    2. /utils.c :
    Change "trunc" to "trunc_" at all 4 places in the file.

    3. /
    When "make install" is run, effectv binary doesn't gets installed at /usr/local/bin (there is a file there but it doesn't work) - Wrong - the file is working, but cannot be started from /usr/local/bin - copy it to /usr/bin
    Code:
    cp ./effectv /usr/bin
    The attached file "effectv-0.3.11_ps2.tar.gz" works on ps2linux.
    The camera works when connected through a USB hub.

    deba5er uploaded a compiled ecasound to 4shared:
    ecasound-2.3.0-ps2.tar.bz2 - 4shared.com - online file sharing and storage - download
    *That program is huge
    Extract to /home/adent , then:
    Code:
    su
    changeme
    cd /home/adent/ecasound-2.3.0
    make install
    Running:
    (Run in another terminal, in the background.)
    Code:
    ecasound -i /dev/dsp3 -o /dev/dsp
    All Windows users can experience all of EffecTV's effects with EffecTV Download :: Open Source Programs and Software for Windows (I think there are more effects in this version than in 0.3.11). (Windows EyeToy drivers: http://psx-scene.com/forums/f20/diff...cameras-75088/ (Difference between PS2 EyeToy cameras) )
    For linux users : "apt-get install effectv" .
    Attached Files
    Last edited by wisi; 02-06-2011 at 10:29 AM.
    Reply With Quote  

  5. #5  
    deba5er's Avatar
    deba5er is offline Moderator
    Join Date
    Jan 2006
    Posts
    591
    Downloads
    0
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    6
    Likes Received
    8
    @wisi

    Thank you. I had a great time playing with the eyetoy the past couple of days. I followed your instructions, I had to manually "mknod" and "MAKEDEV", and note that the mplayer command you have listed did not work for me, just removed the "on:". I use my original kernel though and just (as root user) enter the modprobe commands and then mplayer. My mplayer command is "mplayer tv:// -tv driver=v4l:width=320:height=240:outfmt=i420:device =/dev/video0 -framedrop".

    Pressing "F" in mplayer, jumps to fullscreen mode. I think mplayer is going to take 100% no matter what the scale, as long as you use -framedrop, you will be fine. The sound is another matter. I tried for hours to get it working without slowdown but nothing fixed it. I don't think mplayer is the solution, maybe a background process. Hmmm.

    Excellent job though - made my day.
    PS2 v9 NTSC, PS2 v12 NTSC, PS2 v15 VESA
    Reply With Quote  

  6. #6  
    wisi is offline Member
    Join Date
    Nov 2008
    Posts
    100
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Oh, yes, I forgot about that - it doesn't works with "on" on my PSTwo too (it says that "-tv" should not be used and to use "tv://" instead ), just forgot to correct it. Thanks!

    I use my original kernel...
    - That's strange - How the original kernel works, as video4linux is not enabled in it? Anyway that is even better.
    Last edited by wisi; 01-30-2011 at 12:14 AM.
    Reply With Quote  

  7. #7  
    deba5er's Avatar
    deba5er is offline Moderator
    Join Date
    Jan 2006
    Posts
    591
    Downloads
    0
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    6
    Likes Received
    8
    @wisi

    I compiled an old version of ecasound (2.30) which took hours but at least made the sound problem better. "ecasound -i /dev/dsp3 -o /dev/dsp" in one xterm and run mplayer tv:// etc. etc. in the other and it worked great. Not too bad even on full screen. Now if it could only stream over the internet we would have a PS2 video phone ;-)
    PS2 v9 NTSC, PS2 v12 NTSC, PS2 v15 VESA
    Reply With Quote  

  8. #8  
    TnA's Avatar
    TnA
    TnA is offline Member
    Join Date
    Apr 2005
    Location
    Germany
    Posts
    4,580
    Downloads
    0
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    12
    Likes Received
    30
    Quote Originally Posted by deba5er View Post
    @wisi

    I compiled an old version of ecasound (2.30) which took hours but at least made the sound problem better. "ecasound -i /dev/dsp3 -o /dev/dsp" in one xterm and run mplayer tv:// etc. etc. in the other and it worked great. Not too bad even on full screen. Now if it could only stream over the internet we would have a PS2 video phone ;-)
    That's something for what I would get Internet again!
    I know,... I can use skype or other things, but I'd like to do that with a PS2, too.
    PS2 V7/DMS3 V2 (FW:2.4b7); Seagate Baracuda 200GB
    PS2 V7/CC1.0 (FW:34 hacked v2 BM:2.1.6); Maxtor DiamondMAX9 PLUS 160GB
    PS2 SCPH-30004R; NoMod+NoLaser

    3xSony BBA
    3xSony MC 8MB
    MAX/Datel 16MB with Boot-CD
    MAX/Datel 32MB&64MB

    Custom FMCB 1.8b+ Beta-Build, my AIO 0.5, Sony&xRhino-Linux
    Reply With Quote  

  9. #9  
    kevstah2004 is offline Member
    Join Date
    Apr 2008
    Posts
    1,202
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    2
    Quote Originally Posted by deba5er View Post
    @wisi

    I compiled an old version of ecasound (2.30) which took hours but at least made the sound problem better. "ecasound -i /dev/dsp3 -o /dev/dsp" in one xterm and run mplayer tv:// etc. etc. in the other and it worked great. Not too bad even on full screen. Now if it could only stream over the internet we would have a PS2 video phone ;-)
    EyeToy: Chat no longer in service though.
    Reply With Quote  

  10. #10  
    TnA's Avatar
    TnA
    TnA is offline Member
    Join Date
    Apr 2005
    Location
    Germany
    Posts
    4,580
    Downloads
    0
    Uploads
    0
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    12
    Likes Received
    30
    Yepp,... That's the package where I got EyeToy-Chat, EyeToy and my first NWA from. It was even cheaper than the NWA alone.
    PS2 V7/DMS3 V2 (FW:2.4b7); Seagate Baracuda 200GB
    PS2 V7/CC1.0 (FW:34 hacked v2 BM:2.1.6); Maxtor DiamondMAX9 PLUS 160GB
    PS2 SCPH-30004R; NoMod+NoLaser

    3xSony BBA
    3xSony MC 8MB
    MAX/Datel 16MB with Boot-CD
    MAX/Datel 32MB&64MB

    Custom FMCB 1.8b+ Beta-Build, my AIO 0.5, Sony&xRhino-Linux
    Reply With Quote  

Page 1 of 2 1 2 LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •