Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Debian v3r3 -  How do I find what is in the default kernel ?
@ 2005-01-23  1:36 John Beardmore
  2005-01-23  8:07 ` Moores family
  2005-01-24 20:43 ` Lamar Owen
  0 siblings, 2 replies; 23+ messages in thread
From: John Beardmore @ 2005-01-23  1:36 UTC (permalink / raw)


Having installed Debian v3r3 with the vmlinuz-2.2.20-generic kernel, I'm 
curious to know what it contains.

Of most interest is support for multiple CPUs and ATA interfaces and 
disks.

Is there a simple command line method to check how many CPUs are in 
operation ?  /proc/cpuinfo reports "cpus detected :  3", but is the 
number of CPUs detected, or is it the number actually able to run 
processes ?

I also want to install a cheap 200gig ATA drive, and added an iTE 
interface card and disk.  I assumed that the disk would then show up if 
I did 'fdisk /dev/hda', but it reported "Unable to open /dev/hda".  Is 
there any reason why this card shouldn't work on an Alpha box, and will 
I need any special drivers ?  If I build a 2.6.10 kernel, will turning 
on 'ATA/ATAPI/MFM/RLL support' and 'generic/default IDE chipset support' 
enough to get it going ?

Lastly, this kernel doesn't seem to allow the mounting of ext3 
partitions, though it copes if I describe them as ext2 in fstab.  I'd 
have thought that by now every kernel on a currently shipping Linux 
would support ext3.  Have I got the wrong end of the stick, or have I 
just missed some obvious bit of configuration ?


Cheers, J/.
-- 
John Beardmore


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-23  1:36 Debian v3r3 - How do I find what is in the default kernel ? John Beardmore
@ 2005-01-23  8:07 ` Moores family
  2005-01-23 10:16   ` John Beardmore
  2005-01-24 20:43 ` Lamar Owen
  1 sibling, 1 reply; 23+ messages in thread
From: Moores family @ 2005-01-23  8:07 UTC (permalink / raw)


John Beardmore wrote:
> Having installed Debian v3r3 with the vmlinuz-2.2.20-generic kernel, I'm 
> curious to know what it contains.
> 
> Of most interest is support for multiple CPUs and ATA interfaces and disks.
> 
> Is there a simple command line method to check how many CPUs are in 
> operation ?  /proc/cpuinfo reports "cpus detected :  3", but is the 
> number of CPUs detected, or is it the number actually able to run 
> processes ?
> 
> I also want to install a cheap 200gig ATA drive, and added an iTE 
> interface card and disk.  I assumed that the disk would then show up if 
> I did 'fdisk /dev/hda', but it reported "Unable to open /dev/hda".  Is 
> there any reason why this card shouldn't work on an Alpha box, and will 
> I need any special drivers ?  If I build a 2.6.10 kernel, will turning 
> on 'ATA/ATAPI/MFM/RLL support' and 'generic/default IDE chipset support' 
> enough to get it going ?
> 
> Lastly, this kernel doesn't seem to allow the mounting of ext3 
> partitions, though it copes if I describe them as ext2 in fstab.  I'd 
> have thought that by now every kernel on a currently shipping Linux 
> would support ext3.  Have I got the wrong end of the stick, or have I 
> just missed some obvious bit of configuration ?
> 
> 
> Cheers, J/.
John
I, too, have been trying to get ISA slot devices recognized, with no 
luck, by Linux (RH7.2) on an AS400.  I tried telling SRM about them to 
no avail (Avanti: ISA IDE and SRM).  Have a look at your boot messages 
to see if anything's being probed.

I don't know enough about the AS400 hardware archetecture to know if the 
ISA interface space is visible to the OS without the help of SRM.

I'll be interested in progress.
JM



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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-23  8:07 ` Moores family
@ 2005-01-23 10:16   ` John Beardmore
  0 siblings, 0 replies; 23+ messages in thread
From: John Beardmore @ 2005-01-23 10:16 UTC (permalink / raw)


In message <GWIId.130505$K7.73168@news-server.bigpond.net.au>, Moores 
family <moores_familyZIG@ZAGbigpond.com> writes
>John Beardmore wrote:

>> Having installed Debian v3r3 with the vmlinuz-2.2.20-generic kernel, 
>>I'm  curious to know what it contains.
>>  Of most interest is support for multiple CPUs and ATA interfaces and 
>>disks.
>>  Is there a simple command line method to check how many CPUs are in 
>>operation ?  /proc/cpuinfo reports "cpus detected :  3", but is the 
>>number of CPUs detected, or is it the number actually able to run 
>>processes ?
>>  I also want to install a cheap 200gig ATA drive, and added an iTE 
>>interface card and disk.  I assumed that the disk would then show up 
>>if I did 'fdisk /dev/hda', but it reported "Unable to open /dev/hda". 
>>Is there any reason why this card shouldn't work on an Alpha box, and 
>>will I need any special drivers ?  If I build a 2.6.10 kernel, will 
>>turning  on 'ATA/ATAPI/MFM/RLL support' and 'generic/default IDE 
>>chipset support'  enough to get it going ?
>>  Lastly, this kernel doesn't seem to allow the mounting of ext3 
>>partitions, though it copes if I describe them as ext2 in fstab.  I'd 
>>have thought that by now every kernel on a currently shipping Linux 
>>would support ext3.  Have I got the wrong end of the stick, or have I 
>>just missed some obvious bit of configuration ?
>>   Cheers, J/.
>John
>I, too, have been trying to get ISA slot devices recognized, with no 
>luck, by Linux (RH7.2) on an AS400.

This is a DEC Alpha 2100 server.

Is yours a DEC machine or IBM AS/400 ?

This is a PCI  card, so I guess a good first move would have been to 
check /proc/pci ?

There doesn't seem to be a corresponding /proc/isa or /proc/eisa though.


>  I tried telling SRM about them to no avail (Avanti: ISA IDE and SRM).

OK.


>Have a look at your boot messages to see if anything's being probed.

Which files ?

I've rebooted the machine with the card removed since then.  Will the 
messages from the previous boot still be on file ?


>I don't know enough about the AS400 hardware archetecture to know if 
>the ISA interface space is visible to the OS without the help of SRM.

This is just a guess, but I'd have thought the unless SRM, aboot or 
whatever needed to know about an ISA or PCI card to boot, it probably 
wouldn't need to know unless there was a resource clash an EISA
card ?  Maybe the EISA-config stuff in SRM is required to make EISA 
cards known to the kernel however, as I don't think EISA cards can be 
handled by P&P ?  As I say, I'm only guessing...


Cheers, J/.
-- 
John Beardmore


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-23  1:36 Debian v3r3 - How do I find what is in the default kernel ? John Beardmore
  2005-01-23  8:07 ` Moores family
