SOLVED SATA controller JMB582 supported in FreeBSD not working in TrueNAS 12.0-U6.1

asimov-solensan

Contributor
Joined
Oct 14, 2016
Messages
113
Hello,

I wanted to try a cheap card to use for the boot drive (and free one of the board sata ports), not ZRAID, I'm aware of the risks with these cheap PCIe controllers.

Before buying I wanted to be sure the model was supportedn in freebsd, and it seems support was introduced in 11.4:


But it doesn't work. The board itself works booting ubuntu on the same server. But in truenas it just hangs without any error. Even the installation USB freezes when booting with one of the disks connected to it (see attached).

Maybe I'm misinterpreting something here, but since truenas runs on freebsd 12.2 this chipset should be supported.

The wider question for me here is if "supported by freebsd" == "supported by truenas". Because if that is not true I need to revisit my criteria when getting new hardware.
 

Attachments

  • Captura de pantalla de 2021-11-17 15-31-32.png
    Captura de pantalla de 2021-11-17 15-31-32.png
    82.4 KB · Views: 192

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
TrueNAS only supports a subset of FreeBSD drivers, sorry. As for this specific JMicron AHCI controller:

 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
iXsystems maintains their own version of the OS, so, no, supported by FreeBSD doesn't necessarily translate to supported by FreeNAS.

Even if it were --

Buying hardware for things that are newly supported in FreeBSD is fraught with peril, simply because it may take a release or two for bugs to be worked out. Additionally, cheap PC hardware like the JMB582 controller are frequently the target of Asian knockoff clones, which often don't work QUITE the same way that the legit hardware does. So this creates an entertaining situation because the driver developer might have had a legit part, or a knockoff part, and so might have written code that doesn't actually work for the other case.

There's some additional discussion at


and I think the suggestion here would be to go with something like a brand name card based on an Asmedia ASM1061 based controller, make sure you get one with only two ports and not a port multiplier.
 

asimov-solensan

Contributor
Joined
Oct 14, 2016
Messages
113
Yes I understand all this. And I followed step by step the hardware guide when building my server a few years ago.

But in order to have just one additional port for the boot device without zraid. I find the SAS controllers too complex, only available second hand in ebay, then I need to find the correct SAS cable and find everything just too complex.

@jgreco

Thanks, indeed that ASM1061 seems to be the best solution for my particular use case.

Regards.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
SAS is the way to go although yes you do need to get the correct cable - some of which look the same as others but aren't
A cheap LSI SAS Card (or equivalent), flashed to IT Mode with a SAS to SATA breakout cable would work well.
 

asimov-solensan

Contributor
Joined
Oct 14, 2016
Messages
113
I'm going to mark the thread as solved because the real question was about FreeBSD vs TrueNAS support. And clearly it is not the same.

Thanks everyone for the help.
 
Top