Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 03 May 2005 02:33 AM by  fakharmtc@yahoo.com
How to add application in image.bin
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
fakharmtc@yahoo.com
New Member
New Member
Posts:


--
28 Apr 2005 04:04 AM
    Hi,

    I am using mcf547x_8x-non-pcs_bsp-050321 and trying to add my test application in compiled image.

    I have taken all steps in Quick Start manual

    My user/config.in file changes are as follows


    bool 'strace' CONFIG_USER_STRACE
    bool 'ncurses library' CONFIG_USER_NCURSES

    #****My change Start*******
    bool 'client' CONFIG_USER_CLIENT
    bool 'server' CONFIG_USER_SERVER
    #****My change End*******


    user/Makefile changes in their respective tags are as follows


    DIRSc$(CONFIG_USER_CLIENT) += client
    DIRSc$(CONFIG_USER_SERVER) += server


    all:

    ifeq ($(strip $(CONFIG_USER_CLIENT)),y)
    make -C client CC=$(shell cat ../cross-compile-prefix)gcc
    endif

    ifeq ($(strip $(CONFIG_USER_SERVER)),y)
    make -C server CC=$(shell cat ../cross-compile-prefix)gcc
    endif


    install:

    ifeq ($(strip $(CONFIG_USER_CLIENT)),y)
    install -m 755 ./client/client /usr/bin
    endif

    ifeq ($(strip $(CONFIG_USER_SERVER)),y)
    install -m 755 ./server/server /usr/bin
    endif


    I also added the following lines in defconfigs/user/.config


    CONFIG_USER_CLIENT=y
    CONFIG_USER_SERVER=y


    now the problem is that when I compile the image, both test programs i.e. client and server gets compile successfully and I can see their executables in the respective directories, but when I load the image I do not find any one of the application in /usr/bin or any other directory.

    Please advice me how to add my application in image.bin.


    Take care

    Fakhar
    Anonymous
    Posts:


    --
    29 Apr 2005 03:27 PM
    fakharimran,

    Please keep in mind that this is a third party Linux port done by Metrowerks and is not supported by Logic. While other developers may be able to post responses in this forum about working with it Logic is probably not the best source of support for this product. In regards to using Metrowerks tools and reference BSPs I would recommend contacting Freescale support or Metrowerks:

    https://www.freescale.com/webapp/ruhp.login.framework

    http://metrowerks.com/MW/Support/default.htm

    Regards,
    fakharmtc@yahoo.com
    New Member
    New Member
    Posts:


    --
    03 May 2005 02:33 AM
    I got it, the problem is to add $(BUILD_ROOT) before destination path
    in install command

    install:

    ifeq ($(strip $(CONFIG_USER_CLIENT)),y)
    install -m 755 ./client/client /usr/bin
    endif

    ifeq ($(strip $(CONFIG_USER_SERVER)),y)
    install -m 755 ./server/server $(BUILD_ROOT)/usr/bin
    endif


    It was not added in the Quick Start Manual.

    regards

    Fakhar
    You are not authorized to post a reply.