Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328185 - Please add mpt2sas module to kernel
Summary: Please add mpt2sas module to kernel
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: InstallCD (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
: 338269 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-13 23:30 UTC by Adam Randall
Modified: 2011-05-14 20:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Randall 2010-07-13 23:30:06 UTC
I am unable to use the current installcd ISOs (such as install-amd64-minimal-20100408) with my DELL R210. This server has a PERC H200, which requires the mpt2sas module to be recognized. I've read limited information about building the module and then including it from a USB stick via insmod. Sadly, I've never done this before, so I'm going to be attempting to do the gentoo install through an Ubuntu disk.

The most recent installcd is running 2.6.31-gentoo-r10, and all my other servers are beyond that now (current gentoo-sources stable is 2.6.34-gentoo-r1.

Either there should be instructions on how to get around kernel limitations, or the installcd needs to be updated with more current drivers.

Reproducible: Always

Steps to Reproduce:
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2010-12-01 18:23:19 UTC
*** Bug 338269 has been marked as a duplicate of this bug. ***
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2010-12-11 23:58:36 UTC
Can you please test the latest available ISO for amd64?
The current kernel config for amd64 has the mpt2sas driver built as a module. If that doesn't work for you, please provide more details.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-05-13 21:16:46 UTC
No info.
Comment 4 Alex Efros 2011-05-14 00:57:31 UTC
I've just tried to boot DELL R610 using install-x86-minimal-20110426.iso - it doesn't include mpt2sas. I'm now going to build it on my workstation, then upload to server using ssh and try to load it…
Comment 5 Alex Efros 2011-05-14 00:59:05 UTC
livecd ~ # gzip -dc /proc/config.gz | grep -i mpt2sas
# CONFIG_SCSI_MPT2SAS is not set
Comment 6 Alex Efros 2011-05-14 01:48:56 UTC
(In reply to comment #4)
> I've just tried to boot DELL R610 using install-x86-minimal-20110426.iso - it
> doesn't include mpt2sas. I'm now going to build it on my workstation, then
> upload to server using ssh and try to load it…

I'm unable to load it. :(

livecd ~ # insmod mpt2sas/mpt2sas.ko 
insmod: error inserting 'mpt2sas/mpt2sas.ko': -1 Invalid module format
livecd ~ # dmesg | tail -n 1
mpt2sas: no symbol version for module_layout

The version string is same, let's compare to mvsas module for example:

livecd ~ # modinfo -F vermagic /lib/modules/2.6.36-gentoo-r8/kernel/drivers/scsi/mvsas/mvsas.ko 
2.6.36-gentoo-r8 SMP mod_unload modversions 486 
livecd ~ # modinfo -F vermagic mpt2sas/mpt2sas.ko 
2.6.36-gentoo-r8 SMP mod_unload modversions 486 

I've built this module using sys-kernel/gentoo-sources-2.6.36-r8 - is livecd kernel sources differs from gentoo-sources?! If yes, where I can get livecd kernel sources?

I've even tried to use vanilla gcc to build this module - no luck:
# gcc-config -l
 [1] i686-pc-linux-gnu-4.4.5
 [2] i686-pc-linux-gnu-4.4.5-hardenednopie
 [3] i686-pc-linux-gnu-4.4.5-hardenednopiessp
 [4] i686-pc-linux-gnu-4.4.5-hardenednossp
 [5] i686-pc-linux-gnu-4.4.5-vanilla *
Comment 7 Fernando (likewhoa) 2011-05-14 15:40:28 UTC
(In reply to comment #6)
> (In reply to comment #4)
> > I've just tried to boot DELL R610 using install-x86-minimal-20110426.iso - it
> > doesn't include mpt2sas. I'm now going to build it on my workstation, then
> > upload to server using ssh and try to load it…
> 
> I'm unable to load it. :(
> 
> livecd ~ # insmod mpt2sas/mpt2sas.ko 
> insmod: error inserting 'mpt2sas/mpt2sas.ko': -1 Invalid module format
> livecd ~ # dmesg | tail -n 1
> mpt2sas: no symbol version for module_layout
> 
> The version string is same, let's compare to mvsas module for example:
> 
> livecd ~ # modinfo -F vermagic
> /lib/modules/2.6.36-gentoo-r8/kernel/drivers/scsi/mvsas/mvsas.ko 
> 2.6.36-gentoo-r8 SMP mod_unload modversions 486 
> livecd ~ # modinfo -F vermagic mpt2sas/mpt2sas.ko 
> 2.6.36-gentoo-r8 SMP mod_unload modversions 486 
> 
> I've built this module using sys-kernel/gentoo-sources-2.6.36-r8 - is livecd
> kernel sources differs from gentoo-sources?! If yes, where I can get livecd
> kernel sources?
> 
> I've even tried to use vanilla gcc to build this module - no luck:
> # gcc-config -l
>  [1] i686-pc-linux-gnu-4.4.5
>  [2] i686-pc-linux-gnu-4.4.5-hardenednopie
>  [3] i686-pc-linux-gnu-4.4.5-hardenednopiessp
>  [4] i686-pc-linux-gnu-4.4.5-hardenednossp
>  [5] i686-pc-linux-gnu-4.4.5-vanilla *

i686-pc-linux-gnu-4.4.5 should work just fine and yes the minimal-installcds use gentoo-sources. If you can't wait for mtp2sas, you can try the Gentoo livedvd which includes this until this bug is fixed.
Comment 8 Alex Efros 2011-05-14 18:49:10 UTC
(In reply to comment #7)
> i686-pc-linux-gnu-4.4.5 should work just fine and yes the minimal-installcds
> use gentoo-sources.

No, it doesn't work, at least for me. Maybe some patches was changed without changing ebuild version…

> If you can't wait for mtp2sas, you can try the Gentoo
> livedvd which includes this until this bug is fixed.

Yeah, I'm already did that. Interestingly, there was another bug - network driver "bnx2" failed to load on LiveDVD (because of missing firmware), while it works ok on Minimal Install CD. Removing and inserting it again solved issue.
Comment 9 Fernando (likewhoa) 2011-05-14 19:04:01 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > i686-pc-linux-gnu-4.4.5 should work just fine and yes the minimal-installcds
> > use gentoo-sources.
> 
> No, it doesn't work, at least for me. Maybe some patches was changed without
> changing ebuild version…
> 

You shouldn't have to install any user tools for mtp2sas, this is all in the kernel.

> > If you can't wait for mtp2sas, you can try the Gentoo
> > livedvd which includes this until this bug is fixed.
> 
> Yeah, I'm already did that. Interestingly, there was another bug - network
> driver "bnx2" failed to load on LiveDVD (because of missing firmware), while it
> works ok on Minimal Install CD. Removing and inserting it again solved issue.

that could be related to using baselayout2 on the livedvd versus baselayout1 on minimal-installcd.
Comment 10 Alex Efros 2011-05-14 20:58:57 UTC
(In reply to comment #9)
> > > i686-pc-linux-gnu-4.4.5 should work just fine and yes
> > > the minimal-installcds use gentoo-sources.
> > No, it doesn't work, at least for me.
> > Maybe some patches was changed without changing ebuild version…
> You shouldn't have to install any user tools for mtp2sas,
> this is all in the kernel.

I mean I failed to build this kernel module for use on install CD on my workstation - kernel version is same, gcc probably also same, kernel config is /proc/config.gz from install cd with only change - adding this module… but it doesn't work (no symbol version for module_layout). And I've no idea why this doesn't work - probably something still differs, maybe CFLAGS etc.