@ 2005-01-24 20:43 ` Lamar Owen
  2005-01-24 22:26   ` John Beardmore
  1 sibling, 1 reply; 23+ messages in thread
From: Lamar Owen @ 2005-01-24 20:43 UTC (permalink / raw)


John Beardmore wrote:

> Is there a simple command line method to check how many CPUs are in
> operation ?  /proc/cpuinfo reports "cpus detected :  3", but is the
> number of CPUs detected, or is it the number actually able to run
> processes ?

You will need to build an SMP kernel for the 2100.  The key is to get the
latest 2.4-series kernel, build it with 'Sable' SMP support (not
automatic), and set up the booting properly.  These steps are documented in
the Debian online manual (except for the Sable SMP business).

> I also want to install a cheap 200gig ATA drive, and added an iTE
> interface card and disk.  I assumed that the disk would then show up if
> I did 'fdisk /dev/hda', but it reported "Unable to open /dev/hda".  Is
> there any reason why this card shouldn't work on an Alpha box, and will
> I need any special drivers ?  If I build a 2.6.10 kernel, will turning
> on 'ATA/ATAPI/MFM/RLL support' and 'generic/default IDE chipset support'
> enough to get it going ?

It should have basic support already; you might have to enable that
particular chip.

> Lastly, this kernel doesn't seem to allow the mounting of ext3
> partitions, though it copes if I describe them as ext2 in fstab.  I'd
> have thought that by now every kernel on a currently shipping Linux
> would support ext3.  Have I got the wrong end of the stick, or have I
> just missed some obvious bit of configuration ?

Ext3 is a 2.4 or greater kernel feature.
-- 
Lamar Owen
Director of Information Technology
Pisgah Astronomical Research Institute, Rosman, NC
www.pari.edu


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-24 20:43 ` Lamar Owen
@ 2005-01-24 22:26   ` John Beardmore
  2005-01-25 12:15     ` Atro Tossavainen
  2005-01-25 20:08     ` Lamar Owen
  0 siblings, 2 replies; 23+ messages in thread
From: John Beardmore @ 2005-01-24 22:26 UTC (permalink / raw)


In message <ct3mma$3sp3$1@news3.infoave.net>, Lamar Owen 
<lowen@pari.edu> writes
>John Beardmore wrote:

>> Is there a simple command line method to check how many CPUs are in
>> operation ?  /proc/cpuinfo reports "cpus detected :  3", but is the
>> number of CPUs detected, or is it the number actually able to run
>> processes ?
>
>You will need to build an SMP kernel for the 2100.  The key is to get the
>latest 2.4-series kernel,

Compiling 2.4.29 as we speak.  Is there a known SMP issue with 2.6.x 
then ?


> build it with 'Sable' SMP support (not
>automatic),

Running menuconfig I can set number of CPUs to 3, but can't see a way to 
specify Sable.


> and set up the booting properly.

Is SMP booting any different to uniprocessor booting ?


>  These steps are documented in
>the Debian online manual (except for the Sable SMP business).

OK, thanks.


>> I also want to install a cheap 200gig ATA drive, and added an iTE
>> interface card and disk.  I assumed that the disk would then show up if
>> I did 'fdisk /dev/hda', but it reported "Unable to open /dev/hda".  Is
>> there any reason why this card shouldn't work on an Alpha box, and will
>> I need any special drivers ?  If I build a 2.6.10 kernel, will turning
>> on 'ATA/ATAPI/MFM/RLL support' and 'generic/default IDE chipset support'
>> enough to get it going ?
>
>It should have basic support already; you might have to enable that
>particular chip.

I can't see it identified by chip number.  Maybe the generic 2.2 kernel 
didn't have ATA support ?  Or would it for other Alpha boxes ?

