NetBSD Problem Report #58100

From www@netbsd.org  Tue Apr  2 04:05:39 2024
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 565551A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  2 Apr 2024 04:05:39 +0000 (UTC)
Message-Id: <20240402040538.08E481A923B@mollari.NetBSD.org>
Date: Tue,  2 Apr 2024 04:05:38 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: /dev/ttyVI* (viocon(4), virtio-serial) is missing on aarch64
X-Send-Pr-Version: www-1.0

>Number:         58100
>Category:       port-arm
>Synopsis:       /dev/ttyVI* (viocon(4), virtio-serial) is missing on aarch64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 02 04:10:00 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current, 10
>Organization:
The NettyBSD Foundation
>Environment:
>Description:
When I imported viocon(4) I tested it on aarch64, and added it to etc/etc.${MACHINE}/MAKEDEV.conf for each MACHINE that seemed appropriate:

https://mail-index.netbsd.org/source-changes/2022/08/12/msg140229.html

But somehow I missed aarch64's MAKEDEV.conf -- possibly because of this somewhat baffling special case in etc/Makefile:

    188 MAKEDEV_MACHINE=${"${MACHINE_CPU}" == "aarch64":?${MACHINE_CPU}:${MACHINE}}
    189 MAKEDEV: ${.CURDIR}/MAKEDEV.awk ${.CURDIR}/MAKEDEV.tmpl \
    190     ${.CURDIR}/etc.${MAKEDEV_MACHINE}/MAKEDEV.conf
    191 	${_MKTARGET_CREATE}
    192 	MACHINE=${MAKEDEV_MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
    193 	    NETBSDSRCDIR=${NETBSDSRCDIR:Q} \
    194 	    ${TOOL_AWK} -f ${.CURDIR}/MAKEDEV.awk ${.CURDIR}/MAKEDEV.tmpl \
    195 	    > ${.TARGET}

https://nxr.netbsd.org/xref/src/etc/Makefile?r=1.469#188
>How-To-Repeat:
try to use virtio-serial on aarch64
>Fix:
Add `makedev ttyVI' to etc.aarch64/MAKEDEV.conf.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.