History log of /openbsd-current/distrib/armv7/miniroot/Makefile.inc
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.33 09-Apr-2024 kettenis

Remove the "cubie" miniroot. There are far more popular armv7 boards
with Allwinner SoCs and the presence of this particular miniroot is making
it hard to update U-Boot.

ok jsg@


Revision tags: OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.32 25-Sep-2023 sthen

adapt to new dir layout in dtb packages; ok deraadt


# 1.31 24-Apr-2023 krw

Change variable 'DISKTYPE' to 'FSDISKTYPE' like every other arch.

No functional change.

ok patrick@


Revision tags: OPENBSD_7_3_BASE
# 1.30 10-Feb-2023 krw

Use "echo '/ *' | disklabel -wAT-" to put all free space into the
root partition.

Identical behaviour as but more readable than the "echo 'a
a\n\n\n\nw\nq\n'| disklabel -E" it replaces.

It also eliminates the extraneous output of -E that required
">/dev/null".

ok kn@


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.29 07-Feb-2022 krw

Use fdisk's -b to create boot partitions instead of -e scripts.

Build, boot and install tested by visa@

ok visa@


# 1.28 12-Oct-2021 deraadt

make armv7 fit again after bootblock growth; discussed with jsg


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.27 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.26 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_7_BASE
# 1.25 31-Oct-2019 jsg

When writing to a raw vnd device with dd if the input file size is not a
multiple of bs use conv=sync to zero pad the final record. Avoids
"vnd0: sloppy write from proc" messages when building arm releases.

tested by deraadt@


Revision tags: OPENBSD_6_6_BASE
# 1.24 25-Sep-2019 jsg

Change the offset filesystems start on disk for armv7 from 1MB to 16MB.
Matches arm64 and is required for rk3288 with TPL now U-Boot is expected
to be found at sector 16384 (8MB).

ok kettenis@ patrick@


# 1.23 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.22 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


# 1.32 25-Sep-2023 sthen

adapt to new dir layout in dtb packages; ok deraadt


# 1.31 24-Apr-2023 krw

Change variable 'DISKTYPE' to 'FSDISKTYPE' like every other arch.

No functional change.

ok patrick@


Revision tags: OPENBSD_7_3_BASE
# 1.30 10-Feb-2023 krw

Use "echo '/ *' | disklabel -wAT-" to put all free space into the
root partition.

Identical behaviour as but more readable than the "echo 'a
a\n\n\n\nw\nq\n'| disklabel -E" it replaces.

It also eliminates the extraneous output of -E that required
">/dev/null".

ok kn@


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.29 07-Feb-2022 krw

Use fdisk's -b to create boot partitions instead of -e scripts.

Build, boot and install tested by visa@

ok visa@


# 1.28 12-Oct-2021 deraadt

make armv7 fit again after bootblock growth; discussed with jsg


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.27 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.26 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_7_BASE
# 1.25 31-Oct-2019 jsg

When writing to a raw vnd device with dd if the input file size is not a
multiple of bs use conv=sync to zero pad the final record. Avoids
"vnd0: sloppy write from proc" messages when building arm releases.

tested by deraadt@


Revision tags: OPENBSD_6_6_BASE
# 1.24 25-Sep-2019 jsg

Change the offset filesystems start on disk for armv7 from 1MB to 16MB.
Matches arm64 and is required for rk3288 with TPL now U-Boot is expected
to be found at sector 16384 (8MB).

ok kettenis@ patrick@


# 1.23 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.22 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


# 1.31 24-Apr-2023 krw

Change variable 'DISKTYPE' to 'FSDISKTYPE' like every other arch.

No functional change.

ok patrick@


Revision tags: OPENBSD_7_3_BASE
# 1.30 10-Feb-2023 krw

Use "echo '/ *' | disklabel -wAT-" to put all free space into the
root partition.

Identical behaviour as but more readable than the "echo 'a
a\n\n\n\nw\nq\n'| disklabel -E" it replaces.

It also eliminates the extraneous output of -E that required
">/dev/null".

ok kn@


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.29 07-Feb-2022 krw

Use fdisk's -b to create boot partitions instead of -e scripts.

Build, boot and install tested by visa@

ok visa@


# 1.28 12-Oct-2021 deraadt

make armv7 fit again after bootblock growth; discussed with jsg


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.27 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.26 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_7_BASE
# 1.25 31-Oct-2019 jsg

When writing to a raw vnd device with dd if the input file size is not a
multiple of bs use conv=sync to zero pad the final record. Avoids
"vnd0: sloppy write from proc" messages when building arm releases.

tested by deraadt@


Revision tags: OPENBSD_6_6_BASE
# 1.24 25-Sep-2019 jsg

Change the offset filesystems start on disk for armv7 from 1MB to 16MB.
Matches arm64 and is required for rk3288 with TPL now U-Boot is expected
to be found at sector 16384 (8MB).

ok kettenis@ patrick@


# 1.23 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.22 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


