History log of /src/distrib/utils/embedded/
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
1.92 01-Apr-2025 gutteridge

mkimage: fix grammar in comments


1.91 22-Mar-2025 hgutch

Also generate hashes for files in gzimg directories.

At one point this should probably be unified at least a bit with the hash
generation of regular sets, so that there is a single place that defines
the types of hashes generated for sets and gzimg.


1.90 24-Jan-2025 jmcneill

Fix resize_root.

Revision 1.85 added the 'log' option to "normal" fstabs, which is
incompatible with resize_ffs. Restore the previous behaviour.


1.89 17-Jan-2025 jmcneill

mkimage: Allow configs to override fsize/bsize/ffs version


1.88 11-Jan-2025 jmmv

Inject TOOL_SED and TOOL_PWD_MKDB into mkimage

The configuration files used for mkimage might want to customize the passwd
database of the generated image (as is the case for an out-of-tree config
file I have) and passing in these tools helps to execute those modifications.


1.87 29-Dec-2024 jmmv

Recognize MKPOSTFIX=no in mkimage


1.86 28-Dec-2024 christos

avoid extra comma, add braces


1.85 27-Dec-2024 christos

Remove duplicated code, handle minwrites in _normal the same way we handle
it in _gpt. Initial patch from jmmv@.


1.84 12-Aug-2024 skrll

Undo accidental commit.


1.83 12-Aug-2024 skrll

Import Linux 6.10.3 DTS for RISC-V

This has the side effect of pulling in 5 arm64 renesas and a few other
dt-bindings files which didn't exist before so there are no conflicts.

Hopefully arm/arm64/mips can catch up soon.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.82 09-Apr-2024 nia

branches: 1.82.2;
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).


1.81 12-Feb-2024 mlelstv

Quote argument to -n as required. [ -n ] is not a syntax error but
evaluates to true.


1.80 11-Feb-2024 christos

PR/57925: Jan-Benedict Glaw: Honor $MKREPRO_TIMESTAMP, don't embed name and
stamp in gzip.


1.79 20-Jan-2024 jmcneill

evbppc: Add initial support for the Nintendo Wii


Revision tags: netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base
1.78 25-Sep-2021 maya

branches: 1.78.2;
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.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
1.77 23-Dec-2020 rin

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.


1.76 21-Dec-2020 riastradh

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.


1.75 17-Jul-2020 jmcneill

Create an "octeon.img.gz" bootable image for evbmips64-eb release builds.


1.74 24-May-2020 jmcneill

Add support for hybrid MBR/GPT images.


1.73 24-May-2020 jmcneill

Add GPT support to mkimage.


1.72 18-May-2020 jmcneill

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.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 phil-wifi-20191119
1.71 30-Oct-2019 martin

Derive the FAT type from the MBR partition type and pass it on to makefs
when crating a msdos file system.


1.70 02-Oct-2019 maya

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.


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base 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-base
1.69 28-Nov-2017 kre

branches: 1.69.4; 1.69.6;

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.


1.68 28-Nov-2017 kre

Handle use of TMPDIR in cleanup as well.


1.67 28-Nov-2017 kre

Honour ${TMPDIR} if set for location of image, rather than always
simply using /tmp


Revision tags: perseant-stdc-iso10646-base
1.66 06-Jul-2017 jmcneill

Replace HUMMINGBIRD_A31 with SUNXI kernel on armv7.img and include .dtb
files for SUNXI and TEGRA kernels on the MSDOS partition.


1.65 10-Jun-2017 christos

add the tests set.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
1.64 11-Apr-2017 jmcneill

branches: 1.64.4;
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.


1.63 11-Apr-2017 jmcneill

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.


Revision tags: pgoyette-localcount-20170320
1.62 14-Mar-2017 skrll

Mark the msdos parition active for boards like the BeagleBone Black


Revision tags: bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
1.61 01-Aug-2015 jmcneill

branches: 1.61.2; 1.61.4;
use a larger (64KB) block size, this helps SD card performance


1.60 15-Jul-2015 martin

Add a new endianes flag to mkimage and pass it on big endian arm builds.
From Rin Okuyama.


1.59 24-May-2015 christos

fix mkubootimage


1.58 19-Apr-2015 hubertf

Add some documentation:
Tell what this does, and what it expects from conf files


1.57 18-Apr-2015 hubertf

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


1.56 06-Apr-2015 jmcneill

initialize resize before pulling in board config


1.55 06-Apr-2015 jmcneill

Add support for auto-growing the root partition. Enable it for rpi.img.


1.54 06-Apr-2015 jmcneill

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


1.53 05-Apr-2015 jmcneill

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.


1.52 29-Jan-2015 skrll

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


1.51 23-Jan-2015 skrll

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.


1.50 18-Jan-2015 skrll

Use [dx]sets_p as flag for debug/X sets inclusion. xsets is the list of
sets.


1.49 14-Dec-2014 christos

fix image building:
- round up the total size of the disk image
- fix fdisk offset for netbsd ffs images


Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base tls-maxphys-base
1.48 03-Apr-2014 christos

branches: 1.48.4;
now that fdisk has optional arguments, don't pass -1


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
1.47 31-Mar-2014 christos

provide a -r rootdev option to handle the wd/sd/ld lossage.


1.46 31-Mar-2014 christos

these changes produce a bootable system under qemu, but its root is trashed.


1.45 31-Mar-2014 christos

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.


Revision tags: riastradh-drm2-base3
1.44 14-Sep-2013 ast

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


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
1.43 27-Jun-2013 christos

SSD cards is stupid.


1.42 27-Jun-2013 christos

explain -m better


1.41 27-Jun-2013 christos

tidy up, fix usage


1.40 16-Jun-2013 jakllsch

Use TOOL_GZIP in mkimage, and pass the TOOL_GZIP into it.


1.39 20-May-2013 christos

- explanations for single letter flags
- flag to add debug sets
- flag to minimize writes to sd's


1.38 03-Apr-2013 htodd

Double extra to fix image size to fix build.


1.37 28-Mar-2013 jmcneill

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!


Revision tags: agc-symver-base
1.36 19-Mar-2013 garbled

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.


1.35 15-Feb-2013 christos

don't use [ -f $i ] && cat $i, since we are using -e


1.34 12-Feb-2013 jmcneill

add extra space to root partition


1.33 11-Feb-2013 jmcneill

set -e


1.32 10-Feb-2013 jmcneill

set src= before pulling in host config


1.31 10-Feb-2013 jmcneill

no sh -x


1.30 10-Feb-2013 jmcneill

fix msdos mbr partition size calculation


1.29 10-Feb-2013 christos

don't dup -F


1.28 10-Feb-2013 christos

add -F to fdisk


1.27 10-Feb-2013 christos

mass -N db to makefs too


1.26 10-Feb-2013 christos

specify a database for mtree.


1.25 10-Feb-2013 jmcneill

dont call mtree directly


1.24 10-Feb-2013 christos

really calling disklabel with the arguments of fdisk does not work.


1.23 10-Feb-2013 christos

- remove dup trap
- compare size to 0 for autosizing
- remove .gz file before compressing.


1.22 10-Feb-2013 christos

add compression support.


1.21 09-Feb-2013 christos

add tool hooks.


1.20 09-Feb-2013 jmcneill

fix usage again -- -D specifies destdir not releasedir
include conf/${h}.conf not conf/rpi.conf
fix ./mkimage: line 110: "7" - 1 : syntax error: operand expected (error token is ""7" - 1 ")


1.19 09-Feb-2013 jmcneill