With the 2.2 kernel it's showing up in /proc/pci as,

   Bus  0, device   8, function  0:
     RAID storage controller: Unknown vendor Unknown device (rev 17).
       Vendor id=1283. Device id=8212.
       Medium devsel.  IRQ 36.  Master Capable.  Latency=248.  Min
            Gnt=8.Max Lat=8.
       I/O at 0xb000 [0xb001].
       I/O at 0xb800 [0xb801].
       I/O at 0xc000 [0xc001].
       I/O at 0xc800 [0xc801].
       I/O at 0xd000 [0xd001].


Does this look as if it should be enough for generic ATA driver to get 
it going ?


>> Lastly, this kernel doesn't seem to allow the mounting of ext3
>> partitions, though it copes if I describe them as ext2 in fstab.  I'd
>> have thought that by now every kernel on a currently shipping Linux
>> would support ext3.  Have I got the wrong end of the stick, or have I
>> just missed some obvious bit of configuration ?
>
>Ext3 is a 2.4 or greater kernel feature.

Thanks,


J/.
-- 
John Beardmore


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-24 22:26   ` John Beardmore
@ 2005-01-25 12:15     ` Atro Tossavainen
  2005-01-26 10:13       ` John Beardmore
  2005-01-25 20:08     ` Lamar Owen
  1 sibling, 1 reply; 23+ messages in thread
From: Atro Tossavainen @ 2005-01-25 12:15 UTC (permalink / raw)


John Beardmore <wookie@wookie.demon.co.uk> writes:

>>> I also want to install a cheap 200gig ATA drive, and added an iTE
>>> interface card and disk.  I assumed that the disk would then show up if
>>
>> It should have basic support already; you might have to enable that
>> particular chip.
> 
> I can't see it identified by chip number.  Maybe the generic 2.2 kernel 
> didn't have ATA support ?  Or would it for other Alpha boxes ?
> 
> With the 2.2 kernel it's showing up in /proc/pci as,
> 
>    Bus  0, device   8, function  0:
>      RAID storage controller: Unknown vendor Unknown device (rev 17).
>        Vendor id=1283. Device id=8212.

(You can always update your pci.ids from http://pciids.sourceforge.net/pci.ids)

Quoting from a recent pci.ids:

1283  Integrated Technology Express, Inc.
        8212  IT/ITE8212 Dual channel ATA RAID controller (PCI version seems to be IT8212, embedded seems to be ITE8212)

There appears to be no support for this card in the 2.4 series kernel.
You might be able to use it as "generic IDE" if you are not using the
RAID options.  The manufacturer offers Linux drivers (for 2.4 and 2.6)
at

http://www.ite.com.tw/product_info/file/pc/LinuxDriver_it8212_092005-09.zip

Complete source code seems to be included, so this is not a x86 release
only (unlike Promise, for example).  You'll need to boot from elsewhere
and load it as a module, though.

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-24 22:26   ` John Beardmore
  2005-01-25 12:15     ` Atro Tossavainen
@ 2005-01-25 20:08     ` Lamar Owen
  2005-01-26  9:14       ` John Beardmore
  1 sibling, 1 reply; 23+ messages in thread
From: Lamar Owen @ 2005-01-25 20:08 UTC (permalink / raw)


John Beardmore wrote:

> In message <ct3mma$3sp3$1@news3.infoave.net>, Lamar Owen
> <lowen@pari.edu> writes
>>John Beardmore wrote:
> 
>>> Is there a simple command line method to check how many CPUs are in
>>> operation ?  /proc/cpuinfo reports "cpus detected :  3", but is the
>>> number of CPUs detected, or is it the number actually able to run
>>> processes ?

>>You will need to build an SMP kernel for the 2100.  The key is to get the
>>latest 2.4-series kernel,

> Compiling 2.4.29 as we speak.  Is there a known SMP issue with 2.6.x
> then ?

I haven't tried 2.6 SMP.  I attempted installation of AlphaCore (a Fedora
Core 3 rebuild for Alpha; see www.alphacore.info), but had errors.  The
same media installed fine on a 164SX board.

>> build it with 'Sable' SMP support (not
>>automatic),

> Running menuconfig I can set number of CPUs to 3, but can't see a way to
> specify Sable.

Under General Setup, the top item is Alpha System Type.  The default is
Generic; you want to Select on this item, then, in the fairly long list
that comes up, select Sable (which is pretty close to the bottom of the
list).  I can send you my .config if you'd like; this is 2.4.28.  for that
matter, you can download the kernel deb from me at
http://www.lamarowen.net/files/kernel-image-2.4.28_PARI.1lo.SMP.sable_alpha.deb
I think should work.  The Generic SMP does not work; the extra CPU's
attempt to start, but then don't work right.

>> and set up the booting properly.
> Is SMP booting any different to uniprocessor booting ?

No, 2.4 booting is different from 2.2 booting due to the initrd.
-- 
Lamar Owen
Director of Information Technology
Pisgah Astronomical Research Institute, Rosman, NC
www.pari.edu


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-25 20:08     ` Lamar Owen
@ 2005-01-26  9:14       ` John Beardmore
  0 siblings, 0 replies; 23+ messages in thread
From: John Beardmore @ 2005-01-26  9:14 UTC (permalink / raw)


