CVS log for src/usr.sbin/installboot/installboot.c
Up to [cvs.NetBSD.org] / src / usr.sbin / installboot
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Jul 10 19:28:00 2022 UTC (4 years, 4 months ago) by brook
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
perseant-exfatfs-base-20250801,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11,
netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
HEAD
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +30 -4
lines
usr.sbin/installboot: Add a command line option (-u) to set U-Boot search paths
Installboot can install U-Boot boot blocks directly into a system
image. Normally, the U-Boot files are searched for in
/usr/pkg/share/u-boot, under the expectation that most people will
build them with pkgsrc. However, it is also possible to set an
environment variable (INSTALLBOOT_UBOOT_PATHS) to a colon-separated
search path to accommodate other situations. This commit adds a
command line option (-u) to set the search path; if present, it
overrides the environment and default.
Revision 1.39.16.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:10:30 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +45 -11
lines
Sync with HEAD
Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue May 7 05:02:42 2019 UTC (7 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +45 -11
lines
Add installboot(8) support for evbarm (and, in the future, other evb*)
boards that use u-boot. A known board database lists boards and their
respective u-boot packages. u-boot packages are discovered at run-time
(in /usr/pkg/share/u-boot, by default). These packages contain board
database overlays that describe u-boot installation procedure that's
specific for that board.
Support this as a native tool and as a host tool. The native tool
will attempt to determine the running board type using OpenFirmware
calls. Host tool and native tool alike may also specify a board type
directly using the "-o board=xxx option" or have installboot(8) determine
the board type from a device tree blob using "-o dtb=/path/to/board.dtb".
A "-o media=xxx" option is provided for boards that have different u-boot
binaries and/or installation procedures for different media types (e.g.
SDMMC, eMMC, or USB).
This is trivial to extend to other evb* platforms that use u-boot, even if
they don't use FDT for autoconfiguration.
Revision 1.36.18.2: download - view: text, markup, annotated - select for diffs
Thu Jul 30 15:36:03 2015 UTC (11 years, 3 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Diff to: previous 1.36.18.1: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.18.1: +4 -2
lines
Pull up following revision(s) (requested by mlelstv in ticket #900):
sbin/newfs/newfs.c: revision 1.113
usr.sbin/installboot/installboot.c: revision 1.39
Handle getfsspecname errors.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Jul 25 10:37:22 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -2
lines
Handle getfsspecname errors.
Revision 1.36.18.1: download - view: text, markup, annotated - select for diffs
Thu Jul 16 21:36:59 2015 UTC (11 years, 4 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-0-RC2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +20 -2
lines
Pull up following revision(s) (requested by mlelstv in ticket #844):
usr.sbin/installboot/Makefile: revisions 1.49, 1.50
usr.sbin/installboot/installboot.c: revisions 1.37, 1.38
usr.sbin/installboot/arch/amiga.c: revision 1.9
Support wedge names.
--
Can't use getfsspecname (and thus wedge names) while building tools.
--
Linking against libutil is not appropiate for tools.
--
Compute bootloader checksum correctly also on little endian systems.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Jun 5 07:44:39 2015 UTC (11 years, 5 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +11 -3
lines
Can't use getfsspecname (and thus wedge names) while building tools.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri Jun 5 05:03:21 2015 UTC (11 years, 5 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +13 -3
lines
Support wedge names.
Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:31:55 2011 UTC (15 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +5 -3
lines
sync with head
Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Nov 3 20:46:41 2011 UTC (15 years ago) by martin
Branches: MAIN
CVS tags: yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
tls-maxphys-base,
tls-maxphys,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
netbsd-7-base,
netbsd-7-0-RC1,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
agc-symver-base,
agc-symver
Branch point for: netbsd-7
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -3
lines
Minor usage tweaks for SMALLPROG
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Aug 31 13:32:37 2011 UTC (15 years, 2 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -4
lines
Use __dead
Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Jan 14 17:49:32 2010 UTC (16 years, 10 months ago) by drochner
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -2
lines
On i386/amd64, define two flag bits in the boot parameters which control
whether modules are loaded and whether boot.cfg is evaluated, and
set both to "off" per default in the PXE bootloader.
Extend "installboot" to toggle the bits.
This way, pxeboot works with existing dhcp server setups (and as
described in the manpage) out of the box. Also, boot.cfg reading
involves a stat() call which is horribly inefficient with the
TFTP pseudo file system.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Jan 14 16:27:49 2010 UTC (16 years, 10 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3
lines
Remove if defined(__RCSID) around __RCSID() macro.
#include "nbtool_config.h" is enough for tools.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jan 7 13:26:00 2010 UTC (16 years, 10 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +6 -2
lines
Add a sectorsize parameter member in struct ib_params and use it
where sector size (disk block size) is required, instead of
DEV_BSIZE constant which means device I/O block size.
"Looks reasonable" from dholland@, and fixes tools installboot(8)
on Cygwin where DEV_BSIZE != 512 as mentioned in PR toolchain/42555.
Revision 1.30.8.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:20:24 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +4 -5
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Apr 5 11:55:39 2009 UTC (17 years, 7 months ago) by lukem
Branches: MAIN
CVS tags: matt-premerge-20091211,
jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -5
lines
fix sign-compare issues
Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:36:19 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +2 -9
lines
sync with head.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:16 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
hpcarm-cleanup-nbase
Branch point for: jym-xensuspend
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.28.8.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:35 2008 UTC (18 years, 7 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +11 -4
lines
sync with head.
Revision 1.28.4.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:50:06 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +11 -4
lines
sync with HEAD
Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Mar 6 21:05:27 2008 UTC (18 years, 8 months ago) by dsl
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base
Branch point for: yamt-pf42
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +11 -4
lines
Don't treat -f and an invalid flag.
Report the hex value of unknown unsupported (for the specified arch) flags.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Feb 15 22:23:11 2007 UTC (19 years, 9 months ago) by dsl
Branches: MAIN
CVS tags: matt-mips64-base,
matt-mips64,
matt-armv6-prevmlocking,
matt-armv6-base,
hpcarm-cleanup-base,
hpcarm-cleanup,
cube-autoconf-base,
cube-autoconf
Branch point for: matt-armv6,
keiichi-mipv6
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +10 -6
lines
Add a -f (force) parameter to installboot(8).
If specified then checks on the disks BPB are not done, and any existing BPB
is deleted.
This is needed soince newfs(8) doesn't overwrite the BPB - which is basically
the FAT superblock.
Update documentation and add an example of using bootxx_fat16.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Oct 22 21:06:19 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -7
lines
fix initializers
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Apr 22 19:57:04 2006 UTC (20 years, 6 months ago) by christos
Branches: MAIN
CVS tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +7 -9
lines
Coverity CID 55: Do things in a different order to appease coverity.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Feb 22 07:10:26 2006 UTC (20 years, 8 months ago) by dogcow
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +9 -6
lines
Since installboot is part of tools, and TIOCGWINSZ is not present on all
systems (PR/32878), make the window sizing stuff conditional.
Also, fix formatting of 'supported file system types are' line.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Feb 18 12:42:26 2006 UTC (20 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +25 -16
lines
Ignore entre is in the 'machines' table that have no name.
Use terminal with to break line of machine names.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Feb 18 10:08:07 2006 UTC (20 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +7 -7
lines
Move the MD definitions into the MD files, leaving machines.c with just
a list of the supported machines.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Dec 26 13:30:25 2005 UTC (20 years, 10 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -2
lines
Installing the primary bootstrap requires two arguments, so ensure they are
present. Otherwise, an assertion is triggered (and core is dumped) in the
MD setboot code (just try 'installboot /dev/fd0a' on, e.g., i386).
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Nov 12 09:35:31 2005 UTC (21 years ago) by dsl
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +21 -17
lines
Don't try to determine the type of the target filesystem unless a second
stage bootstrap is specified. It is only needed when we need to copy the
sector numbers of the second stage into the first stage.
Document that a configured baud rate of zero will cause the baud rate set by
the bios to be used.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Nov 11 21:24:01 2005 UTC (21 years ago) by wiz
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -4
lines
Sync usage with man page (sort options).
Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Nov 11 21:09:50 2005 UTC (21 years ago) by dsl
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +34 -15
lines
Add a -e (edit) option to allow the bootstrap options of an installed
bootstrap or a file containing such a bootstrap to be changed/displayed.
In particular this will (soon) let you modify the parameters for pxeboot.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jul 10 07:12:13 2005 UTC (21 years, 4 months ago) by isaki
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4
lines
Use errx() rather than err() where appropriate.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Aug 15 22:00:12 2004 UTC (22 years, 3 months ago) by dsl
Branches: MAIN
CVS tags: netbsd-3-base,
netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0,
netbsd-3
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -2
lines
Add an option to set bp_consaddr (serial console IO port address)
Only complain about small patch area if we would write something non-zero there.
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 22 07:20:19 2004 UTC (22 years, 5 months ago) by tron
Branches: netbsd-2-0
CVS tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +6 -2
lines
Pull up revision 1.16 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Jun 20 22:20:17 2004 UTC (22 years, 5 months ago) by jmc
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -2
lines
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Mar 13 22:51:50 2004 UTC (22 years, 8 months ago) by dsl
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -2
lines
Add a -o keymap=zyz option that will set the boot keymap.
If a character in the map is typed, it gets replaced by the one following.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Jan 5 23:23:38 2004 UTC (22 years, 10 months ago) by jmmv
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4
lines
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu May 8 20:33:44 2003 UTC (23 years, 6 months ago) by petrov
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3
lines
Format fixes.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Apr 29 09:39:23 2003 UTC (23 years, 6 months ago) by dsl
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3
lines
Change 'ulong' to 'unsigned long' so it compiles as a host tool on freebsd.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Apr 15 14:22:13 2003 UTC (23 years, 7 months ago) by dsl
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +202 -72
lines
Change the way -o options are parsed, now done in MI code with a check after
all the options have been processed that they are supported my the
specific system.
Add i386 MD options (console, password, speed and timeout)
(Approved by christos and lukem)
Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon May 20 14:38:38 2002 UTC (24 years, 6 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6,
fvdl_fs64_base
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +41 -34
lines
- clean up display of supported machines & fstypes to ensure that last
column gets a trailing "," if there's more entries to come.
- if getmachines() or getfstypes() is called with 3 NULL params, just
print the list of supported items.
- in usage(), call getmachines() and getfstypes() with 3 NULL params.
(i got sick of typing "installboot -m asdf" to get a list of
supported machines during testing :)
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed May 15 02:18:22 2002 UTC (24 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +17 -5
lines
- add fsstat (fstat(2) on fsfd) and s1stat (fstat(2) on s1fd) in ib_params,
and use instead of replicating the effort in various locations
- if filesystem is not a regular file, use sync(2) instead of fsync(2)
after the bootstrap has been written
- move <sys/stat.h> and <stdint.h> into "installboot.h"
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue May 14 06:18:51 2002 UTC (24 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +17 -6
lines
user visible stuff:
- add `-B s2bno', to provide the starting block for the secondary bootstrap.
intended for use on platforms where the blocks of the stage2 bootstrap
are hardcoded into the stage1 bootstrap (currently: sparc, sun2)
- don't support `-b s1bno' for sparc or sun2, since the primary is always
at a fixed location on the disk.
- if `filesystem' is a regular file, use fsync(2) instead of sync(2)
code changes:
- add hardcode_stage2(), which uses -B s2bno and the size of the
provided secondary bootstrap (as an actual file, not as part of the
`filesystem' argument) to provide a sequential list of blocks from s2bno,
each block being the appropriate file system size (from
params->fstype->blocksize)
- add blocksize and needswap run-time parameters to ib_fs
- in *_match(), set params->fstype->blocksize to the underlying block size
(8KB for raw), and params->fstype->needswap as appropriate
- rename IB_STARTBLOCK to IB_STAGE1START, and add IB_STAGE2START
- use hardcode_stage2() to implement raw_findstage2() and IB_STAGE2BLOCK
support for ffs_findstage2()
- improve some comments, add some prototypes, ...
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Apr 30 14:21:17 2002 UTC (24 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +12 -3
lines
add some more assert()s
Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Apr 19 07:08:52 2002 UTC (24 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +51 -8
lines
- Add code from Matt Fredette <fredette@theory.lcs.mit.edu> to implement
fstype checking, and back-end "ffs" support.
- Consistently use at least uint32_t for blocknumbers (vs. int / long / ...)
- Consistently use uintXX_t instead of u_intXX_t.
- Move various duplicated prototypes into "installboot.h"
Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Apr 12 06:50:41 2002 UTC (24 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +25 -18
lines
- support optional secondary bootstrap arg for install (unused by
existing backends, but future ones need it)
- use "bootstrap" instead of "boot block" in various messages where appropriate
- rename some members of ib_params
Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Apr 12 03:15:20 2002 UTC (24 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -2
lines
run fsync on the fsfd before closing
Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Apr 11 07:56:13 2002 UTC (24 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +31 -2
lines
- add no_parseopt(), no_setboot() and no_clearboot() methods for back-ends
to use when they don't support a particular method
- don't automatically generate machines.c anymore
- add entries for i386 (temporarily unsupported) and shark
(permanently unsupported)
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Apr 4 03:27:53 2002 UTC (24 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -2
lines
Include <limits.h> to explicitly get LONG_MAX.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Apr 3 05:21:17 2002 UTC (24 years, 7 months ago) by lukem
Branches: MAIN
Machine independent "unified" installboot(8).
Currently only supports vax, with more MD back-ends to be added RSN.
CVSweb <webmaster@jp.NetBSD.org>