Linux MIPS Architecture development
 help / color / mirror / Atom feed
* 64bit Sead build
@ 2003-07-21 14:32 David Kesselring
  2003-07-21 23:36 ` Ralf Baechle
  0 siblings, 1 reply; 7+ messages in thread
From: David Kesselring @ 2003-07-21 14:32 UTC (permalink / raw)
  To: linux-mips

I'm trying to build linux for Sead in 64 bit. I found that it would not
compile without the change at the end of this note. After this fix, I got
the following link error. Does anyone have an idea why?
*******************************************************************
mips64el-linux-ld --oformat elf32-tradlittlemips -G 0 -static  -Ttext
0x80100000 arch/mips64/kernel/head.o
arch/mips64/kernel/init_task.o init/main.o init/version.o init/do_mounts.o
\
        --start-group \
        arch/mips64/kernel/kernel.o arch/mips64/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o arch/mips/math-emu/fpu_emulator.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o \
        net/network.o \
        arch/mips64/lib/lib.a
/home/dkesselr/MIPS/linux-mips-cvs/2003Jul18/linux-build-mips64b/lib/lib.a
arch/mips/mips-boards/sead/sead.o
arch/mips/mips-boards/generic/mipsboards.o \
        --end-group \
        -o vmlinux
mips64el-linux-ld: warning: cannot find entry symbol __start; defaulting
to 0000000080100000
mips64el-linux-ld: vmlinux: Not enough room for program headers (allocated
3, need 4)
mips64el-linux-ld: final link failed: Bad value
make: *** [vmlinux] Error 1

**************************************************************************
--- 2003Jul21/linux/include/asm-mips64/serial.h	2003-06-15
19:42:21.000000000 -0400
+++ 2003Jul18/linux-build-mips64b/include/asm-mips64/serial.h	2003-07-21
10:25:32.000000000 -0400
@@ -20,8 +20,6 @@
  */
 #define BASE_BAUD (1843200 / 16)

-#ifdef CONFIG_HAVE_STD_PC_SERIAL_PORT
-
 /* Standard COM flags (except for COM4, because of the 8514 problem) */
 #ifdef CONFIG_SERIAL_DETECT_IRQ
 #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST |
ASYNC_AUTO_IRQ)
@@ -31,6 +29,7 @@
 #define STD_COM4_FLAGS ASYNC_BOOT_AUTOCONF
 #endif

+#ifdef CONFIG_HAVE_STD_PC_SERIAL_PORT
 #define STD_SERIAL_PORT_DEFNS			\
 	/* UART CLK   PORT IRQ     FLAGS        */			\
 	{ 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS },	/* ttyS0 */	\







David Kesselring
Atmel MMC
dkesselr@mmc.atmel.com
919-462-6587

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

* Re: 64bit Sead build
  2003-07-21 14:32 64bit Sead build David Kesselring
@ 2003-07-21 23:36 ` Ralf Baechle
  2003-07-22 12:40   ` David Kesselring
  0 siblings, 1 reply; 7+ messages in thread
From: Ralf Baechle @ 2003-07-21 23:36 UTC (permalink / raw)
  To: David Kesselring; +Cc: linux-mips

On Mon, Jul 21, 2003 at 10:32:55AM -0400, David Kesselring wrote:

> I'm trying to build linux for Sead in 64 bit. I found that it would not
> compile without the change at the end of this note. After this fix, I got
> the following link error. Does anyone have an idea why?

> mips64el-linux-ld --oformat elf32-tradlittlemips -G 0 -static  -Ttext
> 0x80100000 arch/mips64/kernel/head.o
> arch/mips64/kernel/init_task.o init/main.o init/version.o init/do_mounts.o
> \
>         --start-group \
>         arch/mips64/kernel/kernel.o arch/mips64/mm/mm.o kernel/kernel.o
> mm/mm.o fs/fs.o ipc/ipc.o arch/mips/math-emu/fpu_emulator.o \
>          drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
> drivers/net/net.o drivers/media/media.o \
>         net/network.o \
>         arch/mips64/lib/lib.a
> /home/dkesselr/MIPS/linux-mips-cvs/2003Jul18/linux-build-mips64b/lib/lib.a
> arch/mips/mips-boards/sead/sead.o
> arch/mips/mips-boards/generic/mipsboards.o \
>         --end-group \
>         -o vmlinux
> mips64el-linux-ld: warning: cannot find entry symbol __start; defaulting
> to 0000000080100000
> mips64el-linux-ld: vmlinux: Not enough room for program headers (allocated
> 3, need 4)

It may not be obvious but this is ld's way of telling you it doesn't
feel happy with the options and input files; in some case it could also
be considered an insufficiency of ld ...

In this particular case the bug is that the kernel configuration doesn't
set CONFIG_BOOT_ELF32.

I'm a bit surprised to see somebody's actually using a 64-bit kernel on a
SEAD.

  Ralf

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

* Re: 64bit Sead build
  2003-07-21 23:36 ` Ralf Baechle