In message <ct6901$4tqe$1@news3.infoave.net>, Lamar Owen 
<lowen@pari.edu> writes
>John Beardmore wrote:

>> Compiling 2.4.29 as we speak.  Is there a known SMP issue with 2.6.x
>> then ?
>
>I haven't tried 2.6 SMP.  I attempted installation of AlphaCore (a Fedora
>Core 3 rebuild for Alpha; see www.alphacore.info), but had errors.  The
>same media installed fine on a 164SX board.

OK.


>>> build it with 'Sable' SMP support (not
>>>automatic),
>
>> Running menuconfig I can set number of CPUs to 3, but can't see a way to
>> specify Sable.
>
>Under General Setup, the top item is Alpha System Type.

Yup !  Missed that this time around !

made clean and started over...


>  The default is
>Generic; you want to Select on this item, then, in the fairly long list
>that comes up, select Sable (which is pretty close to the bottom of the
>list).

Got it now.


>  I can send you my .config if you'd like; this is 2.4.28.  for that
>matter, you can download the kernel deb from me at
>http://www.lamarowen.net/files/kernel-image-2.4.28_PARI.1lo.SMP.sable_alpha.deb
>I think should work.  The Generic SMP does not work; the extra CPU's
>attempt to start, but then don't work right.

:)    Indeed !  Crashed, burned and died !


>>> and set up the booting properly.
>> Is SMP booting any different to uniprocessor booting ?
>
>No, 2.4 booting is different from 2.2 booting due to the initrd.

I don't think I need to use initrd in either case.  Anything else I need 
to be aware of ?


Thanks, J/.
-- 
John Beardmore


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-25 12:15     ` Atro Tossavainen
@ 2005-01-26 10:13       ` John Beardmore
  2005-01-26 13:29         ` Atro Tossavainen
  2005-01-27  8:45         ` Atro Tossavainen
  0 siblings, 2 replies; 23+ messages in thread
From: John Beardmore @ 2005-01-26 10:13 UTC (permalink / raw)


In message <pgzoefdwvqo.fsf@kruuna.helsinki.fi>, Atro Tossavainen 
<Atro.Tossavainen+news@helsinki.finland.invalid> writes
>John Beardmore <wookie@wookie.demon.co.uk> writes:

>>>> I also want to install a cheap 200gig ATA drive, and added an iTE
>>>> interface card and disk.  I assumed that the disk would then show up if
>>>
>>> It should have basic support already; you might have to enable that
>>> particular chip.
>>
>> I can't see it identified by chip number.  Maybe the generic 2.2 kernel
>> didn't have ATA support ?  Or would it for other Alpha boxes ?
>>
>> With the 2.2 kernel it's showing up in /proc/pci as,
>>
>>    Bus  0, device   8, function  0:
>>      RAID storage controller: Unknown vendor Unknown device (rev 17).
>>        Vendor id=1283. Device id=8212.
>
>(You can always update your pci.ids from http://pciids.sourceforge.net/pci.ids)
>
>Quoting from a recent pci.ids:
>
>1283  Integrated Technology Express, Inc.
>        8212  IT/ITE8212 Dual channel ATA RAID controller (PCI version 
>seems to be IT8212, embedded seems to be ITE8212)

Thanks.


>There appears to be no support for this card in the 2.4 series kernel.

Certainly can't see it.


>You might be able to use it as "generic IDE" if you are not using the
>RAID options.

Trying to get that built now.  Certainly no need of RAID.


>  The manufacturer offers Linux drivers (for 2.4 and 2.6)
>at
>
>http://www.ite.com.tw/product_info/file/pc/LinuxDriver_it8212_092005-09.zip
>
>Complete source code seems to be included, so this is not a x86 release
>only (unlike Promise, for example).  You'll need to boot from elsewhere
>and load it as a module, though.

Yes.  Trying to build this, but it fails with

     In file included from /usr/src/linux/include/asm/spinlock.h:7,
                  from /usr/src/linux/include/linux/spinlock.h:58,
                  from /usr/src/linux/include/linux/module.h:12,
                  from iteraid.c:231:
     /usr/src/linux/include/asm/current.h:4: global register variable 
follows a
     function definition
     /usr/src/linux/include/asm/current.h:4: warning: call-clobbered 
register
     used for global register variable

     iteraid.c:4653: warning: `IdeMediaStatus' defined but not used
     make: *** [iteraid.o] Error 1


Will try and investigate later.


Thanks, J/.
-- 
John Beardmore


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-26 10:13       ` John Beardmore
@ 2005-01-26 13:29         ` Atro Tossavainen
  2005-01-26 18:51           ` John Beardmore
  2005-01-27  8:45         ` Atro Tossavainen
  1 sibling, 1 reply; 23+ messages in thread
From: Atro Tossavainen @ 2005-01-26 13:29 UTC (permalink / raw)


John Beardmore <wookie@wookie.demon.co.uk> writes:

>> http://www.ite.com.tw/product_info/file/pc/LinuxDriver_it8212_092005-09.zip
>> 
>> Complete source code seems to be included, so this is not a x86 release
>> only (unlike Promise, for example).  You'll need to boot from elsewhere
>> and load it as a module, though.
> 
> Yes.  Trying to build this, but it fails with

I'll try to build it against 2.4.29 myself and let you know how it goes.

The XL266 is taking its sweet time about it tho :-)

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-26 13:29         ` Atro Tossavainen
@ 2005-01-26 18:51           ` John Beardmore
  2005-01-27 18:03             ` Lamar Owen
  0 siblings, 1 reply; 23+ messages in thread
From: John Beardmore @ 2005-01-26 18:51 UTC (permalink / raw)


In message <pgzvf9k2uab.fsf@kruuna.helsinki.fi>, Atro Tossavainen 
<Atro.Tossavainen+news@helsinki.finland.invalid> writes
>John Beardmore <wookie@wookie.demon.co.uk> writes:
>
>>> http://www.ite.com.tw/product_info/file/pc/LinuxDriver_it8212_092005-09.zip
>>>
>>> Complete source code seems to be included, so this is not a x86 release
>>> only (unlike Promise, for example).  You'll need to boot from elsewhere
>>> and load it as a module, though.
>>
>> Yes.  Trying to build this, but it fails with
>
>I'll try to build it against 2.4.29 myself and let you know how it goes.

OK, thanks !


>The XL266 is taking its sweet time about it tho :-)

