All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bart Grantham <bart-grubdevel@bartgrantham.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Sparc bootblock [Was: SFS breaks PPC build ]
Date: Mon, 17 Oct 2005 14:01:13 -0400	[thread overview]
Message-ID: <4353E6E9.8020105@bartgrantham.com> (raw)
In-Reply-To: <4353D881.3090503@yahoo.fr>

Vincent Pelletier wrote:

> Bart Grantham wrote:
> 
>>- have it verify that the file at the configured sector(s) is an ELF file
> 
> Quite easy if we stick to the header signature.
> 

Well, I was referring to the ELF magic number rather than the multiboot 
magic number.  I'll probably check the first unconditionally and the 
second can be overridden with a boot parameter.

>>- follow through and make sure it properly boots an ELF image (right now
>>it only gets it into memory)
> 
> I think there are 2 ways :
> -write your own Forth ELF relocating code (might be fun, but beside that...)
> -have the "init-program" command do this work for you, which require you
> to load the image where "boot net" loads it (or maybe other commands,
> but for now I only know about boot net as it is the only way to
> currently boot grub2 on sparc64 ;) ).

Heh.  I looked into this and I'm definitely going the init-program 
route.  I don't think that there's a platform independent way of doing 
relocation and I don't really feel that it's in the spirit of OF 
anyways.  Besides, writing F-Code is mind-bending enough as it is.  :)

>>- verify that the code works on PPC, and if not, try to make it work so
>>that there's a unified bootblock [not sure if this is reasonable as I'm
>>not as familiar with how PPC OF boots... how similiar is it to Sparc?]
> 
> I think this one can't be done without making the FCode grow quite big.

Perhaps.  But I'll try for it anyways because if it's possible, I'd like 
to have it as a workable alternative for PPC users who aren't using a 
filesystem their PROM understands.  For example, someone porting ReactOS 
(NTFS) or HaikuOS (BFS) to PPC.  (Hey!  Don't laugh... it could happen! ;) )

>>- same for sparc32
> 
> I would be interested if the port could be unified in 32bits.

Me too.  Or at least try to get the two platforms as close as possible. 
  I'll keep you abreast of what I discover.

Bart



  reply	other threads:[~2005-10-17 18:01 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-15 18:15 GRUB 1.91 is released Yoshinori K. Okuji
2005-10-15 22:57 ` [SFS breaks PPC build] " Cyril Plisko
2005-10-16  0:47   ` Dennis Clarke
2005-10-16 11:49   ` Marco Gerards
2005-10-16 19:17     ` Dennis Clarke
2005-10-16 19:28       ` Cyril Plisko
2005-10-16 19:51         ` Dennis Clarke
2005-10-16 21:12         ` Marco Gerards
2005-10-16 21:28           ` Cyril Plisko
2005-10-16 21:39             ` Marco Gerards
2005-10-16 21:48               ` Cyril Plisko
2005-10-16 22:13                 ` Marco Gerards
2005-10-17  7:30                   ` Sparc bootblock [Was: SFS breaks PPC build ] Bart Grantham
2005-10-17  8:20                     ` Sparc bootblock Marco Gerards
2005-10-17 10:37                       ` Cyril Plisko
2005-10-17 13:38                       ` Andrei Warkentin
2005-10-17 13:28                     ` Sparc bootblock [Was: SFS breaks PPC build ] Andrei Warkentin
2005-10-17 16:59                     ` Vincent Pelletier
2005-10-17 18:01                       ` Bart Grantham [this message]
2005-10-17 18:13                         ` Sparc bootblock Marco Gerards
2005-10-16 19:41 ` GRUB 1.91 is released Joe Ciccone
2005-10-16 21:06   ` Marco Gerards
2005-10-18 21:14     ` Joe Ciccone
2005-10-20 18:20       ` Marco Gerards

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=4353E6E9.8020105@bartgrantham.com \
    --to=bart-grubdevel@bartgrantham.com \
    --cc=grub-devel@gnu.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.