fix usage


1.18 08-Feb-2013 christos

fix options


1.17 03-Feb-2013 christos

switch to makefs


1.16 30-Jan-2013 skrll

Add the tests sets by default. Tweak the usage output.


Revision tags: yamt-pagecache-base8
1.15 21-Jan-2013 skrll

More usage updates


1.14 21-Jan-2013 skrll

Update usage output a little


1.13 16-Jan-2013 christos

- Add support for xsets
- Factor out common evbarm code


1.12 16-Jan-2013 christos

tidy up some more by factoring out the sizing code.


1.11 15-Jan-2013 christos

Make autosizing really work:
- Use newfs to compute the actual filesystem required size.
- Fix the computation of set sizes to account for blocks and fragments.
This results into a 95% full filesystem for my test (Total 566MB, 24MB free)
from which 8MB is my requested overhead. Not perfect, but good enough.


1.10 15-Jan-2013 christos

first step at autosizing, still does not work.


1.9 15-Jan-2013 jmcneill

expand set name to path when checking to see if the tgz exists


1.8 14-Jan-2013 jmcneill

move 'trap' after command args are parsed


1.7 13-Jan-2013 christos

honor ${TMPDIR}


1.6 13-Jan-2013 christos

complain on unknown options


1.5 13-Jan-2013 christos

move configuration to new place.


1.4 13-Jan-2013 christos

Adjust mkimage to handle RPI. From skrll@


Revision tags: yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
1.3 29-Feb-2012 agc

branches: 1.3.2; 1.3.4;
consolidate all of the volatile /var.* directories which are mounted as tmpfs
into a single one for /var - same as /root, /etc


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
1.2 20-Jan-2012 agc

While the resulting image from mkimage can always be mounted with vnd,
and then modified, it is much easier to let this late, user-oriented
customisation be done automatically. These mods let mkimage change
information based on files in a "custom" directory, which can be set
in mkimage using -c customdir.

After all other configuration, the files under custom/ will be copied
into the main image. The files under custom/ are taken into account
when performing autosizing.

Also, generalise the sets directory to point to the current machine
architecture, although this can be overwritten from the command line
by anyone making cross-images.

An example to make a user image with an embedded read-only 100 MB
iSCSI target:

% ./mkimage -c custom
=== making a new 272 MB image in usermode.img ===
272+0 records in
272+0 records out
285212672 bytes transferred in 7.616 secs (37449142 bytes/sec)
=== mounting image via vnd vnd0 ===
/dev/rvnd0a: 272.0MB (557056 sectors) block size 8192, fragment size 1024
using 6 cylinder groups of 45.34MB, 5803 blks, 11264 inodes.
super-block backups (for fsck_ffs -b #) at:
32, 92880, 185728, 278576, 371424, 464272,
=== installing sets ===
base
etc
modules
=== performing customisations ===
=== making extra directories ===
=== customising /var/tmp ===
=== user customisations from files in custom ===
Filesystem 1K-blocks Used Avail %Cap Mounted on
/dev/vnd0a 269967 263958 -7489 102% /mnt
% ls -l -R custom
total 8
drwxr-xr-x 3 agc agc 512 Jan 18 03:58 etc
drwxr-xr-x 2 agc agc 512 Jan 18 04:00 iscsi

custom/etc:
total 8
drwxr-xr-x 2 agc agc 512 Jan 18 03:58 iscsi
-rw-r--r-- 1 agc agc 564 Jan 18 03:58 rc.conf

custom/etc/iscsi:
total 6
-r--r--r-- 1 agc agc 799 Jan 18 04:27 targets

custom/iscsi:
total 102484
-rw-r--r-- 1 agc agc 104857600 Jan 18 04:00 iscsi-target0
% sudo vnconfig vnd0 usermode.img
% sudo mount /dev/vnd0a /mnt
% cat /mnt/etc/iscsi/targets
# $NetBSD: targets,v 1.2 2006/02/16 19:30:57 agc Exp $
#
# Structure of this file:
#
# + an extent is a straight (offset, length) pair of a file or device
# it's the lowest common storage denominator
# at least one is needed
# + a device is made up of one or more extents or other devices
# devices can be added in a hierachical manner, to enhance resilience
# + in this example, no device definitions are necessary, as the target
# will just use a simple extent for persistent storage
# + a target is made up of 1 or more devices
# The code does not support RAID1 recovery at present

# Simple file showing 1 extent, mapped straight into 1 target

# extent file or device start length
extent0 /iscsi/iscsi-target0 0 100MB

# target flags storage netmask
target0 ro extent0 0.0.0.0/0
% ls -l /mnt/iscsi/iscsi-target0
-rw-r--r-- 1 agc agc 104857600 Jan 18 04:00 /mnt/iscsi/iscsi-target0
% diff custom/etc/iscsi/targets /mnt/etc/iscsi/targets
%


1.1 15-Jan-2012 agc

Add 3 scripts which are useful for making images for usermode, or any
embedded platform in particular.

+ mkimage will make an autosized image in a file (using vnd) from sets
the resulting image can be mounted read-only, with tmpfs used for volatile
files on top of read-only bases

+ mkpkgs will make an autosized image in a file (using vnd) from binary
packages

+ usermode is an easy way to invoke usermode, making sure that bridging
is set up properly, and that the host syscallemu module is loaded. This
script then runs usermode with two file images (as produced by mkimage
and mkpkgs)


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-8-3-RELEASE netbsd-9-4-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-base netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 netbsd-7-2-RELEASE pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 netbsd-7-1-2-RELEASE pgoyette-compat-base netbsd-7-1-1-RELEASE matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 bouyer-socketcan-base pgoyette-localcount-20170107 netbsd-7-1-RC1 pgoyette-localcount-20161104 netbsd-7-0-2-RELEASE localcount-20160914 netbsd-7-nhusb-base pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-7-base yamt-pagecache-base9 netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 tls-maxphys-base matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
1.1 15-Jan-2012 agc

branches: 1.1.4;
Add 3 scripts which are useful for making images for usermode, or any
embedded platform in particular.

+ mkimage will make an autosized image in a file (using vnd) from sets
the resulting image can be mounted read-only, with tmpfs used for volatile
files on top of read-only bases

+ mkpkgs will make an autosized image in a file (using vnd) from binary
packages

+ usermode is an easy way to invoke usermode, making sure that bridging
is set up properly, and that the host syscallemu module is loaded. This
script then runs usermode with two file images (as produced by mkimage
and mkpkgs)


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-8-3-RELEASE netbsd-9-4-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-base netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 netbsd-7-2-RELEASE pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 netbsd-7-1-2-RELEASE pgoyette-compat-base netbsd-7-1-1-RELEASE matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 bouyer-socketcan-base pgoyette-localcount-20170107 netbsd-7-1-RC1 pgoyette-localcount-20161104 netbsd-7-0-2-RELEASE localcount-20160914 netbsd-7-nhusb-base pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-7-base yamt-pagecache-base9 netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 tls-maxphys-base matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
1.1 15-Jan-2012 agc

branches: 1.1.4;
Add 3 scripts which are useful for making images for usermode, or any
embedded platform in particular.

+ mkimage will make an autosized image in a file (using vnd) from sets
the resulting image can be mounted read-only, with tmpfs used for volatile
files on top of read-only bases

+ mkpkgs will make an autosized image in a file (using vnd) from binary
packages

+ usermode is an easy way to invoke usermode, making sure that bridging
is set up properly, and that the host syscallemu module is loaded. This
script then runs usermode with two file images (as produced by mkimage
and mkpkgs)


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-8-3-RELEASE netbsd-9-4-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-base netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 netbsd-7-2-RELEASE pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 netbsd-7-1-2-RELEASE pgoyette-compat-base netbsd-7-1-1-RELEASE matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 bouyer-socketcan-base pgoyette-localcount-20170107 netbsd-7-1-RC1 pgoyette-localcount-20161104 netbsd-7-0-2-RELEASE localcount-20160914 netbsd-7-nhusb-base pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 tls-maxphys-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base
1.2 04-Apr-2014 christos

branches: 1.2.4; 1.2.8;
merge more, and add an i386 image


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
1.1 31-Mar-2014 christos

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.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.16 17-Feb-2024 christos

Fix MKREPRO build (Jan-Benedict Glaw)


Revision tags: 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-base
1.15 15-Oct-2022 jmcneill

ec2_init: Add support for Oracle Cloud


1.14 16-Oct-2021 jmcneill

Background dhcpcd if ec2_init is not enabled to speed up boot.


1.13 01-Jul-2021 jmcneill

port-evbarm/56274: no network on ec2 arm64 9.99.85

Add -w to dhcpcd_flags when running on EC2, since we need to wait for the
network to come up before contacting the metadata service.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
1.12 17-Jul-2020 jmcneill

Create an "octeon.img.gz" bootable image for evbmips64-eb release builds.


1.11 24-May-2020 jmcneill

Enable GPT support w/ hybrid MBR for Raspberry Pi compatibility.


1.10 18-May-2020 jmcneill

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.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
1.9 23-Feb-2020 jmcneill

RPi4 has a different root device, so use config.txt conditionals to load
an alternate cmdline txt file (cmdline-pi4.txt) on these boards.


1.8 16-Dec-2019 skrll

Update to new RaspberryPi firware

commit 0c01dbefba45a08c47f8538d5a071a0fba6b7e83
Author: popcornmix <popcornmix@gmail.com>
Date: Wed Dec 11 15:30:08 2019 +0000

and include firmware for RPI4

Firmware has bee updated to support mainline linux kernels as described in
https://github.com/raspberrypi/linux/issues/3237


1.7 16-Dec-2019 skrll

Fix whitespace in a comment


Revision 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 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
1.6 03-Mar-2019 jmcneill

Add Amlogic dtb files to arm64.img


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
1.5 30-Nov-2018 jmcneill

Add support for configuring Amazon.com EC2 SSH keys and hostnames. While
here, only set wscons=YES if a wsdisplay0 device is present.


Revision tags: pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
1.4 27-Aug-2018 jmcneill

Install ELF kernel to the FFS partition and boot it with bootaa64.efi
instead of loading kernel.img from the MSDOS partition with extlinux.conf


1.3 12-Aug-2018 jmcneill

Move rk3399 dtb files to the correct location


Revision tags: pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
1.2 19-Jun-2018 jmcneill

branches: 1.2.2;
Install RK3328 .dtb files to the correct location


Revision tags: pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
1.1 01-Apr-2018 ryo

branches: 1.1.2;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.3 17-Feb-2024 christos

Fix MKREPRO build (Jan-Benedict Glaw)


Revision tags: 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-base
1.2 01-Jul-2021 jmcneill

No need for ec2_init on arm64mbr


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
1.1 28-May-2020 jmcneill

Create a separate Arm64 image that uses MBR partitioning. Amlogic SoCs
require the bootloader to be installed on SD cards at LBA1 which makes
them incompatible with GPT images.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.47 14-Mar-2024 christos

Fix reproducible build (Jan-Benedict Glaw)


1.46 19-Apr-2023 brook

Install /boot/boot.cfg with EFI bootloaders.

On ARM ports, the EFI boot loader handles a boot.cfg file if it
exists, but one is not installed by default. In contrast, both the
i386 and amd64 ports do install boot.cfg by default. Bring these
ports into agreement by installing boot.cfg on ARM ports with EFI boot
loaders.


Revision tags: 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-base
1.45 19-Nov-2022 yamt

Update a few www.raspberrypi.com URLs


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
1.44 27-May-2020 jmcneill

Move back to MBR based images for armv7 because Amlogic's bootloader (for
Amlogic S805 based boards) needs to be installed to sector 1, which
conflicts with the GPT header.