Yes.  190MHz EV4 likewise !


Thanks, J/.
-- 
John Beardmore


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-26 10:13       ` John Beardmore
  2005-01-26 13:29         ` Atro Tossavainen
@ 2005-01-27  8:45         ` Atro Tossavainen
  2005-01-27  9:33           ` John Beardmore
  1 sibling, 1 reply; 23+ messages in thread
From: Atro Tossavainen @ 2005-01-27  8:45 UTC (permalink / raw)


John Beardmore <wookie@wookie.demon.co.uk> writes:

> Yes.  Trying to build this, but it fails with
> 
>      In file included from /usr/src/linux/include/asm/spinlock.h:7,
>                   from /usr/src/linux/include/linux/spinlock.h:58,
>                   from /usr/src/linux/include/linux/module.h:12,
>                   from iteraid.c:231:
>      /usr/src/linux/include/asm/current.h:4: global register variable 
> follows a
>      function definition
>      /usr/src/linux/include/asm/current.h:4: warning: call-clobbered 
> register
>      used for global register variable
> 
>      iteraid.c:4653: warning: `IdeMediaStatus' defined but not used
>      make: *** [iteraid.o] Error 1

I got similar warnings too, but they were just warnings, not errors.

/usr/src/linux-2.4 is a symlink to the 2.4.29 build directory.

/usr/src/ITE/src/2.4.x # make
gcc -D__KERNEL__ -DMODULE  -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing  -I. -I/usr/src/linux-2.4/drivers/scsi -I/usr/src/linux-2.4/include -include /usr/src/linux-2.4/include/linux/modversions.h -c -o iteraid.o iteraid.c
In file included from /usr/src/linux-2.4/include/asm/semaphore.h:11,
                 from /usr/src/linux-2.4/include/linux/fs.h:200,
                 from /usr/src/linux-2.4/include/linux/capability.h:17,
                 from /usr/src/linux-2.4/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4/include/linux/sched.h:9,
                 from /usr/src/linux-2.4/include/linux/mm.h:4,
                 from /usr/src/linux-2.4/include/linux/slab.h:14,
                 from /usr/src/linux-2.4/include/linux/proc_fs.h:5,
                 from iteraid.c:239:
/usr/src/linux-2.4/include/asm/current.h:4: warning: call-clobbered register used for global register variable
iteraid.c:4653: warning: `IdeMediaStatus' defined but not used
/usr/src/ITE/src/2.4.x # 

At least, the module built just fine.  I haven't got the hardware to
test it, and I haven't even rebooted the XL266 with the 2.4.29 kernel
yet to see if attempting to load it would kill something...

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-27  8:45         ` Atro Tossavainen
@ 2005-01-27  9:33           ` John Beardmore
  2005-01-27 11:28             ` Atro Tossavainen
  0 siblings, 1 reply; 23+ messages in thread
From: John Beardmore @ 2005-01-27  9:33 UTC (permalink / raw)


In message <pgzfz0ntg3j.fsf@kruuna.helsinki.fi>, Atro Tossavainen 
<Atro.Tossavainen+news@helsinki.finland.invalid> writes
>John Beardmore <wookie@wookie.demon.co.uk> writes:
>
>> Yes.  Trying to build this, but it fails with
>>
>>      In file included from /usr/src/linux/include/asm/spinlock.h:7,
>>                   from /usr/src/linux/include/linux/spinlock.h:58,
>>                   from /usr/src/linux/include/linux/module.h:12,
>>                   from iteraid.c:231:
>>      /usr/src/linux/include/asm/current.h:4: global register variable
>> follows a
>>      function definition
>>      /usr/src/linux/include/asm/current.h:4: warning: call-clobbered
>> register
>>      used for global register variable
>>
>>      iteraid.c:4653: warning: `IdeMediaStatus' defined but not used
>>      make: *** [iteraid.o] Error 1
>
>I got similar warnings too, but they were just warnings, not errors.

OK.  I took "Error 1" to mean something should be fixed.


>/usr/src/linux-2.4 is a symlink to the 2.4.29 build directory.

Yes.  I've got /usr/src/linux as a symlink to /home/linux-2.4.29 but 
same idea.


