Thanks for your comment Wolfgang.
The driver in question is compiled as module, and the last time I
checked (a year ago) there isn't a way to pass an argument to a module
driver during boot time. Has this changed? The kernel is 2.4 series.
-----Original Message-----
From: owner-linuxppc-embedded@lists.linuxppc.org
[mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of Wolfgang
Denk
Sent: Friday, February 22, 2002 4:57 PM
To: David C. Chiu
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Memory Pre-allocation (mem=xxx)
In message [off-list ref]
you wrote:
We're working on a project that requires a two megabytes block of
contiguous memory in kernel space. Although it is well documented that
memory can be reserved by using mem=xx arguments during boot time, it
is
unclear (to me) as to how a driver can automatically detect the size
of
the said reserved block.
Pass an extra boot argument?
Wolfgang Denk
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
I'am not shure what you mean with a module driver during boot but If you want
to pass a option that was entered in the bootline you can read the bootline
from /proc/cmdline and with some small shell script extract the part you want
and pass that to the module when you insert it.
"David C. Chiu" wrote:
Thanks for your comment Wolfgang.
The driver in question is compiled as module, and the last time I
checked (a year ago) there isn't a way to pass an argument to a module
driver during boot time. Has this changed? The kernel is 2.4 series.
-----Original Message-----
Wolfgang Denk
Sent: Friday, February 22, 2002 4:57 PM
In message [off-list ref]
you wrote:
quoted
We're working on a project that requires a two megabytes block of
contiguous memory in kernel space. Although it is well documented that
memory can be reserved by using mem=xx arguments during boot time, it
is
quoted
unclear (to me) as to how a driver can automatically detect the size
of
quoted
the said reserved block.
Pass an extra boot argument?
--
Kenneth Johansson
Ericsson Telecom Tel: +46 8 404 71 83
Viderögatan 3 Fax: +46 8 404 72 72
164 80 Stockholm kenneth.johansson@etx.ericsson.se
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/