1.43 25-May-2020 jmcneill

No need to rename netbsd-GENERIC.img to kernel7.img


1.42 25-May-2020 jmcneill

Switch to GPT w/ hybrid MBR for armv7 images


1.41 18-May-2020 jmcneill

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.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
1.40 16-Dec-2019 skrll

Update to new RaspberryPi firware

commit 0c01dbefba45a08c47f8538d5a071a0fba6b7e83
Author: popcornmix <popcornmix@gmail.com>
Date: Wed Dec 11 15:30:08 2019 +0000

and include firmware for RPI4

Firmware has bee updated to support mainline linux kernels as described in
https://github.com/raspberrypi/linux/issues/3237


Revision tags: phil-wifi-20191119
1.39 30-Oct-2019 jmcneill

Move omap3 dtb files to /boot/dtb


1.38 30-Oct-2019 martin

Remove debug output, fix a progress message


1.37 30-Oct-2019 martin

Move a lot of *.dtb files to a dtb/ subdirectory on the FAT partition.
Mkimage (eroneously) creates a FAT16 partition (despite the configuration
asking for FAT32), and that has a root directory size limit.
Idea from Jared.


1.36 27-Oct-2019 jmcneill

Switch to GENERIC kernels only.


Revision tags: netbsd-9-base
1.35 21-Jul-2019 rin

branches: 1.35.2;
Fallback to non-EFI boot script if EFI bootloader is absent.

Note that we do not currently build EFI bootloader for earmv7hf-eb,
as it requires little-endian version of toolchain.


Revision tags: phil-wifi-20190609
1.34 18-May-2019 skrll

Switch the kernel7.img RaspberryPi kernel in the armv7 image to GENERIC
and thus reducing the number of kernels built in an evbarmv7 release.


1.33 13-Apr-2019 jmcneill

Remove sun50i support from 32-bit GENERIC.


1.32 30-Mar-2019 jmcneill

Install GENERIC ELF kernel as /netbsd for EFI booting


1.31 30-Mar-2019 jmcneill

Install bootarm.efi to boot partition


Revision tags: pgoyette-compat-20190127
1.30 21-Jan-2019 jmcneill

No need to specify root and console bootargs on amlogic


1.29 20-Jan-2019 skrll

Another kernel bites te dust.

Remove ODROID-C1 as it is now replaced by GENERIC. Thanks jmcneill.


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226
1.28 30-Nov-2018 jmcneill

Add support for configuring Amazon.com EC2 SSH keys and hostnames. While
here, only set wscons=YES if a wsdisplay0 device is present.


Revision tags: pgoyette-compat-1126
1.27 22-Nov-2018 aymeric

Make armv7.img boot on the DE0 Nano SoC. Requires u-boot from -current pkgsrc.


1.26 01-Nov-2018 skrll

Use the GENERIC kernel where possible in armv7.img and remove the old
kernels from the bulid for SUNXI and TEGRA.

While I'm here disable *_INSTALL kernel builds for boards supported by
armv7.img


1.25 20-Oct-2018 skrll

Whitespace


1.24 20-Oct-2018 skrll

a bit of sorting


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base 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-base
1.23 11-Dec-2017 jmcneill

branches: 1.23.2; 1.23.4;
Add missing RPI FDT build goop, from nick.


