EasyManua.ls Logo

Moxa Technologies NPort 5110 - Page 156

Moxa Technologies NPort 5110
194 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
NPort 5000 Series User Manual
156
Create a recipe for the Real TTY kernel
Use the following commands to create a recipe for installing Real TTY kernel to the target platform.
1. Create a directory recipes-kernel in meta-moxa:
$ cd /home/user/poky
$ mkdir meta-moxa/recipes-kernel
2. The simplest way is to copy and modify from a hello example, which is available in the Yocto source
code:
$ cp -r ./meta-skeleton/recipes-kernel/hello-mod ./meta-
moxa/recipes-kernel
The content of meta-moxa now is listed below:
$ tree meta-moxa
meta-moxa/
├── conf
── layer.conf
├── COPYING.MIT
├── README
└── recipes-kernel
└── hello-mod
├─ files
── COPYING
── hello.c
└── Makefile
└─ hello-mod_0.1.bb
3. Delete the unnecessary files in hello-mod. Rename the hello-mod.
$ cd ./meta-moxa/recipes-kernel
$ rm ./hello-mod/files/COPYING
$ rm ./hello-mod/files/hello.c
$ mv ./hello-mod/hello-mod_0.1.bb ./hello-mod/realtty-kernel_0.1.bb
$ mv ./hello-mod realtty-kernel
4. Extract the Real TTY source code in /moxa. Copy the following files into hello-mod:
$ cp /moxa/COPYING-GPL.TXT ./realtty-kernel/files/
$ cp /moxa/npreal2.c ./realtty-kernel/files/
$ cp /moxa/npreal2.h ./realtty-kernel/files/
$ cp /moxa/np_ver.h ./realtty-kernel/files/
5. The content of the recipes-kernel now is listed below:
$ tree ./
./
└── realtty-kernel
├── files
├── COPYING-GPL.TXT
├── Makefile
├── npreal2.c
├── npreal2.h
└── np_ver.h
└── realtty-kernel_0.1.bb

Table of Contents

Other manuals for Moxa Technologies NPort 5110

Related product manuals