Memory Pre-allocation (mem=xxx)
Kenneth Johansson
kenneth.johansson at etx.ericsson.se
Mon Feb 25 23:35:48 EST 2002
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 <8A098FDFC6EED94B872CA2033711F86F0ABD0C at orion.ariodata.com>
> 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?
--
Kenneth Johansson
Ericsson Telecom Tel: +46 8 404 71 83
Viderögatan 3 Fax: +46 8 404 72 72
164 80 Stockholm kenneth.johansson at etx.ericsson.se
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list