Bug#440161: Adding support for i2o RAID adapters
I noticed the following question from Otavio Salvador in the discussion for bug #440161: > I still fail to understand how i2o_block will work for your device if > it's not registered for it on pcialias file ... that makes me worry > about it. I think the answer to the question is that the i2o_core module also supports the "0x000e" class. For example, the modules.pcimap file for our 2.6.18-5-k7 installation includes the following line: i2o_core 0x 0x 0x 0x 0x000e 0x0000 0x0 This matches the "I2O" class of the Adaptec 2100S card: # lspci -nn [...] 00:0a.1 I2O [0e00]: Adaptec (formerly DPT) SmartRAID V Controller [1044:a501] (rev 02) Earlier in the thread there was a mention that the following two devices were listed in modules.pcimap as being supported by i2o_core: > 1044:a511 dpt_i2o i2o_core > 8086:1962 i2o_core I believe these two device ids are listed specifically in order support two particular types of cards that don't match the 0x0e00 class: http://i2o.shadowconnect.com/faq.php#promise http://i2o.shadowconnect.com/faq.php#zerochannel [More specifically, for the Promise card the line from modules.pcimap is: # pci module vendor device subvendor subdevice class class_mask driver_data i2o_core 0x8086 0x1962 0x105a 0x 0x 0x 0x0 , and /usr/share/misc/pci.ids lists that vendor/device/subvendor as as: --- 8086 Intel Corp. [...] 1962 80960RM [i960RM Microprocessor] 105a SuperTrak SX6000 I2O CPU --- Similarly, the Zero Channel card reports itself as class "0104", according to "lspci -n" output included at the bottom of https://www.redhat.com/archives/rhl-beta-list/2004-October/msg01321.html , and so the driver needs to support that specific card by device id. ] Hope this helps. Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#440161: Adding support for i2o RAID adapters
Morten Werner Forsbring <[EMAIL PROTECTED]> writes: > I checked that dpt_i2o was loaded. I guess dpt_i2o should be added to > /etc/modprobe.d/blacklist on the installed system, or? Yes, it looks to be the right solution. I still fail to understand how i2o_block will work for your device if it's not registered for it on pcialias file ... that makes me worry about it. -- O T A V I OS A L V A D O R - E-mail: [EMAIL PROTECTED] UIN: 5906116 GNU/Linux User: 239058 GPG ID: 49A5F855 Home Page: http://otavio.ossystems.com.br - "Microsoft sells you Windows ... Linux gives you the whole house." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#440161: Adding support for i2o RAID adapters
Jérémy Bobbio <[EMAIL PROTECTED]> writes: > Thanks for the tests and logs. I made a mistake in a sed expression > that is both present in lilo-installer and grub-installer. *sigh* > > I have update the test image at: > http://people.debian.org/~lunar/i2o_support-i386-mini.iso > > Attached is an updated version of the previous patch. Thanks! I tested your image with GRUB yesterday, and the installation works out just fine. When booting it seems like dpt_i2o is loaded before i2o_{block,core}, which gives this error message: iop0: device already claimed iop0: DMA / IO allocation for I2O controller failed ALERT! /dev/i2o/hda1 does not exist. Dropping to a shell! Check your root= boot argument (cat /proc/cmdline) Check for missing modules (cat /proc/modules), or device files (ls /dev/) Busybox ... I checked that dpt_i2o was loaded. I guess dpt_i2o should be added to /etc/modprobe.d/blacklist on the installed system, or? - Werner
Bug#440161: Adding support for i2o RAID adapters
On Wed, Oct 03, 2007 at 12:40:11PM +0200, Morten Werner Forsbring wrote: > Morten Werner Forsbring <[EMAIL PROTECTED]> writes: > > > The problem is when trying to install grub or lilo. First > > syslog-entries from grub-installer: > > I added set -x as requested by lunar, and the results is out [1]. I > aslo tried to patch lilo-installer.postinst, which also is in the same > webfolder [1]. Thanks for the tests and logs. I made a mistake in a sed expression that is both present in lilo-installer and grub-installer. *sigh* I have update the test image at: http://people.debian.org/~lunar/i2o_support-i386-mini.iso Attached is an updated version of the previous patch. Cheers, -- Jérémy Bobbio.''`. [EMAIL PROTECTED]: :Ⓐ : # apt-get install anarchism `. `'` `- diff --git a/packages/arch/i386/grub-installer/debian/changelog b/packages/arch/i386/grub-installer/debian/changelog index ad98647..db171d9 100644 --- a/packages/arch/i386/grub-installer/debian/changelog +++ b/packages/arch/i386/grub-installer/debian/changelog @@ -1,3 +1,10 @@ +grub-installer (1.27) UNRELEASED; urgency=low + + [ Jérémy Bobbio ] + * Add support for i2o RAID adapters. + + -- Jérémy Bobbio <[EMAIL PROTECTED]> Wed, 03 Oct 2007 00:19:29 +0200 + grub-installer (1.26) unstable; urgency=low [ Joey Hess ] diff --git a/packages/arch/i386/grub-installer/grub-installer b/packages/arch/i386/grub-installer/grub-installer index 16c9183..b45004c 100755 --- a/packages/arch/i386/grub-installer/grub-installer +++ b/packages/arch/i386/grub-installer/grub-installer @@ -247,7 +247,7 @@ esac rootfs_nodevfs=$(mapdevfs $rootfs) bootfs_nodevfs=$(mapdevfs $bootfs) prefix=$(echo "$bootfs" | \ - sed 's:\(/dev/\(cciss\|ida\)/c[0-9]d[0-9]\|/dev/[a-z]\+\).*:\1:') + sed 's:\(/dev/\(cciss\|ida\)/c[0-9]d[0-9]\|/dev/[a-z]\+\|/dev/i2o/hd[a-z]\).*:\1:') case $prefix in /dev/md) @@ -256,7 +256,7 @@ case $prefix in /dev/mapper) disc_offered_devfs="$bootfs" ;; -/dev/[hs]d[a-z]|/dev/cciss/c[0-9]d[0-9]|/dev/ida/c[0-9]d[0-9]) + /dev/[hs]d[a-z]|/dev/cciss/c[0-9]d[0-9]|/dev/ida/c[0-9]d[0-9]|/dev/i2o/hd[a-z]) disc_offered_devfs="$prefix" ;; *) diff --git a/packages/arch/i386/lilo-installer/debian/changelog b/packages/arch/i386/lilo-installer/debian/changelog index 9a21983..e5a6852 100644 --- a/packages/arch/i386/lilo-installer/debian/changelog +++ b/packages/arch/i386/lilo-installer/debian/changelog @@ -2,6 +2,7 @@ lilo-installer (1.25) UNRELEASED; urgency=low [ Jérémy Bobbio ] * Add more englishness to lilo-installer/manual_bootdev. + * Add support for i2o RAID adapters. -- Jérémy Bobbio <[EMAIL PROTECTED]> Mon, 01 Oct 2007 12:12:28 +0200 diff --git a/packages/arch/i386/lilo-installer/debian/postinst b/packages/arch/i386/lilo-installer/debian/postinst index e9ba935..ceb692a 100755 --- a/packages/arch/i386/lilo-installer/debian/postinst +++ b/packages/arch/i386/lilo-installer/debian/postinst @@ -69,7 +69,7 @@ fi bootfs=$(mapdevfs $bootfs_devfs) prefix=$(echo "$bootfs_devfs" | \ - sed 's/\(\/dev\/\(cciss\|ida\)\/c[0-9]d[0-9]\|\/dev\/[a-z]\+\).*/\1/') + sed 's/\(\/dev\/\(cciss\|ida\)\/c[0-9]d[0-9]\|\/dev\/[a-z]\+\|/dev/i2o/hd[a-z]\).*/\1/') case $prefix in /dev/md) diff --git a/packages/debian-installer-utils/debian/changelog b/packages/debian-installer-utils/debian/changelog index d5e49aa..c8dfe94 100644 --- a/packages/debian-installer-utils/debian/changelog +++ b/packages/debian-installer-utils/debian/changelog @@ -1,8 +1,12 @@ debian-installer-utils (1.50) UNRELEASED; urgency=low + [ Frans Pop ] * register-module: remove support for obsolete modutils and for no longer used type chandev. + [ Jérémy Bobbio ] + * Add suppor for i2o RAID adapters in list-devices. + -- Frans Pop <[EMAIL PROTECTED]> Sun, 23 Sep 2007 16:38:50 +0200 debian-installer-utils (1.49) unstable; urgency=low diff --git a/packages/debian-installer-utils/list-devices b/packages/debian-installer-utils/list-devices index 1d0515c..7772396 100755 --- a/packages/debian-installer-utils/list-devices +++ b/packages/debian-installer-utils/list-devices @@ -72,7 +72,7 @@ for x in $syspaths; do fi if ! $match && [ "$TYPE" = disk ]; then case $devpath in - /block/cciss\!*|/block/ida\!*|/block/rd\!*) + /block/cciss\!*|/block/ida\!*|/block/rd\!*|/block/i2o\!*) match=: ;; esac diff --git a/packages/partman/partman-base/debian/changelog b/packages/partman/partman-base/debian/changelog index 9854522..753a4b6 100644 --- a/packages/partman/partman-base/debian/changelog +++ b/packages/partman/partman-base/debian/changelog @@ -1,3 +1,10 @@ +partman-base (111) UNRELEASED; urgency=low + + [ Jérémy Bobbio ] + * Add support for i2o RAID adapters t
Bug#440161: Adding support for i2o RAID adapters
Morten Werner Forsbring <[EMAIL PROTECTED]> writes: > The problem is when trying to install grub or lilo. First > syslog-entries from grub-installer: I added set -x as requested by lunar, and the results is out [1]. I aslo tried to patch lilo-installer.postinst, which also is in the same webfolder [1]. - Werner [1] http://folk.uio.no/werner/i2o-mini.iso-install.2/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#440161: Adding support for i2o RAID adapters
On Wed, Oct 03, 2007 at 01:30:24AM +0200, Jérémy Bobbio wrote: > diff --git a/packages/arch/i386/grub-installer/grub-installer > b/packages/arch/i386/grub-installer/grub-installer > index 16c9183..b45004c 100755 > --- a/packages/arch/i386/grub-installer/grub-installer > +++ b/packages/arch/i386/grub-installer/grub-installer > @@ -247,7 +247,7 @@ esac > rootfs_nodevfs=$(mapdevfs $rootfs) > bootfs_nodevfs=$(mapdevfs $bootfs) > prefix=$(echo "$bootfs" | \ > - sed 's:\(/dev/\(cciss\|ida\)/c[0-9]d[0-9]\|/dev/[a-z]\+\).*:\1:') > + sed > 's:\(/dev/\(cciss\|ida\)/c[0-9]d[0-9]\|/dev/[a-z]\+\|/dev/i2o/hd[a-z]\).*:\1:') This one is wrong and should probably be: sed 's:\(/dev/\(cciss\|ida\)/c[0-9]d[0-9]\|/dev/[a-z]\+\|\/dev\/i2o\/hd[a-z]\).*:\1:') Cheers, -- Jérémy Bobbio signature.asc Description: Digital signature
Bug#440161: Adding support for i2o RAID adapters
Jérémy Bobbio <[EMAIL PROTECTED]> writes: >> Log: >> Replace dpt_i2o with i2o_block to avoid diverting from installed >> system regarting to RAID with Adaptec 2100S. Closes: #440161 >> >> Modified: >>trunk/packages/kernel/kernel-wedge/debian/changelog >>trunk/packages/kernel/kernel-wedge/modules/scsi-extra-modules > > As discussed on IRC, this is not enough to support RAID adapters using > i2o_block. Attached is a first attempt of adding the other bits. > > A test image is also available: > http://people.debian.org/~lunar/i2o_support-i386-mini.iso During installation everything seems to work great. The i2o_block and i2o_core modules are loaded, and the partitioner finds the /dev/i2o/hda-device and uses it. Even (/target)/etc/fstab looks fine using the /dev/i2o/hda-devicepaths. The problem is when trying to install grub or lilo. First syslog-entries from grub-installer: Oct 3 08:28:04 main-menu[986]: INFO: Menu item 'grub-installer' selected Oct 3 08:28:04 main-menu[986]: INFO: Falling back to the package description for os-prober-udeb Oct 3 08:28:04 main-menu[986]: INFO: Falling back to the package description for os-prober-udeb Oct 3 08:28:05 grub-installer: info: architecture: i386/generic Oct 3 08:28:05 main-menu[986]: WARNING **: Configuring 'grub-installer' failed with error code 1 Oct 3 08:28:05 main-menu[986]: WARNING **: Menu item 'grub-installer' failed. Oct 3 08:32:10 grub-installer: info: architecture: i386/generic Oct 3 08:32:19 grub-installer: info: architecture: i386/generic Oct 3 09:01:16 grub-installer: info: architecture: i386/generic Oct 3 09:01:20 main-menu[986]: INFO: Modifying debconf priority limit from 'high' to 'medium' Oct 3 09:01:20 debconf: Setting debconf/priority to medium So trying ilo-installer: Oct 3 09:01:37 main-menu[986]: INFO: Falling back to the package description for auto-install Oct 3 09:01:37 main-menu[986]: INFO: Falling back to the package description for ai-choosers Oct 3 09:01:37 main-menu[986]: INFO: Menu item 'lilo-installer' selected Oct 3 09:01:38 main-menu[986]: (process:31822): sed: Oct 3 09:01:38 main-menu[986]: (process:31822): bad option in substitution expression Oct 3 09:01:38 main-menu[986]: (process:31822): Oct 3 09:01:38 main-menu[986]: WARNING **: Configuring 'lilo-installer' failed with error code 1 Oct 3 09:01:38 main-menu[986]: WARNING **: Menu item 'lilo-installer' failed. Oct 3 09:07:15 main-menu[986]: INFO: Modifying debconf priority limit from 'medium' to 'low' Oct 3 09:07:15 debconf: Setting debconf/priority to low I've also made the logs [1] from the installation available. - Werner [1] http://folk.uio.no/werner/i2o-mini.iso-install/
Bug#440161: Adding support for i2o RAID adapters
On Tue, Oct 02, 2007 at 08:11:10PM +, Otavio Salvador wrote: > New Revision: 49680 > > Log: > Replace dpt_i2o with i2o_block to avoid diverting from installed > system regarting to RAID with Adaptec 2100S. Closes: #440161 > > Modified: >trunk/packages/kernel/kernel-wedge/debian/changelog >trunk/packages/kernel/kernel-wedge/modules/scsi-extra-modules As discussed on IRC, this is not enough to support RAID adapters using i2o_block. Attached is a first attempt of adding the other bits. A test image is also available: http://people.debian.org/~lunar/i2o_support-i386-mini.iso Cheers, -- Jérémy Bobbio.''`. [EMAIL PROTECTED]: :Ⓐ : # apt-get install anarchism `. `'` `- diff --git a/packages/arch/i386/grub-installer/debian/changelog b/packages/arch/i386/grub-installer/debian/changelog index ad98647..db171d9 100644 --- a/packages/arch/i386/grub-installer/debian/changelog +++ b/packages/arch/i386/grub-installer/debian/changelog @@ -1,3 +1,10 @@ +grub-installer (1.27) UNRELEASED; urgency=low + + [ Jérémy Bobbio ] + * Add support for i2o RAID adapters. + + -- Jérémy Bobbio <[EMAIL PROTECTED]> Wed, 03 Oct 2007 00:19:29 +0200 + grub-installer (1.26) unstable; urgency=low [ Joey Hess ] diff --git a/packages/arch/i386/grub-installer/grub-installer b/packages/arch/i386/grub-installer/grub-installer index 16c9183..b45004c 100755 --- a/packages/arch/i386/grub-installer/grub-installer +++ b/packages/arch/i386/grub-installer/grub-installer @@ -247,7 +247,7 @@ esac rootfs_nodevfs=$(mapdevfs $rootfs) bootfs_nodevfs=$(mapdevfs $bootfs) prefix=$(echo "$bootfs" | \ - sed 's:\(/dev/\(cciss\|ida\)/c[0-9]d[0-9]\|/dev/[a-z]\+\).*:\1:') + sed 's:\(/dev/\(cciss\|ida\)/c[0-9]d[0-9]\|/dev/[a-z]\+\|/dev/i2o/hd[a-z]\).*:\1:') case $prefix in /dev/md) @@ -256,7 +256,7 @@ case $prefix in /dev/mapper) disc_offered_devfs="$bootfs" ;; -/dev/[hs]d[a-z]|/dev/cciss/c[0-9]d[0-9]|/dev/ida/c[0-9]d[0-9]) + /dev/[hs]d[a-z]|/dev/cciss/c[0-9]d[0-9]|/dev/ida/c[0-9]d[0-9]|/dev/i2o/hd[a-z]) disc_offered_devfs="$prefix" ;; *) diff --git a/packages/arch/i386/lilo-installer/debian/changelog b/packages/arch/i386/lilo-installer/debian/changelog index 9a21983..e5a6852 100644 --- a/packages/arch/i386/lilo-installer/debian/changelog +++ b/packages/arch/i386/lilo-installer/debian/changelog @@ -2,6 +2,7 @@ lilo-installer (1.25) UNRELEASED; urgency=low [ Jérémy Bobbio ] * Add more englishness to lilo-installer/manual_bootdev. + * Add support for i2o RAID adapters. -- Jérémy Bobbio <[EMAIL PROTECTED]> Mon, 01 Oct 2007 12:12:28 +0200 diff --git a/packages/arch/i386/lilo-installer/debian/postinst b/packages/arch/i386/lilo-installer/debian/postinst index e9ba935..ceb692a 100755 --- a/packages/arch/i386/lilo-installer/debian/postinst +++ b/packages/arch/i386/lilo-installer/debian/postinst @@ -69,7 +69,7 @@ fi bootfs=$(mapdevfs $bootfs_devfs) prefix=$(echo "$bootfs_devfs" | \ - sed 's/\(\/dev\/\(cciss\|ida\)\/c[0-9]d[0-9]\|\/dev\/[a-z]\+\).*/\1/') + sed 's/\(\/dev\/\(cciss\|ida\)\/c[0-9]d[0-9]\|\/dev\/[a-z]\+\|/dev/i2o/hd[a-z]\).*/\1/') case $prefix in /dev/md) diff --git a/packages/debian-installer-utils/debian/changelog b/packages/debian-installer-utils/debian/changelog index d5e49aa..c8dfe94 100644 --- a/packages/debian-installer-utils/debian/changelog +++ b/packages/debian-installer-utils/debian/changelog @@ -1,8 +1,12 @@ debian-installer-utils (1.50) UNRELEASED; urgency=low + [ Frans Pop ] * register-module: remove support for obsolete modutils and for no longer used type chandev. + [ Jérémy Bobbio ] + * Add suppor for i2o RAID adapters in list-devices. + -- Frans Pop <[EMAIL PROTECTED]> Sun, 23 Sep 2007 16:38:50 +0200 debian-installer-utils (1.49) unstable; urgency=low diff --git a/packages/debian-installer-utils/list-devices b/packages/debian-installer-utils/list-devices index 1d0515c..7772396 100755 --- a/packages/debian-installer-utils/list-devices +++ b/packages/debian-installer-utils/list-devices @@ -72,7 +72,7 @@ for x in $syspaths; do fi if ! $match && [ "$TYPE" = disk ]; then case $devpath in - /block/cciss\!*|/block/ida\!*|/block/rd\!*) + /block/cciss\!*|/block/ida\!*|/block/rd\!*|/block/i2o\!*) match=: ;; esac diff --git a/packages/partman/partman-base/debian/changelog b/packages/partman/partman-base/debian/changelog index 9854522..753a4b6 100644 --- a/packages/partman/partman-base/debian/changelog +++ b/packages/partman/partman-base/debian/changelog @@ -1,3 +1,10 @@ +partman-base (111) UNRELEASED; urgency=low + + [ Jérémy Bobbio ] + * Add support for i2o RAID adapters to the humandev function. + + -- Jérémy Bobbio <[EMAIL PROTECTED]> Wed, 03 Oct 2007