Hi Tom,
It's a bit hard to work out what is happening just from the
description. Is it possible for you to upload/attach the "gpio.c"
file that you are trying to compile?
Cheers
Phil
--- In "chentom60" <> wrote:
>
> Hi,
>
> I want to build a kernel module for my TS-7250 to control gpio, but
> can not compile.
>
> I am using the latest toolchain, kernel source, kernel module from
> http://www.embeddedarm.com/linux/ARM.htm. However, there are lots
of
> compiling errors.
>
> I am using this command
> $/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-
linux-gcc
> -D__KERNEL__ -DMODULE -I/home/tom/linux24/include -O -Wall -c -o
> gpio.o gpio.c
>
> The #include <linux/fs.h> in my gpio.c alone will lead to lots of
> error below:
>
> /home/tom/linux24/include/linux/fs.h:424: error: parse error before
> "dev_t"
> /home/tom/linux24/include/linux/fs.h:424: warning: no semicolon at
end
> of struct or union
> /home/tom/linux24/include/linux/fs.h:427: error: parse error before
> '}' token
> /home/tom/linux24/include/linux/fs.h:433: error: parse error before
> "dev_t"
> /home/tom/linux24/include/linux/fs.h:433: warning: no semicolon at
end
> of struct or union
> /home/tom/linux24/include/linux/fs.h:438: error: parse error before
> '}' token
>
> .................
> /home/tom/linux24/include/linux/jffs2_fs_i.h:42: error: field
> `vfs_inode' has incomplete type
> .......................
>
> I found probably a similar discussion last year on failing to build
> kernel module:
> http://groups.yahoo.com/group/ts-7000/message/969
>
> I do not know what should I do to successfully build kernel
modules?
> Any new toolchain or kernel source or some patches to download?
>
> Tom
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|