Commit Graph

82 Commits

Author SHA1 Message Date
nia 545236f400 Add new sets: base32, debug32, manhtml
- base32 contains (when MKCOMPAT=yes) shared libraries for 32-bit
  compatibility, previously included in base

- debug32 contains (when MKCOMPAT=yes) debug symbols and static libraries
  containing debug symbols for 32-bit compatiblity, previously included
  in debug

- manhtml contains (when MKHTML=yes) the HTML files previously included
  in 'man', which are of limited utility without third-party software.

The motivation for this change is to be able to easily exclude sets
from CD-ROM images that go over the size limit without xz compression
(which many NetBSD platforms struggle to extract at acceptable speeds).
2024-04-09 15:17:21 +00:00
mlelstv 265bb24603 Quote argument to -n as required. [ -n ] is not a syntax error but
evaluates to true.
2024-02-12 11:30:33 +00:00
christos 5dc3a23d37 PR/57925: Jan-Benedict Glaw: Honor $MKREPRO_TIMESTAMP, don't embed name and
stamp in gzip.
2024-02-11 17:29:50 +00:00
jmcneill 8d626ee2f8 evbppc: Add initial support for the Nintendo Wii 2024-01-20 21:35:59 +00:00
maya f54624bd74 Move DRM-driver firmware from base to its own set, gpufw
This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.
2021-09-25 08:54:29 +00:00
rin f324396195 Fix fallout from mkimage rev 1.76.
For mkimage:

- Update "size" if auto-calculated.
- Use "dd bs=1" instead of non-portable "head -c".
- Some style nits.

For MD make_label() functions:

- Stop using "newsize" as image size in MB, use "size" instead.
2020-12-23 10:35:18 +00:00
riastradh 15867ac673 embedded/mkimage: Pad image with zeros to multiple of 4 MB plus 1 MB.
Otherwise, there may not be enough space after the ffs partition for a
gpt, leading to very confusing results.
2020-12-21 16:38:02 +00:00
jmcneill 4813953ca0 Create an "octeon.img.gz" bootable image for evbmips64-eb release builds. 2020-07-17 15:16:34 +00:00
jmcneill 2e7e9cc4e8 Add support for hybrid MBR/GPT images. 2020-05-24 18:43:39 +00:00
jmcneill 2190516631 Add GPT support to mkimage. 2020-05-24 14:45:49 +00:00
jmcneill 043d88a7c1 Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.
2020-05-18 21:19:34 +00:00
martin ebcef7ca7f Derive the FAT type from the MBR partition type and pass it on to makefs
when crating a msdos file system.
2019-10-30 14:16:15 +00:00
maya 50f7458533 Split out /rescue to its own set and adapt installers/images to add it.
This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.
2019-10-02 11:15:59 +00:00
kre 962d067df7 Be more precise about exactly what fails when something does.
Relying upon set -e to abort things is sort of OK (it is not
a recommended option to use in general - too many odd special cases),
but only if user can work out from the "build failed" what actually
went wrong.

Tested only on amd64 build (for this, i386 is the same) - if anyone
has problems on builds for other systems, please let me know.  However
the changes affect only failure paths, the most likely problem would
be for a build to fail to halt on an error, and I hope I have avoided
that.  There should be no difference at all to error-free builds.
2017-11-28 02:56:44 +00:00
kre 63138143a3 Handle use of TMPDIR in cleanup as well. 2017-11-28 00:24:08 +00:00
kre 570342e5fe Honour ${TMPDIR} if set for location of image, rather than always
simply using /tmp
2017-11-28 00:14:30 +00:00
jmcneill fab9db5f7e Replace HUMMINGBIRD_A31 with SUNXI kernel on armv7.img and include .dtb
files for SUNXI and TEGRA kernels on the MSDOS partition.
2017-07-06 00:17:04 +00:00
christos 34d421b1f4 add the tests set. 2017-06-10 23:26:32 +00:00
jmcneill 4d3af4e0f2 Now that FAT+FFS images include the BSD partition in the MBR partition
table, install the disklabel after setting up MBR partitions. This moves
the disklabel to the BSD partition from the start of the disk, avoiding
a conflict with the ODROID-C1 bootloader.
2017-04-11 21:06:30 +00:00
jmcneill efb61fccf8 Improvements and fixes for FAT+FFS images:
- Add a "NETBSD" volume label to the MSDOS file-system.
 - Explicitly initialize boot sector.
 - Correct an issue where the MSDOS file-system was larger than the
   partition table entry.
 - Add NetBSD partition to the MBR partition table.
2017-04-11 18:04:08 +00:00
skrll c1d4c34f17 Mark the msdos parition active for boards like the BeagleBone Black 2017-03-14 06:37:39 +00:00
jmcneill c33ccff2e1 use a larger (64KB) block size, this helps SD card performance 2015-08-01 10:05:51 +00:00
martin 5051ec142e Add a new endianes flag to mkimage and pass it on big endian arm builds.
From Rin Okuyama.
2015-07-15 11:27:13 +00:00
christos a3d0d7425d fix mkubootimage 2015-05-24 17:08:21 +00:00
hubertf 7141992348 Add some documentation:
Tell what this does, and what it expects from conf files
2015-04-19 17:56:57 +00:00
hubertf 607c1b1921 Properly spell X' name. From X(7):
The  X.Org  Foundation  requests  that the following names be used when
       referring to this software:

                                          X
                                   X Window System
                                    X Version 11
                             X Window System, Version 11
                                         X11
