From: Benjamin Herrenschmidt <bh40@calva.net>
To: linuxppc-dev@lists.linuxppc.org, Paul.Mackerras@cs.anu.edu.au,
eek@escape.ca
Subject: New booter
Date: Mon, 13 Sep 1999 19:22:31 +0200 [thread overview]
Message-ID: <19990913192231.002595@mailhost.mipsys.com> (raw)
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/
next reply other threads:[~1999-09-13 17:22 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-13 17:22 Benjamin Herrenschmidt [this message]
[not found] <19990913192231.002595>
1999-09-13 17:24 ` New booter Benjamin Herrenschmidt
1999-09-13 19:51 ` Andreas Bogk
1999-09-13 18:12 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
1999-09-13 20:37 Kevin Puetz
1999-09-13 22:08 ` Ethan Benson
1999-09-14 9:10 Benjamin Herrenschmidt
1999-09-14 9:18 Benjamin Herrenschmidt
1999-09-14 9:28 ` Ethan Benson
1999-09-14 9:37 Ethan Benson
[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
[not found] <199909170500.AAA08016@lists.linuxppc.org>
1999-09-17 16:07 ` Derek Homeier
1999-09-18 12:58 ` Benjamin Herrenschmidt
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=19990913192231.002595@mailhost.mipsys.com \
--to=bh40@calva.net \
--cc=Paul.Mackerras@cs.anu.edu.au \
--cc=eek@escape.ca \
--cc=linuxppc-dev@lists.linuxppc.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 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).