From: D. Champion <d-champion@uchicago.edu>
Subject: Re: 2.1.32 troubles, make boot doesn't finish (hardly starts)
Date: Thu, 10 Apr 1997 01:03:37 -0500 (CDT) [thread overview]
Message-ID: <199704100603.BAA17176@melanoma.uchicago.edu> (raw)
In-Reply-To: <01BC4515.52696580@ispro.xs4all.nl>
>make config, make dep, make clean all goes well...... until...
>
>...
>/usr/src/linux-2.1.32/include/asm/io.h: In function 'set_hae':
>In file included from init/main.c:40:
>/usr/src/linux-2.1.32/include/asm/io.h:41: parse error before '__asm__'
>make: *** [init/main.o] Error 1
To play the facilitator and integrate things, Tim Waugh and Jeff Odom
have suggested parts of this, which is what I used:
*** include/asm-alpha/hardirq.h.orig Mon Apr 7 21:01:11 1997
--- include/asm-alpha/hardirq.h Mon Apr 7 21:00:27 1997
***************
*** 12,17 ****
--- 12,19 ----
#define hardirq_enter(cpu) (local_irq_count[cpu]++)
#define hardirq_exit(cpu) (local_irq_count[cpu]--)
+ #define synchronize_irq() do { } while (0)
+
#else
#error FIXME
*** arch/alpha/kernel/irq.c.orig Wed Oct 16 01:05:09 1996
--- arch/alpha/kernel/irq.c Mon Apr 7 20:57:46 1997
***************
*** 28,33 ****
--- 28,35 ----
extern void timer_interrupt(struct pt_regs * regs);
+ unsigned int local_irq_count[NR_CPUS];
+
#if NR_IRQS > 64
# error Unable to handle more than 64 irq levels.
#endif
*** include/asm-alpha/io.h.orig Wed Apr 9 19:57:20 1997
--- include/asm-alpha/io.h Tue Apr 8 05:30:00 1997
***************
*** 38,44 ****
*/
extern inline void set_hae(unsigned long new_hae)
{
! unsigned long ipl = swpipl(7);
hae.cache = new_hae;
*hae.reg = new_hae;
mb();
--- 38,45 ----
*/
extern inline void set_hae(unsigned long new_hae)
{
! unsigned long ipl;
! swpipl(ipl, 7);
hae.cache = new_hae;
*hae.reg = new_hae;
mb();
That will build the kernel. Recent alpha 2.1.x-series kernels are
doing something different in the networking, too; Red Hat's (for one)
network startup scripts will hang when you ifconfig the loopback.
To fix this, install a /etc/sysconfig/network-scripts/ifup-lo that
checks your kernel revision, and manages the ifconfig differently
for the new ones. I copied stuff (starting with the actual ifconfig,
and ending with the end) from the regular ifup script, and put it in
a function called
ifup_lo_complex () {
...
}
(Don't know whether I can replicate RH's code on this list....)
I then added:
ifup_lo_simple () {
ifconfig lo up
}
case `uname -r` in
2.1.[3-9]?) :
ifup_lo_simple
;;
*) :
ifup_lo_complex ifcfg-lo
;;
esac
My network starts up fine now.
As you might expect, if you're using pppd you'll have to recompile it
for the dynamic routes in later 2.1-series kernels.
HTH.
-D.
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next parent reply other threads:[~1997-04-10 6:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <01BC4515.52696580@ispro.xs4all.nl>
1997-04-10 6:03 ` D. Champion [this message]
1997-04-10 20:13 ` 2.1.32 troubles, make boot doesn't finish (hardly starts) Jeff Odom
1997-04-10 9:12 Patrick Kessen
-- strict thread matches above, loose matches on Subject: below --
1997-04-09 16:14 Patrick Kessen
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox