summaryrefslogtreecommitdiff
path: root/usr.sbin/installboot
AgeCommit message (Collapse)Author
2023-06-03adapt to ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}lukem
Simplify CWARNFLAGS to use ${CC_WNO_ADDRESS_OF_PACKED_MEMBER} which works for both clang and gcc, and remove compiler-specific equivalents.
2023-06-03bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBERlukem
Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_NO_ADDR_OF_PACKED_MEMBER GCC_NO_ADDR_OF_PACKED_MEMBER Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-05-17installboot(8): fix up markupuwe
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.
2023-05-16installboot(8): formatting improvementslukem
Use Ar foo instead of <foo>; this is mdoc. Other formatting tweaks.
2023-02-14s/programm/program/ and s/suuport/support/ in comments and message.andvar
2022-11-17Restore backward compatibility of UFS2 with previous NetBSD releases bychs
disabling support in UFS2 for extended attributes (including ACLs). Add a new variant of UFS2 called "UFS2ea" that does support extended attributes. Add new fsck_ffs operations "-c ea" and "-c no-ea" to convert file systems from UFS2 to UFS2ea and vice-versa (both of which delete all existing extended attributes in the process).
2022-11-01s/instalboot/installboot/andvar
2022-08-19installboot(8): Note relation to UEFI boot and hybrid images.riastradh
2022-08-19installboot(8): Fix capitalization of U-Boot.riastradh
2022-07-10usr.sbin/installboot: Add a command line option (-u) to set U-Boot search pathsbrook
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.
2022-01-24s/begining/beginning/ in comments and messages.andvar
2021-12-05s/maping/mapping/msaitoh
2021-12-05s/filesytem/filesystem/ in comment.msaitoh
2021-12-05s/filesytem/filesystem/msaitoh
2021-08-06fix various typos in comments.andvar
2021-02-25Adjust manpage for amiga/boot ver 3.1.rin
Bump date.
2021-02-06Mention fdisk(8) and x86/mbr(8) in example for x86, for carelessrin
people like me ;). Bump date.
2020-09-06add support for new GCC 9 warnings that may be too much to fixmrg
right now. new address-of-packed-member and format-overflow warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd GCC_NO_FORMAT_OVERFLOW variables to remove these warnings. apply to a bunch of the tree. mostly, these are real bugs that should be fixed, but in many cases, only by removing the 'packed' attribute from some structure that doesn't really need it. (i looked at many different ones, and while perhaps 60-80% were already properly aligned, it wasn't clear to me that the uses were always coming from sane data vs network alignment, so it doesn't seem safe to remove packed without careful research for each affect struct.) clang already warned (and was not erroring) for many of these cases, but gcc picked up dozens more.
2020-06-21Add evbmips support for u-boot handling.thorpej
2020-06-07Update for proplib(3) API changes.thorpej
2020-06-06Reduce macro arguments.wiz
2020-06-06Fix ews4800mips example. Its raw partition is rsd0p, not rsd0c.tsutsui
2020-05-14Remove extra semicolon.msaitoh
2019-09-19Add support for additional install step directives to enable usingthorpej
installboot(8) to write u-boot images to SPI NOR and other types of raw flash devices: input-block-size, input-pad-size, output-size, and output-block-size. Add the ability to create aliases for install objects, useful for when e.g. sdmmc and emmc share the same steps. Tested on an A20-OLinuXino-LIME2-e16Gs16M by bouyer@. XXX pullup netbsd-9
2019-08-15Never trust a compiler that predefines i386 as 1 - do the symbol namemartin
concatenation at the make level instead.
2019-08-15Replace black voodo linker magic (sometimes failing) with somemartin
makefile + macro magic to trim the list of available machines on size restricted install media.
2019-08-15Add missing extern declaration of ib_mach_emips in installbootkamil
Change added for the consistency with the existing code.
2019-05-12Use attribute printf.maya
Helps clang builds. From a.rin.
2019-05-07Fix typos. Fix link. Use Pa for path.wiz
2019-05-07Add installboot(8) support for evbarm (and, in the future, other evb*)thorpej
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.
2019-05-07Use designated initializers for struct ib_mach.thorpej
2018-06-23Fix integer overflow in installboot(8)kamil
Add a sanity check of the disk_buf first three bytes. The original code on a disk with nul bytes was causing integer overflow and thus calling the memcmp(3) functin in is_zero() with enormous length. Verity that the 0th byte is JMP, 1th a signed byte >=9 to prevent overflow and 2th byte NOP. Add a comment explaining the check. Detected with MKSANITIZER and ASan.
2017-08-15Remove superfluous Tn macros.wiz
2017-08-15merge the rest of sbmips into evbmips. install the stand files inmrg
/usr/mdec/sbmips/ and document them in installboot(8) even though it isn't really ported yet. also build the SBMIPS kernels. unfortunately, sbmips has been broken since mips64 merge, but the fix can happen in the evbmips version, which we might merge into the older trees anyway. XXX: releng can turn off sbmips* builds now for -current.
2017-07-17don't complain if the mbr was all 0's.christos
2017-07-03Remove workaround for ancient HTML generation code.wiz
2017-03-15Bump date for previous.wiz
2017-03-14Document option console=auto. Works since at least NetBSD 6. [i386,amd64]bad
2017-01-11Disable a couple of warnings until further investigation.joerg
2016-06-21Fix a typo: s/can be use/can be used/alnsn
2015-07-25Handle getfsspecname errors.mlelstv
2015-06-06Linking against libutil is not appropiate for tools.joerg
2015-06-05Can't use getfsspecname (and thus wedge names) while building tools.mlelstv
2015-06-05Support wedge names.mlelstv
2015-06-05Compute bootloader checksum correctly also on little endian systems.mlelstv
2015-03-22Use An in AUTHORS section.wiz
2015-03-22Appease various mandoc -Tlint warnings and update copyright while we're hereast
2014-11-13Use VAX_LABELOFFSET here; It needs to be the machine-specific one. Thankschristos
to gcc-4.8 for discovering the bug and to Atari for having a LABELOFFSET of 516 > 512 :-) XXX: Perhaps we should put all those constants in <sys/bootblock.h> instead of spreading them around.
2014-02-24Rename NetBSD/hp700 to NetBSD/hppa.skrll
Unfortunately our VCS isn't very helpful here.
2013-10-21XXX: gcc initialize a variablechristos