@ 2003-07-22 12:40   ` David Kesselring
  2003-07-22 12:48     ` Ralf Baechle
                       ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: David Kesselring @ 2003-07-22 12:40 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

Thanks for the info. I'm trying to build 64bit sead so that it can be a
basis for a port to our own chip with a MIPS 5kf core. Is one of the other
supported boards more generic (and thus a better start) than Sead?
David

On Tue, 22 Jul 2003, Ralf Baechle wrote:

> On Mon, Jul 21, 2003 at 10:32:55AM -0400, David Kesselring wrote:
>
> > I'm trying to build linux for Sead in 64 bit. I found that it would not
> > compile without the change at the end of this note. After this fix, I got
> > the following link error. Does anyone have an idea why?
>
> > mips64el-linux-ld --oformat elf32-tradlittlemips -G 0 -static  -Ttext
> > 0x80100000 arch/mips64/kernel/head.o
> > arch/mips64/kernel/init_task.o init/main.o init/version.o init/do_mounts.o
> > \
> >         --start-group \
> >         arch/mips64/kernel/kernel.o arch/mips64/mm/mm.o kernel/kernel.o
> > mm/mm.o fs/fs.o ipc/ipc.o arch/mips/math-emu/fpu_emulator.o \
> >          drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
> > drivers/net/net.o drivers/media/media.o \
> >         net/network.o \
> >         arch/mips64/lib/lib.a
> > /home/dkesselr/MIPS/linux-mips-cvs/2003Jul18/linux-build-mips64b/lib/lib.a
> > arch/mips/mips-boards/sead/sead.o
> > arch/mips/mips-boards/generic/mipsboards.o \
> >         --end-group \
> >         -o vmlinux
> > mips64el-linux-ld: warning: cannot find entry symbol __start; defaulting
> > to 0000000080100000
> > mips64el-linux-ld: vmlinux: Not enough room for program headers (allocated
> > 3, need 4)
>
> It may not be obvious but this is ld's way of telling you it doesn't
> feel happy with the options and input files; in some case it could also
> be considered an insufficiency of ld ...
>
> In this particular case the bug is that the kernel configuration doesn't
> set CONFIG_BOOT_ELF32.
>
> I'm a bit surprised to see somebody's actually using a 64-bit kernel on a
> SEAD.
>
>   Ralf
>
>

David Kesselring
Atmel MMC
dkesselr@mmc.atmel.com
919-462-6587

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

* Re: 64bit Sead build
  2003-07-22 12:40   ` David Kesselring
@ 2003-07-22 12:48     ` Ralf Baechle
  2003-07-22 12:49     ` Dominic Sweetman
  2003-07-22 12:52     ` Ralf Baechle
  2 siblings, 0 replies; 7+ messages in thread
From: Ralf Baechle @ 2003-07-22 12:48 UTC (permalink / raw)
  To: David Kesselring; +Cc: linux-mips

On Tue, Jul 22, 2003 at 08:40:30AM -0400, David Kesselring wrote:

> Thanks for the info. I'm trying to build 64bit sead so that it can be a
> basis for a port to our own chip with a MIPS 5kf core. Is one of the other
> supported boards more generic (and thus a better start) than Sead?