# 1.30 10-Feb-2023 krw

Use "echo '/ *' | disklabel -wAT-" to put all free space into the
root partition.

Identical behaviour as but more readable than the "echo 'a
a\n\n\n\nw\nq\n'| disklabel -E" it replaces.

It also eliminates the extraneous output of -E that required
">/dev/null".

ok kn@


Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.29 07-Feb-2022 krw

Use fdisk's -b to create boot partitions instead of -e scripts.

Build, boot and install tested by visa@

ok visa@


# 1.28 12-Oct-2021 deraadt

make armv7 fit again after bootblock growth; discussed with jsg


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.27 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.26 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_7_BASE
# 1.25 31-Oct-2019 jsg

When writing to a raw vnd device with dd if the input file size is not a
multiple of bs use conv=sync to zero pad the final record. Avoids
"vnd0: sloppy write from proc" messages when building arm releases.

tested by deraadt@


Revision tags: OPENBSD_6_6_BASE
# 1.24 25-Sep-2019 jsg

Change the offset filesystems start on disk for armv7 from 1MB to 16MB.
Matches arm64 and is required for rk3288 with TPL now U-Boot is expected
to be found at sector 16384 (8MB).

ok kettenis@ patrick@


# 1.23 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.22 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


# 1.29 07-Feb-2022 krw

Use fdisk's -b to create boot partitions instead of -e scripts.

Build, boot and install tested by visa@

ok visa@


# 1.28 12-Oct-2021 deraadt

make armv7 fit again after bootblock growth; discussed with jsg


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.27 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.26 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_7_BASE
# 1.25 31-Oct-2019 jsg

When writing to a raw vnd device with dd if the input file size is not a
multiple of bs use conv=sync to zero pad the final record. Avoids
"vnd0: sloppy write from proc" messages when building arm releases.

tested by deraadt@


Revision tags: OPENBSD_6_6_BASE
# 1.24 25-Sep-2019 jsg

Change the offset filesystems start on disk for armv7 from 1MB to 16MB.
Matches arm64 and is required for rk3288 with TPL now U-Boot is expected
to be found at sector 16384 (8MB).

ok kettenis@ patrick@


# 1.23 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.22 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


# 1.28 12-Oct-2021 deraadt

make armv7 fit again after bootblock growth; discussed with jsg


Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.27 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.26 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_7_BASE
# 1.25 31-Oct-2019 jsg

When writing to a raw vnd device with dd if the input file size is not a
multiple of bs use conv=sync to zero pad the final record. Avoids
"vnd0: sloppy write from proc" messages when building arm releases.

tested by deraadt@


Revision tags: OPENBSD_6_6_BASE
# 1.24 25-Sep-2019 jsg

Change the offset filesystems start on disk for armv7 from 1MB to 16MB.
Matches arm64 and is required for rk3288 with TPL now U-Boot is expected
to be found at sector 16384 (8MB).

ok kettenis@ patrick@


# 1.23 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.22 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


# 1.27 18-May-2020 otto

Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@


# 1.26 17-May-2020 deraadt

Change install images called *.fs to *.img. These are UFS filesystem images,
but additionally have a bootblock in the first 8K (since UFS does not use that
space). There are some UEFI direct-from-internet bootloaders that require
the name *.img. So this makes things more convenient for those, while keeping
it consistant in all architectures.
ok kettenis beck kn


Revision tags: OPENBSD_6_7_BASE
# 1.25 31-Oct-2019 jsg

When writing to a raw vnd device with dd if the input file size is not a
multiple of bs use conv=sync to zero pad the final record. Avoids
"vnd0: sloppy write from proc" messages when building arm releases.

tested by deraadt@


Revision tags: OPENBSD_6_6_BASE
# 1.24 25-Sep-2019 jsg

Change the offset filesystems start on disk for armv7 from 1MB to 16MB.
Matches arm64 and is required for rk3288 with TPL now U-Boot is expected
to be found at sector 16384 (8MB).

ok kettenis@ patrick@


# 1.23 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.22 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


# 1.25 31-Oct-2019 jsg

When writing to a raw vnd device with dd if the input file size is not a
multiple of bs use conv=sync to zero pad the final record. Avoids
"vnd0: sloppy write from proc" messages when building arm releases.

tested by deraadt@


Revision tags: OPENBSD_6_6_BASE
# 1.24 25-Sep-2019 jsg

Change the offset filesystems start on disk for armv7 from 1MB to 16MB.
Matches arm64 and is required for rk3288 with TPL now U-Boot is expected
to be found at sector 16384 (8MB).

ok kettenis@ patrick@


# 1.23 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.22 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


# 1.24 25-Sep-2019 jsg

Change the offset filesystems start on disk for armv7 from 1MB to 16MB.
Matches arm64 and is required for rk3288 with TPL now U-Boot is expected
to be found at sector 16384 (8MB).

ok kettenis@ patrick@


# 1.23 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.22 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


# 1.23 03-May-2019 deraadt

Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)


