linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: New booter
@ 1999-09-14  9:18 Benjamin Herrenschmidt
  1999-09-14  9:28 ` Ethan Benson
  0 siblings, 1 reply; 45+ messages in thread
From: Benjamin Herrenschmidt @ 1999-09-14  9:18 UTC (permalink / raw)
  To: Ethan Benson, linuxppc-dev


On Mon, Sep 13, 1999, Ethan Benson <erbenson@alaska.net> wrote:

>>What a week, quik got fixed, AND a new booter for OF-deficient machines to
>>free them from needing MacOS just to bootstrap Linux!
>
>quik is not fixed totally, the first stage loader still does not work 
>on newworld macs, unless anyone has some suggestions...

I agree this is not perfect, but as I wrote you privately, we can still
use a small HFS partition with the second stage bootstrap beeing directly
loaded by OF. This works now, I tested it last week. Not perfect, but
better than BootX for those machine since the kernel will now be able to
use RTAS ;-)

-- 
           Perso. e-mail: <mailto:bh40@calva.net>
           Work   e-mail: <mailto:benh@mipsys.com>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 45+ messages in thread
[parent not found: <199909170500.AAA08016@lists.linuxppc.org>]
[parent not found: <v04011701b404e6cd4493@[199.174.193.101]>]
* Re: New booter
@ 1999-09-14  9:37 Ethan Benson
  0 siblings, 0 replies; 45+ messages in thread
From: Ethan Benson @ 1999-09-14  9:37 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, linuxppc-dev


BTW I did send that message to Christian explaining what you are 
trying to do, I have not heard back from him though, I gave him your 
email address and said if he was willing to give some advice to email 
you directly...

I know he travels alot now and does not get to email very quickly...



Best Regards,
Ethan Benson
To obtain my PGP key: http://www.alaska.net/~erbenson/pgp/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 45+ messages in thread
* Re: New booter
@ 1999-09-14  9:10 Benjamin Herrenschmidt
  0 siblings, 0 replies; 45+ messages in thread
From: Benjamin Herrenschmidt @ 1999-09-14  9:10 UTC (permalink / raw)
  To: Andreas Bogk, linuxppc-dev


On Mon, Sep 13, 1999, Andreas Bogk <andreas@andreas.org> wrote:

>> I forgot to mention that the kernel args can be changed by editing the
>> CMDL resource in the System file with resedit. Don't forget the trailing
>> 0, it's a C string !
>
>What's the point of a boot application that works without MacOS when
>yu need MacOS to modify the kernel args?

Hey, wait ! This is just a first prototype ;-)

Hopefully, when finished, all those infos will be in a separate text
file. I also need to make some kind of installer that lays out the small
HFS partition, fills the boot blocks and mark the root directory
"blessed" (in MacOS terminology, that means it contains a valid System file).

-- 
           Perso. e-mail: <mailto:bh40@calva.net>
           Work   e-mail: <mailto:benh@mipsys.com>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 45+ messages in thread
* Re: New booter
@ 1999-09-13 20:37 Kevin Puetz
  1999-09-13 22:08 ` Ethan Benson
  0 siblings, 1 reply; 45+ messages in thread
From: Kevin Puetz @ 1999-09-13 20:37 UTC (permalink / raw)
  To: Daniel Jacobowitz, Andreas Bogk; +Cc: Benjamin Herrenschmidt, linuxppc-dev


True, but it would be _much_ more convenient if you could just read them 
from a text file. Eventually, of course. Preferably with a syntax as close
as makes sense to quik.conf/lilo.conf

What a week, quik got fixed, AND a new booter for OF-deficient machines to
free them from needing MacOS just to bootstrap Linux!


----------

> On Mon, Sep 13, 1999 at 07:51:46PM +0000, Andreas Bogk wrote:
>>
>> Benjamin Herrenschmidt <bh40@calva.net> writes:
>>
>> > I forgot to mention that the kernel args can be changed by editing the
>> > CMDL resource in the System file with resedit. Don't forget the trailing
>> > 0, it's a C string !
>>
>> What's the point of a boot application that works without MacOS when
>> yu need MacOS to modify the kernel args?
>
>
> You don't.  You can hack them with a hex editor if you prefer.  Are
> there decent tools for dealing with hfs resource forks from linux? Not
> that I know of but there is nothing stopping someone from writing one.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 45+ messages in thread
[parent not found: <19990913192231.002595>]
* New booter
@ 1999-09-13 17:22 Benjamin Herrenschmidt
  0 siblings, 0 replies; 45+ messages in thread
From: Benjamin Herrenschmidt @ 1999-09-13 17:22 UTC (permalink / raw)
  To: linuxppc-dev, Paul.Mackerras, eek


I've uploaded preliminary work for a new booter, it's available at:

http://calvaweb.calvacom.fr/bh40/test.html and is called "miBoot".

