linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] 2.4.5 & Adaptec 7890 U2W Controller solved, LVM 0.9.1 b7 FAILS.
       [not found]       ` <3B1CE383.DCFED687@niehs.nih.gov>
@ 2001-06-06 16:18         ` Bas
  2001-06-06 18:30           ` [linux-lvm] " Seth Mos
  0 siblings, 1 reply; 4+ messages in thread
From: Bas @ 2001-06-06 16:18 UTC (permalink / raw)
  To: linux-xfs; +Cc: linux-lvm

You're right. Today I downloaded the default kernel coming from
ftp.kernel.org. Patched it using 06042001-xfs-patch. It compiled and it
runs. But when I patch this kernel to 0.9.1 beta 7, (CVS or standard patch
makes no difference) it fails to compile.

Now this:

drivers/md/mddev.o: In function `__update_hardblocksize':
drivers/md/mddev.o(.text+0x22d6): undefined reference to `get_hardblocksize'
drivers/md/mddev.o(.text+0x2312): undefined reference to `get_hardblocksize'
make[1]: *** [kallsyms] Error 1
make: *** [vmlinux] Error 2

How can I fix this.

Thanks again,
Bas.



----- Original Message -----
From: "Joe Krahn" <krahn@niehs.nih.gov>
To: "Timothy Shimmin" <tes@boing.melbourne.sgi.com>
Cc: "Bas" <list@showme.wox.org>; <linux-xfs@oss.sgi.com>
Sent: Tuesday, June 05, 2001 3:49 PM
Subject: Re: 2.4.5 & Adaptec 7890 U2W Controller.


> Timothy Shimmin wrote:
> >
> > On Mon, Jun 04, 2001 at 10:02:56PM +0200, Bas wrote:
> > >
> > > From: "J Hayward" <jhayward@micron.net>
> > > Subject: Re: 2.4.5 & Adaptec 7890 U2W Controller.
> > >
> > > > > [ ]   Build Adapter Firmware with Kernel Build (NEW)
> > > > >
> > > > > It is the last option under Adaptec AIC7xxx support.  The firmware
> > > > > included in the 2.4.5 release is out of sync with the kernel
driver.
> > > > >
> > > > > I have not done this myself, since my current XFS machine does not
have
> > > a
> > > > > SCSI controller, but see the below email for more info.
> > > >
> > > > Has anyone had any success using this option? Didn't work for me.
Problem
> > > > isn't isolated to just the 7890 it seems, I get the same error on a
> > > Adaptec
> > > > 2930CU. It still produced:
> > > >
> > > > >In interrupt handler - not syncing
> > > >
> > > > I also tried using the old aic7xxx driver, which did load the
module.
> > > However
> > > > it produced a kernel oops immediately after. I don't remember the
exact
> > > point
> > > > in the boot sequence, I believe it was at "Trying to unmount old
root".
> > >
> > > Tried the firmware option too, but didn't work for me.
> > >
> >
> > Tried the firmware option too, and it did work for me.
> >
> > scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.1.13
> >         <Adaptec 2940 Ultra SCSI adapter>
> >         aic7880: Ultra Wide Channel A, SCSI Id=7, 16/255 SCBs
> >
> > --Tim
>
>
> The problem is that linux-2.4.5-xfs-05312001.patch.bz2
> includes the files aic7xxx_seq.h and aic7xxx_reg.h which
> are out of date, but which get a newer timestamp. Also
> the binary aicasm/aicasm is included in the patch, but
> patch creates it non-executable. Try touching aic7xxx.seq
> and removing aicasm/aicasm, then rebuilding the
> aic7xxx module with the build-firmware option.
>
> This is actually a problem with "make clean" and
> "make mrproper" not knowing about some of the aic7xxx
> files.
>
> Joe Krahn
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [linux-lvm] Re: 2.4.5 & Adaptec 7890 U2W Controller solved, LVM 0.9.1 b7 FAILS.
  2001-06-06 16:18         ` [linux-lvm] 2.4.5 & Adaptec 7890 U2W Controller solved, LVM 0.9.1 b7 FAILS Bas
@ 2001-06-06 18:30           ` Seth Mos
  2001-06-07  4:44             ` [linux-lvm] Re: 2.4.5 & Adaptec 7890 U2W Controller solved, LVM 0.9.1 b7FAILS Bas
  0 siblings, 1 reply; 4+ messages in thread
From: Seth Mos @ 2001-06-06 18:30 UTC (permalink / raw)
  To: Bas, linux-xfs; +Cc: linux-lvm

At 18:18 6-6-2001 +0200, Bas wrote:
>You're right. Today I downloaded the default kernel coming from
>ftp.kernel.org. Patched it using 06042001-xfs-patch. It compiled and it
>runs. But when I patch this kernel to 0.9.1 beta 7, (CVS or standard patch
>makes no difference) it fails to compile.
>
>Now this:
>
>drivers/md/mddev.o: In function `__update_hardblocksize':
>drivers/md/mddev.o(.text+0x22d6): undefined reference to `get_hardblocksize'
>drivers/md/mddev.o(.text+0x2312): undefined reference to `get_hardblocksize'
>make[1]: *** [kallsyms] Error 1
>make: *** [vmlinux] Error 2
>
>How can I fix this.
>
>Thanks again,
>Bas.