We more regularly test on Malta which I also consider a way more
friendly test and development environment than SEAD which is sort of
a bare bone board.

  Ralf

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

* Re: 64bit Sead build
  2003-07-22 12:40   ` David Kesselring
  2003-07-22 12:48     ` Ralf Baechle
@ 2003-07-22 12:49     ` Dominic Sweetman
  2003-07-22 13:04       ` Ralf Baechle
  2003-07-22 12:52     ` Ralf Baechle
  2 siblings, 1 reply; 7+ messages in thread
From: Dominic Sweetman @ 2003-07-22 12:49 UTC (permalink / raw)
  To: David Kesselring; +Cc: Ralf Baechle, linux-mips


David,

You wrote to Ralf:

> Thanks for the info. I'm trying to build 64bit sead so that it can
> be a basis for a port to our own chip with a MIPS 5kf core.

Interesting.  It's good to know people are looking at the 64-bit
ports.

> Is one of the other supported boards more generic (and thus a better
> start) than Sead?

We use our 'Malta' board for all our in-house Linux work.  See:

  http://www.mips.com/ProductCatalog/P626341476/productView

(I think that link will work for you... let me know if it's
non-portable) 

We maintain a relatively stable 32-bit Linux port for Malta.  64-bit
is still somewhat experimental; but at least you have a board with
ethernet and disk ports, and PCI expansion slots.

I guess you should ask your local MIPS salesperson about Malta.

-- 
Dominic Sweetman
MIPS Technologies
The Fruit Farm, Ely Road, Chittering, CAMBS CB5 9PH, ENGLAND
phone +44 1223 706205/fax +44 1223 706250/swbrd +44 1223 706200
http://www.mips.com

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

* Re: 64bit Sead build
  2003-07-22 12:40   ` David Kesselring
  2003-07-22 12:48     ` Ralf Baechle
  2003-07-22 12:49     ` Dominic Sweetman
@ 2003-07-22 12:52     ` Ralf Baechle
  2 siblings, 0 replies; 7+ messages in thread
From: Ralf Baechle @ 2003-07-22 12:52 UTC (permalink / raw)
  To: David Kesselring; +Cc: linux-mips

On Tue, Jul 22, 2003 at 08:40:30AM -0400, David Kesselring wrote:

> Thanks for the info. I'm trying to build 64bit sead so that it can be a
> basis for a port to our own chip with a MIPS 5kf core. Is one of the other
> supported boards more generic (and thus a better start) than Sead?

Btw, forgot to mention I put a fix for the problem you reported into
CVS yesterday so building works.  I don't have a SEAD so I wasn't
able to test.

  Ralf

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

* Re: 64bit Sead build
  2003-07-22 12:49     ` Dominic Sweetman
@ 2003-07-22 13:04       ` Ralf Baechle
  0 siblings, 0 replies; 7+ messages in thread
From: Ralf Baechle @ 2003-07-22 13:04 UTC (permalink / raw)
  To: Dominic Sweetman; +Cc: David Kesselring, linux-mips

On Tue, Jul 22, 2003 at 01:49:48PM +0100, Dominic Sweetman wrote:

> > Thanks for the info. I'm trying to build 64bit sead so that it can
> > be a basis for a port to our own chip with a MIPS 5kf core.
> 
> Interesting.  It's good to know people are looking at the 64-bit
> ports.

The general problem I'm observing is nobody wants to be the first through
the minefield of building a commercial product based on a 64-bit kernel
though for many applications it seems to be a much saner solution than
a 32-bit kernel.

My use is atypical but I'm running a 64-bit kernel SMP / ccNUMA kernel
since years without major problems so we're 90% through and I'd like to
know about the missing 10% ...

  Ralf

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

end of thread, other threads:[~2003-07-22 13:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-21 14:32 64bit Sead build David Kesselring
2003-07-21 23:36 ` Ralf Baechle
2003-07-22 12:40   ` David Kesselring
2003-07-22 12:48     ` Ralf Baechle
2003-07-22 12:49     ` Dominic Sweetman
2003-07-22 13:04       ` Ralf Baechle
2003-07-22 12:52     ` Ralf Baechle

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