test10-pre7 on Sparc
I am trying to run 2.4 kernel to have up to date ATM on SPARCstation 10, possibly with 2 CPUs. Did not succeed to boot neither Linus nor CVS version recently. Compilation of 2.4.0.10.7:
binfmt_elf.c: In function `create_elf_tables':
binfmt_elf.c:166: `CLOCKS_PER_SEC' undeclared (first use in this function) binfmt_elf.c:166: (Each undeclared identifier is reported only once binfmt_elf.c:166: for each function it appears in.)
make[2]: *** [binfmt_elf.o] Error 1
missing
#ifdef __KERNEL__
# define CLOCKS_PER_SEC 100 /* frequency at which times() counts */ #endif
in include/asm-sparc/param.h
gcc -D__KERNEL__ -I/usr/src/6/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -m32 -pipe -
mno-fpu -fcall-used-g5 -fcall-used-g7 -c -o ip_forward.o ip_forward.cip_forward.c: In function `ip_forward':
ip_forward.c:139: `NET_RX_BAD' undeclared (first use in this function)
ip_forward.c:139: (Each undeclared identifier is reported only once
ip_forward.c:139: for each function it appears in.)
make[3]: *** [ip_forward.o] Error 1
I changed it to -EINVAL, should not disturb booting even if it is wrong
Booting non-SMP version on single CPU, more less:
bootmem_init...free_...reserve_...
Booting Linux
Watchdog Reset
ok _
I can collect the messages thru a serial console if the details are important.
R.
Signature · 5 lines
W iskier krzesaniu żywem/Materiał to rzecz główna - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Date: Tue, 31 Oct 2000 19:11:23 +0100
From: Rafal Maszkowski <[email protected]>
I am trying to run 2.4 kernel to have up to date ATM on SPARCstation 10, possibly with 2 CPUs. Did not succeed to boot neither Linus nor CVS version recently. Compilation of 2.4.0.10.7:
Current CVS has both of these errors fixed, and such patches were sent to Linus (included below):
arch/sparc64/defconfig renamed from linux/arch/sparc64/defconfig +1 -0
@@ -263,6 +263,7 @@ # CONFIG_BLK_DEV_OPTI621 is not set # CONFIG_BLK_DEV_PDC202XX is not set # CONFIG_PDC202XX_BURST is not set +# CONFIG_BLK_DEV_OSB4 is not set # CONFIG_BLK_DEV_SIS5513 is not set # CONFIG_BLK_DEV_SLC90E66 is not set # CONFIG_BLK_DEV_TRM290 is not set
arch/sparc64/kernel/smp.c renamed from linux/arch/sparc64/kernel/smp.c +10 -1
@@ -28,6 +28,7 @@#include <asm/softirq.h> #include <asm/uaccess.h> #include <asm/timer.h> +#include <asm/starfire.h> #define __KERNEL_SYSCALLS__#include <linux/unistd.h>
@@ -302,9 +303,17 @@static inline void xcall_deliver (u64 data0,u64 data1,u64 data2,u64 pstate,unsigned long cpu) { -u64 result, target = (cpu <<14 ) |0x70 ; +u64 result, target;int stuck, tmp; +if (this_is_starfire) { +/* map to real upaid */ + cpu = (((cpu &0x3c ) <<1 ) | + ((cpu &0x40 ) >>4 ) | + (cpu &0x3 )); + } + + target = (cpu <<14 ) |0x70 ;#ifdef XCALL_DEBUG printk ("CPU[%d]: xcall(data[%016lx:%016lx:%016lx],tgt[%016lx])\n" ,smp_processor_id (), data0, data1, data2, target);
arch/sparc64/kernel/sparc64_ksyms.c renamed from linux/arch/sparc64/kernel/sparc64_ksyms.c +14 -1
@@ -1,4 +1,4 @@ -/* $Id: sparc64_ksyms.c,v 1.92 2000/08/09 08:45:40 anton Exp $ +/* $Id: sparc64_ksyms.c,v 1.95 2000/10/30 21:01:40 davem Exp $ * arch/sparc64/kernel/sparc64_ksyms.c: Sparc64 specific ksyms support. * * Copyright (C) 1996 David S. Miller ([email protected])
@@ -18,6 +18,8 @@#include <linux/in6.h> #include <linux/pci.h> #include <linux/interrupt.h> +#include <linux/fs_struct.h> +#include <linux/mm.h> #include <asm/oplib.h> #include <asm/delay.h>
@@ -29,6 +31,7 @@#include <asm/hardirq.h> #include <asm/idprom.h> #include <asm/svr4.h> +#include <asm/elf.h> #include <asm/head.h> #include <asm/smp.h> #include <asm/mostek.h>
@@ -37,6 +40,7 @@#include <asm/uaccess.h> #include <asm/checksum.h> #include <asm/fpumacro.h> +#include <asm/pgalloc.h> #ifdef CONFIG_SBUS #include <asm/sbus.h> #include <asm/dma.h>
@@ -88,6 +92,7 @@extern int __ashrdi3 (int ,int );extern void dump_thread (struct pt_regs *,struct user *); +extern int dump_fpu (struct pt_regs * regs,elf_fpregset_t * fpregs);#ifdef CONFIG_SMP extern spinlock_t kernel_flag;
@@ -230,6 +235,13 @@/* Should really be in linux/kernel/ksyms.c */ EXPORT_SYMBOL (dump_thread); +EXPORT_SYMBOL (dump_fpu); +EXPORT_SYMBOL (get_pmd_slow); +EXPORT_SYMBOL (get_pte_slow); +#ifndef CONFIG_SMP +EXPORT_SYMBOL (pgt_quicklists); +#endif +EXPORT_SYMBOL (put_fs_struct);/* math-emu wants this */ EXPORT_SYMBOL (die_if_kernel);
@@ -264,6 +276,7 @@EXPORT_SYMBOL (__strlen);EXPORT_SYMBOL (strlen);EXPORT_SYMBOL (strnlen); +EXPORT_SYMBOL (__strlen_user);EXPORT_SYMBOL (strcpy);EXPORT_SYMBOL (strncpy);EXPORT_SYMBOL (strcat);
arch/sparc64/kernel/starfire.c renamed from linux/arch/sparc64/kernel/starfire.c +7 -2
@@ -1,4 +1,4 @@ -/* $Id: starfire.c,v 1.7 2000/09/22 23:02:13 davem Exp $ +/* $Id: starfire.c,v 1.8 2000/10/27 18:36:47 anton Exp $ * starfire.c: Starfire/E10000 support. * * Copyright (C) 1998 David S. Miller ([email protected])
@@ -31,7 +31,12 @@void starfire_cpu_setup (void ) {if (this_is_starfire) { -/* We do this in starfire_translate - Anton */ +/* +* We do this in starfire_translate and xcall_deliver. When we fix our cpu +* arrays to support > 64 processors we can use the real upaid instead +* of the logical cpuid in __cpu_number_map etc, then we can get rid of +* the translations everywhere. - Anton +*/ #if 0 int i;
drivers/sbus/audio/cs4215.h renamed from linux/drivers/sbus/audio/cs4215.h +2 -2
@@ -1,4 +1,4 @@ -/* $Id: cs4215.h,v 1.7 1999/09/21 14:37:19 davem Exp $ +/* $Id: cs4215.h,v 1.8 2000/10/27 07:01:38 uzi Exp $ * drivers/sbus/audio/cs4215.h * * Copyright (C) 1997 Rudolf Koenig ([email protected])
@@ -103,7 +103,7 @@/* Time Slot 6, Output Setting */ #define CS4215_RO (v) v/* Right Output Attenuation 0x3f: -94.5 dB */ -#define CS4215_SE (1<<6)/* Line Out Enable */ +#define CS4215_SE (1<<6)/* Speaker Enable */ #define CS4215_ADI (1<<7)/* A/D Data Invalid: Busy in calibration */ /* Time Slot 7, Input Setting */
drivers/sbus/audio/dbri.c renamed from linux/drivers/sbus/audio/dbri.c +41 -16
117 lines not on this page · raw message
include/asm-sparc/page.h renamed from linux/include/asm-sparc/page.h +1 -1
@@ -1,4 +1,4 @@ -/* $Id: page.h,v 1.54 2000/08/10 01:04:53 davem Exp $ +/* $Id: page.h,v 1.55 2000/10/30 21:01:41 davem Exp $ * page.h: Various defines and such for MMU operations on the Sparc for * the Linux kernel. *
include/asm-sparc/param.h renamed from linux/include/asm-sparc/param.h +5 -1
@@ -1,4 +1,4 @@ -/* $Id: param.h,v 1.3 1995/11/25 02:32:18 davem Exp $ */ +/* $Id: param.h,v 1.4 2000/10/30 21:01:41 davem Exp $ */ #ifndef _ASMSPARC_PARAM_H#define _ASMSPARC_PARAM_H
@@ -17,5 +17,9 @@#endif #define MAXHOSTNAMELEN 64/* max length of hostname */ + +#ifdef __KERNEL__ +# define CLOCKS_PER_SEC HZ/* frequency at which times() counts */ +#endif #endif
include/asm-sparc/pgtable.h renamed from linux/include/asm-sparc/pgtable.h +1 -1
@@ -1,4 +1,4 @@ -/* $Id: pgtable.h,v 1.104 2000/10/19 00:50:16 davem Exp $ */ +/* $Id: pgtable.h,v 1.105 2000/10/30 21:01:41 davem Exp $ */ #ifndef _SPARC_PGTABLE_H#define _SPARC_PGTABLE_H
include/asm-sparc64/param.h renamed from linux/include/asm-sparc64/param.h +5 -1
@@ -1,4 +1,4 @@ -/* $Id: param.h,v 1.1 1996/12/02 00:08:24 davem Exp $ */ +/* $Id: param.h,v 1.2 2000/10/30 21:01:41 davem Exp $ */ #ifndef _ASMSPARC64_PARAM_H#define _ASMSPARC64_PARAM_H
@@ -17,5 +17,9 @@#endif #define MAXHOSTNAMELEN 64/* max length of hostname */ + +#ifdef __KERNEL__ +# define CLOCKS_PER_SEC HZ/* frequency at which times() counts */ +#endif #endif /* _ASMSPARC64_PARAM_H */
include/asm-sparc64/string.h renamed from linux/include/asm-sparc64/string.h +1 -1
@@ -1,4 +1,4 @@ -/* $Id: string.h,v 1.17 2000/06/19 06:24:58 davem Exp $ +/* $Id: string.h,v 1.18 2000/10/30 21:01:41 davem Exp $ * string.h: External definitions for optimized assembly string * routines for the Linux Kernel. *
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 6 lines · David S. Miller
From: Rafal Maszkowski <[email protected]>
I am trying to run 2.4 kernel to have up to date ATM on SPARCstation 10, possibly with 2 CPUs. Did not succeed to boot neither Linus nor CVS version recently. Compilation of 2.4.0.10.7:
Current CVS has both of these errors fixed, and such patches
were sent to Linus (included below):
Thanks! It looks like Linus included them in 2.4.0.10. But the kernel still does not boot. It says 'Watchdog' but other recent versions were giving just some nonsense-messages so I guess it jumps into some random place after decompressing. 2.2 kernels work on this machine.
boot: 10
Uncompressing image...
PROMLIB: obio_ranges 5bootmem_init: Scan sp_banks, init_bootmem(spfn[1f5],bpfn[1f5],mlpfn[c000])free_bootmem: base[0] size[1000000]free_bootmem: base[4000000] size[1000000]free_bootmem: base[8000000] size[1000000]reserve_bootmem: base[0] size[1f5000]reserve_bootmem: base[1f5000] size[1800]
Booting Linux...
Watchdog Reset
Type help for more information
ok
R.
Signature · 5 lines
W iskier krzesaniu żywem/Materiał to rzecz główna - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/