Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ofctl evbmips: add ofctl(8) and /dev/openfirm support
details: https://anonhg.NetBSD.org/src/rev/ffaac4286b6a
branches: trunk
changeset: 936291:ffaac4286b6a
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Jul 24 12:07:09 2020 +0000
description:
evbmips: add ofctl(8) and /dev/openfirm support
diffstat:
distrib/sets/lists/base/md.evbmips | 3 ++-
distrib/sets/lists/debug/md.evbmips | 2 ++
etc/etc.evbmips/MAKEDEV.conf | 3 ++-
sys/arch/evbmips/conf/OCTEON | 5 +++--
sys/arch/evbmips/conf/majors.evbmips | 4 +++-
usr.sbin/ofctl/Makefile | 5 +++--
6 files changed, 15 insertions(+), 7 deletions(-)
diffs (99 lines):
diff -r 439a688e4907 -r ffaac4286b6a distrib/sets/lists/base/md.evbmips
--- a/distrib/sets/lists/base/md.evbmips Fri Jul 24 08:24:23 2020 +0000
+++ b/distrib/sets/lists/base/md.evbmips Fri Jul 24 12:07:09 2020 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: md.evbmips,v 1.3 2017/08/15 10:11:31 mrg Exp $
+# $NetBSD: md.evbmips,v 1.4 2020/07/24 12:07:09 jmcneill Exp $
./usr/mdec/sbmips base-sysutil-bin
./usr/mdec/sbmips/boot base-sysutil-bin
./usr/mdec/sbmips/bootxx_cd9660 base-sysutil-bin
./usr/mdec/sbmips/bootxx_ffs base-sysutil-bin
./usr/mdec/sbmips/bootxx_lfs base-sysutil-bin
./usr/mdec/sbmips/netboot base-sysutil-bin
+./usr/sbin/ofctl base-sysutil-bin
diff -r 439a688e4907 -r ffaac4286b6a distrib/sets/lists/debug/md.evbmips
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sets/lists/debug/md.evbmips Fri Jul 24 12:07:09 2020 +0000
@@ -0,0 +1,2 @@
+# $NetBSD: md.evbmips,v 1.10 2020/07/24 12:07:09 jmcneill Exp $
+./usr/libdata/debug/usr/sbin/ofctl.debug comp-sysutil-debug debug
diff -r 439a688e4907 -r ffaac4286b6a etc/etc.evbmips/MAKEDEV.conf
--- a/etc/etc.evbmips/MAKEDEV.conf Fri Jul 24 08:24:23 2020 +0000
+++ b/etc/etc.evbmips/MAKEDEV.conf Fri Jul 24 12:07:09 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: MAKEDEV.conf,v 1.10 2019/01/27 08:53:29 maxv Exp $
+# $NetBSD: MAKEDEV.conf,v 1.11 2020/07/24 12:07:09 jmcneill Exp $
# When creating a /dev file system on MFS, init makes a FS that leaves
# only 890 (or so) inodes free. Therefore the "init" case (used by
@@ -35,6 +35,7 @@
makedev altq sysmon
makedev iic0 iic1 iic2 iic3 iic4
makedev kttcp
+ makedev openfirm
;;
minimal)
diff -r 439a688e4907 -r ffaac4286b6a sys/arch/evbmips/conf/OCTEON
--- a/sys/arch/evbmips/conf/OCTEON Fri Jul 24 08:24:23 2020 +0000
+++ b/sys/arch/evbmips/conf/OCTEON Fri Jul 24 12:07:09 2020 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: OCTEON,v 1.7 2020/07/17 14:57:54 jmcneill Exp $
+# $NetBSD: OCTEON,v 1.8 2020/07/24 12:07:09 jmcneill Exp $
include "arch/mips/conf/std.octeon"
include "arch/evbmips/conf/files.octeon"
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "OCTEON-$Revision: 1.7 $"
+#ident "OCTEON-$Revision: 1.8 $"
maxusers 32
@@ -187,6 +187,7 @@
pseudo-device clockctl # user control of clock subsystem
pseudo-device ksyms # /dev/ksyms
pseudo-device drvctl # driver control
+pseudo-device openfirm # /dev/openfirm
# A pseudo device needed for Coda # also needs CODA (above)
#pseudo-device vcoda # coda minicache <-> venus comm.
diff -r 439a688e4907 -r ffaac4286b6a sys/arch/evbmips/conf/majors.evbmips
--- a/sys/arch/evbmips/conf/majors.evbmips Fri Jul 24 08:24:23 2020 +0000
+++ b/sys/arch/evbmips/conf/majors.evbmips Fri Jul 24 12:07:09 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: majors.evbmips,v 1.36 2020/04/04 16:06:13 jdolecek Exp $
+# $NetBSD: majors.evbmips,v 1.37 2020/07/24 12:07:09 jmcneill Exp $
#
# Device majors for evbmips
#
@@ -86,6 +86,8 @@
device-major athflash char 99 athflash
#device-major obsolete char 100 block 19 obsolete (spiflash)
+device-major openfirm char 101 openfirm
+
# Majors up to 143 are reserved for machine-dependent drivers.
# New machine-independent driver majors are assigned in
# sys/conf/majors.
diff -r 439a688e4907 -r ffaac4286b6a usr.sbin/ofctl/Makefile
--- a/usr.sbin/ofctl/Makefile Fri Jul 24 08:24:23 2020 +0000
+++ b/usr.sbin/ofctl/Makefile Fri Jul 24 12:07:09 2020 +0000
@@ -1,5 +1,5 @@
# from: @(#)Makefile 5.8 (Berkeley) 7/28/90
-# $NetBSD: Makefile,v 1.9 2018/04/01 04:35:06 ryo Exp $
+# $NetBSD: Makefile,v 1.10 2020/07/24 12:07:09 jmcneill Exp $
.include <bsd.own.mk>
@@ -8,7 +8,8 @@
|| ${MACHINE} == "ofppc" \
|| ${MACHINE_CPU} == "arm" \
|| ${MACHINE_CPU} == "aarch64" \
- || ${MACHINE} == "sparc"
+ || ${MACHINE} == "sparc" \
+ || ${MACHINE} == "evbmips"
PROG= ofctl
Home |
Main Index |
Thread Index |
Old Index