>/usr/src/ITE/src/2.4.x # make
>gcc -D__KERNEL__ -DMODULE  -Wall -Wstrict-prototypes -O2 
>-fomit-frame-pointer -fno-strict-aliasing  -I. 
>-I/usr/src/linux-2.4/drivers/scsi -I/usr/src/linux-2.4/include -include 
>/usr/src/linux-2.4/include/linux/modversions.h -c -o iteraid.o iteraid.c
>In file included from /usr/src/linux-2.4/include/asm/semaphore.h:11,
>                 from /usr/src/linux-2.4/include/linux/fs.h:200,
>                 from /usr/src/linux-2.4/include/linux/capability.h:17,
>                 from /usr/src/linux-2.4/include/linux/binfmts.h:5,
>                 from /usr/src/linux-2.4/include/linux/sched.h:9,
>                 from /usr/src/linux-2.4/include/linux/mm.h:4,
>                 from /usr/src/linux-2.4/include/linux/slab.h:14,
>                 from /usr/src/linux-2.4/include/linux/proc_fs.h:5,
>                 from iteraid.c:239:
>/usr/src/linux-2.4/include/asm/current.h:4: warning: call-clobbered 
>register used for global register variable
>iteraid.c:4653: warning: `IdeMediaStatus' defined but not used
>/usr/src/ITE/src/2.4.x #
>
>At least, the module built just fine.

OK, forgive my utter ignorance, but where is it writing the output 
files, and what should I expect ?  I was assuming iteraid.o, but I can't 
see a new one.


>  I haven't got the hardware to
>test it, and I haven't even rebooted the XL266 with the 2.4.29 kernel
>yet to see if attempting to load it would kill something...

I'll have a go when I get into work.


Cheers, J/.
-- 
John Beardmore


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-27  9:33           ` John Beardmore
@ 2005-01-27 11:28             ` Atro Tossavainen
  2005-01-28  0:01               ` John Beardmore
  0 siblings, 1 reply; 23+ messages in thread
From: Atro Tossavainen @ 2005-01-27 11:28 UTC (permalink / raw)


John Beardmore <wookie@wookie.demon.co.uk> writes:

> OK.  I took "Error 1" to mean something should be fixed.

Yes, it is something to be fixed, if the compilation didn't result in
an .o file of 100 or so kilobytes.

> OK, forgive my utter ignorance, but where is it writing the output 
> files, and what should I expect ?  I was assuming iteraid.o, but I can't 
> see a new one.

Your assumption is correct and you are in fact getting a fatal error.
I can't tell you why, but I managed to compile 2.4.29 and the module
just fine.  The stuff I've built is for the XL266, so it probably
wouldn't work on your machine, but if you send me your .config in
e-mail (remove the obvious garbage from the address above) I can try
to build you a kernel for your machine if you'd like me to.

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-26 18:51           ` John Beardmore
@ 2005-01-27 18:03             ` Lamar Owen
  2005-01-27 21:47               ` John Beardmore
  0 siblings, 1 reply; 23+ messages in thread
From: Lamar Owen @ 2005-01-27 18:03 UTC (permalink / raw)


John Beardmore wrote:

>>The XL266 is taking its sweet time about it tho :-)
 
> Yes.  190MHz EV4 likewise !

There's a guy in the UK has some 4/275 CPU cards for the 2100; I bought four
of them from him and including shipping the tally came to $100 (US). 
Replaced the 2 4/233 cards in the beast, and it is a little faster now.  He
had them on eBay and said that he had more.
-- 
Lamar Owen
Director of Information Technology
Pisgah Astronomical Research Institute, Rosman, NC
www.pari.edu


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-27 18:03             ` Lamar Owen
@ 2005-01-27 21:47               ` John Beardmore
  0 siblings, 0 replies; 23+ messages in thread
From: John Beardmore @ 2005-01-27 21:47 UTC (permalink / raw)


In message <ctbadt$7l8q$1@news3.infoave.net>, Lamar Owen 
<lowen@pari.edu> writes
>John Beardmore wrote:

>>>The XL266 is taking its sweet time about it tho :-)
>
>> Yes.  190MHz EV4 likewise !
>
>There's a guy in the UK has some 4/275 CPU cards for the 2100; I bought four
>of them from him and including shipping the tally came to $100 (US).
>Replaced the 2 4/233 cards in the beast, and it is a little faster now.  He
>had them on eBay and said that he had more.

Tempting...  Do you happen to have his email address ?


Thanks, J/.
-- 
John Beardmore


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-27 11:28             ` Atro Tossavainen
@ 2005-01-28  0:01               ` John Beardmore
  2005-01-28  9:41                 ` Atro Tossavainen
  0 siblings, 1 reply; 23+ messages in thread
From: John Beardmore @ 2005-01-28  0:01 UTC (permalink / raw)


In message <pgz4qh3glfx.fsf@kruuna.helsinki.fi>, Atro Tossavainen 
<Atro.Tossavainen+news@helsinki.finland.invalid> writes
>John Beardmore <wookie@wookie.demon.co.uk> writes:

