Commit Graph

5571 Commits

Author SHA1 Message Date
mrg f4e2645dc0 - build and install libvdpau and x86 and evbarm.
- add khrplatform.h for mesa_ver=18 platforms.

need to enable libvdpau.pc generation (needs special rules)


this mostly comes from maya in the first one, and a small part
of the second:

commit 48eb746983a5a7967fba221e7b167808af36f44a
Author: Maya Rashish <maya@NetBSD.org>
Date:   Sun Feb 24 09:31:22 2019 +0200

    More of vdpau. Cogs spin.

commit d9fbba8f61a43648d32f160c5fa62626788566ff
Author: Maya Rashish <maya@NetBSD.org>
Date:   Sat Feb 23 22:36:37 2019 +0200

    Adjust for MesaLib 18.

    Build llvmpipe driver on x86 (the driver itself is x86-only).
    build llvm on all x86, even on GCC builds.
    galahad driver removed (upstream).
    Don't build mesa 7 at all.
2019-03-10 11:18:02 +00:00
maya 614738f57c Install more libdrm nouveau headers.
These will be used by mesa 18.
2019-03-03 17:52:32 +00:00
mrg aa60f6a327 add ./usr/include/ofppc for ofppc builds.
(how many more builds will i find like this?  the end result
is that i think we should generate the ./usr/include/$MACHINE
entry, i think, but i have to survey many ports.)
2019-03-01 04:39:37 +00:00
rin 0a91477ac0 Add ./usr/include/dev/spi 2019-02-24 02:29:09 +00:00
mlelstv 975ce0ba8d Add userland driver to spi framework.
Previously spi would configure the controller to use the lowest speed of
all connected devices since the kernel started and to fail attempted mode
changes. This is now improved to keep individual modes and speeds for each
slave and to reconfigure the controller as necessary for each transfer.

Added man page for spi(9).
2019-02-23 10:43:25 +00:00
kamil 0fe7e51662 Add KCOV - kernel code coverage tracing device
The KCOV driver implements collection of code coverage inside the kernel.
It can be enabled on a per process basis from userland, allowing the kernel
program counter to be collected during syscalls triggered by the same
process.

The device is oriented towards kernel fuzzers, in particular syzkaller.

Currently the only supported coverage type is -fsanitize-coverage=trace-pc.

The KCOV driver was initially developed in Linux. A driver based on the
same concept was then implemented in FreeBSD and OpenBSD.

Documentation is borrowed from OpenBSD and ATF tests from FreeBSD.

This patch has been prepared by Siddharth Muralee, improved by <maxv>
and polished by myself before importing into the mainline tree.

All ATF tests pass.
2019-02-23 03:10:05 +00:00
sevan 4d4f75cea8 Build the UP & SMP kernels for G5s to ease testing.
Currently these kernels have to be netbooted directly from Open Firmware.
Warning: SMP kernel still has issues.
2019-02-19 23:46:33 +00:00
rin 2f668af971 Belatedly add debugging symbols for t_atomic_*. 2019-02-18 00:42:54 +00:00
isaki ecae8bc568 Add ATF tests for atomic_ops(3). 2019-02-17 12:24:17 +00:00
mrg e5f4a8fa1d ensure that all include dirs are created before make includes runs.
separate the compat vs per-arch -ness of the mtree lists.  merge the
mips64 mtree files into a single file.
2019-02-17 05:29:08 +00:00
mrg 1892f84f2f separate out the arch-specific and compat-specific subdirs.
put compat stuff in NetBSD.compat.$MACHINE_ARCH, and normal
stuff in NetBSD.dist.$MACHINE/MACHINE_ARCH, etc.

probably need at at more files for sh3, mips, ppc, sparc,
m68k, arm, ia64, etc., as every port has port- or arch-
specific header subdirectory.
2019-02-09 21:43:23 +00:00
mrg a030aaf208 move ./usr/include/dev/iscsi into NetBSD.dist.iscsi that is only
included if MKISCSI != no.
2019-02-09 02:04:19 +00:00
mrg cd2fa45002 create i386 specific include directories. 2019-02-09 00:15:28 +00:00
mrg 6b8fbde2b5 add missing ./usr/include/xen 2019-02-08 23:27:14 +00:00
mrg 0d5104591d add final missing directory from /usr/include:
./usr/include/netmpls
2019-02-08 08:51:42 +00:00
mrg d67c719a5f add two more missing subdirs:
./usr/include/dev/pud
  ./usr/include/dev/putter
2019-02-08 08:22:09 +00:00
mrg b5f0f6a619 add missing ./usr/include/dev/iscsi. 2019-02-08 06:08:20 +00:00
mrg 1e1783ce5a add missing ./usr/include/dev/hdmicec 2019-02-05 06:11:29 +00:00
mrg 170093fa87 add missing ./usr/include/dev/hdaudio (base) and ./usr/include/dev/nvmm,
./usr/include/dev/nvmm/x86 (amd64).

(perhaps we should stop 'make includes' from creating the target directory
for normal builds as this leads to mtree inconsistencies.)
2019-02-04 04:45:48 +00:00
mrg 8f90c98b49 create include/dev/dm here instead of elsewhere, where it may fail 2019-02-04 03:26:53 +00:00
mrg 2d1f11de34 - add new entries of gcc=7 and libgomp, libasan, liblsan, libstdc++, libubsan
- add missing header files fpr gcc=7
- add some missing gcc=5 obsolete entries
- create ./usr/include/dev/bluetooth in mtree not make, and move it into the
  base set where all other directories are.
2019-02-02 22:39:32 +00:00
maxv 65d06f3f0e Remove the satlink driver. It was disabled everywhere, had no man page and
no use either. Spotted by thorpej in PR/21345, ok christos.
2019-01-27 08:53:28 +00:00
skrll 2922428b48 G/C VEXPRESS_A15 2019-01-20 10:50:06 +00:00
skrll 1521ad8a22 Another kernel bites te dust.
Remove ODROID-C1 as it is now replaced by GENERIC. Thanks jmcneill.
2019-01-20 10:18:03 +00:00
mrg ea47ee7d4a add basic gcc-7 support in sets lists and filesystem. mips gained
a header.  assumes it's otherwise mostly the same as gcc-7.
2019-01-19 13:06:50 +00:00
roy 08c8b11310 Setup default wpa_supplicant flags so that it:
* Writes diagnostics to syslog
  * Enables interface matching to hotplug wireless interfaces
  * Uses /etc/wpa_supplicant.conf
