Yan,
Alas! your crosstool works miraculously!
I still do not know why, because my colleague uses EmabeddedArm's one
and that one works on his PC also, though it failed on my PC. His PC's
OS is Fedora, mine is Mandriva 2006. Though OS should not be an issue
for building embedded linux driver, I am not sure why some people
could not build kernel module, i am just wondering which cross tool
chain do they use.
For ideas on GPIO interrupt, see the gps_pps.tgz (Example device
driver that shows how to use GPIO and the GPIO IRQ) in the FILES link
of this discussion group. You will be surprised to find that back in
last May, Andy already used __ioremap to fix the problem you asked for.
Tom
--- In "Yan Seiner" <> wrote:
>
> --- In "chentom60" <chentom60@> wrote:
> >
> > Phil,
> >
> > Thank you for your help. I just modified the gpio.c that Yan
> Seiner
> > posted a few weeks ago. However, even his original one could not
> be
> > compiled on my PC.
> >
> > Use a similar command below to compile, change the /include to
> your
> > own Linux2.4 ARM kernel source include.
> > arm-linux-gcc -D__KERNEL__ -DMODULE
> > -I/usr/local/src/linux24/include -O -Wall -c -o gpio.o gpio.c
> >
>
> You can try my toolchain at
> http://www.seiner.com/ts7000/index.php/CrossCompileTools
> however please read all of the caveats...
>
> I'm still trying to figure out how to enable interrupts on that
> board.... Any ideas?
>
> --Yan
>
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/
|