NetBSD Problem Report #61074
From www@netbsd.org Wed Nov 25 09:27:31 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 5FE221A923B
for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Nov 2026 09:27:31 +0000 (UTC)
Message-Id: <20261125092729.D14D61A923D@mollari.NetBSD.org>
Date: Wed, 25 Nov 2026 09:27:29 +0000 (UTC)
From: olivier.2.smet@gmail.com
Reply-To: olivier.2.smet@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Tape boot fail for a MVME147 system, in bootst: hackload_blocks too small for the 11.1 install
X-Send-Pr-Version: www-1.0
X-From4GNATS: "olivier.2.smet@gmail.com via gnats" <gnats-admin@NetBSD.org>
>Number: 61074
>Category: port-mvme68k
>Synopsis: Tape boot fail for a MVME147 system, in bootst: hackload_blocks too small for the 11.1 install
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: thorpej
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 25 09:30:00 +0000 2026
>Last-Modified: Wed Nov 25 12:13:44 +0000 2026
>Originator: Olivier De Smet
>Release: NetBSD 11.1
>Organization:
>Environment:
NetBSD mvme147 11.1 NetBSD 11.1 (GENERIC) #0: Tue Nov 24 08:57:09 CET 2026 olivier@imrryr:/home/olivier/NetBSD/usr/obj/sys/arch/mvme68k/compile/GENERIC mvme68k
>Description:
While making an emulator for an MVME147 board, I encounter the following problem when
trying to boot from a tape.
In sys/arch/mvme68k/stand/bootst/dev_tape.c the function hackprom_diskrd
loads the whole tape segment in one PROM read of hackload_blocks 256-byte blocks.
(0x3000 = 3 MB).
The 11.x installation ramdisk kernel is about 3.5 MB, so it is truncated at load
and the tape bootstrap fails.
The same problem should appear on a real board I think.
>How-To-Repeat:
Build the full install tape (bootst + ramdisk kernel), boot it with
147-Bug "bo 0,4" (or equivalent): kernel load fails / truncated.
>Fix:
--- sys/arch/mvme68k/stand/bootst/dev_tape.c
-#define hackload_blocks 0x3000 /* 3Mb worth */
+#define hackload_blocks 0x3800 /* 3.5Mb worth */
Loaded at 0x080000, 0x3800 blocks end exactly at 0x400000, so this
still fits a 4 MB board; larger values would not.
Tested by patching bootst on the tape image: install kernel loads
and the installation completes.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: port-mvme68k-maintainer->thorpej
Responsible-Changed-By: thorpej@NetBSD.org
Responsible-Changed-When: Wed, 25 Nov 2026 12:13:44 +0000
Responsible-Changed-Why:
Take.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.