Re: Where is hptrr kernel module in 13.3 ?

From: Herbert J. Skuhra <herbert_at_gojira.at>
Date: Tue, 09 Jul 2024 22:56:57 UTC
On Wed, 10 Jul 2024 00:27:08 +0200, Pete Wright wrote:
>  
> On 7/9/24 15:17, Herbert J. Skuhra wrote:
> > On Tue, 09 Jul 2024 21:39:30 +0200, William Dudley wrote:
> >> I wanted to use an old "RocketRaid 1740" SATA PCI card in a machine,
> >> and that requires the "hptrr" driver.  This page:
> >> 
> >> https://www.freebsd.org/releases/13.3R/hardware/
> >> 
> >> Suggests it's part of the 13.3 release, but I cannot find anything but
> >> a man page for it on my 13.3 systems (all three of them).
> >> 
> >> Further, I installed the source tree (using git) because I though
> >> maybe I had to build the module, but hptrr isn't mentioned at
> >> all in the /usr/src/sys/amd64/GENERIC file, so I can't "enable" it
> >> to be built as part of the kernel.
> > It is listed in sys/amd64/conf/NOTES.
> > 
> >  From /usr/src/UPDATING:
> > 
> > 20191003:
> >          The hpt27xx, hptmv, hptnr, and hptrr drivers have been removed from
> >          GENERIC.  They are available as modules and can be loaded by adding
> >          to /boot/loader.conf hpt27xx_load="YES", hptmv_load="YES",
> >          hptnr_load="YES", or hptrr_load="YES", respectively.
> > 
> > But none of the 13.x-RELEASE kernel.txz (amd64) include the mentioned modules.
> > I guess you should open a PR at bugs.freebsd.org. Maybe this can be
> > fixed for 13.4-RELEASE.
> > 
> > Have you tried to build your own kernel with "device hptrr"?
> 
> i've got a system running CURRENT and can confirm those modules are
> present, i would also assume they are there on 13.x as well. what does
> "ls /boot/kernel/hpt*" show on your system? -pete

The modules are available in 12.x, 14.x and main, but are obviously
missing in 13.x:

$ curl -O https://download.freebsd.org/ftp/releases/amd64/13.3-RELEASE/kernel.txz
$ tar -ztf kernel.txz |grep hpt
./boot/kernel/hptiop.ko
$ curl -O https://download.freebsd.org/ftp/releases/amd64/14.1-RELEASE/kernel.txz
$ tar -ztf kernel.txz |grep hpt
./boot/kernel/hptrr.ko
./boot/kernel/hptnr.ko
./boot/kernel/tcphpts.ko
./boot/kernel/hpt27xx.ko
./boot/kernel/hptiop.ko
./boot/kernel/hptmv.ko

And after running "make buildworld buildkernel" for stable/13 (amd64)
on a stable/14 (amd64) system the modules are missing as well.