Make isp(4) suggest loading ispfw(4) when it fails to attach.
It cannot load it automatically at boot, because the root filesystem
is not there yet. An alternative would be adding ispfw(4) to GENERIC,
but it's an additional 1MB.
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
I think generally it may be not a bad idea, but I'd prefer less exact message, like "Consider loading ispfw kernel module for known good firmware".
Also you could add check for card generation, since there is no public firmware images for 16Gbps cards and above, so the message would not have sense.
Thanks. Does it look ok now?
Regarding the message - why? I quite like the current one, because it tells you exactly what you need to do, instead of having to figure it out.
Because it tells you what to do (may happen to be incorrect for somebody), not explaining why.
I think it would actually be better to add the suggestion to put in ispfw_load whenever the user isn't on a 16Gb board and hasn't loaded firmware.
In most cases, we'll probably have the newest firmware in the kernel. And certainly the firmware that has been tested with the driver.
I believe we might be close to automatically loading those by loader(8) itself. And that would make this advice redundant soon.