Commit Graph

5301 Commits

Author SHA1 Message Date
kre
480c945f6e I should know better! Don't rely upon the way the shell implements
pipes.   Skip the "error" printf from GetSmtId() as there is no easy
portable way to avoid it occurring (there are complicated ways) - but
we don't need it, there is no logical difference between "error" and ""
so just use the latter (if we get an ID, good, if there is nothing, then
there is none - saying 'error' does not mean anything.)
2019-05-12 11:55:47 +00:00
kre
6ae1c84105 No change... Previous log message should have said:
Install rc.d/smtoff
2019-05-12 01:50:14 +00:00
kre
6aaf09f01b revert previous. somehowI failedto see that was already done. 2019-05-12 01:45:25 +00:00
kre
1aa98bd080 install rc.d 2019-05-12 01:33:47 +00:00
kre
7476299781 Restructure code a little.
Use quoting everywhere possibly useful (always the right way, except
in the few cases where it is wrong...)

Avoid using cut & grep (from /usr/bin) so script could run before /usr
is mounted (pity cpuctl is in /usr/sbin ...).

Use sysctl -n rather than attempting to parse its output.
2019-05-12 00:24:03 +00:00
maxv
907a706c0b Add smtoff, an rc.d script that disables Simultaneous Multi-Threading. It
parses the output of cpuctl, and executes "cpuctl offline" for each CPU
that has SmtID!=0.

The default is "smtoff=NO", which means that SMT remains enabled.
2019-05-11 19:31:03 +00:00
thorpej
02d67d1066 Add installboot(8) support for evbarm (and, in the future, other evb*)
boards that use u-boot.  A known board database lists boards and their
respective u-boot packages.  u-boot packages are discovered at run-time
(in /usr/pkg/share/u-boot, by default).  These packages contain board
database overlays that describe u-boot installation procedure that's
specific for that board.

Support this as a native tool and as a host tool.  The native tool
will attempt to determine the running board type using OpenFirmware
calls.  Host tool and native tool alike may also specify a board type
directly using the "-o board=xxx option" or have installboot(8) determine
the board type from a device tree blob using "-o dtb=/path/to/board.dtb".
A "-o media=xxx" option is provided for boards that have different u-boot
binaries and/or installation procedures for different media types (e.g.
SDMMC, eMMC, or USB).

This is trivial to extend to other evb* platforms that use u-boot, even if
they don't use FDT for autoconfiguration.
2019-05-07 05:02:41 +00:00
mrg
a98d0fefaa capture /etc/route.conf in /var/backups. 2019-05-04 08:26:51 +00:00
roy
b312a806c1 Fix build, install wsmoused 2019-04-25 11:21:34 +00:00
roy
d73f7f4f61 Don't install YP rc.d files with MKYP=no 2019-04-25 08:56:21 +00:00
maya
8d57144a9c Express more confidence in our ability to boot on hardware with ACPI
enabled and don't warn our users that it might not and already suggest
workarounds.

The ability to disable ACPI and SMP is still there, by dropping to
the boot prompt.
2019-04-22 13:27:39 +00:00
martin
f97e9b1f30 Add a few more sd drive nodes, with SD2SCSI and similar devices, we can
fit more than four SCSI disks into a mac.
2019-04-22 09:12:48 +00:00
leot
39ae4dd0ba Do not start npf again at reboot (it is started via npf_boot) 2019-04-19 18:36:25 +00:00
rin
1b7de8e902 Add missing ./var/db/dhcpcd 2019-04-18 03:50:12 +00:00
mrg
1ce78da3f1 enable EGL and glamor. partly from maya@.
for x86 and evbarm:
- install headers and libEGL
- install xorg-server glamoregl component
- link xorg drivers against gbm/egl

bonus fix:
- fix some wrongly marked compatx11file files


build tested on shark, sgimips, evbarm64-el, amd64 and i386.
run tested on radeon, intel and nvidia on amd64, including
'modesetting' driver on amd64.  however, my systems disable
it due to llvmpipe so i'm not sure what is happening.
2019-04-16 21:20:50 +00:00
sevan
967446d222 Include npf_boot rc.d scripts which loads an interim config early in boot.
By default /etc/default/npf.boot.conf which can be overriden by /etc/npf.boot.conf.
2019-04-10 00:32:15 +00:00
sevan
10a9937f89 Allow DHCP
Neighbour Advertisement should be allowed both ways, otherwise
ipv6nd_sendadvertisement() from dhcpcd logs "Network is unreachable"
2019-04-07 02:08:08 +00:00
kamil
0ee6bbb0ab Register ./usr/tests/usr.bin/indent 2019-04-04 19:50:47 +00:00
kamil
d7a2bf8dd0 Sort ./usr/tests/usr.bin/netpgpverify 2019-04-04 15:10:58 +00:00
nakayama
c3fc2552f5 Fix previous.
sparc64 is automatically added, so leave the sparc line.
2019-04-03 19:52:38 +00:00
sevan
14689fed34 Add an initial ruleset and rc script for NPF to protect host during early stage
of boot, similar to what is currently available for PF.
2019-04-02 01:50:32 +00:00
martin
926b978a87 Double the number of wedge device nodes 2019-04-01 13:08:24 +00:00
jmcneill
66a431a84d Remove SUNXI kernel config. 2019-03-31 13:04:54 +00:00
jmcneill
eadf3a5873 Remove TEGRA kernel config. 2019-03-31 13:03:04 +00:00
jmcneill
58bbeb4a8f Remove redundant TARGET_ENDIANNESS check 2019-03-30 13:53:19 +00:00
jmcneill
12d747285c Include bootarm.efi with releases 2019-03-30 13:05:24 +00:00
christos
4dacee11e8 For consistency use the user and group names for directory ownership.
Also do this for rtadvd, so that it can dump core.
2019-03-29 21:44:22 +00:00
mlelstv
bdeb5b75c5 Actually use unit number for iscsi device. 2019-03-27 06:55:09 +00:00
pgoyette
b23bf74cc4 Add srt(4) to /etc/MAKEDEV and corresponding update to MAKEDEV.8 man page. 2019-03-26 09:13:55 +00:00
mrg
ab6c389b06 remove the recently added files or added entries for what is
./usr/include/$MACHINE and automatically add it.

add sun68k for sun2/sun3.  tested on about 12 platforms.

there may be more failures to figure out but this should make
them all special cases rather than always expected cases.

fortunately, most builds don't see to hit these issues for
reasons i haven't determined yet.
2019-03-12 10:07:49 +00:00
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