VGA Video Capture Driver for GIT kernel 2.6.29

VGA Video Capture Driver for GIT kernel 2.6.29

  • Hi.

    How to type these commands?

    make menuconfig
    enable (system type -> TI DaVinci Implementations -> DM355 Leopard board )
    enable (Device Drivers -> MMC/SD/SDIO card support)
    enable (Device Drivers -> MMC/SD/SDIO card support -> TI DAVINCI Multimedia Card Interface support )
    enable (Device Drivers -> Multimedia devices -> Video capture adapters -> VPFE Video Capture Driver & DM355 CCDC HW module)
    disable (Device Drivers -> Multimedia devices -> Video capture adapters -> Autoselect pertinent encoders/decoders and other helper chips)
    enable (Device Drivers -> Multimedia devices -> Video capture adapters -> Encoders/decoders and other helper chips -> Aptina MT9V113 VGA CMOS IMAGE SENSOR)
    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage

    I am using Ubuntu 9.04 and Leopard Board DM355.

    I did theses commands!

    git clone git_local_dir git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-davinci.git
    git reset --hard v2.6.29-davinci1
    patch -p1 < v2.6.29-davinci1_leopard_vga.patch
    make davinci_dm355_defconfig

    Thanks
  • Hi,

    You can take a look at: wiki.davincidsp.com/.../Using_the_VGA_capture_demo_for_Leopard_Board_DM355

    Now, after you did the steps you pointed out, you should select the camera sensor among other settings in the kernel menu. You should run the make menuconfig in this directory linux-davinci/ (assuming you haven't rename it after the git clone). This will open a menu, where you can enable the different options, for example select DM355 Leopard Board under system type -> TI DaVinci Implementations, and so on with all the options suggested on the wiki. After you enable all of the options, exit the menu.

    And finally, compile the kernel:

    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage

    Cristina Murillo

    Embedded Software Engineer, RidgeRun

  • Hi!

    And need I disable the "unused" items? Or just enable the necessary items at .txt and dont care about others?

    Thanks for help!

  • Hi,

    Just enable and disable items as you are told on the .txt. You can leave the rest of the items as they are.

    Cristina Murillo

    Embedded Software Engineer, RidgeRun

  • There is somethink wrong here.... I have 2 files "Makefile"....

    here the directories are "Leopard/git_fbdev_lpbk/linux-davinci"

    and one "Makefile" there is at "git_fbdev_lpbk" and another at 'linux-davinci"...

    I think because this appear:

    linux-davinci$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage

    make: arm-none-linux-gnueabi-gcc: Comando não encontrado (didnt find command)

     CHK     include/linux/version.h

    make[1]: `include/asm-arm/mach-types.h' está atualizado. (updated)

     CHK     include/linux/utsrelease.h

     UPD     include/linux/utsrelease.h

     SYMLINK include/asm -> include/asm-arm

     CC      kernel/bounds.s

    /bin/sh: arm-none-linux-gnueabi-gcc: not found

    make[1]: ** [kernel/bounds.s] Erro 127

    make: ** [prepare0] Erro 2

    linux-davinci$

    Am I wrong?

  • Why I cant compile the kernel??
    Allways appear:

    linux-davinci$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
    make: arm-none-linux-gnueabi-gcc: Comando não encontrado (didnt find command)
    scripts/kconfig/conf -s arch/arm/Kconfig
    make: arm-none-linux-gnueabi-gcc: Comando não encontrado
    (didnt find command)
      CHK     include/linux/version.h
      UPD     include/linux/version.h
      Generating include/asm-arm/mach-types.h
      CHK     include/linux/utsrelease.h
      UPD     include/linux/utsrelease.h
      SYMLINK include/asm -> include/asm-arm
      CC      kernel/bounds.s
    /bin/sh: arm-none-linux-gnueabi-gcc: not found
    make[1]: ** [kernel/bounds.s] Erro 127
    make: ** [prepare0] Erro 2
    linux-davinci$

  • Hi,

    Did you install the toolchain? It looks like it isn't installed or you haven't export the path, for example:

    export PATH=/opt/arm-linux-gnueabi/bin/:$PATH

    Cristina Murillo

    Embedded Software Engineer, RidgeRun

  • Hi

    What do you mean with this command "export PATH=/opt/arm-linux-gnueabi/bin/:$PATH"?? and toolchain??

    Im so sorry, but I started now in Linux...

    Thankyou for help!!

  • Hi,

    A toolchain is a set of programs or tools use to create applications, products, usually a program. In this case, the toolchain will allow you to crosscompile the kernel for an ARM processor. You can download the toolchain from:

    www.codesourcery.com/.../subscription3057

    and install it on the /opt directory. Then you will export the path, so you can use the tools that come with the toolchain from another directories. The path environment variable is a list of directories that your shell searches through when you enter a command.

    Cristina Murillo

    Embedded Software Engineer, RidgeRun

  • Hi!

    Sorry, I installed at /home/user

    Are there some problem? Can I export the path yet? If yes, how can Ido it?

    Thankyou.

  • Hi!

    I installed toolchain to use this command:

    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage

    but, its didnt worked.....

    what I need to do?? Need I to export somethink from toolchain directory to /linux-davinci??

    Thanks

  • I dont belive than my question is so hard....... or is it??

  • You have to add the following lines in the following file: /etc/profile

    PATH=$PATH:/your-arm-gccdirectory
    export PATH

    As explained here: http://www.troubleshooters.com/linux/prepostpath.htm

    Then reboot and everything so the modifications are made. You can check if the arm-none-linux-gnueabi-gcc is installed by typing it from any folder in the console.

    Mike