1.22 03-Dec-2017 jmcneill

On 64-bit boards, U-Boot expects to find .dtb files in an allwinner/ subdirectory


1.21 30-Nov-2017 jmcneill

Remove legacy awin kernels from image


1.20 28-Nov-2017 kre

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.


1.19 09-Nov-2017 skrll

Trailing whitespace


1.18 08-Oct-2017 jmcneill

Don't install uEnv.txt for beagle; boot.scr handles this now.


1.17 07-Oct-2017 jmcneill

Install a boot.scr on armv7.img that detects the running board and selects
the correct kernel and boot protocol. Should work on tegra, sunxi, and
am335x boards for now.


1.16 31-Jul-2017 jmcneill

Create a config.txt for RPI and set 'enable_uart=1' and 'force_turbo=0'.
This config gives us a stable core_freq clock that is used to drive the
SD HOST and AUX UART devices.

More information on config.txt settings for the UART can be found here:

https://www.raspberrypi.org/documentation/configuration/uart.md


Revision tags: perseant-stdc-iso10646-base
1.15 09-Jul-2017 jmcneill

Add : to body of populate_sunxi to appease bash.


1.14 06-Jul-2017 jmcneill

Test for kernel build directory before reading DTB list


1.13 06-Jul-2017 jmcneill

Replace HUMMINGBIRD_A31 with SUNXI kernel on armv7.img and include .dtb
files for SUNXI and TEGRA kernels on the MSDOS partition.


Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
1.12 12-Apr-2017 jmcneill

branches: 1.12.4;
ODROID-C1: Now that the MBR partition table contains an entry for the BSD
partition, the disklabel no longer conflicts with the ODROID-C1 bootloader.
Root partition changes from ld0e to ld0a.


1.11 10-Apr-2017 jmcneill

tegra: set loadaddr to 0x90000000 (the default kernel_addr_r overlaps
fdt_addr_r on TK1 + L4T 21.x), and set default root device to ld0a to
match new device probe order.


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
1.10 19-Dec-2015 skrll

branches: 1.10.2; 1.10.4;
C&P of change in rpi.conf (maybe factor out)

By default, RPI firmware sets the max CPU frequency to 600MHz. This can be
overridden by setting arm_freq in config.txt, but the default freq at boot
is still 600MHz.

Add logic to rc.local to compare the current vs. max CPU frequency; if they
differ, set the target frequency to the maximum.


1.9 13-Dec-2015 jmcneill

Remove JETSONTK1 and NYAN-BIG kernels, add a new unified kernel named TEGRA.


1.8 21-Aug-2015 jmcneill

Cubieboard2 kernel is named netbsd-CUBIEBOARD.ub not netbsd-CUBIEBOARD2.ub


1.7 02-Aug-2015 jmcneill

branches: 1.7.2;
install jetsontk1 boot script as boot.scr


1.6 15-Jul-2015 martin

Properly escape the $ when trying to pass the u-boot env var $kernel.
From Rin Okuyama.


1.5 08-Jul-2015 skrll

Turn resize on


1.4 24-May-2015 christos

double quote police


1.3 22-May-2015 jmcneill

add JETSONTK1 to armv7.img


1.2 19-Apr-2015 hubertf

Cleanup: make_filesystems is not used any longer, purge remains


1.1 09-Apr-2015 jmcneill

Rename beagleboard.img to armv7.img. The new image includes the same
kernels as beagleboard.img plus support for Raspberry Pi 2, ODROID-C1,
Cubieboard2, Cubietruck, Hummingbird A31, and Banana Pi.


Revision tags: perseant-exfatfs-base-20250801 perseant-exfatfs-base-20240630 perseant-exfatfs-base cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406 pgoyette-compat-merge-20190127 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-base perseant-stdc-iso10646-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
1.19 09-Apr-2015 jmcneill

Rename beagleboard.img to armv7.img. The new image includes the same
kernels as beagleboard.img plus support for Raspberry Pi 2, ODROID-C1,
Cubieboard2, Cubietruck, Hummingbird A31, and Banana Pi.


1.18 29-Sep-2014 jmcneill

escape $ in $board so this will boot on beaglebone too


Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
1.17 16-Sep-2013 ast

branches: 1.17.4;
After discussions with cristos regarding the previous commit, he
convinced me it was sufficient to define GZIP_CMD only in
distrib/utils/embedded/mkimage and not again in the config files
beagleboard.conf, rpi.conf, and rpi_inst.conf similar to how the
other variables $src, $release, $mnt, ... are only defined there.


1.16 14-Sep-2013 ast

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


1.15 21-Aug-2013 jmcneill

4th time's a charm (I hope). Make sure that we pick up the kernel path passed to
mkimage command line, and not the default.


1.14 19-Aug-2013 jmcneill

Instead of trying to pass two kernels to beagleboard.conf, pass one and
derive the path to the second from the first.


1.13 17-Aug-2013 jmcneill

Try to pick up the right location for BEAGLEBONE and BEAGLEBOARD kernels.


1.12 16-Aug-2013 jmcneill

support beaglebone and beagleboard with the same image


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
1.11 20-Feb-2013 riz

branches: 1.11.4;
Use "gzip -dc" instead of "zcat" - some versions of zcat don't grok
gzip.


1.10 17-Feb-2013 jmcneill

gzcat -> zcat


1.9 10-Feb-2013 christos

no objmachine by default.


1.8 10-Feb-2013 christos

remove trailing whitespace from EOF


1.7 10-Feb-2013 jmcneill

make sure kernel is installed as netbsd.ub


1.6 09-Feb-2013 jmcneill

keep beagleboard conf in sync with rpi


1.5 03-Feb-2013 christos

switch to makefs


1.4 28-Jan-2013 skrll

Move mdnsd to beagleboard only. RPI doesn't like it at the moment.


Revision tags: yamt-pagecache-base8
1.3 16-Jan-2013 christos

branches: 1.3.2;
- Add support for xsets
- Factor out common evbarm code


1.2 15-Jan-2013 jmcneill

set kerneldir= to the path used by build.sh


1.1 14-Jan-2013 jmcneill

add mkimage config for generating beagleboard images


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
1.44 29-Dec-2024 jmmv

Recognize MKPOSTFIX=no in mkimage


1.43 27-Dec-2024 christos

Remove duplicated code, handle minwrites in _normal the same way we handle
it in _gpt. Initial patch from jmmv@.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.42 27-Sep-2023 riastradh

branches: 1.42.2;
/etc/rc.d/cerctl_init: New script for certctl rehash in live images.

This is very limited -- it does not supplant postinstall to rehash
certificates on upgrade; it only runs certctl rehash if
/etc/openssl/certs is an empty directory, as you get in live images
not created with sysinst.

We could also have a more general-purpose way to run postinstall(8)
on first boot of an image, but that has a lot more moving parts to
think about, so let's start with this limited-scope low-risk
approach.

PR install/57629

XXX pullup-10


Revision tags: netbsd-10-base
1.41 30-Oct-2022 jmcneill

branches: 1.41.2;
Silence a warning when machdep.dmi.chassis-asset-tag is not present


1.40 15-Oct-2022 jmcneill

ec2_init: Add support for Oracle Cloud


1.39 06-Jul-2021 jmcneill

Disable kernfs on live images -- it is not required.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
1.38 23-Dec-2020 rin

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.


1.37 17-Jul-2020 jmcneill

Create an "octeon.img.gz" bootable image for evbmips64-eb release builds.


1.36 28-May-2020 jmcneill

