Re: [iPAQ] Does ipaq support mmap?

From: Niklas Höglund <niklas.hoglund_at_telia.com>
Date: Sun, 26 Dec 2004 13:55:10 +0100

fre 2004-12-24 klockan 03:37 +0000 skrev tao tian:
> Hi,
> I am trying to write a module, who uses a mmap mechanism. I try to run
> it well on my pc(redhat9, with kernel 2.4.20-8), but when I try to
> crosscompile it for my ipaq( with familiar installed, kernel
> 2.4.19-pxa1-rmk6-hh30.), the crosscompile is successful, but when I insmod
> on ipaq. It reported error: insmod: unresolved symbol: discontig_node_data
> I checked the code of my module, the error caused by the line:
> mem_map_unreserve(virt_to_page(addr));
> when I take this line off, the module can be inserted. but I have to
> use this line, can anyone why this error happened or give me some advice.

As you haven't got a reply I guess maybe a kernel mailing list would be
more appropriate. (There are a couple listed under "Mailing lists / IRC"
on handhelds.org.

I'm by no means a kernel developer, but I would check the following if I
was in your position:

Have you checked what mem_map_unreserve and virt_to_page do. Do they use
discontig_node_data? Where is that defined? Is that file compiled?
Are there ifdefs around it?

-- 
                                                       Niklas

Received on Sun Dec 26 2004 - 07:55:48 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:25:07 EDT