History log of /netbsd-src/usr.sbin/installboot/installboot.c (Results 1 – 25 of 41)
Revision Date Author Comments
# 317b3a69 10-Jul-2022 brook <brook@NetBSD.org>

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

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.

show more ...


# 02d67d10 07-May-2019 thorpej <thorpej@NetBSD.org>

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 discover

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.

show more ...


# 1cd8415f 25-Jul-2015 mlelstv <mlelstv@NetBSD.org>

Handle getfsspecname errors.


# 182e6e3b 05-Jun-2015 mlelstv <mlelstv@NetBSD.org>

Can't use getfsspecname (and thus wedge names) while building tools.


# 18bcb9c1 05-Jun-2015 mlelstv <mlelstv@NetBSD.org>

Support wedge names.


# 77a3a1ee 03-Nov-2011 martin <martin@NetBSD.org>

Minor usage tweaks for SMALLPROG


# bec77c5f 31-Aug-2011 joerg <joerg@NetBSD.org>

Use __dead


# 79f027bb 14-Jan-2010 drochner <drochner@NetBSD.org>

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

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.

show more ...


# e5f39b5e 14-Jan-2010 tsutsui <tsutsui@NetBSD.org>

Remove if defined(__RCSID) around __RCSID() macro.
#include "nbtool_config.h" is enough for tools.


# 17ad8ece 07-Jan-2010 tsutsui <tsutsui@NetBSD.org>

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"

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.

show more ...


# 2b2f4703 05-Apr-2009 lukem <lukem@NetBSD.org>

fix sign-compare issues


# ce099b40 28-Apr-2008 martin <martin@NetBSD.org>

Remove clause 3 and 4 from TNF licenses


# f2ccbd03 06-Mar-2008 dsl <dsl@NetBSD.org>

Don't treat -f and an invalid flag.
Report the hex value of unknown unsupported (for the specified arch) flags.


# 486d4119 15-Feb-2007 dsl <dsl@NetBSD.org>

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

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.

show more ...


# f80d108f 22-Oct-2006 christos <christos@NetBSD.org>

fix initializers


# 98a919c1 22-Apr-2006 christos <christos@NetBSD.org>

Coverity CID 55: Do things in a different order to appease coverity.


# 4c1a8284 22-Feb-2006 dogcow <dogcow@NetBSD.org>

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.


# b22a0afa 18-Feb-2006 dsl <dsl@NetBSD.org>

Ignore entre is in the 'machines' table that have no name.
Use terminal with to break line of machine names.


# cce659e2 18-Feb-2006 dsl <dsl@NetBSD.org>

Move the MD definitions into the MD files, leaving machines.c with just
a list of the supported machines.


# e7ab8d74 26-Dec-2005 jmmv <jmmv@NetBSD.org>

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

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).

show more ...


# e0e1f6ca 12-Nov-2005 dsl <dsl@NetBSD.org>

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 st

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.

show more ...


# f72297cc 11-Nov-2005 wiz <wiz@NetBSD.org>

Sync usage with man page (sort options).


# 8c893c96 11-Nov-2005 dsl <dsl@NetBSD.org>

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 parame

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.

show more ...


# 723dc0ca 10-Jul-2005 isaki <isaki@NetBSD.org>

Use errx() rather than err() where appropriate.


# 0b10fdb3 15-Aug-2004 dsl <dsl@NetBSD.org>

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.


12