>> OK.  I took "Error 1" to mean something should be fixed.
>
>Yes, it is something to be fixed, if the compilation didn't result in
>an .o file of 100 or so kilobytes.
>
>> OK, forgive my utter ignorance, but where is it writing the output
>> files, and what should I expect ?  I was assuming iteraid.o, but I can't
>> see a new one.
>
>Your assumption is correct and you are in fact getting a fatal error.
>I can't tell you why, but I managed to compile 2.4.29 and the module
>just fine.

OK, that's reassuring.


>  The stuff I've built is for the XL266, so it probably
>wouldn't work on your machine, but if you send me your .config in
>e-mail (remove the obvious garbage from the address above) I can try
>to build you a kernel for your machine if you'd like me to.

Let's set aside that very kind offer for a moment.

My first problem is that although I can build 2.4.29 SMP, it still bombs 
out and I don't know why.  Come to think of it, I don't really know 
where to start looking.

As my most immediate need is to get access to the big new disk, I'm now 
trying a single processor build of 2.4.29, so I'll see how I get on with 
that, i.e. will it boot, will it access the disk with the generic ATA 
drivers.


The odd thing is that as it compiles, I can see the switches to gcc 
include -mcpu=ev4 and -mev6.

Man gcc doesn't explicitly describe -mev6, but it does say

     "-m68040  Generate  output  for a 68040.  This is the default
     when the compiler  is  configured  for  68040-based systems."

Man gcc doesn't refer to -mcpu=cpu-type for the Alpha, but re MIPS, it 
also says:

     "-mcpu=cpu-type
               Assume  the  defaults for the machine type cpu-type
               when scheduling instructions.  The default cpu-type
               is  default,  which  picks the longest cycles times
               for any of the machines, in order that the code run
               at  reasonable  rates  on  all  MIPS  cpu's.  Other
               choices for cpu-type are r2000, r3000,  r4000,  and
               r6000.   While  picking  a  specific  cpu-type will
               schedule things appropriately for  that  particular
               chip,  the compiler will not generate any code that
               does not meet level 1 of the MIPS ISA  (instruction
               set  architecture)  without  the  -mips2  or -mips3
               switches being used."

so by extrapolation, I'd assume that this would generate code for EV6, 
but schedule instructions for EV4.

The installed CPUs are all EV4s, so why is it compiling for anything 
other than that ?  I don't see where I can configure the particular CPU 
it generates code for, but will generating instructions for EV6 result 
in incompatible code being produced, or just in some loss of 
optimisation ?

Maybe this is the root cause of my problem ?  .config says the CPU is 
EV4, so where might the EV6 reference be coming from ?


Cheers, J/.
-- 
John Beardmore


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-28  0:01               ` John Beardmore
@ 2005-01-28  9:41                 ` Atro Tossavainen
  2005-01-28 22:37                   ` John Beardmore
  2005-02-08 10:46                   ` alexiss
  0 siblings, 2 replies; 23+ messages in thread
From: Atro Tossavainen @ 2005-01-28  9:41 UTC (permalink / raw)


John Beardmore <wookie@wookie.demon.co.uk> writes:

> My first problem is that although I can build 2.4.29 SMP, it still bombs 
> out and I don't know why.  Come to think of it, I don't really know 
> where to start looking.

I haven't tried booting 2.4.29 yet so I have no idea if it works.

> The odd thing is that as it compiles, I can see the switches to gcc 
> include -mcpu=ev4 and -mev6.

As in

gcc -D__KERNEL__ -I/usr/src/linux-2.4.29/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev4 -Wa,-mev6   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c

?

From "man gcc":

ASSEMBLER OPTION
       -Wa,option
              Pass option as an option to the assembler.  If  opᅵ
              tion contains commas, it is split into multiple opᅵ
              tions at the commas.

There are no Alpha-dependent options in GNU as, so the option
probably just ends up being ignored.

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-28  9:41                 ` Atro Tossavainen
@ 2005-01-28 22:37                   ` John Beardmore
  2005-01-29 22:21                     ` Atro Tossavainen
  2005-02-08 10:46                   ` alexiss
  1 sibling, 1 reply; 23+ messages in thread
From: John Beardmore @ 2005-01-28 22:37 UTC (permalink / raw)


In message <pgzr7k5ki17.fsf@kruuna.helsinki.fi>, Atro Tossavainen 
<Atro.Tossavainen+news@helsinki.finland.invalid> writes
>John Beardmore <wookie@wookie.demon.co.uk> writes:
>
>> My first problem is that although I can build 2.4.29 SMP, it still bombs
>> out and I don't know why.  Come to think of it, I don't really know
>> where to start looking.
>
>I haven't tried booting 2.4.29 yet so I have no idea if it works.
>
>> The odd thing is that as it compiles, I can see the switches to gcc
>> include -mcpu=ev4 and -mev6.
>
>As in
>
>gcc -D__KERNEL__ -I/usr/src/linux-2.4.29/include -Wall 
>-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
>-fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev4 -Wa,-mev6 
>-DKBUILD_BASENAME=main -c -o init/main.o init/main.c
>
>?
>
>From "man gcc":
>
>ASSEMBLER OPTION
>       -Wa,option
>              Pass option as an option to the assembler.  If  op�
>              tion contains commas, it is split into multiple op�
>              tions at the commas.
>
>There are no Alpha-dependent options in GNU as, so the option
>probably just ends up being ignored.

