Hong Hsu
2003-05-06 01:17:47 UTC
Scott,
Thanks you for your Linux X10 device driver which I am looking for long
time. There are several questions I would like to ask as I got
compilation error.
I have Redhat Linux kernel 2.4.18-3 running on Athlon XP processor. I
read wish web page carefully, then
#ln -s /usr/src/linux-2.4.18-3 /usr/src/linux
#make mrproper
it seems ok. But one question is if I intend to compile standalone
x10 drivers, do I have to remove all files under
/usr/src/linux/include/linux/modules/ ?
#make symlinks
it seems ok
#make dep
it doesn't seem done anything:
[***@puma linux-2.4.18-3]# make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep
scripts/mkdep.c
make[1]: Entering directory `/usr/src/linux-2.4.18-3/arch/i386/boot'
make[1]: Nothing to be done for `dep'.
make[1]: Leaving directory `/usr/src/linux-2.4.18-3/arch/i386/boot'
make: *** No rule to make target `include/linux/autoconf.h', needed by
`include/linux/version.h'. Stop.
[***@puma linux-2.4.18-3]#
At this point, I copied original .config back to top level directory of
kernel source tree.
Am I wrong here as in configs directory there are several files, such as
kernel-2.4.18-i686.config and kernel-2.4.18-athlon.config. If I
shouldn't use original .config file, then which config file I should use?
#make
this gave me error on modversions.h and autoconf.h:
[***@puma wish-1.6.2]# make
/usr/src/linux/scripts/mkdep -- *.c > .depend
/usr/src/linux/scripts/mkdep -- *.h > .hdepend
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-DMODULE -DMODVERSIONS -include
/usr/src/linux/include/linux/modversions.h -nostdinc -iwithprefix
include -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=x10_core -c -o x10_core.o x10_core.c
x10_core.c:1:24: /usr/src/linux/include/linux/modversions.h: No such
file or directory
In file included from x10_core.c:46:
/usr/src/linux/include/linux/config.h:4:28: linux/autoconf.h: No such
file or directory
In file included from /usr/src/linux/include/linux/prefetch.h:13,
from /usr/src/linux/include/linux/list.h:6,
from /usr/src/linux/include/linux/module.h:12,
from x10_core.c:53:
/usr/src/linux/include/asm/processor.h:56: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/src/linux/include/asm/processor.h:56: requested alignment is not a
constant
In file included from x10_core.c:53:
/usr/src/linux/include/linux/module.h:297:27: linux/version.h: No such
file or directory
In file included from x10_core.c:53:
/usr/src/linux/include/linux/module.h:299: parse error before `UTS_RELEASE'
x10_core.c:67:27: linux/version.h: No such file or directory
make: *** [x10_core.o] Error 1
[***@puma wish-1.6.2]#
Would you give a hint where may be wrong becuase I don't know which step
I did is not right.
Last queston is how can I verify my system has DEVFS. As I saw the
CONFIG_DEVFS_FS=y does defined in .config, but I do not saw devfsd is
running.
Your response will be appreciated,
-Hong
Thanks you for your Linux X10 device driver which I am looking for long
time. There are several questions I would like to ask as I got
compilation error.
I have Redhat Linux kernel 2.4.18-3 running on Athlon XP processor. I
read wish web page carefully, then
#ln -s /usr/src/linux-2.4.18-3 /usr/src/linux
#make mrproper
it seems ok. But one question is if I intend to compile standalone
x10 drivers, do I have to remove all files under
/usr/src/linux/include/linux/modules/ ?
#make symlinks
it seems ok
#make dep
it doesn't seem done anything:
[***@puma linux-2.4.18-3]# make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep
scripts/mkdep.c
make[1]: Entering directory `/usr/src/linux-2.4.18-3/arch/i386/boot'
make[1]: Nothing to be done for `dep'.
make[1]: Leaving directory `/usr/src/linux-2.4.18-3/arch/i386/boot'
make: *** No rule to make target `include/linux/autoconf.h', needed by
`include/linux/version.h'. Stop.
[***@puma linux-2.4.18-3]#
At this point, I copied original .config back to top level directory of
kernel source tree.
Am I wrong here as in configs directory there are several files, such as
kernel-2.4.18-i686.config and kernel-2.4.18-athlon.config. If I
shouldn't use original .config file, then which config file I should use?
#make
this gave me error on modversions.h and autoconf.h:
[***@puma wish-1.6.2]# make
/usr/src/linux/scripts/mkdep -- *.c > .depend
/usr/src/linux/scripts/mkdep -- *.h > .hdepend
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-DMODULE -DMODVERSIONS -include
/usr/src/linux/include/linux/modversions.h -nostdinc -iwithprefix
include -pipe -mpreferred-stack-boundary=2 -march=i686
-DKBUILD_BASENAME=x10_core -c -o x10_core.o x10_core.c
x10_core.c:1:24: /usr/src/linux/include/linux/modversions.h: No such
file or directory
In file included from x10_core.c:46:
/usr/src/linux/include/linux/config.h:4:28: linux/autoconf.h: No such
file or directory
In file included from /usr/src/linux/include/linux/prefetch.h:13,
from /usr/src/linux/include/linux/list.h:6,
from /usr/src/linux/include/linux/module.h:12,
from x10_core.c:53:
/usr/src/linux/include/asm/processor.h:56: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/src/linux/include/asm/processor.h:56: requested alignment is not a
constant
In file included from x10_core.c:53:
/usr/src/linux/include/linux/module.h:297:27: linux/version.h: No such
file or directory
In file included from x10_core.c:53:
/usr/src/linux/include/linux/module.h:299: parse error before `UTS_RELEASE'
x10_core.c:67:27: linux/version.h: No such file or directory
make: *** [x10_core.o] Error 1
[***@puma wish-1.6.2]#
Would you give a hint where may be wrong becuase I don't know which step
I did is not right.
Last queston is how can I verify my system has DEVFS. As I saw the
CONFIG_DEVFS_FS=y does defined in .config, but I do not saw devfsd is
running.
Your response will be appreciated,
-Hong
--
<Linux kernel:>< As a computer I find your faith in technology amusing.
<Linux kernel:>< As a computer I find your faith in technology amusing.