WAGO 750 Series Manual page 110

Linux fieldbus coupler
Hide thumbs Also See for 750 Series:
Table of Contents

Advertisement

106 • Step-by-Step Guide to your own Linux Application
Create your own User Space Application
Create the make file, e.g. using EMACS, KATE or JOE.
> emacs Makefile
Call EMACS editor
Insert the following code into the emacs and press CTRL-X CTRL-S to save
it.
all: newProg
newProg: newPorg.o
$(@)))
romfs:
clean:
rm –f newProg *.elf *.gdb *.o
In order to connect the make file to the global make file of the cross compiler,
you have to paste the new directory into the ~/uclinux-dist/user/Makefile make
file in the
> emacs ../Makefile
Tippen Sie den folgenden Code in den emacs und speichern Sie ihn CTRL-X
CTRL-S.
The program, along with all other user space programs, is compiled if make
in the /uclinux-dist directory is executed with the following option (see chapter
5.3).
> cd ~/uclinux-dist
> make user
A binary file "newProg" is created which can be copied into the Linux
fieldbus coupler via NFS or FTP, for example.
> cd ~/uclinux-dist
> make user romfs image
This will also create a binary file newProg. At the same time, the romfs
directory is updated and the new image of the file system jffs2.img is created
which can be loaded via the boot loader (U-Boot) (see 5.10.2).
$(CC) $(LDFLAGS) -o $@ newProg.o $(LDLIBS$(LDLIBS-
cp newProg /targetfs/
$(ROMFSINST) /bin/newProg
variable:
dir_y
...
dir_y = kbusapi ... newProg
...
WAGO-I/O-SYSTEM 750
Linux Fieldbus Coupler

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

750-860

Table of Contents