Commit Graph

5190 Commits

Author SHA1 Message Date
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