Linux MIPS Architecture development
 help / color / mirror / Atom feed
* porting arcboot
@ 2003-02-10  3:45 Andrew Clausen
  2003-02-10  9:23 ` Ralf Baechle
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Andrew Clausen @ 2003-02-10  3:45 UTC (permalink / raw)
  To: Linux-MIPS; +Cc: Guido Guenther

Hi all,

I'm planning to try porting arcboot to ip27 (mips64).

I plan to do this by cross-compiling... this is actually the only
option since there's no 64 bit userland yet.

Some issues:

 * I'll be cross-compiling (using the mips64-linux-gcc & friends that
are provided on ftp.linux-mips.org), which means some makefile hacking...

 * there's no mips64-linux glibc, which means no libc headers are
available.  So I need to either cut&paste libc headers, or remove
dependencies on them.  This affects lots of code.

 * the e2fs stuff... how is this being maintained?  It uses libc
headers a bit... can I kill them?  Or will this make it hard to update
to new upstream e2fsprogs releases?

Anything else?

Cheers,
ANdrew

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: porting arcboot
@ 2003-02-10 12:50 Vivien Chappelier
  0 siblings, 0 replies; 21+ messages in thread
From: Vivien Chappelier @ 2003-02-10 12:50 UTC (permalink / raw)
  To: linux-mips

---------- Forwarded message ----------
Date: Mon, 10 Feb 2003 13:49:49 +0100 (CET)
From: Vivien Chappelier <glaurung@vivienc.net1.nerim.net>
To: Guido Guenther <agx@gandalf.physik.uni-konstanz.de>
Subject: Re: porting arcboot

On Mon, 10 Feb 2003, Guido Guenther wrote:
> > Can't we read the load address (and needed space) from the elf header
> s/load address/kernel's load address/

Yes, that's what we do already. I was speaking of arcboot load address,
sorry this wasn't very clear :)

> In case we find a unique place for arcboot in the memory map of the
> different subarches.

On the O2 physical memory starts from KSEG0 (0x80000000), the kernel is
loaded there for 32-bit version or in XKPHYS (0x9800000000000000) for the
64-bit version. I don't really know where the PROM code and data is
located precisely, but loading something (arcboot or a kernel) at
0x88000000 as with ip22 is not an option; the PROM says something like
'loading there would overwrite an existing program'. Why is kernel/arcboot
loaded at 0x88000000 on ip22? Is KSEG0 an option for ip22?
BTW, what's the status of mips64/ip22? I guess the PROM doesn't support
64-bit as on the ip32, so arcboot with 64-bit support would be needed as
well, right?

Vivien.

^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: porting arcboot
@ 2003-02-10 14:37 Vivien Chappelier
  2003-02-10 15:01 ` Juan Quintela
  0 siblings, 1 reply; 21+ messages in thread
From: Vivien Chappelier @ 2003-02-10 14:37 UTC (permalink / raw)
  To: linux-mips; +Cc: Guido Guenther

> P.S.: you didn't cc: linux-mips, feel free to forward this mail there if
> appropriate

It's just I forgot the Reply-all :)
I'll look into what you mention and how to implement it tonight.

Vivien.

---------- Forwarded message ----------
Date: Mon, 10 Feb 2003 14:38:06 +0100
From: Guido Guenther <agx@gandalf.physik.uni-konstanz.de>
To: Vivien Chappelier <vivienc@nerim.net>
Subject: Re: porting arcboot

On Mon, Feb 10, 2003 at 01:49:49PM +0100, Vivien Chappelier wrote:
> Yes, that's what we do already. I was speaking of arcboot load address,
> sorry this wasn't very clear :)
That's actually not what we do, at least not consistently. We parse the
load address from the elf header but also assume a reserved space
(reserver_base/reserve_size in loader.c).

> > In case we find a unique place for arcboot in the memory map of the
> > different subarches.
> 
> On the O2 physical memory starts from KSEG0 (0x80000000), the kernel is
> loaded there for 32-bit version or in XKPHYS (0x9800000000000000) for the
> 64-bit version. I don't really know where the PROM code and data is
> located precisely, but loading something (arcboot or a kernel) at
> 0x88000000 as with ip22 is not an option; the PROM says something like
I don't have the Indy's documentation around but I think the space between
0x80000000 and 0x88000000 is reserved for EISA (which only the I2
actually has). Anyways, I'd be nice to get rid of reserve_{base,size}
first, we could then build a unique loader and maybe simply adjust the
loader's load address using objcopy upon installation in the vh, so we
get away with a single binary for 32bit.

> 'loading there would overwrite an existing program'. Why is kernel/arcboot
> loaded at 0x88000000 on ip22? Is KSEG0 an option for ip22?
> BTW, what's the status of mips64/ip22? I guess the PROM doesn't support
Don't know, wanted to look at this together with getting 2.5 a bit further but
my Indys hard disk went up in flames a week a ago (hard disks are
currently failing around me like crazy).
> 64-bit as on the ip32, so arcboot with 64-bit support would be needed as
> well, right?
Thiemo told me that his R10k I2s PROM only loads 64bit executables.
Don't know if the rest of IP22 can laod 64bit executables at all.
 - Guido

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

end of thread, other threads:[~2003-02-13  8:12 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-10  3:45 porting arcboot Andrew Clausen
2003-02-10  9:23 ` Ralf Baechle
2003-02-10 10:03 ` Guido Guenther
2003-02-10 22:39   ` Andrew Clausen
2003-02-11 10:55     ` Guido Guenther
2003-02-11 22:46     ` Florian Lohoff
2003-02-12  5:03       ` Andrew Clausen
2003-02-12  8:21         ` Guido Guenther
2003-02-12 15:26         ` Florian Lohoff
2003-02-12 22:58           ` Andrew Clausen
2003-02-13  8:10             ` Florian Lohoff
2003-02-10 10:33 ` Vivien Chappelier
2003-02-10 11:13   ` Guido Guenther
2003-02-10 11:26     ` Guido Guenther
2003-02-10 11:26       ` Guido Guenther
  -- strict thread matches above, loose matches on Subject: below --
2003-02-10 12:50 Vivien Chappelier
2003-02-10 14:37 Vivien Chappelier
2003-02-10 15:01 ` Juan Quintela
2003-02-10 15:03   ` Christoph Hellwig
2003-02-10 15:14     ` Juan Quintela
2003-02-10 15:23       ` Guido Guenther

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