Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. On the host activate the development environment (refer to Installing and Activating Cross Development Environment ):

    Code Block
    $ . ./ACTIVATE.sh
  2. Develop source files for whatever application you would like to run on the uClinux target. For instance:

    Code Block
    $ vi test.c
    #include <stdio.h>
    
    int main(int argc, char *argv[])
    {
        printf("Hello %s\n", argv[1]);
        return 1;
    }
  3. Build the application for the uClinux target, and copy the binary to the directory exported via NFS:

    Code Block
    $ ${CROSS_COMPILE_APPS}gcc -o test test.c
    $ cp test /home/yur/nfs/
  4. Run the application binary on the target. One easy way to do that is to have an NFS share mounted on the target, which immediately provides access to the host development directory:

    Code Block
    / # mount -o nolock 192.168.1.41:/home/yur/nfs /mnt/nfs
    / # /mnt/nfs/test "i.MX RT uclinux"
    Hello i.MX RT uclinux
    / #