# 1.22 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


# 1.22 30-Apr-2019 deraadt

Every Makefile on every architecture had deviated in unique ways.
Eliminate many more differences. When it makes sense, build bsd.rd
and miniroot/ramdisk.fs and cd.iso in the same directory. More steps
coming after this..


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


# 1.21 29-Apr-2019 deraadt

remove the abstraction REV on top of abstraction OSrev which is always
the sme.


# 1.20 28-Apr-2019 deraadt

Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years. Being tested on all architectures...
ok various people.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.19 19-Jan-2017 jsg

Mainline u-boot on SABRE Lite/BD-SL-i.MX6 does not have the generic
distro hooks that automatically load an efi file if found.

Instead it looks for a '6x_bootscript' u-boot script as the original
boundary devices u-boot did.

Create a script in the nitrogen miniroot and on install that will
load a dtb and bootarm.efi then call bootefi. Based on notes
from matthieu@


Revision tags: OPENBSD_6_0_BASE
# 1.18 05-Jun-2016 jsg

Previously armv7 ramdisk creation would tar up the mdec directory on the
build machine and extract it when installing. Change to using the
u-boot and dtb packages when creating ramdisks and miniroots and don't
place these files in mdec on install.

Installing these packages is now required to run make release on armv7.


# 1.17 29-May-2016 jsg

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.


# 1.16 28-May-2016 jsg

Assume sabrelite/nitrogen has a bootefi enabled u-boot in flash and just
install dtbs and efiboot on the fat fs.


# 1.15 28-May-2016 jsg

use efiboot in armv7 miniroot images


# 1.14 26-May-2016 jsg

Use a fat16 partition starting at sector 2048/1MB everywhere to simplify
things. OMAP can still load the first u-boot stage (MLO) from the fs
and imx u-boot can load files off fat. The offset allows space for the
u-boot images placed at raw offsets on imx and sunxi.

discussed with kettenis


# 1.13 22-May-2016 jsg

use a simple u-boot script for all the miniroots that loads with fdt
ok patrick@ kettenis@


# 1.12 21-May-2016 jsg

Copy dtb files to miniroots and install disk. Increase the ramdisk size
and force long filenames on the first mount of fat 16 filesystems so
this works.

U-boot scripts have not yet been changed to load these files.

ok kettenis@


# 1.11 27-Mar-2016 jsg

Switch from the solidrun i.mx6 u-boot to mainline u-boot on cubox i.
The offset of u-boot.img in the disk image changes to be the same as
wandboard.


# 1.10 27-Mar-2016 jsg

use MLO not mlo to match the names generated by u-boot builds


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.9 01-Aug-2015 jsg

Make use of u-boot 2015.07's unified wandboard config to provide a
miniroot to cover all current wandboard variations.

Unlike the other imx u-boot configs the wandboard config doesn't search
for ext2 only a fat fs.

Grow the ramdisk size to fit the extra u-boot files.

From Roman Kravchuk.


# 1.8 02-Jun-2015 jsg

Rename the imx miniroot to nitrogen as it creates "6x_bootscript".
Add a miniroot for the CuBox-i which needs u-boot at a particular
offset in the sd image to boot. Based on changes made by Patrick
Wildt in bitrig.


# 1.7 20-May-2015 jsg

Now all the socs use the same va entry point and don't have any
conflicting symbols we can combine the configs.

Multiple umg files are still required however. The bsd.umg target in
the kernel is replaced by targets for bsd.IMX.umg, bsd.OMAP.umg and
bsd.SUNXI.umg.


Revision tags: OPENBSD_5_7_BASE
# 1.6 26-Jan-2015 jsg

Rename miniroot-sunxi to miniroot-cubie as the u-boot included
in the image is for Cubieboard1. Discussed with bmercer@
While here switch from using the separate spl and u-boot images
to the combined spl and u-boot 'u-boot-sunxi-with-spl.bin'.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.5 26-Feb-2014 maja

Fix script to allow it to work on both SD and eMMC. -moj ok deraadt@ nick@


# 1.4 01-Nov-2013 jasper

hookup sunxi bits for miniroot and ramdisk, tested on pcduino.
note that on boards without ahci you will need to install to usb and still
boot of sd, at least until there's support for the sd slot.

ok patrick@


# 1.3 28-Oct-2013 patrick

Revamp ARMv7 ramdisk and miniroot creation process.

Instead of running mkuboot during install, we call it on during
the release build, so that we can also ship bootable images
of the generic and the ramdisk kernel.

We can now build miniroots for imx, too. The installer also
can recognize the SoC and makes decision based on it.

Use ext2fs for i.MX6 based devices.

Tar the bootloader files to save some space.

ok syl@


# 1.2 07-Sep-2013 patrick

Update ARMv7's release build process to build kernels and ramdisks
per SoC. It's heavily based on the SGI port.

ok florian@


# 1.1 04-Sep-2013 patrick

Beagle has been replaced by armv7.