Re: SLES 12 SP1 + PXE + new kernel module

"Dr. Peer-Joachim Koch" <[email protected]> Thu, 31 May 2018 15:19:25 +0200
Newsgroups gmane.linux.suse.autoinstall
Organization MPI for Biogeochemistry
Message-ID <[email protected]>
Hi Josef,

I tried it the same way I did on SLES 11. We have to use this revision 
for other software (GFS).

I build the megaraid driver on an SLES12SP1 system (rpmbuild ...), took 
the rpm and extracted the kernel module.

Unpacked the initrd and added the kernel module according to the 
structure found in the rpm:

ll -R lib/modules/3.12.49-11-default/
3.12.49-11-default/:
insgesamt 8
drwxr-xr-x 2 root root 4096 Mai 30 16:42 initrd
drwxr-xr-x 2 root root 4096 Mai 31 09:18 updates

3.12.49-11-default/initrd:
insgesamt 132
-rw-r--r-- 1 root root 48783 Nov 12  2015 loop.ko
-rw-r--r-- 1 root root 82455 Nov 12  2015 squashfs.ko

3.12.49-11-default/updates:
insgesamt 1860
-rw-r--r-- 1 root root 1902520 Mai 30 16:18 megaraid_sas.ko


Packed this initrd and placed it on our pxe server.
The pxe boot is failing (virtual machine for testing), using the 
original initrd (without the megaraid_sas.ko file) everything is working.

On SLES11 I could to an pxe installation with new perc controllers 
(unsupported for SLES 11) this way. I added the rpm for the installation 
process and everything was fine. For SLES12 some things might have 
changed ...

Problem: The Dell R440 perc controller is not found, so we have no hard 
disk to install.

Bye, Peer

On 31.05.2018 14:45, Josef Reidinger wrote:
> On Thu, 31 May 2018 14:19:01 +0200
> "Lukas Ocilka" <[email protected]> wrote:
> 
>> -------- Přeposlaná zpráva --------
>> Předmět: [opensuse-autoinstall] SLES 12 SP1 + PXE + new kernel module
>> Datum: Thu, 31 May 2018 09:32:24 +0200
>> Od:  Dr. Peer-Joachim Koch  <[email protected]>
>> Společnost: MPI for Biogeochemistry
>> Komu: [email protected], [email protected]
>>
>> Hi,
>>
>> we have to add a kernel module for a perc  controller.
>> We unpacked the initrd an placed it under
>> lib/modules/3.12.49-11-default/updates/
>>
>> but the boot process failed with "No filesystem ..."
>>
>> How can we add the raidcontroller module correctly ?
> 
> Hi Joachim,
> I am sure about properly supported way for SLE12 SP1 ( which I am also not sure if it is not already out of support ).
> 
> But if I get it properly, boot process cannot find filesystem, so this means that it initrd missing some module to read it. Do you have module in your initrd to read that perc controller? unpacking only does not help if it is not also included in initrd that is loaded during boot process. So when calling mkinitrd check if all required modules for given perc controller is included there.
> 
> If it is there, please write more informations like
> 
> which boot failed? when starting installation or after installation when trying to boot target system.
> 
> How exactly you inject that kernel module?
> 
> Do you already check driver kits documented by SUSE? https://drivers.suse.com/doc/Usage/Driver_Kits.html It specify also how to add additional driver to installation.
> 
> Josef
> 


-- 
Mit freundlichen Grüßen,
     Peer-Joachim Koch
________________________________________________________

Max-Planck-Institut für Biogeochemie
Dr. Peer-Joachim Koch
Hans-Knöll Str.10            Telefon: ++49 3641 57-6705
D-07745 Jena                 Telefax: ++49 3641 57-7705
smime.p7s (application/pkcs7-signature, 5.1 KB) - not displayed