2.4.20-pre7 i486

2.4.20-pre7 i486

Post by Ian Carr-de Avelo » Tue, 24 Sep 2002 22:20:10



Compiling 2.4.20-pre7 fails for i486 (still a fer of them around) without
Symmetric multi-processing support. With SMP support, the kernel compiles,
but resets immediately after boot.
This is with gcc 2.95.3
Yours
Ian

/usr/src/linux/include/linux/modules/ksyms.ver:548: warning: `del_timer_sync' redefined
/usr/src/linux/include/linux/timer.h:30: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/interrupt.h:45,
                 from ksyms.c:21:
/usr/src/linux/include/asm/hardirq.h:37: warning: `synchronize_irq' redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:90: warning: this is the location of the previous definition
In file included from ksyms.c:17:
/usr/src/linux/include/linux/kernel_stat.h: In function `kstat_irqs':
/usr/src/linux/include/linux/kernel_stat.h:57: `smp_num_cpus' undeclared (first
use in this function)
/usr/src/linux/include/linux/kernel_stat.h:57: (Each undeclared identifier is reported only once
/usr/src/linux/include/linux/kernel_stat.h:57: for each function it appears in.)make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux/kernel'
make: *** [_dir_kernel] Error 2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.4.20-pre7 i486

Post by bonganili.. » Wed, 25 Sep 2002 04:30:11


<snip>
Quote:> /usr/src/linux/include/linux/kernel_stat.h: In function `kstat_irqs':
> /usr/src/linux/include/linux/kernel_stat.h:57: `smp_num_cpus' undeclared (first
> use in this function)
> /usr/src/linux/include/linux/kernel_stat.h:57: (Each undeclared identifier is reported
only once
> /usr/src/linux/include/linux/kernel_stat.h:57: for each function it appears in.)make[2]:

*** [ksyms.o] Error 1

Quote:> make[2]: Leaving directory `/usr/src/linux/kernel'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/usr/src/linux/kernel'
> make: *** [_dir_kernel] Error 2

Strange that this has not being noticed before 2.4 define kstat_irqs as

#if defined (__hppa__)
/*
 * Number of interrupts per specific IRQ source, since bootup
 */
static inline int kstat_irqs (int irq)
{
        return kstat.irqs[IRQ_REGION(irq)][IRQ_OFFSET(irq)];

Quote:}

#elif !defined(CONFIG_ARCH_S390)
/*
 * Number of interrupts per specific IRQ source, since bootup
 */
extern inline int kstat_irqs (int irq)
{
        int i, sum=0;

        for (i = 0 ; i < smp_num_cpus ; i++)
                sum += kstat.irqs[cpu_logical_map(i)][irq];

        return sum;

Quote:}

#endif

But smp_num_cpus is only defined for SMP kernels

on the other hand 2.5 defines it as

#if !defined(CONFIG_ARCH_S390)
/*
 * Number of interrupts per specific IRQ source, since bootup
 */
static inline int kstat_irqs (int irq)
{
        int i, sum=0;

        for (i = 0 ; i < NR_CPUS ; i++)
                sum += kstat.irqs[i][irq];

        return sum;

Quote:}

#endif

which seems correct cause NR_CPUS is defined as 1 for UP

is this a correct patch?

diff -uNr include/linux/kernel_stat.h~ include/linux/kernel_stat.h
--- include/linux/kernel_stat.h~        2002-09-23 16:16:45.000000000 +0200

 {
        int i, sum=0;

-       for (i = 0 ; i < smp_num_cpus ; i++)
+       for (i = 0 ; i < NR_CPUS ; i++)
                sum += kstat.irqs[cpu_logical_map(i)][irq];

        return sum;

---------------------------------------------
This message was sent using M-Web Airmail.
JUST LIKE THAT
Are you ready for 10-digit dialling?
To find out how this will affect your Internet connection go to www.mweb.co.za/ten
http://airmail.mweb.co.za/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. IBM x440 problems on 2.4.20 to 2.4.20-rc1-ac3

Helo,
I'm trying to boot from linux kernel 2.4 tree
i've installed rh 7.1 dist, but system seems only 3 procesors, so i made
2.4.20 kernel with smp without NUMA support and i saw 4 processors. Next
2.4.20 with numa support, and system hangs on mounting root filesystem (no
scsi devices found, ide devices lost interruption, no keyboard found etc
etc)
Next 2.4.21-rc1-ac3 without NUMA, 3-processors available
with NUMA support and summit/exa support and clustered apic support kernel
boots, found scsi devices but hangs on it with lost interruption, also with
ide devices and so on
machine has 4 HT processors and 8GB of RAM
any ideas or help?

i don't wat to use 2.5.x kernel.....

regards

Sobczak Wojciech

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Need help with home network & ISP setup - DIALD, IPFWADM

3. 2.4.20 + XFS patches + rmap15a + Ingo's 2.4.20-rc3 O(1) sched

4. Sockets vs TLI - use a common transport-layer interface?

5. NFS/UDP/IP performance - 2.4.19 v/s 2.4.20, 2.4.20-pre3

6. help with tcl7.5 tk4.1

7. SCSI under 2.4.20-8 but not 2.4.20-18.9 (RH9)

8. What means this alert message ?

9. Process hangs in 2.4.19, RH7.latest, and 2.4.20-pre7-ac2

10. Patch release - 2.4.20-pre7-rmap14a-shawn12d.1

11. Ide 2.4.20-pre7-ac3 oops on vmware - you might be interested

12. 2.4.20-pre7 (BK from today)

13. BUG() in e1000 driver (2.4.20-pre7)