[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#228960: excluding pcmcia resource ranges



On Thu, Apr 29, 2004 at 01:49 -0400, Joey Hess wrote:
> A few thoughts on how this should work 

Thanks, it's certainly helpful.

There is a [1]list in the PCMCIA HOWTO which lists settings for many
computers. I was thinking of making a debconf dialogue with the
settings in that list, but it would probably be better to implement
your suggestion first. The list, however, can be of some help here.

>  - Should be able to specify it at boot, as well as in an expert mode
>    question or questions.

I agree.

>  - Should be able to include a new range as well as excluding an existing
>    one?

Not ranges I think, but apparently IRQs since your laptop requires
it. Memory ranges need to be moved also so this might need to be
implemented by an exclusion/inclusion combination.

>  - May need to exclude more than one range.

According to the list, yes.

>  - It's probably too complex for now to really operate on ranges as
>    ranges; easier to operate on them as words that we either add or
>    take away.

You mean by removing earlier statements in the file?

>  - I have a laptop that does not work with the default irq excludes.
>    I have to comment out one or both of the exclude irq [47] lines in
>    config.opts, or it won't work. This is a similar problem.

This really depends on what you ask below, if a statement can override
a previous statement.

>  - Will someone need to exclude memory regions too?

This is a problem, the list in the howto mostly talks about changing
the memory regions earlier in the file rather than appending
things. But it might be possible to implement this by one exclusion
and one inclusion together.

> One very easy, flexible, but not too user-friendly way would be to
> prompt the user to enter any include/exclude statements they need.
> A user might enter "exclude port 0x800-0x8ff include irq 7",
> then it just has to parse this into separate lines and append it to the
> file. Something like:

Presenting a list of computer models with special settings would be
more user friendly, but could only be done in expert mode. It also
can't be passed as boot time argument.

> Then we can add something to the syslinux boot help documentating that
> for dell inspirons, the user needs to enter:

We can probably take the whole list from the howto.

> This assumes that all needed configuration can be done by appending
> lines to config.opts, that might override earlier lines in the file
> (excluding included ranges, including excluded ports, etc). I don't know
> if that's true.

Looking at the source code, it appears so. But I haven't tested. Could
you perhaps test it on your laptop?

[1] http://pcmcia-cs.sourceforge.net/ftp/doc/PCMCIA-HOWTO-2.html#ss2.5

-- 
Pelle



Reply to: