NetBSD Problem Report #58101

From www@netbsd.org  Tue Apr  2 04:11:54 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 4D18A1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  2 Apr 2024 04:11:54 +0000 (UTC)
Message-Id: <20240402041153.050CF1A923B@mollari.NetBSD.org>
Date: Tue,  2 Apr 2024 04:11:52 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: /dev/nvme* missing on aarch64
X-Send-Pr-Version: www-1.0

>Number:         58101
>Category:       port-arm
>Synopsis:       /dev/nvme* 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:15:00 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current, 10
>Organization:
The NvmeBSD Aarchitecture
>Environment:
>Description:
evbarm and x86 create /dev/nvme* nodes, but aarch64 does not, possibly because of the weird special case for aarch64 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:
nvmectl devlist
>Fix:
Copy & paste the nvme lines from etc.evbarm/MAKEDEV.conf 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.