On Wed, 25 Aug 1999, Michael Barabanov wrote:

> Found at ftp://fsmlabs.com/pub/rtlinux/v2 and ftp://ftp.rtlinux.com/rtlinux/v2.
> As usual, more docs and features, and hopefully less bugs.

Still some problems with makefiles and stuff.

Assuming patched with "kernel_patch" 2.2.12 kernel in /usr/src/linux,
EXTRAVERSION in Makefile added manually, kernel configured and compiled.

First is:

[root@localhost rtl]# make             
Makefile:44: /usr/local/src/rtlinux/beta14/linux/.config: No such file or
directory
make: *** No rule to make target
`/usr/local/src/rtlinux/beta14/linux/.config'.  Stop.

Solution: 
[root@localhost rtl]# cd ..
[root@localhost beta14]# ln -s /usr/src/linux .
 - I think this link should be in distributed .tgz file - it is the same
directory /usr/include/linux and /usr/include/asm usually point to.

Next:

sh misc/updateconf
misc/updateconf: cpp: command not found

Solution:
- I have replaced "cpp" with "gcc -E" in misc/updateconf
It should work everywhere (tested on RH 5.2)

Now compiles until errors in 
In file included from kernel_compat.h:196,
                 from rtl_nfifo.c:33:
/usr/local/src/rtlinux/beta14/linux/include/linux/cons.h:16: redefinition of
`conpr'

Solution: putting
#ifndef _CONS_H
#define _CONS_H
.............
#endif

around the whole body in the linux/include/linux/cons.h file.
This method applies to ALL include files.

Alternative solution (less work):
comment out "#include <linux/cons.h>" from rtl/drivers/mbuff/rtl_nfifo.c

Then it finally compiles.

make install    works OK (driver/mbuff/ mbuff.o and rtl_nfifo.o not
installed, but they are experimental). Warnings about "unresolved symbol(s)"
in rtl_* modules, but the modules can be loaded - probably the standard
problem with debugging symbols.

Then I have spent some time debugging mmapable rtl_nfifo.c - it is now
depending on:
rtl_nfifo               8648   0 
rtl_posixio             4700   0  [rtl_nfifo]
mbuff                   3092   0  [rtl_nfifo]

Main changes were in rtf_open() function. I have also added 2 programs to
alocate/deallocate shm areas and reworked the "make test" part - now it works
without problems and demonstrates how weird things the module can withstand.
I have fixed a problem with possible freeing of memory before all was
unmapped. You can either use
http://crds.chemie.unibas.ch/PCI-MIO-E/rtl-beta14-mbuff-1.patch
or
http://crds.chemie.unibas.ch/PCI-MIO-E/mbuff-0.6pre5-rtl.tar.gz (the whole
directory).
I will in a few days make mbuff-0.6.tar.gz out of it.

mmap on included rtl_nfifo.c works now, but there is a question whether this
is really worth it - may be it is better to keep mmap functionality on a
separate device? I had to relax the open method in rtl_nfifo.c to make all
the tests work.

Please tell me how do you like the interface.

--
Tomek

--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to