rumble
9f443e25a4
Remove braces from non-optional arguments in usage.
2006-12-30 18:25:30 +00:00
rumble
fd144d2f8a
Add -p command to usage.
2006-12-30 06:10:38 +00:00
mrg
ba1331d1b0
don't pass unsigned char * to functions wanting char *.
2006-07-03 01:21:50 +00:00
thorpej
948898912b
Don't include <sys/endian.h> if building as a host tool.
2006-05-05 17:59:41 +00:00
christos
606bb2caed
free -> dealloc
...
unsigned -> size_t for alloc/dealloc
2006-01-25 18:28:25 +00:00
ginsbach
d357be2474
Fix the build of sgivol as a host tool on a platform without libutil,
...
e.g. MacOS X. Identical to method used in the disklabel(8) Makefile.
2005-12-23 03:28:10 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
tsutsui
60528befec
Link ip2xboot as OMAGIC by -N option for ld(1) as well as ip3xboot.
...
Tested by sekiya.
2005-09-09 17:27:18 +00:00
junyoung
17670568fe
Use FS_OPS() macro.
2005-06-23 19:44:00 +00:00
martin
bf739d0144
Constify
2005-06-03 18:55:12 +00:00
tsutsui
1ca5aaef91
Link ip3xboot as OMAGIC by -N option for ld(1) so that the firmware on O2
...
can load it again.
2005-04-23 10:47:22 +00:00
tsutsui
fa657c9ce8
Cosmetic changes to reduce diffs from arc.
2005-04-21 13:59:14 +00:00
tsutsui
d0112ff334
- Use u_long or long rather than paddr_t for ARCBIOS function prototypes
...
as per the ARC specification. They are actually 64bit on MIPS64 based
machines and our paddr_t is not equal to pointer size.
(arc is ILP32 but has 64bit paddr_t)
- While here, change some unsigned long to u_long for consistency.
2005-04-18 15:38:00 +00:00
sekiya
e6a83e3a96
Replace elf2ecoff with objcopy for ECOFF bootloader creation. Fix a comment
...
typo while we're here.
2005-03-01 00:20:09 +00:00
sekiya
b9e63b2210
0 is a success code for ioctl(). Fixes install problem introduced by
...
revision 1.9 last November.
2005-02-28 06:44:55 +00:00
skrll
2cd9c39722
Update the emulation names after recent binutils changes.
2005-01-14 08:17:49 +00:00
jmc
417e73cb35
Retool sgivol into a proper hostool that doesn't depend on disklabel.h.
...
Assume defaults for file images that match what a vnd would have used.
Native use will still use the standard NetBSD label to get this data.
Fixes PR#25996
2004-11-24 22:01:21 +00:00
he
32dfb50ca9
Track the change of int -> paddr_t for the arguments to the ARCBIOS
...
routines.
2004-10-04 19:59:51 +00:00
sekiya
0603553bbb
Compile the 64-bit bootloader.
2004-09-29 04:57:31 +00:00
sekiya
1a682ebd64
Add 64-bit ABI bootloader (for IP30). Needs a slightly modified toolchain
...
and a 64-bit-clean libkern.a; once those bits are committed, this should be
100% good to go.
2004-08-11 11:45:26 +00:00
sekiya
8a3d53f346
Start routine for 64-bit ABI.
2004-08-11 11:41:19 +00:00
sekiya
ad76afdc86
de-__P.
2004-02-08 13:15:42 +00:00
sekiya
b8166ca397
bootinfo is problematic on ip2x under certain circumstances. Disable for now.
2004-01-03 10:29:37 +00:00
sekiya
1cf4c96f39
Don't flush caches here. Fixes crash on IP20 (which apparently occurs only
...
with beta Blackjack boards that incorporate ARCS V1).
2003-12-30 23:50:25 +00:00
sekiya
014a2cd0f4
Rationalize the machine-links creation mechanism.
2003-11-17 09:32:58 +00:00
sekiya
466d2c1848
libsa's iso9660 routines don't handle rockridge. Alter installation kernel
...
fixup routines accordingly -- we'll use "ip2x" and "ip3x" for install kernel
names rather than "netbsd-INSTALL32_IPxy".
2003-11-13 14:31:54 +00:00
sekiya
959569cd0c
bootloader targets have changed, which confused the install rules.
2003-11-13 12:42:18 +00:00
sekiya
40c0a4c30b
loadfile truth check should be >=0, not >= 1.
2003-11-13 08:06:25 +00:00
sekiya
1ba2b99e3e
More bootloader changes:
...
* if loading from cdrom, assume we're performing an install and
fix up bootpath/kernel to load the proper install kernel.
* maximum filename length in volume header is eight characters.
Change boot.elf to ip2xboot, boot.ip32 to ip3xboot, and boot
to aoutboot (which matches kernel naming scheme as well).
2003-11-13 08:01:17 +00:00
sekiya
b3023f06a5
Rework the boot loader:
...
* remove dead code,
* streamline kernel selection logic,
* various small bugfixes.
2003-11-11 06:47:00 +00:00
sekiya
fdf5374e91
Remove unused variables.
2003-11-11 06:42:15 +00:00
sekiya
f87a5a5324
Add getopt.c
2003-11-11 06:28:15 +00:00
sekiya
0a6f939a3d
Avoid namespace collision when sgivol is compiled as a native application.
2003-11-08 04:59:00 +00:00
sekiya
4f800421dd
Use be*toh() and htobe*() to permit use in cross-build environments. Add -h flag to override default volume header size.
2003-11-01 06:30:44 +00:00
lukem
f85d2d1c14
Use ${HOST_SH} instead of `sh'.
...
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
sekiya
6daa011b5a
NULL -> 0
2003-10-26 03:30:26 +00:00
simonb
970b12080e
Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
...
against them.
2003-10-08 01:40:22 +00:00
tsutsui
026b6946bd
Fix typo. From Christopher SEKIYA.
2003-09-28 08:21:08 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
rafal
090fac3d8b
Update for devopen() change.
2003-03-17 03:07:14 +00:00
rafal
5bd093cfbd
If the boot device starts with a PCI bus spec, skip over that when looking
...
for a boot device type; this gets the boot.ip32 booting a kernel off disk.
While here remove some unrolled string compares in favor of strncmp() to
make code more readable.
2003-03-17 03:04:51 +00:00
simonb
3a93f29238
Update for LFSv2 support. Ports that have "bootxx_lfs"-style
...
bootblocks currently only support LFSv2, but the second level
"boot" program supports both LFS versions.
2003-02-23 23:23:07 +00:00
pooka
2f32342d20
also create boot.ip32 with the entry point set to the IP32 load address
...
from Chris Sekiya
2002-12-23 19:31:24 +00:00
lukem
7f7f9da211
minor delint
2002-12-13 02:36:37 +00:00
thorpej
9972dfbbbf
Add "-mno-abicalls" to AFLAGS. Add "-ffreestanding -msoft-float" to
...
CFLAGS.
2002-11-10 17:12:58 +00:00
rafal
695a5c114c
Cleanup and enhancements to sgivol, mostly from Scott G. Taylor, with some
...
tweaking by me. Specifically, this gives sgivol an "unattended" mode that
can be used from eg. sysinst to install the bootblocks.
2002-07-18 16:02:42 +00:00
rafal
fa5c0332f8
Fix PR port-sgimips/17568: the PROM on early Indigo2 machines did not like
...
the ECOFF version of boot produced by `objcopy'. Using elf2ecoff make it
work, so use that instead. Also, don't bother stripping the bootblocks on
install (as that confuses strip, at least for the ECOFF one, and since the
build already strips them).
2002-07-12 13:04:03 +00:00
rafal
3ac921616c
Make sure to read from stdin, not stdout. From Scott Taylor.
2002-05-21 21:53:35 +00:00
simonb
707b8da2e8
Replace lots of 8x<space> with <tabs> and other miscellaneous indentation
...
fixes.
Wrap a couple of long lines.
Use <return-type>\n<function name> as per KNF in a few places.
2002-03-13 13:12:25 +00:00
thorpej
e091c2afd1
Add -Dsgimips to CPPFLAGS.
2001-12-20 20:30:59 +00:00