Allow config file to override hostname


1.35 24-May-2020 jmcneill

Add GPT support to mkimage.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
1.34 01-Dec-2019 jmcneill

Remove the pretty much useless 128MB swap partition from the arm images.


Revision tags: netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base
1.33 11-Jun-2019 mrg

branches: 1.33.2;
add a method to add user accounts or ssh keys to the embedded
(installable) images which may be run entirely headless and
have no current method to edit the installation without another
netbsd host to modify the root (FFS) partition.

creds_msdos reads the creds.txt file from the msdos boot
partition and provides 4 basic methods:

sshkeyfile <user> <path on msdos>
sshkey <user> <entry>
useraddhash <user> <passwd hash>
useradd <user> <passwd>

the first two create a user with ssh key(s), and the second
two create a user with a password. if the last method is used
and raw passwords are given, the creds.txt file will be
shredded and deleted by rm -P.


inspired by a request from a pine64 user. ok jmcneill@.


Revision tags: phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
1.32 02-Dec-2018 jmcneill

Fix variable escaping in dev_exists()


1.31 30-Nov-2018 jmcneill

Add support for configuring Amazon.com EC2 SSH keys and hostnames. While
here, only set wscons=YES if a wsdisplay0 device is present.


Revision tags: pgoyette-compat-1126 pgoyette-compat-1020
1.30 06-Oct-2018 jmcneill

Use special ROOT. prefix in fstab entries instead of assuming ld0


1.29 06-Oct-2018 jmcneill

resize_disklabel: if disk and partition is not specified, use kern.root_device/kern.root_partition sysctls


Revision tags: pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625
1.28 19-Jun-2018 jmcneill

branches: 1.28.2;
Increase reserved space at start of image from 4MB to 16MB to make room
for Rockchip bootloaders.


Revision tags: netbsd-8-3-RELEASE netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3
1.27 13-May-2017 hubertf

branches: 1.27.8;
minor cleanup in customize_evbarm():
keep handling of /etc/rc.conf in one place


Revision tags: prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
1.26 12-Apr-2017 jmcneill

branches: 1.26.2;
Slightly reduce the size of the MSDOS partition from 124M to 92M. With
the larger size, installing the ODROID-C1 bootloader causes the fs to
become unreadable. Not sure why..


1.25 11-Apr-2017 jmcneill

Increase the size of the boot partition and remove the 'd' part from the
disklabel.


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
1.24 01-Aug-2015 jmcneill

branches: 1.24.2; 1.24.4;
mount root partition with noatime


1.23 01-Aug-2015 jmcneill

Align partitions to 64MB for the benefit of SD cards > 32GB


1.22 06-Apr-2015 jmcneill

show resize_ffs progress bar when resizing root partition


1.21 06-Apr-2015 jmcneill

Add support for auto-growing the root partition. Enable it for rpi.img.


1.20 29-Jan-2015 skrll

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


1.19 28-Jan-2015 jmcneill

add /var/shm tmpfs to fstab


1.18 23-Jan-2015 skrll

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.


1.17 25-Nov-2014 jmcneill

disable wapbl for evbarm images until stability issues are sorted out


1.16 09-Sep-2014 jmcneill

turn on ntpd


Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
1.15 31-Mar-2014 christos

branches: 1.15.4;
these changes produce a bootable system under qemu, but its root is trashed.


1.14 31-Mar-2014 christos

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.


Revision tags: riastradh-drm2-base3
1.13 22-Nov-2013 skrll

Fix /dev population of the evbarm images by using MAKEDEV -s and appending
to the mtree spec file passed to makefs.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
1.12 05-Jul-2013 matt

Keep both c: and d: paritions so this can work with systems that have
RAW_PART as 2 or 3. Addresses PR/47688.


1.11 20-May-2013 christos

If minwrites is set:
- set noatime, nodevmtime for root
- use tmpfs for frequently written files
- use unix sockets instead of fifos for postfix
From:
http://rich-tbp.blogspot.com/2013/03/netbsd-on-rpi-minimizing-disk-writes.html


Revision tags: agc-symver-base
1.10 01-Mar-2013 htodd

Disklabel need to use sectors, not bytes. Thanks to agc.


1.9 21-Feb-2013 hans

branches: 1.9.4;
Use HOST_SH to run scripts. Makes mkimage work on SunOS.


1.8 12-Feb-2013 jmcneill

create /proc and /kern


1.7 10-Feb-2013 jmcneill

set rc_configured=YES and a hostname


1.6 10-Feb-2013 christos

start with the original rc.conf


1.5 03-Feb-2013 christos

switch to makefs


1.4 28-Jan-2013 skrll

Move mdnsd to beagleboard only. RPI doesn't like it at the moment.


1.3 23-Jan-2013 skrll

Size for 512 byte sectors and base ffs partition size on totalsize minus
others.


Revision tags: yamt-pagecache-base8
1.2 21-Jan-2013 skrll

branches: 1.2.2;
kernel.img is for rpi only


1.1 16-Jan-2013 christos

- Add support for xsets
- Factor out common evbarm code


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
1.6 29-Dec-2024 jmmv

Recognize MKPOSTFIX=no in mkimage


1.5 27-Dec-2024 christos

Remove duplicated code, handle minwrites in _normal the same way we handle
it in _gpt. Initial patch from jmmv@.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.4 27-Sep-2023 riastradh

branches: 1.4.2;
/etc/rc.d/cerctl_init: New script for certctl rehash in live images.

This is very limited -- it does not supplant postinstall to rehash
certificates on upgrade; it only runs certctl rehash if
/etc/openssl/certs is an empty directory, as you get in live images
not created with sysinst.

We could also have a more general-purpose way to run postinstall(8)
on first boot of an image, but that has a lot more moving parts to
think about, so let's start with this limited-scope low-risk
approach.

PR install/57629

XXX pullup-10


Revision tags: netbsd-10-base
1.3 06-Jul-2021 jmcneill

branches: 1.3.2;
Disable kernfs on live images -- it is not required.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
1.2 23-Dec-2020 rin

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.


1.1 17-Jul-2020 jmcneill

Create an "octeon.img.gz" bootable image for evbmips64-eb release builds.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
1.4 17-Feb-2025 jmcneill

wii: Disable ntpd by default.

It takes up a lot of memory.


1.3 29-Dec-2024 jmmv

Recognize MKPOSTFIX=no in mkimage


1.2 27-Dec-2024 christos

Remove duplicated code, handle minwrites in _normal the same way we handle
it in _gpt. Initial patch from jmmv@.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.1 20-Jan-2024 jmcneill

branches: 1.1.2; 1.1.4;
evbppc: Add initial support for the Nintendo Wii


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-8-3-RELEASE netbsd-9-4-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-base netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 netbsd-7-2-RELEASE pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 netbsd-7-1-2-RELEASE pgoyette-compat-base netbsd-7-1-1-RELEASE matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 bouyer-socketcan-base pgoyette-localcount-20170107 netbsd-7-1-RC1 pgoyette-localcount-20161104 netbsd-7-0-2-RELEASE localcount-20160914 netbsd-7-nhusb-base pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 tls-maxphys-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base
1.1 04-Apr-2014 christos

branches: 1.1.4; 1.1.8;
merge more, and add an i386 image


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-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 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
1.1 17-Jul-2020 jmcneill

Create an "octeon.img.gz" bootable image for evbmips64-eb release builds.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
1.3 27-Dec-2024 christos

Remove duplicated code, handle minwrites in _normal the same way we handle
it in _gpt. Initial patch from jmmv@.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.2 27-Sep-2023 riastradh

branches: 1.2.2;
/etc/rc.d/cerctl_init: New script for certctl rehash in live images.

This is very limited -- it does not supplant postinstall to rehash
certificates on upgrade; it only runs certctl rehash if
/etc/openssl/certs is an empty directory, as you get in live images
not created with sysinst.

We could also have a more general-purpose way to run postinstall(8)
on first boot of an image, but that has a lot more moving parts to
think about, so let's start with this limited-scope low-risk
approach.

PR install/57629

XXX pullup-10


1.1 07-May-2023 skrll

RISC-V support that works on QEMU with a single hart.

Thanks for Simon Burge for plic(4).


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.1 07-May-2023 skrll

RISC-V support that works on QEMU with a single hart.

Thanks for Simon Burge for plic(4).


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.1 07-May-2023 skrll

RISC-V support that works on QEMU with a single hart.

Thanks for Simon Burge for plic(4).


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-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 netbsd-10-base
1.40 19-Nov-2022 yamt

Update a few www.raspberrypi.com URLs


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
1.39 01-Dec-2020 rin

G/C unused.


1.38 27-May-2020 jmcneill

Fix kernel= order, add pi0w conditional and comments


1.37 27-May-2020 jmcneill

Conditionally boot kernel.img or kernel7.img depending on board


1.36 18-May-2020 jmcneill

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.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
1.35 16-Dec-2019 skrll

Update to new RaspberryPi firware

commit 0c01dbefba45a08c47f8538d5a071a0fba6b7e83
Author: popcornmix <popcornmix@gmail.com>
Date: Wed Dec 11 15:30:08 2019 +0000

and include firmware for RPI4

Firmware has bee updated to support mainline linux kernels as described in
https://github.com/raspberrypi/linux/issues/3237


Revision 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 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base 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-base
1.34 12-Dec-2017 jmcneill

branches: 1.34.4;
Fix spelling in error message


1.33 11-Dec-2017 jmcneill

Add missing RPI FDT build goop, from nick.


1.32 28-Nov-2017 kre

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.


1.31 09-Nov-2017 skrll

Trailing whitespace


1.30 31-Jul-2017 jmcneill

Create a config.txt for RPI and set 'enable_uart=1' and 'force_turbo=0'.
This config gives us a stable core_freq clock that is used to drive the
SD HOST and AUX UART devices.

More information on config.txt settings for the UART can be found here:

https://www.raspberrypi.org/documentation/configuration/uart.md


Revision tags: 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 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
1.29 19-Apr-2015 hubertf

Cleanup: make_filesystems is not used any longer, purge remains


1.28 06-Apr-2015 jmcneill

Add support for auto-growing the root partition. Enable it for rpi.img.


1.27 06-Mar-2015 skrll

Add RPI2 to kernels build for both earmv[67].

Use the earmv6 built kernels to create an image that can be used on both
RPI and RPI2


1.26 12-Feb-2015 jmcneill

actually write cpufreq changes to ${mnt}/etc/rc.local instead of /tmp/a


1.25 06-Feb-2015 jmcneill

By default, RPI firmware sets the max CPU frequency to 600MHz. This can be
overridden by setting arm_freq in config.txt, but the default freq at boot
is still 600MHz.

Add logic to rc.local to compare the current vs. max CPU frequency; if they
differ, set the target frequency to the maximum.


Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
1.24 28-Nov-2013 skrll

branches: 1.24.4;
Put console=fb back as autodetect is bunged up.


1.23 16-Sep-2013 ast

After discussions with cristos regarding the previous commit, he
convinced me it was sufficient to define GZIP_CMD only in
distrib/utils/embedded/mkimage and not again in the config files
beagleboard.conf, rpi.conf, and rpi_inst.conf similar to how the
other variables $src, $release, $mnt, ... are only defined there.


1.22 14-Sep-2013 ast

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


1.21 01-Aug-2013 jmcneill

use console auto detection, ok nick


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
1.20 24-Mar-2013 jmcneill

turn on devpubd


Revision tags: agc-symver-base
1.19 20-Feb-2013 riz

branches: 1.19.4;
Use "gzip -dc" instead of "zcat" - some versions of zcat don't grok
gzip.


1.18 17-Feb-2013 jmcneill

gzcat -> zcat


1.17 10-Feb-2013 jmcneill

dont use echo -n


1.16 09-Feb-2013 christos

handle renaming and uncompressing the kernel


1.15 09-Feb-2013 jmcneill

add missing }


1.14 08-Feb-2013 christos

change to take the full kernel path


1.13 03-Feb-2013 christos

switch to makefs


1.12 23-Jan-2013 skrll

cmdline needs to be a line! hi jak.


Revision tags: yamt-pagecache-base8
1.11 21-Jan-2013 jakllsch

branches: 1.11.2;
Specify the root device in cmdline.txt, also, it's 'Pi', not 'PI'.


1.10 21-Jan-2013 skrll

kernel.img is for rpi only


1.9 16-Jan-2013 christos

- Add support for xsets
- Factor out common evbarm code


1.8 15-Jan-2013 christos

now that we compute sizes correctly, reduce the extra to how much free space
we want.


1.7 15-Jan-2013 christos

make autosizing work (kind of)


1.6 15-Jan-2013 christos

first step at autosizing, still does not work.


1.5 13-Jan-2013 christos

append to rc.conf, don't overwrite


1.4 13-Jan-2013 christos

add the comp set


1.3 13-Jan-2013 christos

use variables for the fdisk command too


1.2 13-Jan-2013 christos

Autosize label


1.1 13-Jan-2013 christos

Adjust mkimage to handle RPI. From skrll@


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-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 netbsd-10-base
1.19 19-Nov-2022 yamt

Update a few www.raspberrypi.com URLs


1.18 06-Jul-2021 jmcneill

Disable kernfs on live images -- it is not required.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
1.17 01-Dec-2020 rin

rpi.img: Bump boot partition in a similar manner to other images.


1.16 18-May-2020 jmcneill

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.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406
1.15 08-Jan-2020 skrll

Use fat16 as the partition is too small for fat32. from Harold Gutch


1.14 05-Jan-2020 skrll

Use make_label_evbarm instead of home grown


1.13 01-Jan-2020 skrll

upstream_kernel=1 is required with new firmware/kernel.


1.12 16-Dec-2019 skrll

Update to new RaspberryPi firware

commit 0c01dbefba45a08c47f8538d5a071a0fba6b7e83
Author: popcornmix <popcornmix@gmail.com>
Date: Wed Dec 11 15:30:08 2019 +0000

and include firmware for RPI4

Firmware has bee updated to support mainline linux kernels as described in
https://github.com/raspberrypi/linux/issues/3237


Revision 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 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base 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-base
1.11 14-Dec-2017 skrll

branches: 1.11.4;
Build fix (really this time) from Harold Gutch


1.10 28-Nov-2017 kre

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.


1.9 31-Jul-2017 jmcneill

Create a config.txt for RPI and set 'enable_uart=1' and 'force_turbo=0'.
This config gives us a stable core_freq clock that is used to drive the
SD HOST and AUX UART devices.

More information on config.txt settings for the UART can be found here:

https://www.raspberrypi.org/documentation/configuration/uart.md


Revision tags: 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 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
1.8 19-Apr-2015 hubertf

More cleanup:
Instead of first overwriting the *_evbarm functions with own code,
and then calling them from the regular functions, directly put the
code into the regular functions.

