The NetBSD Project

CVS log for src/usr.sbin/installboot/installboot.h

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / installboot

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Sat Jun 22 10:57:10 2024 UTC (7 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +13 -5 lines
Pull up following revision(s) (requested by tsutsui in ticket #722):

	sys/fs/cd9660/cd9660_util.c: revision 1.16
	sys/arch/hp300/stand/common/clock.c: revision 1.14
	sys/arch/hp300/stand/common/scsireg.h: revision 1.5
	sys/arch/hp300/stand/common/scsireg.h: revision 1.6
	sys/arch/hp300/stand/Makefile.buildboot: revision 1.38
	sys/arch/hp300/include/bus.h: revision 1.23
	sys/arch/hp300/stand/Makefile.buildboot: revision 1.39
	sys/arch/hp300/stand/common/sd.c: revision 1.12
	sys/arch/hp300/stand/common/prf.c: revision 1.6
	sys/arch/hp300/stand/common/sd.c: revision 1.13
	usr.sbin/installboot/installboot.8: revision 1.106
	usr.sbin/installboot/Makefile: revision 1.59
	sys/arch/hp300/stand/common/devopen.c: revision 1.14
	usr.sbin/installboot/installboot.8: revision 1.107
	sys/arch/hp300/stand/common/ite_dumb.c: revision 1.2
	sys/arch/hp300/stand/common/devopen.c: revision 1.15
	usr.sbin/installboot/installboot.8: revision 1.108
	sys/fs/cd9660/cd9660_extern.h: revision 1.29
	usr.sbin/installboot/installboot.8: revision 1.109
	tools/Makefile.nbincludes: revision 1.11 (patch)
	sys/arch/hp300/dev/rboxreg.h: revision 1.3
	sys/arch/hp300/stand/common/scsivar.h: revision 1.5
	sys/arch/hp300/dev/dnkbd.c: revision 1.14
	sys/arch/hp300/hp300/trap.c: revision 1.156
	sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.12
	sys/arch/hp300/dev/frodoreg.h: revision 1.6
	sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.13
	sys/arch/hp300/stand/common/ite_sti.c: revision 1.2
	sys/arch/hp300/stand/common/hil.c: revision 1.15
	usr.sbin/installboot/arch/hp300.c: revision 1.18
	sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.14
	sys/arch/hp300/dev/rbox.c: revision 1.4
	usr.sbin/installboot/arch/hp300.c: revision 1.19
	sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.15
	sys/sys/bootblock.h: revision 1.59
	sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.16
	usr.sbin/installboot/installboot.h: revision 1.44
	sys/arch/hp300/stand/mkboot/volhdr.h: file removal
	sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.17
	sys/arch/hp300/dev/hpib.c: revision 1.45
	usr.sbin/installboot/installboot.h: revision 1.45
	usr.sbin/installboot/cd9660.c: revision 1.1
	sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.18
	sys/arch/hp300/dev/topcatreg.h: revision 1.3
	usr.sbin/installboot/cd9660.c: revision 1.2
	sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.19
	sys/arch/hp300/stand/inst/inst.c: revision 1.25
	sys/arch/hp300/stand/uboot/Makefile: revision 1.12
	sys/arch/hp300/dev/dvbox.c: revision 1.4
	sys/arch/hp300/dev/dma.c: revision 1.45
	sys/arch/hp300/stand/uboot/Makefile: revision 1.13
	sys/arch/hp300/stand/common/rd.c: revision 1.16
	sys/arch/hp300/stand/inst/Makefile: revision 1.12
	distrib/hp300/cdroms/installcd/Makefile: revision 1.4
	sys/arch/hp300/stand/mkboot/volhdr.h: revision 1.6
	sys/arch/hp300/stand/common/machdep.c: revision 1.16
	usr.sbin/installboot/fstypes.c: revision 1.14
	sys/arch/hp300/hp300/machdep.c: revision 1.238
	sys/arch/hp300/include/cpu.h: revision 1.73
	sys/arch/hp300/dev/diofbreg.h: revision 1.4
	sys/arch/hp300/stand/common/scsi.c: revision 1.12
	sys/arch/hp300/stand/common/netio.c: revision 1.19
	sys/arch/hp300/stand/common/scsi.c: revision 1.13
	sys/arch/hp300/dev/sti_sgc.c: revision 1.8
	sys/arch/hp300/dev/rtc.c: revision 1.22
	sys/arch/hp300/stand/mkboot/mkboot.c: revision 1.20
	sys/arch/hp300/stand/common/conf.h: revision 1.4
	sys/arch/hp300/hp300/autoconf.c: revision 1.111
	sys/arch/hp300/stand/common/conf.c: revision 1.15
	sys/arch/hp300/stand/mkboot/Makefile: revision 1.12
	sys/arch/hp300/stand/mkboot/Makefile: revision 1.13
	sys/arch/hp300/hp300/autoconf.c: revision 1.114
	sys/arch/hp300/dev/dcmreg.h: revision 1.11
	sys/arch/hp300/dev/diofbvar.h: revision 1.4
	sys/arch/hp300/dev/dcm.c: revision 1.91
	sys/fs/cd9660/cd9660_util.c: revision 1.15
	sys/arch/hp300/dev/mcclock_frodo.c: revision 1.2

TAB/space cleanup.

installboot(8): formatting improvements

Use Ar foo instead of <foo>; this is mdoc.

Other formatting tweaks.
installboot(8): fix up markup

Don't overuse .Sy - when everything is highlighted, nothing is.  Use
.Ic for options &c to get correct PostScript output (both are bold in
plain text).

Use Aq Ar inside .Pa, as both Pa and Ar are rendered as underscored
text in plain text output, and the distinction is lost.

Don't set examples in bold, but give them .Pp space around - they are
much easier to read this way.

Use consistent -width in FILES.
document how to use installboot on netbsd/vax.

PR/57909: Jan-Benedict Glaw: Don't include (build) timestamp when doing a
reproducible build
fix usage string, improve error handling.
add missing chunk for repro-build. fix gcc warnings.
avoid stringop truncation, fix copyright string to prevent assembler warnings.

Fix build as a tool (Jan-Benedict Glaw)

Fix integer overflow of strtol(3) for "loadpoint" address on ILP32 hosts.

This strtol(3) was introduced in rev 1.12 for PR/57909 after netbsd-10,
but it returns LONG_MAX (0x7FFFFFFF) for 0xFFF00000 on ILP32 hosts and
the wrong loadpoint causes "NOT ENOUGH MEMORY" error by the BOOTROMs
on loading uboot.lif on (at least) my 9000/360 and 9000/425t.

Misc cosmetic changes for mostly readability.
- KNF and add some newlines per blocks
- define and use proper bintobcd() macro
- make local functions and variables static

The same uboot.lif binaries are generated.

Rename ${PROGAOUT} -> ${PROGELF} to reflect reality.
Use proper signedness for the LIF file system data structures.

Ancient 4.3BSD used short and int for location, file size, file type,
and addresses etc. but all of them should be unsigned.

Also rename several variables and add comments for readability.
The LIF file system info can be found in "The HPDir Project" page:
https://www.hp9845.net/9845/projects/hpdir/
The same uboot.lif binaries are generated.

Add a preliminary CD boot support to uboot for preparation of PR/54455.
Briefly tested on mame, but not enalbed yet.

Recognize SCSI CD-ROM devices as a booted device properly.

Necessary for PR port-hp300/54455, to boot an md root root RAMDISK

kernel from CD-ROM without "WARNING: can't find match for bootdev:"
prompt.

Sync with src/sys/arch/hp300/stand/mkboot/volhdr.h rev 1.6.
https://mail-index.netbsd.org/source-changes/2024/05/07/msg151195.html

Use proper signedness for the LIF file system data structures.
mkboot should use this MI <sys/bootblock.h> and volhdr.h should
be removed soon.

Use MI <sys/bootblock.h> to refer LIF filesystem structures.
This should have been done when LIF definitions were initially added
to <sys/bootblock.h> for MI installboot(8).

Enable SUPPORT_CD on uboot.

Make cd9660_util.c usable in userland tools like installboot(8).

This was partially done for src/distrib/cdrom/macppc_installboot,
but more strict prototypes are necessary for native binary builds.

Install cd9660 related system headers for tools installboot(8) builds.

Reorder function prototypes per source files.

Add cd9660 support to search a bootloader file in the target file system.

Also add CD boot support for hp300, using a bootloader file in cd9660 fs.
This is a tool's part to close PR/54455.

HP 9000/300 machines read LIF directory entry allocated after
the LIF volume header at the top of the boot disk during bootstrap,
and a bootstrap file must be contiguously allocated on the disk
due to limitation of the LIF specification.

Current NetBSD/hp300's bootloader is larger than ~80KB so we have
to prepare a special 'boot' partition for FFS (that has only 8KB (ffsv1)
or 32KB (ffsv2) spaces) disks to put such a large bootloader.

On the other hand, on ISO9660 fs all files are allocated contiguously
so we can specify a bootloader file in the target ISO9660 directly
in the LIF directory entry.

Note we can simply use the existing "append" option to create bootable
CD ISO for hp300, but it looks some emulators (at leaset MAME) reject
such non-standard ISO files, i.e. with an appended bootloader file at
the end of the image.

Put a RAMDISK kernel and SYS_UBOOT into hp300 installcd to make it bootable.

This should finally close PR/54455.

Fix tools build errors on Cygwin.

Appease warnings on building tools/installboot on Cygwin.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed May 22 15:42:42 2024 UTC (8 months ago) by tsutsui
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +1 -2 lines
Remove no-op emips stuff.

It seems blindly copied and modified from pmax, but emips bootloader
can be specified by "Ml40x_2ace.plx" config file on the Giano simulator.
(not sure what on the real Xilinx ML401 board, but maybe hardcoded)

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun May 19 15:48:57 2024 UTC (8 months, 1 week ago) by tsutsui
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +5 -1 lines
Add cd9660 support to search a bootloader file in the target file system.

Also add CD boot support for hp300, using a bootloader file in cd9660 fs.
This is a tool's part to close PR/54455.

HP 9000/300 machines read LIF directory entry allocated after
the LIF volume header at the top of the boot disk during bootstrap,
and a bootstrap file must be contiguously allocated on the disk
due to limitation of the LIF specification.

Current NetBSD/hp300's bootloader is larger than ~80KB so we have
to prepare a special 'boot' partition for FFS (that has only 8KB (ffsv1)
or 32KB (ffsv2) spaces) disks to put such a large bootloader.

On the other hand, on ISO9660 fs all files are allocated contiguously
so we can specify a bootloader file in the target ISO9660 directly
in the LIF directory entry.

Note we can simply use the existing "append" option to create bootable
CD ISO for hp300, but it looks some emulators (at leaset MAME) reject
such non-standard ISO files, i.e. with an appended bootloader file at
the end of the image.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun May 19 15:44:21 2024 UTC (8 months, 1 week ago) by tsutsui
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +9 -5 lines
Reorder function prototypes per source files.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Jul 10 19:28:00 2022 UTC (2 years, 6 months ago) by brook
Branches: MAIN
CVS tags: netbsd-10-base, 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
Branch point for: netbsd-10
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -1 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.18.1: download - view: text, markup, annotated - select for diffs
Fri May 7 17:40:31 2021 UTC (3 years, 8 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +2 -1 lines
Pull up following revision(s) (requested by mrg in ticket #1678):

	bin/pax/options.c: revision 1.119
	usr.bin/config/scan.l: revision 1.32
	usr.bin/make/main.c: revision 1.274
	bin/pax/extern.h: revision 1.60
	usr.bin/config/defs.h: revision 1.106
	usr.bin/make/make.h: revision 1.105
	sbin/newfs_udf/udf_create.c: revision 1.27 (patch)
	sbin/newfs_udf/newfs_udf.h: revision 1.7 (patch)
	usr.bin/config/main.c: revision 1.100
	usr.sbin/installboot/Makefile:	revisions 1.53,1.54 (patch)
	usr.sbin/installboot/installboot.h: revision 1.41 (patch)
	usr.sbin/installboot/machines.c: revisisons 1.41,1.42 (patch)

Avoid depending on common symbols.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Jun 21 17:17:02 2020 UTC (4 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -1 lines
Add evbmips support for u-boot handling.

Revision 1.39.26.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:53 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.39.26.1: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.26.1: +2 -1 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 16 19:20:46 2019 UTC (5 years, 5 months ago) by martin
Branches: netbsd-9
CVS tags: 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
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +2 -1 lines
Pull up following revision(s) (requested by kamil in ticket #67):

	usr.sbin/installboot/installboot.h: revision 1.41

Add missing extern declaration of ib_mach_emips in installboot

Change added for the consistency with the existing code.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Aug 15 08:36:09 2019 UTC (5 years, 5 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -1 lines
Add missing extern declaration of ib_mach_emips in installboot

Change added for the consistency with the existing code.

Revision 1.39.26.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:10:30 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +21 -1 lines
Sync with HEAD

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue May 7 05:02:42 2019 UTC (5 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +21 -1 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.38.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:08 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +2 -2 lines
Rebase to HEAD as of a few days ago.

Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:43:04 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +2 -2 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.39: download - view: text, markup, annotated - select for diffs
Mon Feb 24 07:23:44 2014 UTC (10 years, 11 months ago) by skrll
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, 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-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, 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-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, netbsd-8
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.

Revision 1.37.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:47 2011 UTC (13 years, 7 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +2 -2 lines
Catchup with rmind-uvmplock merge.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Jun 14 05:35:08 2011 UTC (13 years, 7 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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: yamt-pagecache, tls-maxphys
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2 lines
A small bit of constification

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Jan 14 17:49:32 2010 UTC (15 years ago) by drochner
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -1 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.36: download - view: text, markup, annotated - select for diffs
Thu Jan 7 13:26:00 2010 UTC (15 years ago) by tsutsui
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -1 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.34.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:36:19 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +1 -8 lines
sync with head.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:16 2008 UTC (16 years, 9 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-premerge-20091211, 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, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +1 -8 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.33.4.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:50:06 2008 UTC (16 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +3 -1 lines
sync with HEAD

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Feb 2 17:01:03 2008 UTC (16 years, 11 months ago) by tsutsui
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: yamt-pf42
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -1 lines
Add a findstage2 function (which returns block numbers where
the secondary boot is stored to embed them into the primary bootxx)
for ext2fs.

Currently disabled because there is no primary boot block
which supports ext2fs, but it might help someone in some day.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Feb 15 22:23:11 2007 UTC (17 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: matt-armv6
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -1 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.25.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 9 22:49:49 2006 UTC (18 years, 2 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +3 -1 lines
Pull up following revision(s) (requested by bad in ticket #1524):
	usr.sbin/installboot/installboot.8: revision 1.54 via patch
	usr.sbin/installboot/installboot.h: revision 1.31
	usr.sbin/installboot/fstypes.c: revision 1.9
	usr.sbin/installboot/ffs.c: revision 1.19
Add support for finding files on RAID partitions.  This allows us to
add the block list of the 2nd stage boot loader to the 1st stage boot
loader when the partition is a RAID partition.  Tested on sparc.
Reviewed by gdt.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Sep 1 21:47:21 2006 UTC (18 years, 4 months ago) by uwe
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.31: preferred, colored
Changes since revision 1.31: +2 -1 lines
NetBSD/landisk support.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Jun 20 05:37:24 2006 UTC (18 years, 7 months ago) by jdc
Branches: MAIN
CVS tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -1 lines
Add support for finding files on RAID partitions.  This allows us to
add the block list of the 2nd stage boot loader to the 1st stage boot
loader when the partition is a RAID partition.  Tested on sparc.

Reviewed by gdt.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Feb 18 11:01:51 2006 UTC (18 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +19 -19 lines
Best to declare these structures 'extern' ...

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Feb 18 10:08:07 2006 UTC (18 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +20 -30 lines
Move the MD definitions into the MD files, leaving machines.c with just
a list of the supported machines.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Dec 29 15:32:20 2005 UTC (19 years, 1 month ago) by tsutsui
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -1 lines
Add ews4800mips support.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Nov 11 21:09:50 2005 UTC (19 years, 2 months ago) by dsl
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -1 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.26: download - view: text, markup, annotated - select for diffs
Sat May 14 14:46:21 2005 UTC (19 years, 8 months ago) by chs
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -1 lines
add hp700 support.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Aug 15 22:00:12 2004 UTC (20 years, 5 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
Branch point for: netbsd-3
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -1 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.24: download - view: text, markup, annotated - select for diffs
Sat Mar 13 22:51:50 2004 UTC (20 years, 10 months ago) by dsl
Branches: MAIN
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-base, 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-0, netbsd-2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -1 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.23: download - view: text, markup, annotated - select for diffs
Sat Nov 8 16:44:35 2003 UTC (21 years, 2 months ago) by dsl
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -1 lines
First cut of hp300 installboot, seems to DTRT on i386.
Maybe this code ought to know how to add a file to the LIF filesystem.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Oct 27 16:51:05 2003 UTC (21 years, 3 months ago) by cl
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -1 lines
add next68k support to installboot

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Oct 27 00:12:44 2003 UTC (21 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Overhaul how `build.sh tools' are used:

    *	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Jul 27 07:53:26 2003 UTC (21 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -1 lines
Explicitly pull in <sys/endian.h> #if !defined(HAVE_CONFIG_H).
(I prefer to be explicit about this, since installboot uses the endian
macros a lot)

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Apr 15 14:22:13 2003 UTC (21 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +13 -8 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.18: download - view: text, markup, annotated - select for diffs
Wed Apr 9 22:30:59 2003 UTC (21 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -1 lines
Add support for i386 boot code - for new bootxx stuff

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Apr 2 10:39:48 2003 UTC (21 years, 10 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -4 lines
Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Jan 15 06:33:58 2003 UTC (22 years ago) by mhitch
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -1 lines
Add support for amiga.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Oct 3 05:31:25 2002 UTC (22 years, 3 months ago) by lukem
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
correct comment

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jun 2 10:44:57 2002 UTC (22 years, 8 months ago) by isaki
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -1 lines
Add x68k stuff.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon May 20 16:05:26 2002 UTC (22 years, 8 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
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +22 -9 lines
- use uint8_t instead of char for boot block blobs
- bbinfo_params:
	- replace "int littleendian" with "bbinfo_endian endian"
	- add comments
- shared_bbinfo_clearboot():
	- add callback method to shared_bbinfo_clearboot()
	- don't clear from 0..headeroffset; use a callback to do that
- add news68k and newsmips support.
  From Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>, with a rework by me to
  take advantage of the new shared_bbinfo_clearboot() callback.
  (XXX: untested yet)

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed May 15 09:44:55 2002 UTC (22 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +15 -1 lines
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).

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed May 15 02:18:22 2002 UTC (22 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +8 -1 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.10: download - view: text, markup, annotated - select for diffs
Tue May 14 06:40:32 2002 UTC (22 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -1 lines
pull in <sys/bootblock.h> in "installboot.h" instead of in arch/*.c
(and remove <dev/dec/dec_boot.h>, since <sys/bootblock.h> has that stuff now)

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue May 14 06:18:51 2002 UTC (22 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +18 -11 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.8: download - view: text, markup, annotated - select for diffs
Mon May 6 16:24:46 2002 UTC (22 years, 8 months ago) by pk
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -1 lines
Add sparc module.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Apr 30 14:45:12 2002 UTC (22 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -1 lines
implement "raw" file system type.  this can be used when the primary
bootstrap is being installed at a particular block offset and the underlying
filesystem doesn't matter (e.g, alpha ustarboot in ustar floppies)

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Apr 22 17:17:36 2002 UTC (22 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -1 lines
Add sun2 backend from Matthew Fredette.
(Implemented with "sun68k.c" as it should eventually support "sun3" as well.)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Apr 19 07:08:52 2002 UTC (22 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +35 -7 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.4: download - view: text, markup, annotated - select for diffs
Fri Apr 12 06:50:41 2002 UTC (22 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -3 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.3: download - view: text, markup, annotated - select for diffs
Thu Apr 11 07:56:13 2002 UTC (22 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -1 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 17:53:04 2002 UTC (22 years, 9 months ago) by bjh21
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -1 lines
Pull in config.h as necessary to get byte-order macros etc.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Apr 3 05:21:17 2002 UTC (22 years, 9 months ago) by lukem
Branches: MAIN
Machine independent "unified" installboot(8).
Currently only supports vax, with more MD back-ends to be added RSN.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>