[elrepo] Building for a non-standard kernel

Phil Perry phil at elrepo.org
Fri Feb 19 07:06:47 EST 2021


On 19/02/2021 11:06, Manuel Wolfshant wrote:
> On 2/19/21 12:03 PM, Roger Sewell wrote:
>> If this is not the right place to post this query please tell me where
>> is.
>>
>> I have been sent a built test kernel with a bug fixed, based on a kernel
>> many releases later than the current 8.3 RHEL kernel, along with
>> corresponding versions of the associated devel packages.
>>
>> 1. Where can I find instructions for how to rebuild the
>>     kmod-megaraid_sas RPM for this non-standard kernel from the 8.3 SRPM
>>     package which I have ? (I tried just changing the definition of
>>     kmod_kernel_version to 4.18.0-287.el8.test, and it appeared to build
>>     OK apart from some warnings of whose severity I'm uncertain, it
>>     installed fine, but booting the resulting kernel produced apparently
>>     correct boot.log and messages content, but unusable video output both
>>     on GDM and the tty interfaces.)
> 
> 
> i'll let the experts to chime in but AFAIK, you did the correct thing. 
> Happened to me too when I tested a kernel with NVME patches between RHEL 
> 7.7 and 7.8
> 

Yes, that should be all you need to do providing the code builds cleanly 
without errors. You will need to have the corresponding kernel-devel 
packages installed for the kernel you are building against, which 
clearly you do.

> I am not really sure because I forgot but IIRC I  experimented with 
> vga=NN added to the kernel line
> 
> The question is: beside the obvious lack of megaraid support , does the 
> kernel boot properly without your kmod ? Because adding a 3rd party 
> storage kmod shouldn't fiddle with the video...
> 
> 

I agree. Resolve the booting issues first, then you can look to 
establish if your rebuilt megaraid_sas module is working as expected.

Are you booting from the SAS/RAID array, or is this an additional 
storage array only? If you are booting from the array, then it looks 
like your rebuilt module is successful as the system wouldn't be able to 
boot if it can't see the device, at least not as far as the point where 
you have issues with the display manager.

>>
>> 2. Is it indeed possible to build it for an installed kernel that is not
>>     the running kernel ? (If not, then I cannot rebuild on my existing
>>     hardware.)
> 
> 
> yes, it is, of course.
> 
> 



More information about the elrepo mailing list