itojun
73941c5096
avoid hardcoding MBR_MAGICOFF and MBR_MAGIC.
2002-06-18 00:37:25 +00:00
itojun
980d7c811b
LABELSECTOR is redefined to be 0 on macppc, so it is not usable for MBR
...
disk label offset. use hardcoded "1" for now, i guess we need a new #define
in sys/disklabel_mbr.h. fixes ofwboot to boot kernel off from MBR-formatted
disk.
2002-06-17 23:59:01 +00:00
lukem
633e8d9515
minor cosmetic tweaks:
...
- put \r\n before OF_open message
- use '0' + i % 10 instead of 'A' + i to print the read block number
2002-05-18 04:24:22 +00:00
lukem
4fa13b2be7
nuke MD installboot, now that it doesn't understand the macppc
...
bootblocks anymore and /usr/sbin/installboot does
2002-05-18 04:06:12 +00:00
lukem
7f3c3f9b76
Fixes from Bill Studenmund and Allen Briggs:
...
- setup a 32KB (+32byte) stack, instead of 4KB stack
- cache flush: use _start instead of 0x4000, and flush 2k instead of 1k
Features (by me):
- implement:
OF_write() (and grab "stdout" from "/chosen")
putstrn(s,n) using OF_write(); write string s of n bytes long
putstr(s); write fixed-sized string s
putc(c); write char c
- add some useful messages which output the status of loading the
stage 2 bootstrap (which is usually ofwboot)
This code now works on Bill's Beige G3!
2002-05-17 18:45:55 +00:00
wrstuden
1ada35e0f6
Adjust how we set up our stack. According to the ABI, we store the
...
return pc address at (r1). So don't initialize r1 to be outside our
stack area. Scooted it in 16 bytes to help alignment.
2002-05-16 18:02:47 +00:00
lukem
ee3c8d5e85
convert to using shared_bbinfo from <sys/bootblock.h>, and install as an
...
"${OBJCOPY} -O binary ..." program (rather than as ELF)
2002-05-15 13:55:38 +00:00
tsutsui
df16ac88cd
Use "-Os -mmultiple".
2002-04-13 13:44:48 +00:00
tsutsui
c7a7330ca9
Add "cleanlibdir" target.
2002-04-13 13:35:23 +00:00
tsutsui
c58dce575b
Set USE_LIBSA_MEMCPY and USE_LIBSA_MEMSET to save a few bytes.
2002-04-13 13:31:40 +00:00
tsutsui
8d79e86713
Add -b option to write the second-stage bootloader contiguously. (for ustarfs)
2002-03-30 07:19:30 +00:00
tsutsui
9e9f7b6c60
Bump version for ustarfs support.
2002-03-30 07:17:48 +00:00
tsutsui
4a12192a62
Enable SUPPORT_USTARFS and HAVE_CHANGEDISK_HOOK in CPPFLAGS.
2002-03-30 07:17:09 +00:00
tsutsui
5cb20a9896
Add changedisk_hook() for ustarfs. (from tsubai)
2002-03-30 07:15:51 +00:00
tsutsui
18c67eedf6
Add ustarfs ops.
2002-03-30 07:14:49 +00:00
tsutsui
a0453e4c67
Remove unused define/include/variable.
2002-03-29 20:31:52 +00:00
tsutsui
2167e61bce
Add back -I. to CPPFLAGS.
2002-03-29 20:26:06 +00:00
tsutsui
ad8cbb6cbc
Cleanup some flags.
2002-03-29 18:21:38 +00:00
tsutsui
a59e9106d6
Cosmetics.
2002-03-29 15:15:07 +00:00
jmc
68b038f787
Wrap the generation of machine and powerpc links so they don't happen during
...
make obj, clean or cleandir as the proper objdir may not be around yet.
2002-03-02 06:32:28 +00:00
wrstuden
3a971f756f
Make this work with the dependall target.
...
Pointed out by Christian Groessle on port-macppc, and patch suggested bu
Izumi Tsutsui.
2002-02-13 17:52:08 +00:00
wrstuden
0dd5e345ea
Check in machinery to make ofwboot load at 600000, while ofwboot.elf
...
and ofwboot.xcf will load at 640000. The idea is that we can now
leave load-base at 600000, and it will work right for all three methods.
The problem is that the file loader and the net loader use load-base
as a scratch area, so if the executable really wants to load there,
the load fails.
2002-02-01 18:45:29 +00:00
matt
3b0bdd1f0f
Remove machine/powerpc links on clean as well.
2002-01-07 23:09:53 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
tv
5489b30b60
${MAKE} print-objdir -> ${PRINTOBJDIR}
2001-11-14 00:58:48 +00:00
scw
45e7238a02
Bump the version numbers of all bootloaders which use loadfile_elfXX() now
...
that it tries hard to avoid backwards seeks.
2001-11-09 19:53:11 +00:00
jmc
51e607ae23
Add nb_progname so this will compile on older NetBSD systems that will be
...
upgrading to -current via the new toolchain build process eventually.
2001-10-20 06:14:30 +00:00
wiz
4c99916337
va_{start,end} audit:
...
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
tv
ab11c169b5
objcopy -> ${OBJCOPY}; remove redundant definitions of OBJCOPY?= (it is
...
now in bsd.own.mk).
2001-09-22 03:34:17 +00:00
tsubai
e20342e78d
Fix a bug introduced when machine_type.h was removed.
...
Now the kernel can read symbol table again.
2001-08-23 14:17:27 +00:00
tsubai
b1d1120084
Search "/netbsd.gz" and "/netbsd.macppc" in addition to "/netbsd".
2001-08-13 15:38:11 +00:00
bjh21
ad2c12a28d
Bump version numbers of all bootloaders that use loadfile/ELF, to account for
...
my changes to symbol loading. I should probably have done this at the time,
but it's better late than never.
2001-08-02 12:24:05 +00:00
wiz
c5a6be17f4
bcopy -> memcpy, bzero -> memset, bcmp -> memcmp.
...
Reviewed by Matt Thomas, ok'd by Tsubai Masanari.
2001-07-22 11:29:44 +00:00
matt
b499a7d558
Add -Wno-main since this is a standalone program.
2001-07-18 05:37:55 +00:00
soren
945b972563
PPC machine type tags haven't been used for a while.
2001-05-03 13:11:24 +00:00
cgd
8a986b2e96
convert to use getprogname()
2001-02-19 22:48:57 +00:00
matt
9dd26cf7c4
It's hfs.c, not hfs. Add -I${.CURDIR} for objdirs. XXX hfs.c should
...
be integrated into libsa.
2000-11-16 07:36:04 +00:00
tsubai
e3ae93dfd4
Add hfs support. Currently this layer simply throw the request to the OF
...
(and the OF recognizes HFS).
2000-11-14 11:25:34 +00:00
garbled
b7c07855f6
make -> ${MAKE}
2000-10-28 15:41:25 +00:00
tsubai
251bc81879
Change ofwboot entry address to 0x600000.
2000-10-24 12:18:33 +00:00
wrstuden
07a9408ae6
Move ofwboot to 600000 hex. Should make loading better (less likely to
...
run into OF internals).
2000-10-13 00:19:30 +00:00
jdolecek
49c105ffdb
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
...
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate
as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro
for hpcmips, use new bootverbose instead of it's own hpcmips_verbose
Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
2000-09-24 12:32:31 +00:00
tsubai
1267826d5d
Increase stack size.
2000-08-20 07:04:59 +00:00
tsubai
46ab3e89fb
Use libsa alloc().
2000-07-25 06:26:18 +00:00
tsubai
dd54c272e5
Add ofwboot.{mrg,xcf} to CLEANFILES.
2000-07-25 06:22:05 +00:00
tsubai
8dc7633036
Make this compile again.
2000-07-25 06:18:23 +00:00
jdolecek
20933708ec
switch to sys/conf/newvers_stand.sh for generation of version file
...
slighly adjust the Makefile WRT vers.c and SRCS & CLEANFILES
2000-07-21 21:42:25 +00:00
dmcmahill
db5c144019
make sure ofwboot.xcf gets installed
2000-07-06 19:42:55 +00:00
matt
d3336b64a1
Squeeze a few more bytes so the INSTALL kernel will fit on a floppy.
...
Use tlp instead of de. Add in gm[ac]. Remove slip and Gallant 22x12 font.
Compile ofwboot.elf -Os.
2000-06-08 17:35:47 +00:00
matt
dca520b4a6
Add fixcoff so an obj dir can be created
2000-06-01 18:33:43 +00:00