2019-01-12 17:38:36 +00:00
roy a4b9a5dd90 Install /etc/wpa_supplicant.conf 2019-01-12 17:25:09 +00:00
roy dd916c1e0e Add a default wpa_supplicant.conf which allows wpa_cli(8) to configure
wpa_supplicant(8).
2019-01-12 16:51:54 +00:00
christos 1761a60c58 sync with most recent (no changes) 2019-01-05 21:47:40 +00:00
christos d8993e22ce regen 2019-01-03 17:30:06 +00:00
maya 9cd3ccd06c Revert installing llvm headers. 2019-01-01 18:46:03 +00:00
maya 613a39df76 Install most of the llvm headers.
This is missing some generated files, llvm/include/IR/*.inc
2018-12-31 19:33:02 +00:00
plunky 1b44035b06 remove lwresd as now obsolete 2018-12-24 08:31:08 +00:00
jakllsch 1192b45e7e Add /usr/tests/lib/libnvmm and related debug paths to the directory list. 2018-12-23 15:43:42 +00:00
maxv 9a1e316930 Add /dev/nvmm. 2018-12-23 12:18:30 +00:00
maxv 43c9320743 Remove compat_svr4 and compat_svr4_32, as discussed on tech-kern@ recently,
but also as discussed several times in the past.
2018-12-19 13:57:44 +00:00
jmcneill 56c7646905 add tprof 2018-12-15 01:02:58 +00:00
macallan ddba26defe make iic* and more pci* nodes 2018-12-14 23:03:29 +00:00
msaitoh 5ed77d2b40 Add tprof 2018-11-27 14:55:56 +00:00
scole 061a76feb8 install kernel for ppc601 floppies and iso 2018-11-12 20:07:47 +00:00
abs 5b096803d3 Install the sample slip.login to share/examples/slip/slip.login 2018-11-09 21:33:50 +00:00
maxv f3a4baf748 Add NVMM - for NetBSD Virtual Machine Monitor -, a kernel driver that
provides support for hardware-accelerated virtualization on NetBSD.

It is made of an MI frontend, to which MD backends can be plugged. One
MD backend is implemented, x86-SVM, for x86 AMD CPUs.

We install

	/usr/include/dev/nvmm/nvmm.h
	/usr/include/dev/nvmm/nvmm_ioctl.h
	/usr/include/dev/nvmm/{arch}/nvmm_{arch}.h

And the kernel module. For now, the only architecture where we do that
is amd64 (arch=x86).

NVMM is not enabled by default in amd64-GENERIC, but is instead easily
modloadable.

Sent to tech-kern@ a month ago. Validated with kASan, and optimized
with tprof.
2018-11-07 07:43:07 +00:00
skrll eeb96914b4 Match the right MACHINE_ARCHes for GENERIC. 2018-11-05 21:34:33 +00:00
skrll ec787da840 Only add GENERIC to earmv6 and earmv7 builds 2018-11-04 21:41:12 +00:00
maxv 8f30df5465 Add tprof in MAKEDEV.tmpl, and regen MAKEDEV.8. 2018-11-04 12:48:01 +00:00
skrll d71785d000 Add GENERIC to big-endian KERNEL_SETS 2018-11-01 18:23:25 +00:00
skrll 76478902d7 Use the GENERIC kernel where possible in armv7.img and remove the old
kernels from the bulid for SUNXI and TEGRA.

While I'm here disable *_INSTALL kernel builds for boards supported by
armv7.img
2018-11-01 11:05:24 +00:00
mrg 0050db9471 only flush routes in stop routine if flushroutes is true, same as
the start up.
2018-10-23 09:25:33 +00:00
skrll c4336712ef Sort 2018-10-21 07:08:40 +00:00
martin a52a4fdc24 Apply patch from Ian D. Leroux in PR bin/51019:
when unmounting tmpfs file systems at shutdown time, avoid unmounting
a tmpfs created by init on /dev - behaviour overridable from rc.conf.
By default all tmpfs that have device nodes are not mounted.
2018-10-19 14:11:12 +00:00
christos 88efda171e add intermediate directory. 2018-10-11 18:04:06 +00:00
christos c8bc6b1fb6 Add unbound /var/run directory (reported by hannken@) 2018-10-11 15:39:54 +00:00
jmcneill 51976c5c14 If fs_spec starts with the special string "ROOT.", replace it with a device
path derived from the value of the kern.root_device sysctl.
2018-10-06 13:09:53 +00:00
jmcneill 9aee78b66b Create ld[4-7] device nodes, matching evbarm 2018-10-06 10:00:32 +00:00
kre d65b3b7a40 Fix an obvious botch in the previous rev, found by martin@ 2018-10-04 11:50:34 +00:00
martin 0b39a65f52 Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.
2018-10-01 09:47:34 +00:00
jmcneill 9060f499ba Make more ld device nodes. 2018-09-30 16:01:08 +00:00
martin 56d7a6f003 Discussed some years ago but never commited: add an option to have a
single tmpfs (on /tmp) and use that for /var/shm as well (via a symlink
created after the tmpfs on /tmp has been mounted)
2018-09-30 10:38:05 +00:00
martin 15cb964115 Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.
2018-09-29 06:10:01 +00:00
kre 5d13792aee Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.
2018-09-29 01:12:22 +00:00
martin d7f296ff14 Prepare for .tar.xz sets 2018-09-28 15:11:36 +00:00
kre 9ae2b31ff9 Convert uses of test (aka '[') to use only posix specified forms,
mostly just on general principle...   this resulted in one or two minor
code reformattings to keep 80 char limits - a few needless uses of
quotes ("no" ??) were also removed (sh is not C. strings are strings
without quotes around them...)
2018-09-23 23:48:33 +00:00
kre ebc67df82a Convert uses of test (ie: '[') to use only POSIX specified forms,
just on general principle (all but 3 of the changes are in code that
is commented out...)
2018-09-23 23:16:34 +00:00
kre d0784034e5 Convert to POSIX specified usage of test (even though it would probably
have never been an issue here, it is trivial..., and one of the two
uses that needed changing was (and still is) commented out anyway).
2018-09-23 23:12:21 +00:00
kre e063fa5f54 rc.subr can be used in install images (from sysinst) so must use only
POSIX specified test uses (no -a or -o).   Also, use printf always,
rather than echo (replace echo as a function using echo with one which
uses printf).
2018-09-23 23:02:39 +00:00
maxv ebec90347e Remove ISDN from the kernel. It has remained unmaintained for a long time,
is of poor quality, and is now an obstacle to MP-ification. It was removed
ten years ago from FreeBSD for the same reason.

This retires a big user of the mbuf API, and will ease maintenance of the
kernel.
2018-09-23 09:20:57 +00:00
maxv 6049b090a1 Remove the userland part of ISDN. The kernel part is untouched for now.
ipppctl was actually an exact copy of pppoectl; there is no functional
change in pppoectl in this commit.
2018-09-23 07:24:19 +00:00
rin ef012cc21d Remove ISDN. 2018-09-23 06:39:23 +00:00
kre f8f3c1e1aa Avoid use of test -o for when this is used as part of an INSTALL system
and the SMALL test does not support -o
2018-09-22 13:48:22 +00:00
christos ebe8cc5f44 add nta named directory. 2018-09-12 15:29:11 +00:00
christos 6ba44db130 add /var/chroot/nsd/var/run 2018-09-07 16:50:22 +00:00
maxv e0384f18e7 Remove netkey/. 2018-09-06 19:19:44 +00:00
maxv ff954d5a99 remove netnatm leftover 2018-09-06 09:31:06 +00:00
kre d1e529d31c Add ATF tests for printf(1)
Two new test programs, one for the version of printf in /bin/sh
and one for the command /usr/bin/printf (t_builtin and t_command)

Each test program has 28 test cases (the same in each) of which
currently 27 pass, and 1 is skipped.

See the test scripts themselves for more information.
2018-09-05 21:05:40 +00:00
jmcneill d49d0a8c50 Copy bootaa64.efi to releasedir 2018-08-27 22:41:56 +00:00
christos f062baa468 handle v6 addresses 2018-08-13 09:16:06 +00:00
kamil 928317f5a5 Register micro-UBSan ATF tests in the distribution
Populate distrib files, mtree lists and add the entry in Makefile to
include the new code.
2018-08-03 04:24:41 +00:00
maxv 477e523c7d Distribute GENERIC_KASLR on amd64. 2018-08-02 16:26:09 +00:00
sevan e01538f90d Create fw(4) & fwmem(4) device nodes by default so fwctl(8) works out of the
box.
2018-07-28 14:13:13 +00:00
roy eb279c7f26 Allow rc.conf to setup resolv.conf via resolvconf(8).
This allows all static network config to be in rc.conf rather than
spread across files.
2018-07-27 15:31:02 +00:00
maxv 14b1739a30 Retire the non-PAE-i386-PV configuration files. Keep only PAE-i386-PV.
Non-PAE has been dropped years ago by Xen.

The content of XEN3_* is merged into XEN3PAE_*, with "options PAE" set.
2018-07-26 16:22:49 +00:00
maxv b6a911a673 Create /dev/ksyms as "440 $g_kmem". This prevents unprivileged users from
reading the kernel symbols. Discussed in January 2018 on tech-kern@,
reported by maya@, tested by tih@.
2018-07-21 07:46:56 +00:00
joerg bdc22b2e01 Update LLVM/Clang build system to r337282. 2018-07-17 18:55:24 +00:00
christos 786d63ab33 deal with g++ header files. 2018-07-17 00:50:56 +00:00
martin 16afadc5f4 Drop output for MAKECONF MAKEOBJDIR MAKEOBJDIRPREFIX MAKEVERBOSE
in MKREPRO=yes builds.
2018-07-10 13:22:22 +00:00
martin beccf529a5 Remove debug hack (revert previous) 2018-07-09 08:24:33 +00:00
martin a1ed1388c0 Temporary hack to get MKREPRO debug info out of the build cluster. XXX revert! 2018-07-05 15:52:27 +00:00
roy b729dec75a Remove dhclient from the base system.
Discussed here:
https://mail-index.netbsd.org/tech-userlevel/2018/06/21/msg011233.html
2018-06-29 12:34:13 +00:00
yamaguchi 78e4f33125 Add if_vlan directory to lists to fix the build failure
build.sh was failed when using "-V MKDEBUG=yes"
2018-06-15 09:54:02 +00:00
sevan 66fd14939a Prior to ZFSv15, volinit was an undocumented command which could be used to
populate /dev with zvol device nodes.
Following on with the recent ZFS/DTrace update, this is no longer a valid option
and causes the mountall script to barf zfs usage() following from
unrecognized command 'volinit' error.
2018-06-08 14:44:21 +00:00
riastradh aafff8763a Revert previous: Don't generate XMSS host keys for sshd by default.
XMSS is a stateful post-quantum signature scheme.

- Post-quantum security for _online_ authentication is not important
  until quantum computers become practical; there's no danger of
  retroactive forgery in sessions that have already completed.

- As a stateful signature schemes, XMSS is qualitatively different
  from all the other ones sshd supports, requiring additional
  administrative care: roll back the state (e.g., from a disk backup
  or VM snapshot), and you've shot yourself in the foot.

If users want XMSS keys, they can make them explicitly, but there's
no need for this to be enabled by default.

Discussed with christos offline.
2018-05-26 19:18:11 +00:00
jmcneill c9b64841e5 Silence ssh-keygen output when host keys are generated. Instead, print only
key fingerprints. This replaces dozens of lines out ASCII art output with
something more reasonable:

armv7# service sshd start
ssh-keygen: 1024 SHA256:ynP4BQ2B0Fknnf9PfF4QoUDlYi0+7rNfYXTOYP2cDic root@armv7 (DSA)
ssh-keygen: 521 SHA256:Eoj382aaJNlSxuq/aYj3AXgxfMJAkyVPoCQd2BNjJiA root@armv7 (ECDSA)
ssh-keygen: 256 SHA256:+e9/qTbbN/g6xvkadtHsmIQ+Pc0afZRxbXJsk2HKIzY root@armv7 (ED25519)
ssh-keygen: 2048 SHA256:urNaF/m6oiCe5hXFZBxGLW2PvLz0ibtRFrqYw6R+qTw root@armv7 (RSA)
ssh-keygen: 256 SHA256:Su2Nal2W3vrFz8ukpcSXngl1/bu6xUm1nSvbxTHe9Js root@armv7 (XMSS)
Starting sshd.
2018-05-26 00:17:54 +00:00
uwe 2a24bb8653 Provide resize_disklabel=NO default. Used by arm images and is not
part of the stock rc.d yet.  This silences rc when you delete the
whole resize_* block from rc.conf after the first boot.
2018-05-25 20:48:54 +00:00
thorpej 266bca89c9 Add a 1PPS-over-GPIO driver, originally by Brad Spencer, with changes by
me to adapt to the new GPIO interrupt interface and support a wider variety
of GPIO pin configuations.

PR kern/51676
2018-05-20 14:08:32 +00:00
jmcneill 3117ca5607 Create bpf and openfirm devices 2018-04-28 12:45:03 +00:00
martin ac1539438e Cosmetics: default to dmesg -t when writing /var/run/dmesg.boot -
the timestamps at boot time are mostly useless.
2018-04-18 04:27:47 +00:00
christos 7e6759edb0 Hide ps error about processes not found (we could be more specific...)
It is superfluous, since we print:
    foo not running? (check /var/run/foo/foo.pid).
2018-04-11 18:51:22 +00:00
christos 1399b357f6 rename ledpanel to lcdpanel 2018-04-09 20:17:33 +00:00
christos f32c26c37c rename panel to ledpanel 2018-04-09 19:06:34 +00:00
christos e5ff1cf5fd Simplify so we don't have to hard-code the key filenames in two places. 2018-04-09 15:02:39 +00:00
christos 733ab037c6 support xmss keys 2018-04-07 00:41:16 +00:00
kre 7d5ae540ad PR misc/53145 (Bruce Lilly)
Use ps -A instead of ps -ax (-A means -ax, but -A is posix, -x is not)
Use ps -o args instead of ps -o command (same reason).

This makes no difference when the ps used is /bin/ps on NetBSD, but
can make a difference when some other ps command gets invoked instead.

XXX pullup -8
2018-04-01 18:26:51 +00:00
ryo fe33aa2786 Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)
- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)
2018-04-01 04:35:01 +00:00
snj 84c9079f95 remove rstart, which hasn't been used since the xfree86 days. 2018-03-29 04:19:54 +00:00
christos a9b3a63e1f Update the keys file to the latest version from:
https://ftp.isc.org/isc/bind9/keys/9.11/bind.keys.v9_11

This includes the new KSK2017 key which is planned to replace the KSK2010
in October 11th, 2018. It is important to have software that ships with
both before September 11th 2018. Anything that bootstraps after that could
have trouble switching.

XXX: pullup-8, pullup-7, pullup-6
2018-03-09 18:56:02 +00:00
sevan 4696d4d244 Instead of explicitly specifying a kernel name, ommit to allow the bootloader to iterate
through the list of kernel names it is configured to try. This way there is
fallback if /netbsd is not present. netbsd is the first name to be tried anyway.
Issue brought up on tech-kern@ by Patrick Welche <prlw1 AT cam ac uk> where a system
without /netbsd hung on boot.
Suggestion by rudolf <netbsd AT eq cz>
https://mail-index.netbsd.org/tech-kern/2018/02/16/msg023122.html
2018-03-02 00:25:26 +00:00
snj 017fa37fab /usr/X11R6 has been empty on most NetBSD installations since 2008,
and the last few straggling ports dumped it in 2015.  It's time to
prune references to /usr/X11R6 from our config files.
2018-03-01 06:12:09 +00:00
uwe 097b3add5a Actually install dhcpd6 rc script. Organize CONFIGFILES
alphabetically again while where.

PR 53018
2018-02-17 03:02:04 +00:00
mrg af3c0cd56d updates for GCC 6.4: add gcc-6 specific headers, combine some
all-gcc files, bump the shlib versions on new libs.
2018-02-03 21:27:45 +00:00
kamil 413e439cd5 Install GCC (gcc.old/) headers for Sanitizers
Install:
 - allocator_interface.h
 - asan_interface.h
 - common_interface_defs.h
 - tsan_interface_atomic.h

Into:
 - /usr/include/gcc-5/sanitizer

Note headers in a comment headers for introduction in future:
 - dfsan_interface.h
 - lsan_interface.h
 - msan_interface.h

Skip a file that will never be relevant on NetBSD:
 - linux_syscall_hooks.h

PR 52265 by Kamil Rytarowski

Proposed and accepted on tech-toolchain@.

Sponsored by <The NetBSD Foundation>
2018-02-01 20:50:22 +00:00
skrll ac34435581 Remove port-acorn26
OK core@
2018-01-24 09:04:40 +00:00
knakahara b8f54fc79b add ipsec(4) interface ATF. 2018-01-10 11:06:06 +00:00
christos b985414b8f Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet
2018-01-09 03:31:12 +00:00
jmcneill a5c866b6cf Import NVIDIA Tegra XUSB firmware for Tegra124 and Tegra210. Installation
of this firmware is controlled by the MKTEGRAFIRMWARE option, which
defaults to yes on evbarm and evbarm64 and no everywhere else.
2018-01-07 20:59:24 +00:00
mlelstv 2f6dbbcf88 Use sysctl to retrieve iostat names instead of parsing possibly
truncated iostat output.

Check dkctl listwedges output with grep.

Fixes PR 59205.
2018-01-06 23:44:06 +00:00
msaitoh 7909c778fe Add NVMe devices. 2018-01-05 10:04:13 +00:00
is d9123c9e75 Add startup file for dhcp v6 with builtin isc-dhcp. Alas, this needs to
be a seperate process. On the positive side: this can't break the dhcpd
for IPv4 when tested.
2017-12-29 18:15:48 +00:00
jmcneill 4d9106a6a2 Add missing RPI FDT build goop, from nick. 2017-12-11 11:38:14 +00:00
bouyer 878cb1cfc5 Fix fallout from hid factorisation:
- need to install sys/dev/hid/hid.h for userland
- include it where needed - most of the time in place if usb/usbhid.h
2017-12-10 20:38:13 +00:00
jmcneill f0053e9555 Update example PKG_PATH entry to use the CDN frontend, use uname -p instead
of uname -m for processor subdirectory, and derive the OS release from
uname -r.
2017-12-07 18:26:51 +00:00
jmcneill 2dbf225c9a make a few more drm nodes 2017-12-05 19:17:11 +00:00
kre 6b923cca7a Do away with (not well specified, even if it happens to work) absurd
15 arg test ([ ]) expression, and replace it with several well defined
2 arg tests, combined with (also well defined) sh syntax.
2017-12-04 14:50:33 +00:00
jmcneill db2dcdb34a Unhook BPI, CUBIEBOARD, and CUBIETRUCK kernels from the build (use SUNXI kernel now) 2017-11-30 19:54:50 +00:00
jmcneill fb651b612c Add driver for QEMU Firmware Configuration device.
This interface allows the host to pass various data items and files to
the guest OS.
2017-11-25 16:31:03 +00:00
macallan dfcdd5e31d create more /dev/pci* nodes, for PCIe systems 2017-11-15 04:31:48 +00:00
martin 16d924d2d3 Add net/ipsec debug lib directory 2017-11-01 08:32:07 +00:00
taca 6f3643049e /tmp/t 2017-10-25 07:41:35 +00:00
jmcneill e30b21a362 Update contact info for changes to this file. 2017-10-21 19:43:53 +00:00
kre 48bbd83f93 Create directory for new bwfm firmware to be installed into. 2017-10-21 05:30:48 +00:00
sevan 0759fcfcfc With the new version of OpenSSH, SSHv1 is no longer supported server-side.
Along with that rsa1 type keys are no longer supported.
Don't try to generate such keys on new systems.

ok christos
2017-10-07 21:41:51 +00:00
mrg 794f77b51f update for xkeyboard-config 2.21.
prepare for libdrm data files.
2017-08-29 07:53:54 +00:00
sevan eb0a13ec2a veriexec is enabled by default in most kernel configs but the lack of device
node results in a non working config, despite following manual to get setup.
Remove a step for the user by creating a device node for veriexec by default.


ok mrg jakllsch
2017-08-28 01:34:52 +00:00
christos a9560cc50f Creating installation/ramdisk here does not work; it happens too late. 2017-08-20 15:35:31 +00:00
mrg c62a157eb2 merge the rest of sbmips into evbmips. install the stand files in
/usr/mdec/sbmips/ and document them in installboot(8) even though
it isn't really ported yet.  also build the SBMIPS kernels.

unfortunately, sbmips has been broken since mips64 merge, but the
fix can happen in the evbmips version, which we might merge into
the older trees anyway.

XXX: releng can turn off sbmips* builds now for -current.
2017-08-15 10:11:31 +00:00
jmcneill 3d97e8977a Update Raspberry Pi 3 example to use dplcom0 instead of dty00 2017-08-12 11:45:20 +00:00
jmcneill 40fab7550d add dial-out device node for plcom 2017-08-12 11:41:21 +00:00
jmcneill 96c1990c4a Add an example for configuring the Raspberry Pi 3's bluetooth chip. 2017-08-11 11:57:05 +00:00
jakllsch 136f040412 Fix up bcm43xx bluetooth firmware addition. Including mtree directory
addition, and using the correct spelling of the license file name.
2017-08-10 19:42:53 +00:00
joerg 7c192b2a5e Update LLVM build glue for 5.0RC1. 2017-08-01 20:07:37 +00:00
christos b30d96bb63 turn on "console" which can be either the serial console or the glass tty
instead of ttyE0, to facilitate anita tests. From uanand.
2017-07-13 16:03:36 +00:00
roy 1541a8a5a7 Remove the stopping and starting of various network scripts on
sleep / resume.
This should no longer be needed now the various applications
(dhcpcd, ntpd, wpa_supplicant et all) are more aware to the network state
as all interface carriers should be brought down and up again.

Fixes PR misc/52397.
2017-07-13 13:50:48 +00:00
tsutsui cd10bcc71c Revert the previous changes for PR/52377.
- the names "ttya" and "ttyb" in zs(4) man page were leftover of the orignal
  sparc/sun3 ports which used the same name for their native SunOS users
- symlinks ttya -> tty00 -> ttyZ0 (by "lndev tty00 ttya") are awful anyway
  (symlinks tty0? -> ttyZ? are handled in MI MAKEDEV.tmpl)

See details on discussion on source-changes-d@:
 http://mail-index.netbsd.org/source-changes-d/2017/07/thread1.html#009301
2017-07-09 05:58:13 +00:00
christos 07d0fae850 PR/52377: Miod Vallat: Provide links to ttya and ttyb as mentioned in zs(4) 2017-07-07 23:48:34 +00:00
kre 810e1e7da1 Revert previous - not a typo, even though it looks like one 2017-07-06 09:49:39 +00:00
kre b1a3593132 PR misc/52370
Correct typo.

XXX pullup 8, pullup 7
2017-07-06 09:24:47 +00:00
jmcneill 9a9d8df30e Enable memory disk support in the TEGRA kernel and remove TEGRA_INSTALL. 2017-07-06 00:35:28 +00:00
jmcneill fab9db5f7e Replace HUMMINGBIRD_A31 with SUNXI kernel on armv7.img and include .dtb
files for SUNXI and TEGRA kernels on the MSDOS partition.
2017-07-06 00:17:04 +00:00
jmcneill 3fa2721f9e Copy install ramdisk to releasedir. Provide both a raw ffs and
Legacy U-Boot version of it.
2017-07-05 19:50:49 +00:00
jmcneill 20c8c3ce7c Remove SUNXI_INSTALL kernel 2017-07-05 17:19:52 +00:00
jmcneill c2cb05f51f Replace HUMMINGBIRD_A31 with the SUNXI kernel. 2017-07-02 22:39:44 +00:00
flxd 985c7e15a0 Add GENERIC_USB to vax kernel sets, but not to sysinst (yet), as bootloader
cannot handle kernels that large (yet).
2017-06-26 17:45:56 +00:00
flxd e24e146e21 USB for vax (similar to pmax; no/negligible impact on legacy):
* Add USB device files/majors.
* Make kernel configs with USB work.
* Provide a USB-enabled kernel config.
2017-06-22 17:51:22 +00:00
skrll 4f1895c5fb Don't try and build VEXPRESS_A15_INSTALL 2017-06-20 21:04:23 +00:00
flxd 7a1cb2ebf8 Add audio for vsaudio(4) and speaker to be on par with other archs. 2017-06-20 15:10:03 +00:00
skrll 87bc6586d8 Replace ALLWINNER_A80 (it's never really worked) with VEXPRESS_A15.
Idea from jmcneill@
2017-06-20 10:55:03 +00:00
christos b17b183100 use -v to get the expanded variable. 2017-06-19 20:10:18 +00:00
christos 9511d79c1a Install racoon pam file. 2017-06-18 20:23:21 +00:00
christos 365765ad32 no need for debug printing. 2017-06-18 02:43:43 +00:00
christos fef4b4b661 put the dtb files with their kernels. 2017-06-18 01:03:30 +00:00
kamil 2051d84574 G/C libpthread_dbg from mtree
Remove entries:
 - ./usr/libdata/debug/usr/tests/lib/libpthread_dbg
 - ./usr/tests/lib/libpthread_dbg

Noted by <Herbert J. Skuhra> via private mail.
2017-06-15 15:20:13 +00:00
ryo bf4c80a7b2 add support for i.MX6UltraLite, and
ConnectCore for iMX6UL Starter Board.
2017-06-09 18:14:59 +00:00
christos 0c0320b0a7 Add cron. 2017-06-09 17:28:34 +00:00
kre b5294c7318 As (briefly) discussed on current-users, change the way that MAKEDEV checks
for more than one of the  -m -p -s -t args (and checks whether any were given
to pick one if not) to be more shell friendly.

Note that while the method here is the same as was discussed on the list,
the actual implementation is free of the typos, and just pure lunacy that
was in the code that was shown there.

Also note these changes are intended to be completely internal, there
should be no visible impact upon the way that MAKEDEV works.

ok:christos.   Thanks to pgoyette for the code review.
2017-06-08 03:42:37 +00:00
jmcneill 58a6ed319e Create /dev/openfirm device for ofctl(8). 2017-06-02 22:20:21 +00:00
bouyer 6e4cb2b9ab merge the bouyer-socketcan branch to HEAD.
CAN stands for Controller Area Network, a broadcast network used
in automation and automotive fields. For example, the NMEA2000 standard
developped for marine devices uses a CAN network as the link layer.

This is an implementation of the linux socketcan API:
https://www.kernel.org/doc/Documentation/networking/can.txt
you can also see can(4).

This adds a new socket family (AF_CAN) and protocol (PF_CAN),
as well as the canconfig(8) utility, used to set timing parameter of
CAN hardware. Also inclued is a driver for the CAN controller
found in the allwinner A20 SoC (I tested it with an Olimex lime2 board,
connected with PIC18-based CAN devices).

There is also the canloop(4) pseudo-device, which allows to use
the socketcan API without CAN hardware.

At this time the CANFD part of the linux socketcan API is not implemented.
Error frames are not implemented either. But I could get the cansend and
canreceive utilities from the canutils package to build and run with minimal
changes. tcpudmp(8) can also be used to record frames, which can be
decoded with etherreal.
2017-05-27 21:02:54 +00:00
riastradh ef315f7931 Remove MKCRYPTO option.
Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
2017-05-21 15:28:36 +00:00
kamil b971227c60 Add new c++ ATF tests in usr.bin/c++: t_hello
This is a copy of t_hello from usr.bin/cc.

Added tests:
 - hello
 - hello_pic
 - hello_pie
 - hello32

These tests do not use c++ runtime library functions.

Protect these tests with MKCXX.
2017-05-14 00:07:07 +00:00
ozaki-r 0b5da45aff Add tests for ipsec
- Check if setkey correctly handles algorithms for AH/ESP
- Check IPsec of transport mode with AH/ESP over IPv4/IPv6
- Check IPsec of tunnel mode with AH/ESP over IPv4/IPv6
2017-04-14 02:56:48 +00:00
christos bb9e7fd375 remove env. 2017-04-13 02:15:36 +00:00
flxd 117684898e Add PCI devices for vlpci(4). 2017-04-11 17:27:49 +00:00
christos e1864aa508 Add dc docs 2017-04-10 16:38:40 +00:00
kamil 456ae01b15 Remove tests/kernel/arch from mtree entries
The tests/kernel/arch directory has been removed. The t_ptrace files have
been merged and moved to tests/lib/libc/sys.

Sponsored by <The NetBSD Foundation>
2017-04-03 04:33:32 +00:00
spz 118e85aed6 add ssh-ed25519 keys
verify keys (split vir functions off from mollari)
2017-03-31 06:26:50 +00:00
martin 74c11b9f31 Add ld(4) nodes 2017-03-26 18:31:52 +00:00
christos bda2cfe499 Clear rc variables that contain state that is gone after the boot process
is complete, so that scripts invoked from powerd don't think that they
are still invoked by the rc system and fail.
Reported by rudolf @ tech-userlevel
2017-03-21 22:52:10 +00:00
christos 476172bce3 set cloexec to the rc postprocessor fd (rudolf in tech-userlevel) 2017-03-20 16:02:48 +00:00
tsutsui 9184265ae6 Add a driver for LUNA's front panel LCD. Ported from OpenBSD/luna88k.
Reviewed by enami@.  Tested by Naruaki Etomi and me.

A 68k LUNA with this driver will be demonstrated at AsiaBSDCon NetBSD booth
by Etomi-san, with LUNA-88K2 running OpenBSD/luna88k by Kenji Aoyama.
2017-03-09 14:05:58 +00:00
kamil d8c68e22d2 Add new directory usr/tests/kernel/arch/x86 in mtree
Sponsored by <The NetBSD Foundation>
2017-02-22 02:42:53 +00:00
kre 67cef682dd PR bin/50934
Add a test program for the bug described in this PR.
This is the first pkill/pgrep/prenice test (more would be good!)

This test has been confirmed to work once the bug described in the PR
has been fixed, so the test is not marked "expected to fail" even
though initially that is what should happen.

Note: the test cana also fail if the system running the tests happens
to be running processes with names that match the patterns searched for
by the test, other than the test program itself.  This is expected to be
unlikely.
2017-02-21 10:40:30 +00:00
christos efebee5612 sort completely 2017-02-20 13:45:43 +00:00
pgoyette d34bac1615 Move the /etc/sasl stuff to proper position in collating sequence.
XXX Ideally we would sort the whole file...
2017-02-20 04:02:53 +00:00
kamil 8b8807ec7c Remove tests/lib/libc/gen/exect paths from mtree and sets
The exect tests have been removed from the distribution.

Requested by Thomas Klausner.
2017-02-20 03:14:42 +00:00
pgoyette 72c3d8d573 Add /etc/rc.d/unbound per christos@
XXX should we move the /etc/sasl/ entries to their proper place in
XXX sort order?  as of now they're sitting in the middle of /etc/rc.d !
2017-02-20 00:33:53 +00:00
pgoyette 2b301e390b Mark the entry for /etc/rc.d/nsd optional - it's not included in every
system.
2017-02-20 00:29:37 +00:00
tsutsui b1d41f724d Make sure to prepare /dev/xp node entry.
Missed in the initial xp(4) support import:
 http://mail-index.netbsd.org/source-changes/2016/12/03/msg079493.html
2017-02-16 13:13:39 +00:00
knakahara abf7aa227e add l2tp(4) basic test. 2017-02-16 08:44:47 +00:00
christos c515fb6ba2 add postfix .so dir 2017-02-14 01:11:27 +00:00
snj c370717c80 prune /usr/X11R7/lib/X11/xkb/torture, a ghost from the days of xkbdata 2017-02-13 04:23:19 +00:00
christos 9e972dfc78 add nsd and unbound example dirs 2017-02-07 22:31:29 +00:00
christos 2f4a483dfc Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir
2017-02-07 21:18:05 +00:00
christos 7e6c542685 add + 2017-02-02 20:49:55 +00:00
christos 8fb3f05024 set 7 and 8 to close on exec. 2017-02-02 20:01:36 +00:00
christos 3d09c58a4d MAKE varies between builds because it contains the full pathname. 2017-01-24 17:54:52 +00:00
hauke 9f6b4eb870 Add carp as an alias for vrrp - after all, we do not ship vrrp, but we
do ship carp(4).

Restore the pfsync entry that was added with 1.20, then wiped out by
the 1.21 import. Please merge any wholesale imports properly.

Remove http://www.sethwklein.net/projects/iana-etc/ which 404s.

Should fix PR bin/51568
2017-01-16 09:39:26 +00:00
joerg b69d605610 Update Clang header directory. 2017-01-11 12:10:48 +00:00
christos da97bc8466 "kod" needs limited. 2017-01-09 20:05:29 +00:00
christos 583c58130b fix nsd home dir. 2017-01-09 14:26:58 +00:00
christos b575a4238e Instead of hard-coding all the MK* vars and constantly being out of date,
use _MKVARS.yes and _MKVARS.no to construct them.
2017-01-08 17:39:08 +00:00
christos 9b4226cef8 add nsd npfd 2017-01-07 22:37:22 +00:00
christos 09e56bb693 add nsd 2017-01-07 19:55:35 +00:00
christos 48a80eb186 npflog0.pcap is binary 2017-01-07 18:50:50 +00:00
christos 836d3605fd rotate npflog0.pcap 2017-01-07 16:34:50 +00:00
kiyohara 03aa6dbf80 Add CUBOX to v7 and v7hf. 2017-01-07 16:29:04 +00:00
christos 71cba524e4 add scripts for npfd 2017-01-05 14:39:09 +00:00
martin 9b0b62c8b6 Add mixerctl test directory 2017-01-02 20:37:12 +00:00
maya 9287afda0f Add blacklistd.conf so it gets backed up, too. 2016-12-27 17:13:45 +00:00
christos 4bb5b9d374 Add npf.conf so it gets backed up. 2016-12-27 16:48:12 +00:00
christos 9388ae5cb6 put also MAKEFILES in the MKREPRO section since they vary since they contain
paths.
2016-12-25 16:44:39 +00:00
kim ca8ef46246 Make precedence between {cat,man}[39]{,lua} logical:
- Search man3 right after cat3, before cat3lua (and man3lua).
- Search man9 right after cat9, before cat9lua (and man9lua).
2016-12-25 12:10:52 +00:00
christos 700b0bb18f For MKREPRO, don't print varying params. 2016-12-24 20:36:28 +00:00
mrg e640aa5924 create sysmon nodes, so wdogctl works. 2016-12-24 07:07:06 +00:00
kamil b8092d5dfa Add regs1 in arch/i386/t_ptrace_wait*
regs1:
    Call PT_GETREGS and iterate over General Purpose registers

Sponsored by <The NetBSD Foundation>
2016-12-13 18:00:10 +00:00
kamil 5e8d31ff24 Attach t_exect to ATF tests and distribution
Add missing SIGTRAP handler. Assert there that the signal is SIGTRAP as
expected and si_code TRAP_TRACE.

This test will break on some ports that have dummy or incomplete
implementation of exect(2).

This test works on amd64 correctly.

Sponsored by <The NetBSD Foundation>
2016-12-09 06:12:02 +00:00
nat 4bb9801b95 spkr->speaker. Found by kamil@ 2016-12-08 20:44:24 +00:00
nat 03783bb56a Add a synthesized pc beeper and keyboard bell for platforms with an audio
device.
2016-12-08 11:31:08 +00:00
tsutsui 97d3c24f2a Preliminary support for LUNA's HD647180X I/O processor (a.k.a. XP).
Demonstrated as "PSG tunes / PCM wav player on LUNA"
(using Z80 PSG/PCM drivers ported from NEC PC-6001)
at OSC2016 Kyoto and OSC2016 Hiroshima:
 http://mail-index.netbsd.org/netbsd-advocacy/2016/08/01/msg000712.html
 http://mail-index.netbsd.org/netbsd-advocacy/2016/11/29/msg000724.html
2016-12-03 17:38:02 +00:00
kamil 96cf2030eb Refactor location of amd64-specific ATF tests to new dir kernel/arch/amd64
Rename
 - tests/kernel/t_ptrace_amd64_wait.c
to
 - tests/kernel/arch/amd64/t_ptrace_wait.c
and adapt appropriate files accordingly.

New directory will be used for more amd64-specific tests, verifying the
MD parts of the kernel.

Remove old entries from distrib/sets/lists as they were added a while ago.

Sponsored by <The NetBSD Foundation>
2016-12-02 05:54:14 +00:00
ozaki-r 6d9a9bf113 Add basic tests for vlan(4) 2016-11-26 03:19:48 +00:00
snj 7e075c29bc update for xkeyboard-config 2.19 2016-11-22 19:51:37 +00:00
kre 8ad774dbf7 Undo change to a comment made when I thought another change to the
script was needed ... the unnecessary script change was never committed,
but the comment that described it was...    No functional change.
2016-11-19 01:14:58 +00:00
kre 1675d6af19 The config file is not required to exist (unless specified via -d).
(reported by rhialto@falu.nl)  Don't fail to start if it doesn't.

Make sure the directory for the config file exists inside the chroot before
attempting to copy into it ("confdir" was calculated, but never used...)

While here, fix getopts usage (obviously only ever previously tested when
the -c arg was the first option...) and don't use test(1)'s -o operator
(especially not when one of the other args is an unknown string).
If -c is given (and we will chroot), require filename to be full path.

Misc minor style cleanups.
2016-11-18 23:10:05 +00:00
kamil 8fce8aab12 Add new test-suite t_dummy for libpthread_dbg
At the moment this test does nothing except reports failure from td_open()
for overloaded (implemented) dummy1_proc_lookup() (.proc_lookup from
td_proc_callbacks_t) of the following form:

static int
dummy1_proc_lookup(void *arg, const char *sym, caddr_t *addr)
{
        return TD_ERR_ERR;
}

This file and directory with tests is placeholder for new ones, without
further need to alter mtree and distribution sets.

The libpthread_dbg interface and library is used by gdb(1) to handle
threads in applications.

Sponsored by <The NetBSD Foundation>
2016-11-16 21:36:22 +00:00
matt 4bd7beee2d An awk file is not a directory. 2016-11-15 22:31:07 +00:00
skrll 880c0915ea Fix librefuse falout.... Hi pho 2016-11-15 12:59:33 +00:00
flxd 9ff8fe6273 Add new USB-enabled kernel config(s) based upon GENERIC for pmax, include it as kernel set in the build and make it a choice in sysinst.
OK simonb@
2016-11-04 19:18:50 +00:00
riastradh 6b3de624e6 Handle variable expansion and comma/space separators in postconf.
From Timo Buhrmester:
https://mail-index.netbsd.org/tech-userlevel/2016/08/20/msg010301.html
2016-10-30 15:47:06 +00:00
taca 897c08e2b7 Update root.cache to 2016102001 (October 20, 2016). 2016-10-27 15:20:32 +00:00
christos 3e2e1df44f mention that -a valid does not work, requested by felix. 2016-10-25 17:16:34 +00:00
abhinav 6cddff1a99 Add tests for uniq(1) based on the example test cases provided in the POSIX man page.
Ok christos
2016-10-22 14:13:39 +00:00
flxd b54ff8f604 Bless pmax with USB device files/majors and make kernel configs with USB and typical drivers work.
OK christos@ simonb@
2016-10-21 18:11:59 +00:00
christos 90ff2f0a25 Adjust for new ifconfig address/mask output. 2016-10-19 21:27:10 +00:00
mrg 30db75397d build new pt_PT.UTF-8 locale from libX11 1.6.4. 2016-10-04 23:52:02 +00:00
nonaka 4a15838ffa Fix to cannnot be opened a nvme(4) namespace device file. 2016-09-08 15:00:08 +00:00
nonaka 30c261211c fix incorrect nvme controller number. 2016-09-08 14:44:44 +00:00
skrll 5dae601e33 Add ub and elf32 to KERNEL_SUFFIXES 2016-09-05 07:23:43 +00:00
ozaki-r 13445aedf0 Add very basic tests for tun devices 2016-09-05 02:26:48 +00:00
taca 66840c3126 Update root.cache to 2016/8/25 version, l.root-servers.net has AAAA record
now.
2016-09-04 14:36:31 +00:00
christos c90b9921a5 unbound additions 2016-08-20 11:21:50 +00:00
mrg 870f1fd842 build and install libepoxy 2016-08-18 08:11:22 +00:00
jakllsch 64d64ddcb3 tests for sys/dev/clock_subr.c 2016-08-14 14:55:41 +00:00
scole e0fd82f4fc PR port-ia64/51261
Stubs for ia64
2016-08-05 16:22:08 +00:00
pgoyette 6e4e96b573 Add the real directory as well as the debug directory. 2016-07-29 10:09:38 +00:00
pgoyette 9c91731aa4 Add destination directory for new dev/fss test 2016-07-29 09:52:46 +00:00
kre 04e8d55d65 Always define MKNOD, even if we don't think we need it (turns out we do,
sometimes...)   Noticed by Michael Plass reported on current-users.
2016-07-23 06:48:27 +00:00
kre a5229b934a Cause rc to abort if mounting any of the critical local filesystems fails
rather than just ignoring the error.

Don't bother attempting to clear the contents of /var/run if /var/run
does not exist.

In that case the mkdir of /var/run/lvm would have failed - correct that
by using mkdir -p (which as a side effect will ensure /var/run exists
and is available for later scripts to use if for some reason it did not exist.)
2016-07-23 01:38:35 +00:00
kre 93bca39382 As discussed at the biginning of last week (June 6 & 7, 2016) on
tech-kern in messages with a Subject starting [Re:] /dev/sdN -> /dev/sdN[cd]
and in PR port-amd64/51216 :

Create bare (no letter suffix) device names (block & raw) that
refer to the raw device ('c' or 'd' partition as appropriate).

This commit was delayed waiting to see if there was to be any more
discussion - there wasn't a lot.

Caution: this is going to consume 2 more inodes per disc device
configured, everywhere that devices are configured using MAKEDEV
2016-06-16 15:33:38 +00:00
christos 0390a67c3a Mark phone so we rebuild every time. 2016-06-09 04:26:07 +00:00
christos 1fa5958a6b Don't run .BEGIN if we are cleaning or making obj. 2016-06-09 04:07:46 +00:00
christos b3a11f7281 Avoid most of the .CURDIR hackery by letting make locate the files. 2016-06-09 03:44:01 +00:00
mrg 8ee72997ca make sure the build dist files are build before we try to use them. 2016-06-09 00:19:31 +00:00
mrg 0fd293a610 don't give NetBSD.dist.tmp any inputs, as then it won't rebuild ever
unless they change, and we want to rebuild based upon what inputs are
present, not when they were last touched.

this fixes update builds that switch options that change the dirlist
like MKX11 or MKCOMPAT, restoring a portion of rev 1.14.

note that some opertions like turning off MKX11=yes will also require
a fresh DESTDIR, in addition to this fix.  there may be more issues
remaining, but i am now able to enable MKX11=yes successfully without
any other change.
2016-06-08 22:12:42 +00:00
nonaka e7c0cc5d9a Add NVMe command passthrough support. 2016-06-04 16:11:50 +00:00
ryo ec48232126 Add initial support for Freescale i.MX7 SoC and
Atmark Techno Armadillo-IoT G3 boards.

Contributed by Internet Initiative Japan Inc.
2016-05-17 06:44:45 +00:00
christos 5d3395496d Adjust to new freetype structure. 2016-05-16 22:19:41 +00:00
dholland 796a3ac327 Avoid unnecessary use of basename(1). From Jukka Salmi a long, long time
ago on a tech-kern far, far away.
2016-04-23 21:24:31 +00:00
ozaki-r c73a69e593 Add a new test case for PPPoE using PAP
From s-yamaguchi@IIJ (with some tweaks by me)
2016-04-15 01:38:16 +00:00
gson 5973801c0c Add regression tests for some past gdb bugs. 2016-04-08 10:09:16 +00:00
taca 8dc05bf9dd Update root.cache to 2016/3/23 version, l.root-servers.net's AAAA record
has changed.
2016-04-03 08:01:34 +00:00
mrg 3d2fbcae7f add /usr/include/gcc-5 directory to the distribution and adjust the
GCC 5 parts of the build (not yet enabled) to install/look there.
2016-03-12 23:07:05 +00:00
mlelstv 9da4c9a5be tset was useful for fixed terminals and rarely changing configurations.
But for current software terminal emulators and varying network
logins it's just confusing.

No longer run tset when logging in.

ok @martin
2016-03-08 09:51:15 +00:00
christos d6c8225a0e use kat, a version of cat that strips comments 2016-03-06 18:50:06 +00:00
christos 709030f1f5 Introduce kat() a built-in version of cat(1) that strips shell-like comments. 2016-03-06 18:49:42 +00:00
ozaki-r be7deda7eb Add tests for tap(4) 2016-03-04 02:44:45 +00:00
riastradh 25e09ac3be Record current raid configurations too in /etc/security. 2016-02-29 16:16:42 +00:00
joerg ba87356165 Update build system for LLVM 3.8.0rc3. 2016-02-27 21:47:30 +00:00
tsutsui c7ed7eb92f Drop almost unnecessary devices for floppy to shrink sysinst.fs.
Briefly tested on TT030.
2016-01-29 18:03:16 +00:00
riz 4145877bea Create dtrace device as part of "all" 2016-01-28 19:06:39 +00:00
christos 9f840dd1f7 Add /dev/full 2016-01-17 23:18:18 +00:00
roy dddc1afbdc Move 10-wpa_supplicant, 15-timezone, 29-lookup-hostname and 50-ypbind
from /libexec/dhcpcd-hooks to /usr/share/examples/dhcpcd/hooks so they
are not run by default.
2016-01-07 22:07:18 +00:00
roy 2357a4fb46 Use the new -P option to work out which pidfile dhcpcd will use. 2016-01-07 22:03:00 +00:00
roy d0367588d0 Instead of waiting for a duration based in IPv6 DAD count sysctl,
wait for 15 seconds for tentative flags to clear allowing 5 seconds
for detached flags to clear as well from configured addresses.

This is now protocol independant and allows time for the interfaces to
work out if they have a carrier or not.
2016-01-07 11:51:07 +00:00
jakllsch 2ba22c9356 Add some tests for the kernel HID parser. 2016-01-05 17:22:38 +00:00
jakllsch 3a26fec827 tests for libusbhid (many of which fail) 2016-01-01 21:38:53 +00:00
plunky d86700ce1a "ip6addrctl_enable" is now "ip6addrctl", set the default appropriately 2015-12-26 21:05:11 +00:00
christos dd01c08e97 remove some stuff we don't have; rename rc command variable. 2015-12-23 04:38:00 +00:00
christos 7065e20960 give the kernel pax invocating the MKREPRO_TIMESTAMP treatment. 2015-12-20 02:35:34 +00:00
christos 572dbd7b73 Freeze the BUILDER and the BUILD_DATE for repeatable builds 2015-12-19 23:37:43 +00:00
jmcneill 0572689e04 Remove JETSONTK1 and NYAN-BIG kernels, add a new unified kernel named TEGRA. 2015-12-13 23:02:56 +00:00
christos 4f497f781b Add defaults for ip6addrctl 2015-12-13 02:27:06 +00:00
christos ff0756d560 Add ip6addrctl 2015-12-13 02:05:15 +00:00
christos 11ff782d8f Add gpt tests 2015-12-04 17:19:33 +00:00
taca 3eef035ce3 Update to 2015120100.
* Addresses of H.ROOT-SERVERS.NET has updated.
* Make IPv6 address lower case.
2015-12-03 10:41:22 +00:00
darcy c5291a928e Of course we can always not do something. Doesn't mean that we "can't"
(or "cannot").  In any case make the messages consistent and move the
period to inside the quotes.
2015-11-28 14:20:32 +00:00
plunky 52267b078d clean up: remove FreeBSD cvs tags, update URLS, fix spelling
and add in PSMs defined in recent versions of specifications
2015-11-28 07:46:33 +00:00
christos 0e5ab369bd PR/49380: KAMADA Ken'ichi: ntpd_chrootdir does not work on NetBSD 7.0_BETA
Provide /etc/resolv.conf so that it can resolve names. This is needed because
of deferred name resolution.
XXX: pullup -7
2015-11-23 19:56:47 +00:00
pgoyette b094e9b9cd Add the filemon(4) device. 2015-11-21 12:11:56 +00:00
christos be39cd8f18 reapply 1.25 to fix upstream inconsistencies 2015-11-18 16:16:36 +00:00
christos fb472d3ca7 refresh 2015-11-14 16:25:48 +00:00
jakllsch 22439287a1 Add tty2 tty3 devices to evbarm MAKEDEV; JETSONTK1 has console on com3. 2015-11-11 16:20:43 +00:00
joerg 7eb0a13dae Translate requests for ucom into ttyU. 2015-11-08 23:23:30 +00:00
macallan 1e3e6fea31 generate iic* entries 2015-11-05 16:47:29 +00:00
macallan 97dca9d210 create tty* entries for wsdisplay1-3 2015-11-05 16:46:22 +00:00
knakahara 9875a0c6a0 add basic if_gif tests to ATF. 2015-11-05 00:02:59 +00:00
phx 8e58c9596b PR misc/50046
Remove the expensive tests in _have_rc_postprocessor(), as proposed by apb@.
It more than halves the multiuser boot time on slow machines and brings
it back near to the previous level.
2015-10-31 12:31:37 +00:00
roy 8b04443cd8 Fix the problem of just having a valid interface name in dhcpcd_flags. 2015-10-16 18:06:22 +00:00
roy c95ec17135 Make mdnsd start before NETWORKING and require staticroute, mountcritlocal
and networking.
Fixes PR install/43313.
2015-10-15 16:47:28 +00:00
riz 53c26de703 Handle the contents of /usr/lib/dtrace so a MKDTRACE=yes release completes. 2015-10-09 19:23:18 +00:00
christos a2d53314ad debug for libproc tests 2015-09-24 16:02:39 +00:00
christos 5255484a24 add new libproc test stuff 2015-09-24 14:50:06 +00:00
wiz 72127e3473 Add keys for wip.pkgsrc.org. 2015-09-23 12:14:51 +00:00
wiz b1bfb67337 Install radeon(4) from radeon-kms into x86 subdir.
This way, there is no file name issue with radeon(4) from
the old not-kms driver; and subdir man pages are preferred
to non-subdir.

Addresses MKREPRO issue from PR 50132.

XXX: This will stop being correct if radeon-kms is ported to more
platforms like sparc64.
2015-09-19 23:00:44 +00:00
phx f2c8a119f8 Create /dev/flashN device nodes for all_md. 2015-09-07 23:02:07 +00:00
youri 2a20aa63de CTWM is an extension to twm, that support multiple virtual screens,
and a lot of other goodies.

You can use and manage up to 32 virtual screens called workspaces.
You swap from one workspace to another by clicking on a button in an
optional panel of buttons (the workspace manager) or by invoking a function.

You can custom each workspace by choosing different colors, names
and pixmaps for the buttons and background root windows.

Main features are:
- Optional 3D window titles and border (ala Motif).
- Shaped, colored icons.
- Multiple icons for clients based on the icon name.
- Windows can belong to several workspaces.
- A map of your workspaces to move quickly windows between
  different workspaces.
  - Animations: icons, root backgrounds and buttons can be animated.
  - Pinnable and sticky menus.
  - etc...

See http://web.zephyrite.net/NetBSD/wm/index.html
ok mrg.
2015-09-03 22:24:02 +00:00
uebayasi 1f8f4d47f5 Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.
2015-08-31 06:08:07 +00:00
nonaka 5e4eaa25ce Added rtwn(4) for Realtek RTL8188CE/RTL8192CE PCIe 802.11b/g/n wireless network
devices.  Ported from OpenBSD.
2015-08-27 14:04:07 +00:00
nakayama cc667c64ac Remove obsolete directory ./usr/include/gcc-4.5 2015-08-12 21:55:05 +00:00
ozaki-r 2f55a7d3ed Add tests for NDP 2015-08-03 09:54:20 +00:00
jmcneill 57d12b8828 add hdmicec 2015-08-01 21:30:09 +00:00
ozaki-r d4516589be Add tests for ARP 2015-07-29 06:10:09 +00:00
riz e3d8d886ce Implement "status" command for postfix - makes tools like ansible
happier.
2015-07-23 17:12:16 +00:00
mrg cf4dd8937a remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)
2015-07-23 08:03:24 +00:00
mrg 8dc8986a69 remove obsolete directories (that are always removed by postinstall at
the end of the build.)
2015-07-23 07:45:44 +00:00
matt e70fdb9bb6 Build CUBOX-I kernels 2015-07-18 00:57:35 +00:00
martin 5051ec142e Add a new endianes flag to mkimage and pass it on big endian arm builds.
From Rin Okuyama.
2015-07-15 11:27:13 +00:00
dholland 562a53e657 /usr/sbin/chown -> /sbin/chown
(not sure why these need explicit paths at all, but whatevs)
2015-07-03 18:36:54 +00:00
martin 6ade756116 Guard a few $MK... != "no" tests by an additional defined(MK...) clause
and make the emit_dist_file target depend on EXTRA_DIST_FILES.
Part of fixing PR toolchain/50004.
2015-06-28 09:28:46 +00:00
matt 3917315111 Need to test for MKCOMPATX11 2015-06-27 20:34:11 +00:00
matt 589b128fbc Support building the xorg X11 libraries under MKCOMPAT.
Add XORG_MACHINE_ARCH to compat's bsd.*.mk
Turn xorg makekeys and makestrs into real host tools which are installed into
${TOOLSDIR}
2015-06-24 22:20:24 +00:00
matt 57f81421ab ./usr/libdata/firmware/radeon is obsolete so remove it. 2015-06-21 07:45:10 +00:00
matt 9a87189027 Rework this to auto generate the compat directories using a template
and the information from compat/archdirs.mk.  Also add suport MKCOMPATTESTS
and process the NetBSD.dist.tests to generate appropriate compat directories.
2015-06-19 18:16:06 +00:00
jmcneill 17d5ed1b23 define TOOL_MKUBOOTIMAGE for mkimage 2015-05-22 01:18:05 +00:00
matt 3ff7ac636d Add bpf to all_md 2015-05-18 21:21:11 +00:00
matt 47b1040f9a More sorting. 2015-05-15 06:51:24 +00:00
matt 297071a176 alphabetize armv7 kernels 2015-05-15 06:11:06 +00:00
jmcneill 0ca3b6a4da hook JETSONTK1 kernel into build 2015-05-14 00:59:03 +00:00
matt ee4600c1cb Build ERLITE and INSTALL_ERLITE if mips64eb 2015-05-01 23:55:14 +00:00
mrg aaabec45f9 two changes to radeon drm firmware:
- only install it by default on x86, set new MKRADEONFIRMWARE variable
- install in /libdata, so that separate /usr systems work

(this still doesn't solve PR#49811, which possibly could be handled by
having them being a kernel module loaded by /boot.)
2015-04-26 21:37:22 +00:00
pgoyette 6b45f4ed79 Set the redirection correctly, so that stderr gets duped to the
already redirected stdout, rather than duping stdout to stderr!

Without this fix, the disklabel output is included in the log file
rather than being discarded as intended.  (The purpose of running
disklabel this first time is only to check for success.)
2015-04-20 22:46:35 +00:00
prlw1 68974b6b61 Apply modified version of patch from Wolfgang Stukenbrock in PR bin/41766
This forcibly unmounts tmpfs file systems, so that swapctl doesn't run
out of swap itself, eventually trying to kill pid 1.

No objections since:
  http://mail-index.netbsd.org/current-users/2015/03/16/msg026908.html
2015-04-20 18:01:46 +00:00
jmcneill 703f075e77 Rename beagleboard.img to armv7.img. The new image includes the same
kernels as beagleboard.img plus support for Raspberry Pi 2, ODROID-C1,
Cubieboard2, Cubietruck, Hummingbird A31, and Banana Pi.
2015-04-09 10:55:23 +00:00
jmcneill f02362348e fix typo in previous; pass -y unconditionally to resize_ffs, not -p 2015-04-07 18:02:11 +00:00
jmcneill 906c0d847e add KEYWORD: interactive, honour resize_root_flags and resize_root_postcmd rc vars 2015-04-06 22:40:09 +00:00
mlelstv b68ba22239 Parse config file like ifconfig.if(5).
First word is always the module name, followed by options.
Load modules right after root filesystem is checked and before it
becomes writable.
2015-04-06 15:07:50 +00:00
joerg b4ee0ddd0f Add CI20 install kernel and build that and the normal image as kernel set. 2015-04-06 14:18:08 +00:00
chopps 94dff34741 Add resize_root boot operation. If resize_root=YES in rc.conf then
the system attempts to resize the root file system to fill it's
partition prior to mounting read-write. Useful for things like AMI
file system images. May eventually be used by arm images after
coming up with similar solution for increasing the parition size.
2015-03-30 10:58:37 +00:00
jmcneill 7ba4328bfa Process /etc/modules.conf (if present) at startup, before securelevel is
raised, to allow module loading on ports without a module aware bootloader.
2015-03-21 19:10:43 +00:00
jmcneill e4dc7f14f3 hook ODROID-C1 into build 2015-03-16 22:18:14 +00:00
mrg 820bac9951 remove vga@isa and pcdisplay@isa from i386 GENERIC, and create a new
LEGACY kernel that includes them instead.  now radeon@pci is able to
properly claim wsdisplay0 on i386 systems, and radeondrmkms has a good
chance of working.

this "fixes" PR#49290.
2015-03-07 07:28:37 +00:00
skrll 28e709c9a3 Add RPI2 to kernels build for both earmv[67].
Use the earmv6 built kernels to create an image that can be used on both
RPI and RPI2
2015-03-06 11:11:55 +00:00
christos bef8765f0a there is no more makewhatis 2015-03-04 14:54:38 +00:00
kiyohara a82af3b335 Add OVERO to v7 and v7hf. 2015-02-26 14:00:17 +00:00
mrg eeeb0a0c08 add ttyC00/ttyC01 as found on eg, com(4)-based serial port systems like
the sunblade 2500.
2015-02-23 13:52:51 +00:00
christos f7f367e20c don't make ipty. postinstall removes them. 2015-02-22 14:42:44 +00:00
joerg 88c9fb0be8 Add rc script for /sbin/iscsid. 2015-02-21 23:13:00 +00:00
nakayama 29acffa014 Avoid nfs devices correctly. 2015-02-14 19:46:55 +00:00
nonaka f8baa4e97e iwm(4) works now, but 2.4GHz only.
> iwm0 at pci2 dev 0 function 0: Intel Dual Band Wireless AC 3160 (rev. 0x83)
> iwm0: interrupting at ioapic0 pin 18
> iwm0: hw rev: 0x160, fw ver 25.228 (API ver 9), address XX:XX:XX:XX:XX:XX
> iwm0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> iwm0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
2015-02-13 18:57:46 +00:00
snj 18762df49a don't create an empty installation/misc directory in the release tree. 2015-02-05 21:50:42 +00:00
nonaka 79aad7ee9b Added RouterBOARD RB850Gx2 config. md root only. 2015-01-30 15:04:35 +00:00
jmcneill a185a6f4c2 build INTEGRATOR_CP_INSTALL 2015-01-27 20:26:34 +00:00
christos 3e734a9422 add blacklistd 2015-01-25 16:26:34 +00:00