No more functions from evbarm.conf are used now.
Some variables are still used!


1.7 19-Apr-2015 hubertf

Cleanup: make_filesystems is not used any longer, purge remains


1.6 23-Jan-2015 skrll

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.


Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base tls-maxphys-base
1.5 03-Apr-2014 ozaki-r

branches: 1.5.4; 1.5.6;
Include evbarm.conf as same as other conf files

evbarm.conf ensures ${mnt}/boot exists so that it avoids the error:
/home/builds/ab/HEAD/src/distrib/utils/embedded/mkimage: cannot create \
/tmp/mkimage.24444a/mnt/boot/cmdline.txt: directory nonexistent


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
1.4 16-Sep-2013 ast

After discussions with cristos regarding the previous commit, he
convinced me it was sufficient to define GZIP_CMD only in
distrib/utils/embedded/mkimage and not again in the config files
beagleboard.conf, rpi.conf, and rpi_inst.conf similar to how the
other variables $src, $release, $mnt, ... are only defined there.


1.3 14-Sep-2013 ast

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


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
1.2 20-Mar-2013 garbled

branches: 1.2.6;
Fix an empty shell function here, per Greg Troxel. Apparently empty shell
functions are not 100% portable.


1.1 19-Mar-2013 garbled

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.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.7 27-Sep-2023 riastradh

/etc/rc.d/cerctl_init: New script for certctl rehash in live images.

This is very limited -- it does not supplant postinstall to rehash
certificates on upgrade; it only runs certctl rehash if
/etc/openssl/certs is an empty directory, as you get in live images
not created with sysinst.

We could also have a more general-purpose way to run postinstall(8)
on first boot of an image, but that has a lot more moving parts to
think about, so let's start with this limited-scope low-risk
approach.

PR install/57629

XXX pullup-10


Revision tags: netbsd-10-base
1.6 06-Jul-2021 jmcneill

branches: 1.6.2;
Disable kernfs on live images -- it is not required.


Revision tags: netbsd-8-3-RELEASE netbsd-9-4-RELEASE netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
1.5 19-Apr-2015 hubertf

Cleanup: make_filesystems is not used any longer, purge remains


1.4 23-Jan-2015 skrll

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.


Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base tls-maxphys-base
1.3 03-Feb-2013 christos

branches: 1.3.4; 1.3.12;
switch to makefs


Revision tags: yamt-pagecache-base8
1.2 13-Jan-2013 christos

branches: 1.2.2;
append to rc.conf, don't overwrite


1.1 13-Jan-2013 christos

Adjust mkimage to handle RPI. From skrll@


1.6 16-Nov-2025 jmcneill

wii: Add standalone bootloader.

This adds "ppcboot.elf" to the Wii (evbppc) build, which can be placed on
the FAT partition of an SD card in the bootmii directory. The bootloader
doesn't have a user interface, it simply loads a kernel from the first
FFS partition it finds on the SD card.

Debug logs are printed to a USB Gecko device in either memory card slot
if present.

\\-__,------,___.
\\ __,---` NetBSD/evbppc Wii MINI boot
\\ `---,_. Revision 1.0 (Sun Nov 16 19:27:47 UTC 2025)
\\-,_____,.---`
\\
\\
\\

booting netbsd 7828064/-|+130520 [315696+305916]=0x82f350
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[ 1.0000000] 2024, 2025
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.

[ 1.0000000] NetBSD 11.99.3 (WII) #207: Sun Nov 16 14:28:23 AST 2025
[ 1.0000000] jmcneill@berserk:/home/jmcneill/netbsd/obj/sys/arch/evbppc/compile/WII
[ 1.0000000] total memory = 90112 KB
[ 1.0000000] avail memory = 77008 KB
[ 1.0000000] mainbus0 (root): Nintendo Wii
...


1.5 02-Sep-2025 jmcneill

wii: Start bluetooth by default


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
1.4 17-Jan-2025 jmcneill

branches: 1.4.2;
wii: update wii.img ffs parameters

Use 4K block/frags and FFSv2 for Wii images.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.3 21-Jan-2024 jmcneill

branches: 1.3.2; 1.3.4;
wii: Add 128x48 icon to SD card image


1.2 21-Jan-2024 jmcneill

build fix: use dd with count=1 for compat with NetBSD dd(1)


1.1 20-Jan-2024 jmcneill

evbppc: Add initial support for the Nintendo Wii


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
1.13 29-Dec-2024 jmmv

Recognize MKPOSTFIX=no in mkimage


1.12 27-Dec-2024 christos

Remove duplicated code, handle minwrites in _normal the same way we handle
it in _gpt. Initial patch from jmmv@.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.11 27-Sep-2023 riastradh

branches: 1.11.2;
/etc/rc.d/cerctl_init: New script for certctl rehash in live images.

This is very limited -- it does not supplant postinstall to rehash
certificates on upgrade; it only runs certctl rehash if
/etc/openssl/certs is an empty directory, as you get in live images
not created with sysinst.

We could also have a more general-purpose way to run postinstall(8)
on first boot of an image, but that has a lot more moving parts to
think about, so let's start with this limited-scope low-risk
approach.

PR install/57629

XXX pullup-10


Revision tags: netbsd-10-base
1.10 06-Jul-2021 jmcneill

branches: 1.10.2;
Disable kernfs on live images -- it is not required.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
1.9 23-Dec-2020 rin

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.


Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base 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-base
1.8 28-Nov-2017 kre

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.


Revision tags: 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 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
1.7 29-Jan-2015 skrll

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


1.6 23-Jan-2015 skrll

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.


1.5 14-Dec-2014 christos

fix image building:
- round up the total size of the disk image
- fix fdisk offset for netbsd ffs images


Revision tags: tls-maxphys-base netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base
1.4 04-Apr-2014 christos

branches: 1.4.4; 1.4.6; 1.4.8;
merge more, and add an i386 image


Revision tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
1.3 31-Mar-2014 christos

remove swap; these days x86 machines don't need it.


1.2 31-Mar-2014 christos

these changes produce a bootable system under qemu, but its root is trashed.


1.1 31-Mar-2014 christos

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.


Revision tags: perseant-exfatfs-base-20250801 perseant-exfatfs-base-20240630 perseant-exfatfs-base cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906
1.2 27-Aug-2018 jmcneill

Install ELF kernel to the FFS partition and boot it with bootaa64.efi
instead of loading kernel.img from the MSDOS partition with extlinux.conf


Revision tags: pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407
1.1 01-Apr-2018 ryo

branches: 1.1.2; 1.1.4;
Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)

- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-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 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 phil-wifi-20191119
1.15 27-Oct-2019 jmcneill

Switch to GENERIC kernels only.


Revision tags: netbsd-9-base phil-wifi-20190609
1.14 04-Apr-2019 jmcneill

branches: 1.14.2;
Re-enable efiboot for armv7 (thanks skrll@)


1.13 02-Apr-2019 jmcneill

Turn off efiboot until we figure out why it fails on some boards.


1.12 30-Mar-2019 jmcneill

Switch to efiboot


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118
1.11 05-Jan-2019 aymeric

Rename the DE0 Nano SoC dts file to its new linux/uboot name


1.10 03-Jan-2019 jmcneill

Fix mmcpart for exynos SD card


Revision tags: pgoyette-compat-1226 pgoyette-compat-1126
1.9 22-Nov-2018 aymeric

Make armv7.img boot on the DE0 Nano SoC. Requires u-boot from -current pkgsrc.


1.8 01-Nov-2018 skrll

Use the GENERIC kernel where possible in armv7.img and remove the old
kernels from the bulid for SUNXI and TEGRA.

While I'm here disable *_INSTALL kernel builds for boards supported by
armv7.img


1.7 20-Oct-2018 skrll

Sort


Revision tags: pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728
1.6 04-Jul-2018 jmcneill

Enable booting of netbsd-EXYNOS kernel


Revision tags: phil-wifi-base 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-base
1.5 06-Jan-2018 jmcneill

branches: 1.5.2; 1.5.4;
Enable automatic booting on tegra210


1.4 18-Dec-2017 jmcneill

No need to specify console=fb for pinebook anymore as WSDISPLAY_MULTICONS will give us a framebuffer console


1.3 16-Dec-2017 jmcneill

Use fb console by default on Pinebook


1.2 08-Oct-2017 sevan

Fix test otherwise we try to load a fdtfile for boards which do not have use_fdt set.


1.1 07-Oct-2017 jmcneill

Install a boot.scr on armv7.img that detects the running board and selects
the correct kernel and boot protocol. Should work on tegra, sunxi, and
am335x boards for now.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-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 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 phil-wifi-20191119
1.2 27-Oct-2019 jmcneill

branches: 1.2.4;
No support for tegra210 in armv7 kernel


Revision tags: netbsd-9-base
1.1 21-Jul-2019 rin

branches: 1.1.2;
Fallback to non-EFI boot script if EFI bootloader is absent.

Note that we do not currently build EFI bootloader for earmv7hf-eb,
as it requires little-endian version of toolchain.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.1 19-Apr-2023 brook

Install /boot/boot.cfg with EFI bootloaders.

On ARM ports, the EFI boot loader handles a boot.cfg file if it
exists, but one is not installed by default. In contrast, both the
i386 and amd64 ports do install boot.cfg by default. Bring these
ports into agreement by installing boot.cfg on ARM ports with EFI boot
loaders.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.6 29-Jan-2024 mrg

properly quote arguments.


Revision tags: netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base
1.5 11-Dec-2021 mrg

branches: 1.5.2;
remove clause 3 from all my licenses that aren't conflicting with
another copyright claim line. again. (i did this in 2008 and then
did not update all of my personal templates.)


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 phil-wifi-20191119
1.4 05-Oct-2019 mlelstv

branches: 1.4.4;
Fix typo


Revision 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 netbsd-9-base
1.3 12-Jun-2019 mrg

various cleanups inspired by reviews:
- clean up variable usage
- be explicit that $ssh_userkeys is global
- don't assig id output to a variable not used


1.2 12-Jun-2019 mrg

explicitly strip carriage return so that non-unix text files work.


1.1 11-Jun-2019 mrg

add a method to add user accounts or ssh keys to the embedded
(installable) images which may be run entirely headless and
have no current method to edit the installation without another
netbsd host to modify the root (FFS) partition.

creds_msdos reads the creds.txt file from the msdos boot
partition and provides 4 basic methods:

sshkeyfile <user> <path on msdos>
sshkey <user> <entry>
useraddhash <user> <passwd hash>
useradd <user> <passwd>

the first two create a user with ssh key(s), and the second
two create a user with a password. if the last method is used
and raw passwords are given, the creds.txt file will be
shredded and deleted by rm -P.


inspired by a request from a pine64 user. ok jmcneill@.


Revision tags: perseant-exfatfs-base-20250801 perseant-exfatfs-base-20240630 perseant-exfatfs-base cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
1.3 12-Jun-2019 mrg

move creds_msdos.8 into the normal place and install it.


1.2 11-Jun-2019 wiz

Use more markup, fix some typos.


1.1 11-Jun-2019 mrg

add a method to add user accounts or ssh keys to the embedded
(installable) images which may be run entirely headless and
have no current method to edit the installation without another
netbsd host to modify the root (FFS) partition.

creds_msdos reads the creds.txt file from the msdos boot
partition and provides 4 basic methods:

sshkeyfile <user> <path on msdos>
sshkey <user> <entry>
useraddhash <user> <passwd hash>
useradd <user> <passwd>

the first two create a user with ssh key(s), and the second
two create a user with a password. if the last method is used
and raw passwords are given, the creds.txt file will be
shredded and deleted by rm -P.


inspired by a request from a pine64 user. ok jmcneill@.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.6 27-Sep-2023 riastradh

ec2_init: Suppress error message for nonexistent sysctl.

We're querying to see whether the sysctl node is available and if so
what its text is, not interested in the error message.

XXX pullup-10


Revision tags: netbsd-10-base
1.5 15-Oct-2022 jmcneill

branches: 1.5.2;
ec2_init: Add support for Oracle Cloud


1.4 20-Jul-2021 rhialto

Extract just the random bits to feed to /dev/urandom.

This makes no difference in the randomness of the pool, but it improves
on the estimation (if any) of how many random bits were obtained.
Also make the ftp -q time out a bit longer since I got some time outs.


1.3 15-Jul-2021 rhialto

Add some OpenStack support.

I found that in the cloud I tried, by the time this script runs, there
is no default route in effect yet. That takes some 5 to 10 seconds
longer. So I added a retry loop, and to make that easier, changed the
order of queries. To make sure it doesn't wait ~forever for a
non-existent service I added the -q 1 option to ftp invocations.

I also added OpenStack-specific metadata which contains a different
random_seed of 512 bytes every time it is requested. See
https://github.com/openstack/nova/blob/master/nova/api/metadata/base.py#L355
It may not be trusted data but only in the strictest sense of the word.
The data can only be observed by people with access to the cloud's
overlay network for the particular VM.


1.2 01-Jul-2021 jmcneill

AWS marketplace does not allow root ssh logins. Create an ec2-user account
and install the ssh key in that user's home directory instead.


Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226
1.1 30-Nov-2018 jmcneill

branches: 1.1.2; 1.1.4;
Add support for configuring Amazon.com EC2 SSH keys and hostnames. While
here, only set wscons=YES if a wsdisplay0 device is present.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.1 21-Jan-2024 jmcneill

branches: 1.1.2;
wii: Add 128x48 icon to SD card image


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.2 24-Jan-2024 jmcneill

branches: 1.2.2;
wii: Add support for passing boot options to the kernel.


1.1 20-Jan-2024 jmcneill

evbppc: Add initial support for the Nintendo Wii


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
1.5 18-Mar-2023 mlelstv

Can't use disklabel to find the real size of a disk since a fake disklabel
read from disk is trusted. Revert to use drvctl again.


1.4 18-Feb-2023 mlelstv

Handle arbitrary raw partitions.
Fetch geometry from disklabel to be consistent.
Use disktab format instead of the normal human-readable output for parsing
the disklabel.
Avoid overflows in size computation.


Revision tags: netbsd-10-1-RELEASE netbsd-9-4-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-base netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
1.3 06-Oct-2018 jmcneill

resize_disklabel: if disk and partition is not specified, use kern.root_device/kern.root_partition sysctls


Revision tags: netbsd-8-3-RELEASE netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
1.2 14-Apr-2017 jmcneill

branches: 1.2.10; 1.2.12;
Grow the MBR partition table entry for the BSD partition before
growing the disklabel.


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
1.1 06-Apr-2015 jmcneill

branches: 1.1.2; 1.1.4; 1.1.6;
Add support for auto-growing the root partition. Enable it for rpi.img.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-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 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
1.2 24-May-2020 jmcneill

Add support for hybrid MBR/GPT images.


1.1 24-May-2020 jmcneill

Add GPT support to mkimage.