It's a fake MacOS System file that should allow booting on real-ROMs Macs
(pre-new world) without a complete MacOS installed. For the moment, I
mostly tested it with a floppy containing:

 - The fake "System" file,
 - A fake (empty) "Finder" file (with the correct type and creator)
 - A compressed kernel. Currently, the kernel MUST be the normal
"vmlinux" file compressed with a "gzip -vf9 vmlinux" and named
vmlinux.gz. Of course, this may change in the future.

Also, the disk must be "blessed". It must have the correct boot blocks to
be recognized as a bootable disk. A DiskCopy disk image is included in
the archive which should have all the appropriate stuffs. The bootblocks
can be put manualy (block 0 and 1 of the HFS file system) from the "boot"
resource ID 1 in the system.

The current version contains all BootX code (some parts slightly
rewritten, some bugs fixed). It works up to the point where the kernel
tries to boot. The prom.c messages are correctly displayed, the address
(0) seems to be correct, the MSR value too, I made a quick check of the
device tree and it looks ok too, but the kernel hangs. (I tried adding
xmon to the command line, but it won't go that far).

You can get a lot of messages from the booter by pressing the option
(alt) key when it's loaded (just keep it pressed until the happy map is
replaced by... you'll see).

I won't have time to do much more work on this until next week-end, so
feel free to hack, find out why the kernel doesn't boot, etc....

Also, I temporarily removed the NuBus code. I'll put it back in when I
have something more "polished". Most of the code of the boot 2 and 3
resources should work on 68k. Some _StripAddress may be needed on old
ROMs, and a couple of traps may need to be checked for existence before
using them. Also, on those old machines, we may have to hack a bit more
with the MacOS low memory stuffs and heap/stack sizes.

Once finished, this booter should allow to make bootable linux CDs for
all supported macs. The NewWorld mac will need the addition of a
boot-info file and the secondary loader.
It should also allow bootable floppies. For hard disks, it should work
(booting from a small HFS partition like MacOS X) but we sill need a
working disk driver on the hard disk. I have some work in progress for
one, I'll go back at fixing it when miBoot is ok.

Have fun !

-- 
           Perso. e-mail: <mailto:bh40@calva.net>
           Work   e-mail: <mailto:benh@mipsys.com>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~1999-09-18 12:58 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-14  9:18 New booter Benjamin Herrenschmidt
1999-09-14  9:28 ` Ethan Benson
     [not found] <199909170500.AAA08016@lists.linuxppc.org>
1999-09-17 16:07 ` Derek Homeier
1999-09-18 12:58   ` Benjamin Herrenschmidt
     [not found] <v04011701b404e6cd4493@[199.174.193.101]>
     [not found] ` <v04210105b404ed46f043@[192.168.0.1]>
1999-09-15  9:39   ` Benjamin Herrenschmidt
1999-09-15  9:58     ` Ethan Benson
1999-09-15 17:53       ` Kevyn Shortell
1999-09-15 18:03         ` David A. Gatwood
1999-09-15 22:40           ` Ethan Benson
1999-09-15 22:56             ` Tom Rini
1999-09-15 23:03             ` Dan Burcaw
1999-09-15 22:37         ` Ethan Benson
1999-09-15 23:02           ` Peter Bierman
1999-09-16  3:18             ` Ethan Benson
1999-09-16  3:37               ` David D. Kilzer
1999-09-15 23:10           ` Wolfgang Denk
1999-09-16  8:16             ` Geert Uytterhoeven
1999-09-16  8:38               ` Ethan Benson
1999-09-16 10:47               ` Benjamin Herrenschmidt
1999-09-16 17:01               ` David A. Gatwood
1999-09-16 18:48               ` Michel Lanners
1999-09-15 23:15           ` erik cameron
1999-09-16  3:50             ` Ethan Benson
1999-09-16  4:21               ` Dan Burcaw
1999-09-15 17:22   ` David A. Gatwood
1999-09-15 22:41     ` Ethan Benson
1999-09-15 17:39   ` Peter Bierman
1999-09-15 22:27     ` Ethan Benson
1999-09-15 22:47       ` David N. Welton
1999-09-15 23:01         ` Dan Burcaw
1999-09-15 22:48       ` Peter Bierman
1999-09-15 23:19         ` Ethan Benson
1999-09-15 23:48           ` Tom Rini
1999-09-16  0:23             ` David A. Gatwood
1999-09-16  4:02               ` Sean
1999-09-16  5:42                 ` David A. Gatwood
1999-09-16  3:59             ` Ethan Benson
  -- strict thread matches above, loose matches on Subject: below --
1999-09-14  9:37 Ethan Benson
1999-09-14  9:10 Benjamin Herrenschmidt
1999-09-13 20:37 Kevin Puetz
1999-09-13 22:08 ` Ethan Benson
     [not found] <19990913192231.002595>
1999-09-13 17:24 ` Benjamin Herrenschmidt
1999-09-13 19:51   ` Andreas Bogk
1999-09-13 18:12     ` Daniel Jacobowitz
1999-09-13 17:22 Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).