So there's no scope for the assembler to generate EV6 code for an EV4 
processor then ?

The uniprocessor 2.4.29 kernel I compiled still fails, but this time 
with a panic so something has changed.  I'll try and record the details 
next time I'm in work.


Cheers, J/.
-- 
John Beardmore


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-28 22:37                   ` John Beardmore
@ 2005-01-29 22:21                     ` Atro Tossavainen
  2005-01-29 23:03                       ` John Beardmore
  0 siblings, 1 reply; 23+ messages in thread
From: Atro Tossavainen @ 2005-01-29 22:21 UTC (permalink / raw)


John Beardmore <wookie@wookie.demon.co.uk> writes:

> So there's no scope for the assembler to generate EV6 code for an EV4 
> processor then ?

As far as I can see.

The XL266 is also an EV4 and all kernel compilations have included
that flag, yet I've never had a kernel I compiled that didn't work.

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-29 22:21                     ` Atro Tossavainen
@ 2005-01-29 23:03                       ` John Beardmore
  2005-02-07 10:38                         ` Atro Tossavainen
  0 siblings, 1 reply; 23+ messages in thread
From: John Beardmore @ 2005-01-29 23:03 UTC (permalink / raw)


In message <pgz4qgzop07.fsf@kruuna.helsinki.fi>, Atro Tossavainen 
<Atro.Tossavainen+news@helsinki.finland.invalid> writes
>John Beardmore <wookie@wookie.demon.co.uk> writes:

>> So there's no scope for the assembler to generate EV6 code for an EV4
>> processor then ?
>
>As far as I can see.
>
>The XL266 is also an EV4 and all kernel compilations have included
>that flag, yet I've never had a kernel I compiled that didn't work.

OK.  I've still got a real problem then !

I'll see if I can see what happens just before the Panic message...


Thanks, J/.
-- 
John Beardmore


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-29 23:03                       ` John Beardmore
@ 2005-02-07 10:38                         ` Atro Tossavainen
  0 siblings, 0 replies; 23+ messages in thread
From: Atro Tossavainen @ 2005-02-07 10:38 UTC (permalink / raw)


John Beardmore <wookie@wookie.demon.co.uk> writes:

> OK.  I've still got a real problem then !
> 
> I'll see if I can see what happens just before the Panic message...

Please do.  I've just rebooted the XL266 with the 2.4.29 I compiled
earlier and so far it seems to be working just fine.  I even managed
to modify the super_page patch (against 2.4.19 sources originally)
so that it works too. Don't know if it makes any difference, tho.

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS


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

* Re: Debian v3r3 -  How do I find what is in the default kernel ?
  2005-01-28  9:41                 ` Atro Tossavainen
  2005-01-28 22:37                   ` John Beardmore
@ 2005-02-08 10:46                   ` alexiss
  1 sibling, 0 replies; 23+ messages in thread
From: alexiss @ 2005-02-08 10:46 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1395 bytes --]


s@helsinki.finland.invalid wrote:
> John Beardmore <wookie@wookie.demon.co.uk> writes:
> > My first problem is that although I can build 2.4.29 SMP, it still bombs 
> > out and I don't know why.  Come to think of it, I don't really know 
> > where to start looking.
> I haven't tried booting 2.4.29 yet so I have no idea if it works.
> > The odd thing is that as it compiles, I can see the switches to gcc 
> > include -mcpu=ev4 and -mev6.
> As in
> gcc -D__KERNEL__ -I/usr/src/linux-2.4.29/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=ev4 -Wa,-mev6   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
> ?
> From "man gcc":
> ASSEMBLER OPTION
>        -Wa,option
>               Pass option as an option to the assembler.  If  op�
>               tion contains commas, it is split into multiple op�
>               tions at the commas.
> There are no Alpha-dependent options in GNU as, so the option
> probably just ends up being ignored.
> -- 
> Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
> Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
> +358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
> < URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS

Thanks

alexis_s@cidermail.com



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

end of thread, other threads:[~2005-02-08 10:46 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-23  1:36 Debian v3r3 - How do I find what is in the default kernel ? John Beardmore
2005-01-23  8:07 ` Moores family
2005-01-23 10:16   ` John Beardmore
2005-01-24 20:43 ` Lamar Owen
2005-01-24 22:26   ` John Beardmore
2005-01-25 12:15     ` Atro Tossavainen
2005-01-26 10:13       ` John Beardmore
2005-01-26 13:29         ` Atro Tossavainen
2005-01-26 18:51           ` John Beardmore
2005-01-27 18:03             ` Lamar Owen
2005-01-27 21:47               ` John Beardmore
2005-01-27  8:45         ` Atro Tossavainen
2005-01-27  9:33           ` John Beardmore
2005-01-27 11:28             ` Atro Tossavainen
2005-01-28  0:01               ` John Beardmore
2005-01-28  9:41                 ` Atro Tossavainen
2005-01-28 22:37                   ` John Beardmore
2005-01-29 22:21                     ` Atro Tossavainen
2005-01-29 23:03                       ` John Beardmore
2005-02-07 10:38                         ` Atro Tossavainen
2005-02-08 10:46                   ` alexiss
2005-01-25 20:08     ` Lamar Owen
2005-01-26  9:14       ` John Beardmore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox