Current-Users archive

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

Re: ioconf problem with config



At a glance, getdevi() can't return pseudo devices.  You have to
refactor `delpseudo()' to have `getpseudo()', then try it from
`addpseudoroot()'.  I'm not sure what will happen after that.

(These two different meanings of "pseudo" are confusing.)

On Sat, Sep 24, 2016 at 10:05 AM, Paul Goyette <paul%whooppee.com@localhost> wrote:
> I'm working on modularizing the ld(4) driver and all of its several
> attachments, and I've run into a problem with config(1) and ataraid.
>
> My ataraid.ioconf file looks like this:
>
>         #       $NetBSD$
>
>         ioconf ld_ataraid
>
>         include "conf/files"
>         include "dev/ata/files.ata"
>
>         pseudo-root ataraid*
>
>         ld* at ataraid? vendtype ? unit ?
>
>
> And I'm getting the following errors from nbconfig (manually wrapped and
> indented for readability):
>
>         /build/netbsd-local/tools/x86_64/amd64/bin/nbconfig  \
>                 -b /build/netbsd-local/obj/amd64/sys/modules/ld_ataraid \
>                 -s /build/netbsd-local/src/sys \
>
> /build/netbsd-local/src/sys/modules/ld_ataraid/ld_ataraid.ioconf
>         /build/netbsd-local/src/sys/modules/ld_ataraid/ld_ataraid.ioconf:8:
> \
>                 ataraid*: ataraid is a pseudo-device
>         /build/netbsd-local/tools/x86_64/amd64/bin/nbconfig: panic: device \
>                 `ataraid*' expected to be present
>         *** [ioconf.c] Error code 2
>
>
> Under normal (non-MODULE) conditions, config doesn't complain about ataraid
> being a pseudo-device instead of a "real" device, but it seems not to be
> valid for ioconf processing?
>
> Any suggestions?
>
>
> +------------------+--------------------------+------------------------+
> | Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
> | (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
> | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
> +------------------+--------------------------+------------------------+


Home | Main Index | Thread Index | Old Index