Patch was posted on the list a few days ago

Here you go

--- linux-2.4.4/drivers/md/lvm.c.orig   Sun May  6 14:54:39 2001
+++ linux-2.4.4/drivers/md/lvm.c        Sun May  6 14:55:06 2001
@@ -1791,7 +1791,7 @@
         int max_hardblocksize = 0, hardblocksize;

         for (le = 0; le < lv->lv_allocated_le; le++) {
-               hardblocksize = get_hardblocksize(lv->lv_current_pe[le].dev);
+               hardblocksize = get_hardsect_size(lv->lv_current_pe[le].dev);
                 if (hardblocksize == 0)
                         hardblocksize = 512;
                 if (hardblocksize > max_hardblocksize)
@@ -1801,7 +1801,7 @@
         if (lv->lv_access & LV_SNAPSHOT) {
                 for (e = 0; e < lv->lv_remap_end; e++) {
                         hardblocksize =
-                               get_hardblocksize(
+                               get_hardsect_size(
                                         lv->lv_block_exception[e].rdev_new);
                         if (hardblocksize == 0)
                                 hardblocksize = 512;

Hope it's complete and ok
Otherwise you can find it the archives under "2.4.5 compiles almost"

Good Luck

--
Seth
Every program has two purposes one for which
it was written and another for which it wasn't
I use the last kind.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Re: 2.4.5 & Adaptec 7890 U2W Controller solved, LVM 0.9.1 b7FAILS.
  2001-06-07  4:44             ` [linux-lvm] Re: 2.4.5 & Adaptec 7890 U2W Controller solved, LVM 0.9.1 b7FAILS Bas
@ 2001-06-06 20:47               ` Jesse Stockall
  0 siblings, 0 replies; 4+ messages in thread
From: Jesse Stockall @ 2001-06-06 20:47 UTC (permalink / raw)
  To: linux-lvm

On 06 Jun 2001 21:44:34 -0700, Bas wrote:
> 
> ----- Original Message -----
> From: Seth Mos <knuffie@xs4all.nl>
> To: Bas <list@showme.wox.org>; <linux-xfs@oss.sgi.com>
> Cc: <linux-lvm@sistina.com>
> Sent: Wednesday, June 06, 2001 11:30 AM
> Subject: [linux-lvm] Re: 2.4.5 & Adaptec 7890 U2W Controller solved, LVM
> 0.9.1 b7FAILS.
> 
> 
> > At 18:18 6-6-2001 +0200, Bas wrote:
> > >You're right. Today I downloaded the default kernel coming from
> > >ftp.kernel.org. Patched it using 06042001-xfs-patch. It compiled and it
> > >runs. But when I patch this kernel to 0.9.1 beta 7, (CVS or standard
> patch
> > >makes no difference) it fails to compile.
> > >
> > >Now this:
> > >
> > >drivers/md/mddev.o: In function `__update_hardblocksize':
> > >drivers/md/mddev.o(.text+0x22d6): undefined reference to
> `get_hardblocksize'
> > >drivers/md/mddev.o(.text+0x2312): undefined reference to
> `get_hardblocksize'
> > >make[1]: *** [kallsyms] Error 1
> > >make: *** [vmlinux] Error 2
> > >
> > >How can I fix this.
> > >
> > >Thanks again,
> > >Bas.
> >
> > Patch was posted on the list a few days ago
> >
> > Here you go
> >
> > --- linux-2.4.4/drivers/md/lvm.c.orig   Sun May  6 14:54:39 2001
> > +++ linux-2.4.4/drivers/md/lvm.c        Sun May  6 14:55:06 2001
> > @@ -1791,7 +1791,7 @@
> >          int max_hardblocksize = 0, hardblocksize;
> >
> >          for (le = 0; le < lv->lv_allocated_le; le++) {
> > -               hardblocksize =
> get_hardblocksize(lv->lv_current_pe[le].dev);
> > +               hardblocksize =
> get_hardsect_size(lv->lv_current_pe[le].dev);
> >                  if (hardblocksize == 0)
> >                          hardblocksize = 512;
> >                  if (hardblocksize > max_hardblocksize)
> > @@ -1801,7 +1801,7 @@
> >          if (lv->lv_access & LV_SNAPSHOT) {
> >                  for (e = 0; e < lv->lv_remap_end; e++) {
> >                          hardblocksize =
> > -                               get_hardblocksize(
> > +                               get_hardsect_size(
> >
> lv->lv_block_exception[e].rdev_new);
> >                          if (hardblocksize == 0)
> >                                  hardblocksize = 512;
> >
> > Hope it's complete and ok
> > Otherwise you can find it the archives under "2.4.5 compiles almost"
> >
> 
> Thanks, but nothing there ... (Searched for 2.4.5, almost and browsed
> throught the list (may & june)). Can't apply this patch by the way. Thanks,
> Bas.
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

Replace `get_hardblocksize` with `get_hardsect_size` there should be 2
instances of it in lvm.c 

P.S. search for "hardsect" & you will see that this has been answered
before.

-- 
 Jesse Stockall                 |       Tel: 1+ 613.599.2441 ext. 243
 CRYPTOCard Corporation         |       Fax: 1+ 613.599.2442            
 Suite 304, 300 March Rd.       |       email: jesse@cryptocard.com
 Ottawa, ON, Canada K2K 2E2     |       web: www.cryptocard.com 
---------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] Re: 2.4.5 & Adaptec 7890 U2W Controller solved, LVM 0.9.1 b7FAILS.
  2001-06-06 18:30           ` [linux-lvm] " Seth Mos
@ 2001-06-07  4:44             ` Bas
  2001-06-06 20:47               ` Jesse Stockall
  0 siblings, 1 reply; 4+ messages in thread
From: Bas @ 2001-06-07  4:44 UTC (permalink / raw)
  To: linux-lvm

----- Original Message -----
From: Seth Mos <knuffie@xs4all.nl>
To: Bas <list@showme.wox.org>; <linux-xfs@oss.sgi.com>
Cc: <linux-lvm@sistina.com>
Sent: Wednesday, June 06, 2001 11:30 AM
Subject: [linux-lvm] Re: 2.4.5 & Adaptec 7890 U2W Controller solved, LVM
0.9.1 b7FAILS.


> At 18:18 6-6-2001 +0200, Bas wrote:
> >You're right. Today I downloaded the default kernel coming from
> >ftp.kernel.org. Patched it using 06042001-xfs-patch. It compiled and it
> >runs. But when I patch this kernel to 0.9.1 beta 7, (CVS or standard
patch
> >makes no difference) it fails to compile.
> >
> >Now this:
> >
> >drivers/md/mddev.o: In function `__update_hardblocksize':
> >drivers/md/mddev.o(.text+0x22d6): undefined reference to
`get_hardblocksize'
> >drivers/md/mddev.o(.text+0x2312): undefined reference to
`get_hardblocksize'
> >make[1]: *** [kallsyms] Error 1
> >make: *** [vmlinux] Error 2
> >
> >How can I fix this.
> >
> >Thanks again,
> >Bas.
>
> Patch was posted on the list a few days ago
>
> Here you go
>
> --- linux-2.4.4/drivers/md/lvm.c.orig   Sun May  6 14:54:39 2001
> +++ linux-2.4.4/drivers/md/lvm.c        Sun May  6 14:55:06 2001
> @@ -1791,7 +1791,7 @@
>          int max_hardblocksize = 0, hardblocksize;
>
>          for (le = 0; le < lv->lv_allocated_le; le++) {
> -               hardblocksize =
get_hardblocksize(lv->lv_current_pe[le].dev);
> +               hardblocksize =
get_hardsect_size(lv->lv_current_pe[le].dev);
>                  if (hardblocksize == 0)
>                          hardblocksize = 512;
>                  if (hardblocksize > max_hardblocksize)
> @@ -1801,7 +1801,7 @@
>          if (lv->lv_access & LV_SNAPSHOT) {
>                  for (e = 0; e < lv->lv_remap_end; e++) {
>                          hardblocksize =
> -                               get_hardblocksize(
> +                               get_hardsect_size(
>
lv->lv_block_exception[e].rdev_new);
>                          if (hardblocksize == 0)
>                                  hardblocksize = 512;
>
> Hope it's complete and ok
> Otherwise you can find it the archives under "2.4.5 compiles almost"
>

Thanks, but nothing there ... (Searched for 2.4.5, almost and browsed
throught the list (may & june)). Can't apply this patch by the way. Thanks,
Bas.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-06-07  4:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Pine.BSF.4.33.0106041350560.1884-100000@rogue.tripp.org>
     [not found] ` <01060413285600.09944@garfield.linux.localdomain>
     [not found]   ` <011501c0ed31$58a54360$0f01a8c0@ws1>
     [not found]     ` <20010605102551.Z97441@boing.melbourne.sgi.com>
     [not found]       ` <3B1CE383.DCFED687@niehs.nih.gov>
2001-06-06 16:18         ` [linux-lvm] 2.4.5 & Adaptec 7890 U2W Controller solved, LVM 0.9.1 b7 FAILS Bas
2001-06-06 18:30           ` [linux-lvm] " Seth Mos
2001-06-07  4:44             ` [linux-lvm] Re: 2.4.5 & Adaptec 7890 U2W Controller solved, LVM 0.9.1 b7FAILS Bas
2001-06-06 20:47               ` Jesse Stockall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).