question of building the dmai apps in the RR dm365 sdk

question of building the dmai apps in the RR dm365 sdk

  • Hi ,

     

    working on dm365 leopard board with "redgerun dm365 eval sdk 2011q2 version"

    I am trying to convert the mt9p031 driver code to support the ov9712 sensor.

    in order to debug the changes I made to the code, I am making use of

    the application : ti_dmai_apps/video_llopback_dm365.x470MV to watch how the sensor driver functions

    are called, I want to insert some debugging messages in the application, so I enter the  /dvsdk/dmai/.../apps/video_loopback/

    folder and modify the appMain.c file as a starting point. but after I typed the "make" to make everything and run the system, I found the

    debug message I added didn't come up. I looked over the fs system and found all the apps are updated-- but the changes I made to the appMain didn't get made.

     To verify that,  I then did a small change to appMain.c with a line of code without ";" at the end( a buggy line), then I rebuild the code, and the error didn't get picked up.

     

    question: how to actually rebuild the  proprietary directory of the RedegRun dm365 sdk?

     

    Could someone give me a hand on this?

    Regards

    Ming

     

  • Hi Ming,

    Can you post the last few lines of your "make" command.

    Morteza

  • Hi  Morteza,

    I added one line " printk("\r\n Video_loopback appMain(testing ov9712)\n") " to the file

    ~/LeopardBoardDM365sdkEVAL2011Q2/fs/proprietary\dvsdk-4_02_00_06/dvsdk\dmai_2_20_00_15/packages/ti/sdo/

    dmai/apps/video_loop/appMain.c . since the line are ended with semicolon. the sdk should've picked the error.

    the result of make follows as below:

    mhe@mhe-vbu:~/LeopardBoardDM365sdkEVAL2011Q2$ make

     Ridgerun Linux SDK

     Board configuration: Leopard Board DM365

     Processing toolchain...

       Build complete

     Processing kernel...

     Kernel: arch/arm/boot/Image is ready

     Kernel: arch/arm/boot/zImage is ready

       Build complete

     Processing fs...

       Building Apps.defs

       Checking for host packages required by the SDK target applications...

       Host machine has all required packages.

       Entering host-apps...

       Entering apps...

         Checking dependencies for alsa-lib-1.0.24

         Compiling and installing alsa-lib-1.0.24...

         Checking dependencies for alsa-utils-1.0.24.2

           Checking dependencies for ncurses-5.7

           Compiling and installing ncurses-5.7...

         Compiling and installing alsa-utils-1.0.24.2...

         Checking dependencies for busybox

         Compiling and installing busybox...

    applets/usage.c: In function ‘main’:

    applets/usage.c:52: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result

    applets/applet_tables.c: In function ‘main’:

    applets/applet_tables.c:138: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result

    applets/usage_pod.c: In function ‘main’:

    applets/usage_pod.c:74: warning: format not a string literal and no format arguments

         Checking dependencies for dhcp-4.1.2

         Compiling and installing dhcp-4.1.2...

         Checking dependencies for dropbear-0.53

           Checking dependencies for zlib-1.2.5

           Compiling and installing zlib-1.2.5...

           Checking dependencies for sysvinit

           Compiling and installing sysvinit...

         Compiling and installing dropbear-0.53...

         Checking dependencies for gettext-0.18.1.1

         Compiling and installing gettext-0.18.1.1...

         Checking dependencies for glib-2.26.1

           Checking dependencies for libiconv-1.13.1

           Compiling and installing libiconv-1.13.1...

         Compiling and installing glib-2.26.1...

         Checking dependencies for gst-plugins-bad-0.10.21

           Checking dependencies for gstreamer-0.10.32

             Checking dependencies for libxml2-2.7.8

             Compiling and installing libxml2-2.7.8...

           Compiling and installing gstreamer-0.10.32...

           Checking dependencies for liboil-0.3.17

           Compiling and installing liboil-0.3.17...

           Checking dependencies for gst-plugins-base-0.10.32

           Compiling and installing gst-plugins-base-0.10.32...

           Installing generated gstreamer plugins...

         Compiling and installing gst-plugins-bad-0.10.21...

           Installing generated gstreamer plugins...

         Checking dependencies for gst-plugins-good-0.10.25

         Compiling and installing gst-plugins-good-0.10.25...

           Installing generated gstreamer plugins...

         Checking dependencies for gst-plugins-ugly-0.10.17

         Compiling and installing gst-plugins-ugly-0.10.17...

           Installing generated gstreamer plugins...

         Checking dependencies for gst-rtsp-server-0.10.8

         Compiling and installing gst-rtsp-server-0.10.8...

         Checking dependencies for jpeg-8c

         Compiling and installing jpeg-8c...

         Checking dependencies for libpng-1.5.0

         Compiling and installing libpng-1.5.0...

         Checking dependencies for lzo-2.04

         Compiling and installing lzo-2.04...

         Checking dependencies for mtdutils-1.4.2

           Checking dependencies for util-linux-2.19

           Compiling and installing util-linux-2.19...

         Compiling and installing mtdutils-1.4.2...

         Checking dependencies for psplash

         Compiling and installing psplash...

       Entering /home/mhe/LeopardBoardDM365sdkEVAL2011Q2/toolchain...

         Build complete

       Entering arch...

         Checking dependencies for base

         Compiling and installing base...

       Entering mach...

         Checking dependencies for base

         Compiling and installing base...

       Entering proprietary_src...

         Checking dependencies for dvsdk-4_02_00_06

         Compiling and installing dvsdk-4_02_00_06...

         Checking dependencies for gst-dmai-plugins

         Compiling and installing gst-dmai-plugins...

       Entering myapps...

       Installing proprietary code

       Installing Overlay

    [sudo] password for mhe:

       Building file system target image(s)

       Generating file system nfsroot...

         Selected NFS root filesystem...

         Please check the directory /home/mhe/LeopardBoardDM365sdkEVAL2011Q2/fs/fs is on your nfs-server exports file

       Build complete

     Processing bootloader...

         Building bootloader uncompressed uImage

       Build complete

     Processing installer...

    mhe@mhe-vbu:~/LeopardBoardDM365sdkEVAL2011Q2$

    the apps did get updated in the fs after the"make" by looking at their time tag

    mhe@mhe-vbu:~/LeopardBoardDM365sdkEVAL2011Q2$ date

    Tue Nov 22 13:50:03 EST 2011

    mhe@mhe-vbu:~/LeopardBoardDM365sdkEVAL2011Q2$

    mhe@mhe-vbu:~/LeopardBoardDM365sdkEVAL2011Q2$ ls -all fs/fs/usr/share/ti/ti-dmai-apps

    total 7716

    drwxrwxrwx 2 mhe mhe     4096 2011-11-22 13:38 .

    drwxrwxrwx 3 mhe mhe     4096 2011-10-27 10:25 ..

    -rwxrwxrwx 1 mhe mhe   415913 2011-11-22 13:38 audio_decode1_dm365.x470MV

    -rwxrwxrwx 1 mhe mhe   383832 2011-11-22 13:38 audio_decode_io1_dm365.x470MV

    -rwxrwxrwx 1 mhe mhe   467723 2011-11-22 13:38 audio_encode1_dm365.x470MV

    -rwxrwxrwx 1 mhe mhe   444149 2011-11-22 13:38 audio_encode_io1_dm365.x470MV

    -rwxrwxrwx 1 mhe mhe   420737 2011-11-22 13:38 image_decode_io1_dm365.x470MV

    -rwxrwxrwx 1 mhe mhe   361429 2011-11-22 13:38 image_encode_io1_dm365.x470MV

    -rw-rw-rw- 1 mhe root      24 2011-11-21 10:26 .nfs00000000000e5f0200000001

    -rwxrwxrwx 1 mhe mhe   282899 2011-11-22 13:38 speech_decode_io1_dm365.x470MV

    -rwxrwxrwx 1 mhe mhe   264225 2011-11-22 13:38 speech_encode_io1_dm365.x470MV

    -rwxrwxrwx 1 mhe mhe  1663064 2011-11-22 13:38 video_decode_io2_dm365.x470MV

    -rwxrwxrwx 1 mhe mhe   253632 2011-11-22 13:38 video_display_dm365.x470MV

    -rwxrwxrwx 1 mhe mhe  2288314 2011-11-22 13:38 video_encode_io1_dm365.x470MV

    -rwxrwxrwx 1 mhe mhe   318670 2011-11-22 13:38 video_loopback_copy_dm365.x470MV

    -rwxrwxrwx 1 mhe mhe   295522 2011-11-22 13:38 video_loopback_dm365.x470MV

    mhe@mhe-vbu:~/LeopardBoardDM365sdkEVAL2011Q2$

    please help

    ming