From d059e538523cb98b0ff47259c0d4125c1916bf54 Mon Sep 17 00:00:00 2001 From: lotherk Date: Mon, 16 Nov 2026 15:37:38 +0000 Subject: [PATCH] boot: the Makronix M and the squirrel in the booter, no NetBSD labels Konrad, 2026-11-16: the bootloader's NetBSD mountain goes; the Makronix mark and the mascot come in. - lib/libsa/bootcfg.c prints the M tile of docs/logo/makronix.txt (the ASCII the logo tool draws) with the booter name, revision and https://makronix.hiddenbox.org when a boot.cfg has no banner. BOOTCFG_MAXBANNER is 24: the mascot alone is eleven lines. - installdvd, installcd and bootcd carry the squirrel of ~/src/mikronix/sys/stand/banner.sh above their welcome text, and their "Makronix is based on NetBSD (www.NetBSD.org)" line becomes "Makronix (https://makronix.hiddenbox.org/)". - User-facing NetBSD in the booters is Makronix: the "from NetBSD" in the dosboot, multiboot2 and efiboot banners, the filesystem labels in biosdisk.c (Makronix RAID/FFS/LFS/Swap/ccd/cgd) and the MBR banner ("Makronix MBR boot"). The FIRMWARE path esp:/EFI/NetBSD/boot.cfg and the FAT OEM names stay: they are protocol, not a label. The stand code compiled with -Werror in make release. The medium itself could not be built: the release stopped at checkflist because the failed make userland left the MCDE package out of the sysroot (2576 missing /usr/pkg files, tasksd t0217, MCDE scope). The banner is measured on the next medium once that is fixed. --- src/distrib/amd64/cdroms/bootcd/boot.cfg.in | 13 +++++++++++- .../amd64/cdroms/installcd/boot.cfg.in | 13 +++++++++++- .../amd64/cdroms/installdvd/boot.cfg.in | 13 +++++++++++- src/sys/arch/i386/stand/dosboot/main.c | 2 +- src/sys/arch/i386/stand/efiboot/boot.c | 2 +- src/sys/arch/i386/stand/lib/biosdisk.c | 12 +++++------ src/sys/arch/i386/stand/lib/exec_multiboot2.c | 2 +- src/sys/arch/i386/stand/mbr/mbr.S | 2 +- src/sys/lib/libsa/bootcfg.c | 21 ++++++++++++------- src/sys/lib/libsa/bootcfg.h | 2 +- 10 files changed, 60 insertions(+), 22 deletions(-) diff --git a/src/distrib/amd64/cdroms/bootcd/boot.cfg.in b/src/distrib/amd64/cdroms/bootcd/boot.cfg.in index c4175d8bf1..b0aab1332c 100644 --- a/src/distrib/amd64/cdroms/bootcd/boot.cfg.in +++ b/src/distrib/amd64/cdroms/bootcd/boot.cfg.in @@ -1,3 +1,14 @@ +banner= _ +banner= {' `- . +banner= { \ ( . _ +banner= { | / o `. +banner= '} / .` . __ . ` +banner= { . ' , \ _ / ' \ +banner= } / ' _ ` - . ` = / +banner= { , ' \ ; ' ` ' +banner= { ; _ +banner= ` -- ` ... - ; ' __ \ +banner= banner=Welcome to the Makronix @@VERSION@@ boot-only install CD banner================================================================================ banner= @@ -5,7 +16,7 @@ banner=This media contains only the installation program. Binary sets to comple banner=installation must be downloaded separately. The installer can download them banner=if this machine has a working internet connection. banner= -banner=Makronix is based on NetBSD (https://www.NetBSD.org/). +banner=Makronix (https://makronix.hiddenbox.org/). menu=Install Makronix:boot netbsd menu=Drop to boot prompt:prompt timeout=5 diff --git a/src/distrib/amd64/cdroms/installcd/boot.cfg.in b/src/distrib/amd64/cdroms/installcd/boot.cfg.in index 0a49e0ee3a..62636b1285 100644 --- a/src/distrib/amd64/cdroms/installcd/boot.cfg.in +++ b/src/distrib/amd64/cdroms/installcd/boot.cfg.in @@ -1,7 +1,18 @@ +banner= _ +banner= {' `- . +banner= { \ ( . _ +banner= { | / o `. +banner= '} / .` . __ . ` +banner= { . ' , \ _ / ' \ +banner= } / ' _ ` - . ` = / +banner= { , ' \ ; ' ` ' +banner= { ; _ +banner= ` -- ` ... - ; ' __ \ +banner= banner=Welcome to the Makronix @@VERSION@@ installation CD banner================================================================================ banner= -banner=Makronix is based on NetBSD (https://www.NetBSD.org/). +banner=Makronix (https://makronix.hiddenbox.org/). menu=Install Makronix:load /amd64/installation/miniroot/miniroot.kmod;boot netbsd menu=Drop to boot prompt:prompt timeout=5 diff --git a/src/distrib/amd64/cdroms/installdvd/boot.cfg.in b/src/distrib/amd64/cdroms/installdvd/boot.cfg.in index 4d75204fab..3dffbbcd80 100644 --- a/src/distrib/amd64/cdroms/installdvd/boot.cfg.in +++ b/src/distrib/amd64/cdroms/installdvd/boot.cfg.in @@ -1,7 +1,18 @@ +banner= _ +banner= {' `- . +banner= { \ ( . _ +banner= { | / o `. +banner= '} / .` . __ . ` +banner= { . ' , \ _ / ' \ +banner= } / ' _ ` - . ` = / +banner= { , ' \ ; ' ` ' +banner= { ; _ +banner= ` -- ` ... - ; ' __ \ +banner= banner=Welcome to the Makronix @@VERSION@@ installation DVD banner================================================================================ banner= -banner=Makronix is based on NetBSD (https://www.NetBSD.org/). +banner=Makronix (https://makronix.hiddenbox.org/). menu=Install Makronix:load /amd64/installation/miniroot/miniroot.kmod;boot netbsd menu=Drop to boot prompt:prompt timeout=5 diff --git a/src/sys/arch/i386/stand/dosboot/main.c b/src/sys/arch/i386/stand/dosboot/main.c index 3b418601d6..43079513fe 100644 --- a/src/sys/arch/i386/stand/dosboot/main.c +++ b/src/sys/arch/i386/stand/dosboot/main.c @@ -195,7 +195,7 @@ print_banner(void) clear_pc_screen(); printf("\n" - ">> %s, Revision %s (from NetBSD %s)\n" + ">> %s, Revision %s (from Makronix %s)\n" ">> Memory: %d/%d k\n", bootprog_name, bootprog_rev, bootprog_kernrev, getbasemem(), extmem); diff --git a/src/sys/arch/i386/stand/efiboot/boot.c b/src/sys/arch/i386/stand/efiboot/boot.c index fd509e4394..06c095cec0 100644 --- a/src/sys/arch/i386/stand/efiboot/boot.c +++ b/src/sys/arch/i386/stand/efiboot/boot.c @@ -804,7 +804,7 @@ command_version(char *arg) } printf("\n" - ">> %s, Revision %s (from NetBSD %s)\n" + ">> %s, Revision %s (from Makronix %s)\n" ">> Memory: %d/%d k\n", bootprog_name, bootprog_rev, bootprog_kernrev, getbasemem(), getextmem()); diff --git a/src/sys/arch/i386/stand/lib/biosdisk.c b/src/sys/arch/i386/stand/lib/biosdisk.c index 1f34866515..ee989bd57d 100644 --- a/src/sys/arch/i386/stand/lib/biosdisk.c +++ b/src/sys/arch/i386/stand/lib/biosdisk.c @@ -158,12 +158,12 @@ const struct uuid GET_apple_ufs = GPT_ENT_TYPE_APPLE_UFS; const struct uuid GET_bios = GPT_ENT_TYPE_BIOS; const struct gpt_part gpt_parts[] = { - { &GET_nbsd_raid, "NetBSD RAID" }, - { &GET_nbsd_ffs, "NetBSD FFS" }, - { &GET_nbsd_lfs, "NetBSD LFS" }, - { &GET_nbsd_swap, "NetBSD Swap" }, - { &GET_nbsd_ccd, "NetBSD ccd" }, - { &GET_nbsd_cgd, "NetBSD cgd" }, + { &GET_nbsd_raid, "Makronix RAID" }, + { &GET_nbsd_ffs, "Makronix FFS" }, + { &GET_nbsd_lfs, "Makronix LFS" }, + { &GET_nbsd_swap, "Makronix Swap" }, + { &GET_nbsd_ccd, "Makronix ccd" }, + { &GET_nbsd_cgd, "Makronix cgd" }, { &GET_efi, "EFI System" }, { &GET_mbr, "MBR" }, { &GET_fbsd, "FreeBSD" }, diff --git a/src/sys/arch/i386/stand/lib/exec_multiboot2.c b/src/sys/arch/i386/stand/lib/exec_multiboot2.c index 2c48f6a8b4..0e2cd23adb 100644 --- a/src/sys/arch/i386/stand/lib/exec_multiboot2.c +++ b/src/sys/arch/i386/stand/lib/exec_multiboot2.c @@ -481,7 +481,7 @@ mbi_boot_loader_name(struct multiboot_package *mbp, void *buf) struct multiboot_tag_string *mbt = buf; size_t len; size_t strlen; - const char fmt[] = "%s, Revision %s (from NetBSD %s)"; + const char fmt[] = "%s, Revision %s (from Makronix %s)"; /* +1 for trailing \0 */ diff --git a/src/sys/arch/i386/stand/mbr/mbr.S b/src/sys/arch/i386/stand/mbr/mbr.S index 850b73cc37..2a9f534828 100644 --- a/src/sys/arch/i386/stand/mbr/mbr.S +++ b/src/sys/arch/i386/stand/mbr/mbr.S @@ -559,7 +559,7 @@ banner: .asciz "a: disk" banner: .asciz "Fn: diskn" #endif #else -banner: .asciz "NetBSD MBR boot" +banner: .asciz "Makronix MBR boot" #endif #endif diff --git a/src/sys/lib/libsa/bootcfg.c b/src/sys/lib/libsa/bootcfg.c index 7777ba8d0c..9911f7b8fa 100644 --- a/src/sys/lib/libsa/bootcfg.c +++ b/src/sys/lib/libsa/bootcfg.c @@ -288,14 +288,19 @@ print_bootcfg_banner(const char *bootprog_name, const char *bootprog_rev) return; } - /* If the user has not specified a banner, print a default one. */ + /* + * If the user has not specified a banner, print the Makronix M: the + * tile of docs/logo/makronix.txt (tools/logo-ascii.sh draws it from + * the logo). The NetBSD mountain the upstream booter printed is not + * Makronix's mark (Konrad, 2026-11-16). + */ printf("\n"); - printf(" \\\\-__,------,___.\n"); - printf(" \\\\ __,---` %s\n", bootprog_name); - printf(" \\\\ `---,_. Revision %s\n", bootprog_rev); - printf(" \\\\-,_____,.---`\n"); - printf(" \\\\\n"); - printf(" \\\\\n"); - printf(" \\\\\n\n"); + printf(" .-----------. %s\n", bootprog_name); + printf(" | # # | Revision %s\n", bootprog_rev); + printf(" | ## ## | https://makronix.hiddenbox.org\n"); + printf(" | # # # # # |\n"); + printf(" | # # # # |\n"); + printf(" | # # # |\n"); + printf(" '-----------'\n\n"); } diff --git a/src/sys/lib/libsa/bootcfg.h b/src/sys/lib/libsa/bootcfg.h index 6e979848e7..1fce6c73e9 100644 --- a/src/sys/lib/libsa/bootcfg.h +++ b/src/sys/lib/libsa/bootcfg.h @@ -31,7 +31,7 @@ #define BOOTCFG_FILENAME "boot.cfg" #define BOOTCFG_MAXMENU 20 -#define BOOTCFG_MAXBANNER 12 +#define BOOTCFG_MAXBANNER 24 /* the mascot alone is 11 lines */ #define BOOTCFG_CMD_DEV "dev" #define BOOTCFG_CMD_FS "fs"