NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arm/58101: /dev/nvme* missing on aarch64



>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.



Home | Main Index | Thread Index | Old Index