2015-04-18 22:06:48 +00:00
jmcneill 5d40b917cc initialize resize before pulling in board config 2015-04-06 22:20:52 +00:00
jmcneill d32faae6e2 Add support for auto-growing the root partition. Enable it for rpi.img. 2015-04-06 20:19:28 +00:00
jmcneill 8c877c0d3d resizing of ffsv2 still doesn't work well, so revert previous, and instead
explicitly set fsize=2048/bsize=16384, which gives a pretty decent boost
to resize_ffs performance on its own
2015-04-06 17:59:36 +00:00
jmcneill 422b7a467a Use FFSv2 instead of FFSv1 for the root file-system. This should fix the
"resize_ffs takes forever" issues with evbarm images -- growing a v2
file-system is much faster than v1.
2015-04-05 17:05:45 +00:00
skrll 6931a97454 Fix previous so that the new generated rc.conf is picked up and that
any new new mount points (e.g. /proc and /kern) are generated.

While here increate the fs size so that postfix can actually build
/etc/mail/aliases.db
2015-01-29 14:54:06 +00:00
skrll 1714369b9e PR/49596: mkimage: incorrect permissions on evbarm images
Use NetBSD.dist in our mtree specification to populate the top level
directories, etc.

For each generated file hand craft an mtree entry.

Remove specialdirs as NetBSD.dist creates /proc and /kern.
2015-01-23 15:17:58 +00:00
skrll 25fa99ca2c Use [dx]sets_p as flag for debug/X sets inclusion. xsets is the list of
sets.
2015-01-18 17:37:54 +00:00
christos c98d156d18 fix image building:
- round up the total size of the disk image
	- fix fdisk offset for netbsd ffs images
2014-12-14 00:28:46 +00:00
christos 9926e61998 now that fdisk has optional arguments, don't pass -1 2014-04-03 22:51:38 +00:00
christos 1ccc28a220 provide a -r rootdev option to handle the wd/sd/ld lossage. 2014-03-31 18:18:29 +00:00
christos 08207c1137 these changes produce a bootable system under qemu, but its root is trashed. 2014-03-31 17:05:03 +00:00
christos b87f017469 Add preliminary support for creating x86 usb sticks with mkimage.
This is untested, and just a checkpoint of the work. Image looks
ok, but I have not tried if it boots.
2014-03-31 16:20:48 +00:00
ast 555103854f Fix build release of evbarm which had been failing in mkimage
beagleboard_smp with the elusive message:

    "gzip: can't stat: gzip: No such file or directory"

This was due to GZIP=gzip being defined in mkimage; we now use:

    GZIP_CMD=${TOOL_GZIP:-gzip} # ${GZIP} is special to gzip(1)

as distrib/sets/sets.subr already does in these files as well:

    distrib/utils/embedded/mkimage
    distrib/utils/embedded/conf/beagleboard.conf
    distrib/utils/embedded/conf/rpi.conf
    distrib/utils/embedded/conf/rpi_inst.conf
2013-09-14 12:51:27 +00:00
christos 59f914cb33 SSD cards is stupid. 2013-06-27 14:51:30 +00:00
christos 63f6ce0ea2 explain -m better 2013-06-27 03:03:16 +00:00
christos ccedefbe54 tidy up, fix usage 2013-06-27 03:00:53 +00:00
jakllsch a78ff5d27c Use TOOL_GZIP in mkimage, and pass the TOOL_GZIP into it. 2013-06-16 13:47:42 +00:00
christos 1ecbd28829 - explanations for single letter flags
- flag to add debug sets
- flag to minimize writes to sd's
2013-05-20 19:27:17 +00:00
htodd 297d30db54 Double extra to fix image size to fix build. 2013-04-03 19:37:43 +00:00
jmcneill b40b80aea7 For ffs, set bytes per inode to 4K. Otherwise we get a density based on
the contents of the image, which aren't very useful after the file-system
has been resized -- for rpi.img, this was 22K per inode!
2013-03-28 00:20:02 +00:00
garbled 4daade7385 Add a new installer image for Raspberry PI to evbarm
Includes the following major changes:

1) Add new configmenu item to sysinst to allow creation of users at
post-install time.
2) Add an sshramdisk type to evbarm, which is a ramdisk with sshd
enabled, allowing users to install on a headless PI by sshing to the
device with the account "sysinst" password "netbsd" to begin the
installation. (Note, neither the account, nor the ssh setup are copied to
the finalized installation image)
3) Change mkimage to build a boot-only image, without the root filesystems.

Much of the sshramdisk code could be reused on other ports easily.
2013-03-19 22:16:52 +00:00
christos 1b766d2e25 don't use [ -f $i ] && cat $i, since we are using -e 2013-02-15 00:13:06 +00:00
jmcneill fcc410b7f2 add extra space to root partition 2013-02-12 12:45:12 +00:00
jmcneill bdad5df232 set -e 2013-02-11 18:11:20 +00:00