Re: ELF ?


Subject: Re: ELF ?
From: Samuel Rydh (samuel@ibrium.se)
Date: Sat Jun 09 2001 - 05:05:48 MDT


On Fri, Jun 08, 2001 at 03:41:31PM -0700, Donovan Warren wrote:
> > Actually, this is a new feature. It is no longer necessary
> > to strip the ROM since (MOL no longer uses with libelf,
> > which expected the ELF header att offset 0). This holds
> > for 0.9.59 (the version bundled with YDL 2.0).
Oh my, did I write this? I think I'll have to start reading through my
postings before actually sending them :-).

> Why, then, does MOL complain about the rom image not being an ELF, if it is
> not necessary for it to be one?

The "Mac OS ROM" file is an ELF image but an OpenFirmware boot script
goes before it. MOL used to link with libelf which required the
ELF image started at offset 0. Since MOL now uses a ELF loader
originating from yaboot, this limitation is gone. That is, it is
no longer necessary to remove the boot script with strip_nwwrom.

> As far as I can tell, the instructions for making MOL work,
> on the website (which I would assume to be authoritative)
> will never work for HFS+ formatted volumes.

No, for HFS+ volumes it is necessary to use the hputils package:

        hpmount /dev/sda7
        hpcd "System Folder"
        hpcopy -r "Mac OS ROM" /usr/lib/mol/rom/rom.nw
        hpumount

Note the '-r' switch which is crucial in order to prevent a
MacBinary conversion.

However, this is more or less obsolete since the next version of
MOL will load the Mac OS ROM file directly from the HFS/HFS+ boot
volume. Anyway, I'm planning to rework the complete web site -
a lot of the information is obsolete/incorrect by now.

> What rsync version?

There is a rsync interface to the MOL developer tree. This is not
well documented on the web site, which is another reason why I'll
rework it :-). Anyway, the developer tree can be downloaded
through

        rsync -vcaz zorn.theophys.kth.se::mol mol-rsync

The rsync mirror of the bitkeeper is updated automatically
from the bitkeeper tree (bk://zorn.theophys.kth.se:5000) at
each push.

/Samuel

----------------------------------------------------------
 E-mail <samuel@ibrium.se> WWW: <http://www.ibrium.se>
  Phone/fax: (home) +46 8 4418431, (work) +46 8 7908470
----------------------------------------------------------



This archive was generated by hypermail 2a24 : Sat Jun 09 2001 - 04:12:11 MDT