eeh
bfc1e3973f
Dynamically allocate the buffer we use for filesystem deblocking based on
...
the filesystem blocksize in the super block. Allows us to read filesystems
with block sizes > 8KB.
2002-06-12 22:18:02 +00:00
martin
07cafe307b
Follow changes in libsa/stand.h: exit(void) -> exit(int) (one in a #if
...
0 block), to make it compile again.
2002-06-06 05:04:28 +00:00
bjh21
07db2878a8
Use ${FGEN} rather than fgen.
2002-05-28 21:56:54 +00:00
lukem
966b42a3e6
bootblock.h:
...
- unify sparc_bbinfo (1064 bytes, with 256 block entries)
and sun68k_bbinfo (296 byte, with 64 block entries)
into shared_bbinfo (512 bytes, with 118 block entries),
which will be also shared by future bbinfo-using platforms
(including macppc)
- add datestamp to *_BBINFO_MAGIC strings, to prevent installboot vs
bootxx version skew.
- add macppc support
*/bootxx.c:
- migrate to new shared_bbinfo structure
installboot:
- add macppc support (still needs applepartmap support and testing)
- improve and add some more warnings & errors to installboot
- implement shared_bbinfo_clearboot() and shared_bbinfo_setboot(), which
perform the majority of the work for bbinfo-using back-ends
(rather than replicating that across multiple back-ends).
2002-05-15 09:44:54 +00:00
lukem
aaa7dba035
- Enable NFS_BOOT_DHCP (as well as the existing NFS_BOOT_BOOTPARAM).
...
DHCP/Bootp is tried before bootparams in the MI nfs mountroot code.
- Change the order in boot.net from "bootparams then bootp" to
"bootp then bootparams", to be consistent with the MI nfs mountroot code.
(Consistency with other NetBSD ports is good, and things still work
for sites that run bootparams but not dhcp/bootp, although I'd argue that
dhcp/bootp is much easier to setup and manage and is easier to debug
than our rpc.bootparamd...)
Per discussion with Paul Kranenburg and Matt Green.
2002-05-14 14:27:33 +00:00
pk
eb95178e15
Patch up to work with MI installboot(8).
2002-05-07 14:13:02 +00:00
lukem
37d1d9cf41
decommission old installboot; it doesn't work on bootxx anymore anyway.
2002-05-07 12:32:52 +00:00
lukem
cea307e47c
convert to <sys/bootblock.h>
2002-05-07 12:06:06 +00:00
pk
db2a20d3fc
Convert `bootxx' to raw binary format which is what the MI installboot(8)
...
program needs.
2002-05-07 11:32:44 +00:00
pk
d6197003e5
Pass actual loaded kernel file in bootinfo[].
2002-03-28 15:46:20 +00:00
uwe
2837da095f
PROM patches for JavaStation-1.
2002-03-21 04:04:12 +00:00
uwe
438dfde149
OBP 2.30 in JS1 is romvec version 3, so g/c PROM_OBP_V2 entry.
...
Add bare-bones "8042" (pckbc) node and rename bogus zs nodes out of
the way to prevent them from matching.
2002-01-11 01:44:32 +00:00
mrg
e674bb7dc8
make this hostprog friendly.
2002-01-02 05:21:34 +00:00
mrg
dc34af64a7
- add a -i path-to-installboot option
...
- also recognise $INSTALLBOOT from the environment
- update Usage & share the option list with Help.
2002-01-02 04:13:42 +00:00
mrg
e5fc1d934a
clarify usage. idea from david obrien.
2001-12-31 09:44:04 +00:00
tv
816077b47e
Fix problem introduced with the MKMAN->NOMAN conversion.
2001-12-13 22:33:20 +00:00
lukem
b0b0a32ad7
Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
...
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
aymeric
48de85e04b
add support for OBP 3.x as seen on some JavaStation 1's
2001-12-11 21:09:52 +00:00
thorpej
2684ea2b22
Don't declare which exec formats to support in loadfile_machdep.h.
...
Instead, give each user of loadfile() control over which exec formats
it wants to support.
2001-12-04 18:54:34 +00:00
jmc
30dcee15c0
Grab the appropriate loadfile_elf depending on machine arch
2001-12-04 11:31:10 +00:00
uwe
1eebb3fde3
Add patches for Mr.Coffee with OBP2.
...
Miscellaneous cosmetic changes.
2001-11-22 04:18:28 +00:00
jmc
5ac54229c9
Don't make the symlinks on clean rules as well as obj rules. Breaks r/o source
...
trees that haven't gotten to the make obj recursion part of make build
otherwise.
2001-11-22 00:14:20 +00:00
uwe
8390d1903a
Skip relocation if OpenFirmware already loaded us at the right address.
2001-11-21 21:38:00 +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
thorpej
44f1c938e8
Don't actually need elf64 support in installboot(8).
2001-10-31 22:13:03 +00:00
thorpej
6797e85570
Include support for elf64.
2001-10-31 17:21:47 +00:00
thorpej
4810d73020
Build the loadfile() a.out, ECOFF, and ELF back-ends as separate
...
objects.
2001-10-31 01:51:42 +00:00
thorpej
715b4d636e
Use the standalone byteorder routines.
2001-10-30 23:39:08 +00:00
thorpej
380b5498e9
Make sure to load/store bbinfo values as big-endian.
2001-10-30 05:52:30 +00:00
thorpej
f16413a699
Rather than using nlist(3), use a magic structure with a magic
...
number that installboot(8) can search for. Suggested by cgd@netbsd.org .
2001-10-30 05:13:09 +00:00
eeh
98ecb5b215
getprop* -> PROM_getprop*
2001-09-26 20:53:05 +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
mrg
bbb36f6711
use the 32-bit compiler on sparc64 (but not yet enabled.)
2001-09-22 00:56:23 +00:00
eeh
84fb62aba0
Handle kernels with data+BSS segments larger than 4MB.
2001-08-30 23:00:19 +00:00
eeh
73ff12bf97
Bump version.
2001-08-16 23:57:08 +00:00
eeh
f6420907ca
Support for raidframe roots. I hope. (Someone needs to test this.)
2001-08-15 20:10:24 +00:00
eeh
1cf3d55cda
Make the loader extend the data+BSS segment to 4MB so we don't need to
...
shuffle it around in pmap_bootstrap().
2001-08-15 20:08:15 +00:00
mrg
ca351acf50
avoid an unused variable warning
2001-08-05 03:03:16 +00:00
bjh21
10414d85a9
Undo version bump. The sparc ofwboot doesn't use loadfile().
2001-08-02 16:22:46 +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
uwe
666d09dcfc
Add PROM patches (forth code) as a table indexed with root node name
...
and prom version. Little tweaks to prom during secondary boot are
much easier then fragile work-arounds in the kernel. Currently this
is used for JavaStation 1 with OBP3.
2001-06-21 03:13:05 +00:00
wiz
c03a48d64f
withough -> without
2001-06-13 10:45:57 +00:00
mrg
283e406cb0
drop to prom on "halt" as well.
2001-05-31 08:55:19 +00:00
uwe
43adc87035
Save OpenFirmware client interface handler in romp, where it is
...
expected to be. GC unused opf_romp variable.
2001-05-20 17:28:16 +00:00
pk
0929f3662e
* Missing PROM_OPENFIRM: case in getdevtype() and prom_getether().
...
* In getdevtype(), use prom_instance_to_package() to get to the device node.
From Valeriy E. Ushakov on port-sparc@netbsd.org .
2001-04-04 15:41:46 +00:00
mrg
b301668cb5
build sparc64 bootblk, ofwboot, & ofwboot.net on sparc
2001-03-04 15:34:45 +00:00
mrg
e85a9ee949
this is a sparc64 program. so -DSUN4U, machine -> sparc64. cleanup.
2001-03-04 14:50:05 +00:00
cgd
8a986b2e96
convert to use getprogname()
2001-02-19 22:48:57 +00:00
jmc
106522ed47
Add -f option. If used it will perform the low level block operations on the
...
file rather than requiring a raw device. Useful when dealing with vnd's
images and building snapshots. Also allows snapshots to be built in
securelevel > 0.
2001-02-19 06:23:55 +00:00