- From: Jonathan Haws <Jonathan.Haws_at_sdl.usu.edu>
- Date: Fri, 15 Jun 2007 12:44:01 -0600
I have an interesting situation and haven't been able to find any resources on how to do this. Here is the setup:
I have a PC/104 stack that I have a minimal installation of Gentoo on. I am trying to setup our system to run off Compact Flash. I have followed the HOWTO TinyGentoo to setup the minimal system to run from a initramfs and that works great. Now I am trying to add RTAI and Comedi to that installation. I have patched the kernel with the RTAI patch and beleive that I have RTAI installed and working on the CF (I haven't booted to it yet to test). Now I am trying to install Comedi. Here are the steps that I am taking to install and the errors:
First the libraries: - comedilib-0.7.22
cd /usr/src/comedilib-0.7.22
./configure --prefix=/tmp/tinygentoo <-----/tmp/tinygentoo is the file structure that I turn into my Compact Flash image
make
make install
Everything goes just fine through this point. The libraries are installed to the correct locations.
Then Comedi: - comedi-0.7.73
cd /usr/src/comedi-0.7.73
./configure --prefix=/tmp/tinygentoo --disable-pcmcia --with-kernel-release=/2.6.19.7-rtai -with-linuxconfig=/root/.config -with-modulesdir=/tmp/tinygentoo/lib/modules/2.6.19.7-rtai -with-rtaidir=/tmp/tinygentoo/usr/realtime
make
The make command is what fails and the output follows:
make all-recursive
make[1]: Entering directory `/usr/src/comedi-0.7.73'
Making all in comedi
make[2]: Entering directory `/usr/src/comedi-0.7.73/comedi'
Making all in .
make[3]: Entering directory `/usr/src/comedi-0.7.73/comedi'
echo > comedi_kbuild.inc
echo CONFIG_COMEDI_RT=y >> comedi_kbuild.inc
echo CONFIG_COMEDI_RT_MODULES=m >> comedi_kbuild.inc
make -I/usr/src/comedi-0.7.73/comedi -C ../linux M=/usr/src/comedi-0.7.73/comedi CC="gcc -m32 -I/usr/src/comedi-0.7.73/comedi/../ \
-I/usr/src/comedi-0.7.73/comedi/../include -I/tmp/tinygentoo/usr/realtime/include " V=1 modules
make: Entering an unknown directory
make: *** ../linux: No such file or directory. Stop.
make: Leaving an unknown directory
make[3]: *** [all-local] Error 2
make[3]: Leaving directory `/usr/src/comedi-0.7.73/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/comedi-0.7.73/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/comedi-0.7.73'
make: *** [all] Error 2
I have checked all of the paths and they all are valid paths. ../linux should take me to /usr/src/linux (which is a symbolic link to linux-2.6.19.7). Does that need to be a hard link? Or should I rename the actual kernel source dir to linux? Where am I going wrong? Any help is appreciated!
Jonathan Haws
Received on 2007-06-15Z17:44:01