From: Thiemo Seufer <ths@networkno.de>
To: Damian Dimmich <djd20@kent.ac.uk>
Cc: linux-mips@linux-mips.org
Subject: Re: compiling kernel 2.6.13
Date: Wed, 31 Aug 2005 17:12:23 +0200 [thread overview]
Message-ID: <20050831151223.GV21717@hattusa.textio> (raw)
In-Reply-To: <200508311459.47273.djd20@kent.ac.uk>
Damian Dimmich wrote:
[snip]
> When linking .tmp_vmlinux1, KSEG1ADDR and KSEG1 where reported as undefined
> and linking failed.
> LD .tmp_vmlinux1
> arch/mips/sgi-ip22/built-in.o(.text+0x2854): In function `ip22_eisa_intr':
> : undefined reference to `KSEG1ADDR'
> arch/mips/sgi-ip22/built-in.o(.text+0x2864): In function `ip22_eisa_intr':
> : undefined reference to `KSEG1ADDR'
> arch/mips/sgi-ip22/built-in.o(.text+0x2870): In function `ip22_eisa_intr':
> : undefined reference to `KSEG1ADDR'
> arch/mips/sgi-ip22/built-in.o(.text+0x28ac): In function `ip22_eisa_intr':
> : undefined reference to `KSEG1ADDR'
> arch/mips/sgi-ip22/built-in.o(.text+0x28c0): In function `ip22_eisa_intr':
> : undefined reference to `KSEG1ADDR'
> arch/mips/sgi-ip22/built-in.o(.text+0x293c): more undefined references to
> `KSEG1ADDR' follow
> make: *** [.tmp_vmlinux1] Error 1
>
>
> I fixed this by adding the lines:
> #define KSEG1ADDR(a) (CPHYSADDR(a) | KSEG1)
> #define KSEG1 0xa0000000
> at the top of the file arch/mips/sgi-ip22/ip22-eisa.c
> These are copied from include/asm/addrspace.h
>
> I found it quite strange that it only failed when linking the kernel and not
> earlier. The file asm/addrspace.h is included in ip22-eisa.c
>
> eisa support is enabled and i'm compiling a 64 bit kernel.
You could try the patch in http://people.debian.org/~ths/foo/ip22-eisa.diff
which fixes that problem. I don't have the hardware to test it, and so far
nobody else cared to tell me if works.
Thiemo
next prev parent reply other threads:[~2005-08-31 15:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-31 13:59 compiling kernel 2.6.13 Damian Dimmich
2005-08-31 15:02 ` Ralf Baechle
2005-08-31 15:30 ` Stephen P. Becker
2005-08-31 15:35 ` Ralf Baechle
2005-08-31 15:55 ` Thiemo Seufer
2005-08-31 16:22 ` Atsushi Nemoto
2005-09-01 8:33 ` Thiemo Seufer
2005-08-31 15:12 ` Thiemo Seufer [this message]
2005-08-31 15:25 ` Ralf Baechle
2005-08-31 16:10 ` Thiemo Seufer
2005-08-31 15:42 ` Ladislav Michl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050831151223.GV21717@hattusa.textio \
--to=ths@networkno.de \
--cc=djd20@kent.ac.uk \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.