[Bug 607838] Re: 3w-sas driver
Works for me out of the box on precise with these kernels: linux-image-generic linux-image-generic-lts-quantal linux-image-generic-lts-raring ** Changed in: linux (Ubuntu) Status: Incomplete = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
Rusty Burchfield, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ . If it remains an issue, could you please run the following command in the development release from a Terminal (Applications-Accessories-Terminal), as it will automatically gather and attach updated debug information to this report: apport-collect -p linux replace-with-bug-number Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags: kernel-fixed-upstream kernel-fixed-upstream-VERSION-NUMBER where VERSION-NUMBER is the version number of the kernel you tested. For example: kernel-fixed-upstream-v3.11-rc5 This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag: needs-upstream-testing If the mainline kernel does not fix this bug, please add the following tags: kernel-bug-exists-upstream kernel-bug-exists-upstream-VERSION-NUMBER As well, please remove the tag: needs-upstream-testing If you are unable to test the mainline kernel, please comment as to why specifically you were unable to test it and add the following tags: kernel-unable-to-test-upstream kernel-unable-to-test-upstream-VERSION-NUMBER Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding. ** Tags added: needs-kernel-logs needs-upstream-testing ** Changed in: linux (Ubuntu) Status: Confirmed = Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
I'm not using 2.6.32-34, I'm using Ubuntu 10.04, which at the time of writing was 2.6.32-40. I had to do the following to get it to work: dkms.conf: code MAKE=make -C src/ KERNELDIR=/lib/modules/$(uname -r)/build ##MAKE=make -C src/ KERNELDIR=/lib/modules/$(kernelver)/build CLEAN=make -C src/ clean BUILT_MODULE_NAME=3w-sas BUILT_MODULE_LOCATION=src/ DEST_MODULE_LOCATION=/kernel/drivers/scsi INCLUDEDIR=/lib/modules/${kernelver}/build/include PACKAGE_NAME=3w-sas ## VERSION 3.26.00.028-2.6.32 PACKAGE_VERSION=2.6.32 REMAKE_INITRD=yes TARGET=3w-sas.ko /code In the Makefile (/usr/src/3w-sas/src/Makefile) I had to change it to:code ## original config: this doesn't work at all, frakit! ##SRC :=$(shell if ls /usr/src/linux /dev/null 21; then echo /usr/src/linux; elif ls /usr/src/linux-2.6 /dev/null 21; then echo /usr/src/linux-2.6; else echo /lib/modules/`uname -r`/source; fi) ##we're in ubuntu, bitches! not redshmat! BUILD_KERNEL :=$(shell uname -r) SRC :=/lib/modules/$(BUILD_KERNEL)/build INCLUDE_DIR := $(SRC)/include ## Version File VERSION_FILE := $(SRC)/include/linux/version.h ##Config file search path CONFIG_FILE := $(SRC)/include/linux/autoconf.h TARGET=3w-sas.ko CPPFLAGS += -I$(SRC)/drivers/scsi ## use the current working directory when building manually #SUBDS := $(PWD) ##use the src directory when using dkms, don't know why dmks is borken...damn SUBDS := $(PWD)/src obj-m := 3w-sas.o default: make V=1 $(CPPFLAGS) -C $(SRC) SUBDIRS=$(SUBDS) modules clean: rm -fr .3w-sas.* 3w-sas.mod.* 3w-sas.ko 3w-sas.o .tmp_versions *~ /code Finally, in the /usr/src/3w-sas/src directory, I need to make a symlink to src called src (yes, a symlink to the current directory, a loop). DKMS was breaking all it's relative paths and needed the symlink to find the files. AFTER that I was able to follow the instrcutions in #3: You then add the source with: dkms add -m 3w-sas -v 2.6.32 You can then build it with: dkms build -m 3w-sas -v 2.6.32 -k 2.6.32-24-server Check the build status with: dkms status Install it with: dkms install -m 3w-sas -v 2.6.32 -k 2.6.32-24-server Works happy like that, but not at all from the other directions here, or on the lsi website. Hrummph. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
Sorry, those first commented parts of the Makefile above didn't get formatted pretty by this form, everything up to BUILD_KERNEL should be commented out, the line breaks make it look like they're not. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
#3, I get an unlimited number of error messages trying to do this telling me that I'm missing linux kernel header files. Note that this is after I've installed all relevent linux-header* deb packages using apt-get. So, it doesn't work, I can't use dkms to get the drivers to work. Yes, this means that I can no longer boot my linux server (can't build the binaries, I'm not running red hat, lsi only provides 2.6.32-38 and earlier, I'm running 2.6.32-40). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
To clarify, where others have reported that the (kernel headers) are missing a file present in prior kernels, namely /lib/modules/2.6.32-34-server/build/include/linux/bounds.h, which is required to build 3w-sas.ko correctly. My build errors out with this missing file, but copying it from a previous kernel is not enough. The build then continues past the missing bound.h file and simply reports another something.h missing file, and if I keep replacing these files I ultimately have to install the header files for an unlimited number of packages. Purging and reinstalling the lnux headers has no effect. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
The instructions from #3 still work for me with 2.6.32-34-server, I just upgraded a server with 3w-sas and dkms yesterday. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
** Tags added: lucid needs-upstream-testing ** Tags removed: needs-upstream-testing -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
Any progress? Installing 10.04 LTS server still does not work out of the box. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
I've successfully made Ubuntu boot on this hardware with kernel version 2.6.32-33-server Note: kernel version identifier is whatever the folder name is in /lib/modules which corresponds to your target kernel. In my case this was 2.6.32-33-server. The issue with the dkms driver install path might be due to dkms improperly updating /lib/modules/kernel version identifier/modules.dep.bin. Updating this file and remaking the initrd.img allowed me to boot off my 3ware 9750 card. From start to finish here's what I did install new kernel and headers make 3w-sas module as described by rhardy on 08-19-2010 (above) For revisions after 2.6.32-25 dkms will load the kernel driver into updates/dkms disregarding any dkms.conf specification for using kernel/drivers/scsi for 3w-sas drivers, as was noted by rhardy on 10-24-2010. This appears to be due to be an intentional change based on the way ubuntu is supposed to handle these kinds of drivers. I can't find the link right now but that's essentially what I picked up from a dkms development related thread I came across. There are a number of manual interventions available at this point to circumvent this issue, the most straightforward involves leaving 3w-sas.ko where dkms installs it in updates/dkms, while rebuilding modules.dep.bin so that mkinitramfs will grab the 3w-sas.ko file from its default location and include it in the initrd.img file. make sure updates/dkms/3w-sas.ko: is in listed in /lib/modules/kernel version identifier/modules.dep. dkms should automatically have included it. To rebuild modules.dep.bin use depmod kernel version identifier The following should list your 3w-sas.ko driver if you've done everything correctly so far strings /lib/modules/kernel version identifier/modules.dep.bin | grep 3w back up old initrd.img, make new one, and install it: cp /boot/initrd.img-kernel version identifier /boot/initrd.img-kernel version identifier_bak mkinitramfs -o /boot/initrd.img-kernel version identifier This method worked for me using kernel 2.6.32-33-server. 2.6.32-34-server is missing a file present in prior revisions, namely /lib/modules/2.6.32-34-server/build/include/linux/bounds.h, which is required to build 3w-sas.ko correctly. It may work to simply copy bounds.h from the 2.6.32-33 headers to that location and try building against that for future revisions. For me doing so resulting in an error free 3w-sas build, and my system booted OK, but I reverted back to 2.6.32-33 rather than risk any potential stability issues with this hack. This is a suitable method for upgrading from one kernel revision to the next. If you don't have a working operating system when installing these drivers (for instance you reboot after a system update you didn't notice and now don't have the drivers to get back into a system that's running a new kernel) you will need to compile these drivers against the appropriate kernel headers and build an initrd file using a live CD. www.sysresccd.org has a gentoo based live cd (and live USB version) with a graphical interface (startx for KDE desktop) that includes 3w-sas drivers by default and can be used for this purpose. Once booted you can get a chroot environment in your disk array in order to download kernel headers, 3w-sas drivers, build the drivers and run depmod/mkinitramfs successfully. mount /dev/ubuntu root device mntpt mount -t proc none mntpt/proc mount --rbind /dev mntpt/dev chroot mntpt /bin/bash The one thing to watch out for is any query for the current kernel version (uname -a), since this information comes out of /proc that's tied to the current running kernel (i.e. the Live CD's kernel). For instance, 3w-sas's Makefile has a `uname -a`/sources call in it. Since uname -a will return the name of the current active kernel you may need to modify this Makefile and substitute kernel version identifier/build for `uname -a`/sources before building your drivers. I don't know if this will be an issue, since I haven't tried it, but it's something to watch out for. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
During installation immediately after network setup I switched to a console via Alt+F2 and downloaded the 3w-sas.ko-file from another server where I extracted the .ko-file from the corresponding linux-kernel-image .deb-file. Afterwards, the installation finishes flawlessly. But after reboot, I only see a GRUB rescue prompt. Is there anything I can do about it? Has anyone really been successful at making Ubuntu boot on this hardware? Or is CentOS the only viable option at the moment? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
Yes, it seems that the drives is part of the base modules, but it just not on the installer cd. The bug is with the installer kernel+images. The 3w-sas driver *is* in 2.6.38-8-server package. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
Ditto on Natty. New system with LSI-9750-8i card, drives not seen, driver not presented as option. CentOS 5.6 sees everything fine. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
Still a problem in Natty. I can't install on my system with LSI-9750-8i. Install fails at drive detection. 3w-sas not included in list of drivers to try. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
** Changed in: linux (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/607838 Title: 3w-sas driver -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
Note: for dkms to work reliably you must do this: echo 3w-sas /etc/initramfs-tools/modules I'm not sure what happened but starting with 2.6.32-25-server dkms now refuses to install the 3w-sas.ko module anywhere except /lib/modules/2.6.32-*-server/updates/dkms/3w-sas.ko, despite my dkms.conf explicitedly telling it to put the module in /lib/modules/2.6.32-*server/kernel/drivers/scsi/3w-sas.ko. If it doesn't put it in the latter update-initramfs ignores it and that system fails to boot the next reboot into a new initramfs... VERY annoying when your recovery disks don't have the raid driver... If you update /etc /initramfs-tools/modules as above it see the file in /lib/modules/2.6.32-*-server/update/dkms/. This issue is a huge pain in the behind. I really which Ubuntu would include the stable 3w-sas driver in it's kernels. I would be happy to upgrade to Maverick and its kernels to get built in support, but for some inexplicable reason the driver is not built standard there either. -- 3w-sas driver https://bugs.launchpad.net/bugs/607838 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
There are compiled driver modules for the 2.6.32-24 server kernel on the 3ware support pages: http://kb.lsi.com/KnowledgebaseArticle16055.aspx As Rusty said, it would be great to have support for the 3ware 9750 controller, so that we are able to install Ubuntu 10.04 Server on our new servers that are equipped with that new 3ware controller. Thanks! -- 3w-sas driver https://bugs.launchpad.net/bugs/607838 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
The simplest way of dealing with this right now, and it is far from painless, is to grab the 3w-sas-2.6.32.tgz src driver from 3ware/lsi and use dkms to manage it. It took me a while to find this. The rough process for Lucid goes: apt-get install dkms mkdir -p /tmp/foo; cd /tmp/foo; tar xzvpf 3w-sas-2.6.32; mv drivers/* /usr/src/3w-sas-2.6.32/ Then put the attached dkms.conf in /usr/src/3w-sas-2.6.32/dkms.conf N.B. Obviously if you are building for something other than 2.6.32-24-server you update the -k arguments below appropriately. You then add the source with: dkms add -m 3w-sas -v 2.6.32 You can then build it with: dkms build -m 3w-sas -v 2.6.32 -k 2.6.32-24-server Check the build status with: dkms status Install it with: dkms install -m 3w-sas -v 2.6.32 -k 2.6.32-24-server -- 3w-sas driver https://bugs.launchpad.net/bugs/607838 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
Here is the dkms.conf referenced in my previous comment. ** Attachment added: dkms.conf https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607838/+attachment/1501492/+files/dkms.conf -- 3w-sas driver https://bugs.launchpad.net/bugs/607838 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
Hi Rusty, Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/daily/current/ . If the issue remains, please run the following command from a Terminal (Applications-Accessories-Terminal). It will automatically gather and attach updated debug information to this report. apport-collect -p linux 607838 Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results. Thanks in advance. [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.] ** Tags added: needs-kernel-logs ** Tags added: needs-upstream-testing ** Tags added: kj-triage ** Changed in: linux (Ubuntu) Status: New = Incomplete -- 3w-sas driver https://bugs.launchpad.net/bugs/607838 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
** Changed in: linux (Ubuntu) Status: Incomplete = New ** Tags removed: needs-kernel-logs needs-upstream-testing -- 3w-sas driver https://bugs.launchpad.net/bugs/607838 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
The driver is present in the Maverick kernels because they are =2.6.33 and the driver made it into Linus's kernel here. http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=f619106bdd9d197c947f07108af57946f19a7f7e Since this is an LTS release, it would be nice to have support for 3ware products. I am available to test with a 3ware 9750-8i. -- 3w-sas driver https://bugs.launchpad.net/bugs/607838 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 607838] Re: 3w-sas driver
** Summary changed: - 3w-sas + 3w-sas driver -- 3w-sas driver https://bugs.launchpad.net/bugs/607838 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs