Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jun 2018 16:27:30 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        "Conrad E. Meyer" <cem@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: cy PCI driver - possible device id's
Message-ID:  <CANCZdfqn6EMPdF5xEdfvh23Yq1k6eV41d5DAjYoDBEbB6wS9Qg@mail.gmail.com>
In-Reply-To: <33255.1528231786@critter.freebsd.dk>
References:  <CAHC0YgfPmPmOQVmHD_uY8d7qHbHLrc439%2Bj34rvLaqo2PMv2VQ@mail.gmail.com> <32229.1528222775@critter.freebsd.dk> <CAG6CVpXKGrN_Ee2tBwyLDNgLL9CFYPhsjn9QLbOBT_zaf55esg@mail.gmail.com> <33255.1528231786@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 5, 2018, 4:57 PM Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:

> --------
> In message <
> CAG6CVpXKGrN_Ee2tBwyLDNgLL9CFYPhsjn9QLbOBT_zaf55esg@mail.gmail.com>,
> Conrad Meyer writes:
>
> >We already have exactly this =E2=80=94 a precise convention
> >("MODULE_PNP_INFO") and tool ("kldxref" for extracting the data, and
> >"devmatch" for suggesting matches), initiated by Warner.  This work
> >has been ongoing, in stops and starts, for years.  Lakhan is
> >converting non-compliant drivers to the convention.
>
> Yes, and that's good and great, but it only works if you have
> the modules installed on the machine to examine.
>
> For scenarios like NanoBSD it would be nice if devmatch had a
> built-in "fall-back" table (created at compile time) to suggest
> modules not present in the local filesystem.
>

Devmatch can operate on an arbitrary loader.hints file. Just do a GENERIC
buildkernel, install it somewhere. Loader.hints gets created. Copy that
file to the target system and run devmatch...

Warner

-- 
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk@FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqn6EMPdF5xEdfvh23Yq1k6eV41d5DAjYoDBEbB6wS9Qg>