Commit Graph

16419 Commits

Author SHA1 Message Date
christos
6241e0b790 bump libmagic 2020-06-15 00:39:03 +00:00
tsutsui
98121728df Put a message in build error logs to notify what this target builds. 2020-06-14 05:10:33 +00:00
tsutsui
9dd46b30d9 Use more shrinked x_foo binaries. 2020-06-13 19:15:43 +00:00
roy
b05648aa26 Remove in-kernel handling of Router Advertisements
This is much better handled by a user-land tool.
Proposed on tech-net here:
https://mail-index.netbsd.org/tech-net/2020/04/22/msg007766.html

Note that the ioctl SIOCGIFINFO_IN6 no longer sets flags. That now
needs to be done using the pre-existing SIOCSIFINFO_FLAGS ioctl.

Compat is fully provided where it makes sense, but trying to turn on
RA handling will obviously throw an error as it no longer exists.

Note that if you use IPv6 temporary addresses, this now needs to be
turned on in dhcpcd.conf(5) rather than in sysctl.conf(5).
2020-06-12 11:04:44 +00:00
jmcneill
e6ecdc649f Build i.MX7D dtbs for armv7 2020-06-10 18:53:31 +00:00
kamil
4228f24a2e Build and install llvm-symbolizer for MKLLVM=yes
llvm-symbolizer is an alternative for GNU addr2line(1), heavily used by the
LLVM sanitizers.

Do not install it as tools as it is not necessary as of today in that
stage.
2020-06-09 21:50:32 +00:00
maxv
3e534f26ae install fault.h 2020-06-08 16:36:18 +00:00
rin
b7016d1c78 Remove t_proplib.debug from debug/shl.mi, which is built regardless of MKPIC,
and has been moved into debug/mi.
2020-06-08 05:05:43 +00:00
rin
fe5c2a10ab For /usr/libdata/debug/usr/tests/lib/libprop
- Obsolete t_basic.debug and
- Add t_proplib.debug
2020-06-08 02:54:41 +00:00
thorpej
87f84208ec One more libprop-related cat pages fixup. 2020-06-07 14:55:13 +00:00
martin
f12e2cb828 Fix debug sets for libprop changes 2020-06-07 10:24:50 +00:00
thorpej
a792b8435e Improvements to the problib(3) API:
==> Provide a much more complete set of setters and getters for different
    value types in the prop_array_util(3) and prop_dictionary_util(3)
    functions.

==> Overhaul the prop_data(3), prop_number(3), and prop_string(3) APIs
    to be easier to use and less awkwardly named,  Deprecate the old
    awkward names, and produce link-time warnings when they are referenced.

==> Deprecate mutable prop_data(3) and prop_string(3) objects.  The old
    APIs that support them still exist, but will now produce link-time
    warnings when used.

==> When the new prop_string(3) API is used, strings are internally
    de-duplicated as a memory footprint optimization.

==> Provide a rich set of bounds-checked gettter functions in and a
    corresponding set of convenience setters in the prop_number(3) API.

==> Add a new prop_bool_value(3) function that is equivalent to
    prop_bool_true(3), but aligned with the new "value" routines in
    prop_data(3), prop_string(3), and prop_number(3).
2020-06-06 21:25:59 +00:00
roy
08dd032c7f dhcpcd: re-obsolete the chroot sub dirs
Ordering matters - dhcpcd needs to be fixed before obsolete for postinstall
2020-06-04 14:08:16 +00:00
rin
58c9080053 Manifest that we need liblzma only when USE_XZ_SETS is enabled. 2020-06-03 07:06:18 +00:00
rin
ff75e2ce53 x_gzip need liblzma for xz support. 2020-06-03 06:36:44 +00:00
rin
cc266ebf05 Add missing compat debug symbols only available for llvm && dtrace. 2020-06-03 02:55:17 +00:00
roy
475e97d322 dhcpcd: delete the obsolete chroot paths
postinstall will take care of it.
2020-06-02 19:15:15 +00:00
jmcneill
df8cb9d11d Revert previous; always use the same INSTIMAGEMB size regardless of
MKDEBUG. Should fit now that USE_XZ_SETS=yes on aarch64.
2020-06-02 14:27:32 +00:00
jmcneill
af0e7b8750 Use a larger INSTIMAGEMB value for MKDEBUG builds 2020-06-02 10:41:30 +00:00
jmcneill
65519e6f7f Exclude ramdisk images and empty instkernel directory 2020-06-02 01:34:50 +00:00
roy
e6c8f49786 Revert prior - mark dirs as obsolete.
Thanks wiz@
2020-05-31 13:07:50 +00:00
roy
79d62731fd We don't install any chroot subdirs for dhcpcd anymore 2020-05-31 13:00:48 +00:00
christos
e4bfa5b301 Make libuv private, requested by joerg@ 2020-05-30 20:47:58 +00:00
jmcneill
6b1f2fdc7f Make room for debug sets 2020-05-30 12:36:37 +00:00
tsutsui
4cfa80aabb Shrink ramdisk to make RAMDISK kernel smaller for ARC BIOS restriction. 2020-05-29 23:12:12 +00:00
jmcneill
3123321d90 Shrink the evbarm install image by not including the live images on the install media 2020-05-28 19:20:57 +00:00
christos
dc08c496a4 bump openssh 2020-05-28 17:06:24 +00:00
jmcneill
2e1299c4b4 Remove support for evbarm cdrom images. Not sure that any of them can even
be used.
2020-05-28 15:27:59 +00:00
jmcneill
52ca013273 Build install images for aarch64 and earmv7hf. 2020-05-28 15:23:43 +00:00
jmcneill
9555656604 Only install gptmbr.bin if USE_GPTMBR=yes 2020-05-28 15:13:21 +00:00
jmcneill
1052b1ffc3 Default USE_MBR to no 2020-05-28 15:12:03 +00:00
jmcneill
210b40805c Create a separate Arm64 image that uses MBR partitioning. Amlogic SoCs
require the bootloader to be installed on SD cards at LBA1 which makes
them incompatible with GPT images.
2020-05-28 10:22:49 +00:00
jmcneill
7923818521 Allow config file to override hostname 2020-05-28 10:19:02 +00:00
maya
bec9186e4c rename amd64 uefi-installimage to be just installimage.
Works for both purposes, no confusing name.
2020-05-27 22:27:58 +00:00
jmcneill
aec3f0cda8 Move back to MBR based images for armv7 because Amlogic's bootloader (for
Amlogic S805 based boards) needs to be installed to sector 1, which
conflicts with the GPT header.
2020-05-27 21:53:04 +00:00
nia
dc6f7f016f Briefly explain how to pkgsrc u-boot. Pointed out by maya. 2020-05-27 13:51:05 +00:00
nia
094ca3bf8f s/boards/devices/ 2020-05-27 12:47:47 +00:00
nia
3c044d5b1a First attempt at modernising the evbarm install guide and hardware lists
- Install instructions mostly based on wiki pages
- Supported hardware lists mostly based on GENERIC and GENERIC64 kernels
2020-05-27 12:45:07 +00:00
jmcneill
0fb404c413 Fix kernel= order, add pi0w conditional and comments 2020-05-27 11:02:52 +00:00
jmcneill
eb9218acf0 Conditionally boot kernel.img or kernel7.img depending on board 2020-05-27 10:56:59 +00:00
jmcneill
3f1e657dba No need to rename netbsd-GENERIC.img to kernel7.img 2020-05-25 11:11:52 +00:00
jmcneill
32049c2b73 Switch to GPT w/ hybrid MBR for armv7 images 2020-05-25 11:06:49 +00:00
christos
7578ae9051 new bind+libuv 2020-05-24 19:47:59 +00:00
jmcneill
1c81516763 Enable GPT support w/ hybrid MBR for Raspberry Pi compatibility. 2020-05-24 18:44:46 +00:00
jmcneill
2e7e9cc4e8 Add support for hybrid MBR/GPT images. 2020-05-24 18:43:39 +00:00
jmcneill
2190516631 Add GPT support to mkimage. 2020-05-24 14:45:49 +00:00
skrll
0a6d4780d8 imx6 kernels are part of GENERIC now 2020-05-23 13:24:07 +00:00
tsutsui
f184828963 Now Xserver works on hp425e built-in EVRX framebuffer. 2020-05-23 00:02:10 +00:00
rin
3886d0713a Add one more auto-generated file. 2020-05-22 23:59:01 +00:00
rin
b4dc77fc88 Regen 2020-05-22 23:58:22 +00:00
skrll
9b07d9ea0d Sort 2020-05-22 15:55:51 +00:00
christos
75ab167c58 put back extattr.3 2020-05-19 19:15:06 +00:00
rin
2bc2f88aff Bump ramdisk size to 2MB. 2020-05-19 09:02:48 +00:00
jdc
e738d60314 Add tadpmu to Makefile and set list. 2020-05-19 06:26:37 +00:00
jmcneill
043d88a7c1 Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.
2020-05-18 21:19:34 +00:00
martin
1af5bcc972 Fix lists for RUMP-less builds 2020-05-17 15:28:27 +00:00
ad
8b4ce5d40a Install sparc/intr.h 2020-05-17 13:49:37 +00:00
rillig
08808cd251 usr.bin/make: demonstrate actual behavior of .INCLUDEDFROMFILE 2020-05-17 12:36:26 +00:00
christos
c00e7542d4 move the fido man pages from man to comp where they belong. I wonder about
the other section 3 man pages? Should they also move from man to comp?
2020-05-16 19:05:05 +00:00
christos
049ab299d2 bump libc 2020-05-16 19:00:13 +00:00
christos
9aa2a9c323 Add ACL support for FFS. From FreeBSD. 2020-05-16 18:31:45 +00:00
maya
5cf9e8b81f Remove uyap, USB YAP phone firmware loader.
And the associated ezload EZ-USB code, which is only used by uyap.
It could theoretically be used by other drivers, but none of them are
in tree.

I suspect that this device isn't in use, as phone technology has improved
a lot since 2001 when uyap(4) was added to the tree.

Proposed with no objections on netbsd-users on 13 April 2020
2020-05-16 13:46:10 +00:00
christos
6d46df7548 PR/55102: Kamil Rytarowski: Duplicate fifo_vnodeop_entries,
fifo_vnodeop_opv_desc symbols.

Many filesystems ffs, lfs, ulfs, chfs, ext2fs etc. use fifofs
internally for their fifo vnops. NFS does too, but it also needs
networking anyway.  Unfortunately fifofs brings in a lot of the
networking code so that the rumpkernel is not well partition. In
addition the fifo code is rarely used.

The existing hack depended on duplicating the above symbols and
adding minimal functionality for the majority of the the tests
(except the ffs and the puffs one). In these two cases both symbols
were loaded and the symbol sizes clashed which broke the sanitizers.
While this can be fixed with weak symbols and other kinds of
indirection, it is more straight forward to select between the
minimal and the full fifofs implementation by introducing a new
shared library librumpvfs_nofifofs.
2020-05-15 23:32:27 +00:00
joerg
7cbd7912a7 Bump libc minor version for malloc lock change 2020-05-15 14:57:33 +00:00
kamil
b2e8cbc777 Fix typo
Reported by vezhlys on IRC.
2020-05-15 09:21:59 +00:00
ryo
eeb5bd9a17 fix evbarm64 build release with LLVM 2020-05-13 06:09:25 +00:00
yhardy
dd377fc593 Fix the build for MKCOMPAT=no.
The t_user_ldt test needs the i386 compat library which is only built
when MKCOMPAT=yes.
2020-05-11 21:51:25 +00:00
rillig
c34ad787e6 usr.bin/make: add tests for surprising dollar removal 2020-05-10 12:34:01 +00:00
skrll
698fd2a973 Update for trap.h 2020-05-10 11:06:14 +00:00
nia
5e1fba1a1e Add getentropy() to libc - a simple wrapper to access the kernel CSPRNG.
Posted to tech-userlevel@ a week ago and reviewed by riastradh@.

GETENTROPY(3)		   Library Functions Manual		 GETENTROPY(3)

NAME
     getentropy - fill a buffer with high quality random data

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <unistd.h>

     int
     getentropy(void *buf, size_t buflen);

DESCRIPTION
     The getentropy() function fills a buffer with high quality random data,
     suitable for seeding cryptographically secure psuedorandom number
     generators.

     getentropy() is only intended for seeding random number generators and is
     not intended for use by regular code which simply needs secure random
     data.  For this purpose, please use arc4random(3).

     The maximum value for buflen is 256 bytes.

IMPLEMENTATION NOTES
     getentropy() reads from the sysctl(7) variable kern.arandom.

RETURN VALUES
     The getentropy() function returns 0 on success, and -1 if an error
     occurred.

ERRORS
     getentropy() will succeed unless:

     [EFAULT]		The buf argument points to an invalid memory address.

     [EIO]		Too many bytes were requested.

SEE ALSO
     arc4random(3), rnd(4)

STANDARDS
     The getentropy() function is non-standard.

HISTORY
     The getentropy() function first appeared in OpenBSD 5.6, then in
     FreeBSD 12.0, and NetBSD 10.
2020-05-06 16:17:36 +00:00
bouyer
da456d1ffb Bump INSTIMAGEMB, hopefully fix releng autobuilds 2020-05-06 09:18:10 +00:00
christos
3a4af96978 A tiny little more. 2020-05-05 16:04:07 +00:00
christos
4ed76a2ea0 bump caused by the module debug sets 2020-05-03 13:29:04 +00:00
christos
a8a60eb46c Add support for debugging modules for multi-arch (xen etc.) 2020-05-02 19:44:59 +00:00
christos
69865c461a /usr/libdata/debug/stand is where the debug modules go 2020-05-01 22:25:18 +00:00
christos
18b0456cb4 add more module sets. 2020-05-01 22:21:49 +00:00
christos
3a2dc2da1e Add module debug sets 2020-05-01 22:21:11 +00:00
jdolecek
40ace5566a link also m_apply(9) to mbuf(9) 2020-05-01 21:43:23 +00:00
christos
a461f65adc Move the rump module test programs in the regular mi file. These are not
really kernel modules and the other md module test is in the md.amd64 file
already.
2020-05-01 17:14:28 +00:00
tsutsui
23536c517e Move HP332 to "Supported hardware" list, as reported by Chris Hanson. 2020-05-01 03:02:28 +00:00
ryo
1da5a7c800 Add a test for sigaltstack(2) and SA_ONSTACK 2020-04-30 11:03:29 +00:00
riastradh
5084c1b50f Rewrite entropy subsystem.
Primary goals:

1. Use cryptography primitives designed and vetted by cryptographers.
2. Be honest about entropy estimation.
3. Propagate full entropy as soon as possible.
4. Simplify the APIs.
5. Reduce overhead of rnd_add_data and cprng_strong.
6. Reduce side channels of HWRNG data and human input sources.
7. Improve visibility of operation with sysctl and event counters.

Caveat: rngtest is no longer used generically for RND_TYPE_RNG
rndsources.  Hardware RNG devices should have hardware-specific
health tests.  For example, checking for two repeated 256-bit outputs
works to detect AMD's 2019 RDRAND bug.  Not all hardware RNGs are
necessarily designed to produce exactly uniform output.

ENTROPY POOL

- A Keccak sponge, with test vectors, replaces the old LFSR/SHA-1
  kludge as the cryptographic primitive.

- `Entropy depletion' is available for testing purposes with a sysctl
  knob kern.entropy.depletion; otherwise it is disabled, and once the
  system reaches full entropy it is assumed to stay there as far as
  modern cryptography is concerned.

- No `entropy estimation' based on sample values.  Such `entropy
  estimation' is a contradiction in terms, dishonest to users, and a
  potential source of side channels.  It is the responsibility of the
  driver author to study the entropy of the process that generates
  the samples.

- Per-CPU gathering pools avoid contention on a global queue.

- Entropy is occasionally consolidated into global pool -- as soon as
  it's ready, if we've never reached full entropy, and with a rate
  limit afterward.  Operators can force consolidation now by running
  sysctl -w kern.entropy.consolidate=1.

- rndsink(9) API has been replaced by an epoch counter which changes
  whenever entropy is consolidated into the global pool.
  . Usage: Cache entropy_epoch() when you seed.  If entropy_epoch()
    has changed when you're about to use whatever you seeded, reseed.
  . Epoch is never zero, so initialize cache to 0 if you want to reseed
    on first use.
  . Epoch is -1 iff we have never reached full entropy -- in other
    words, the old rnd_initial_entropy is (entropy_epoch() != -1) --
    but it is better if you check for changes rather than for -1, so
    that if the system estimated its own entropy incorrectly, entropy
    consolidation has the opportunity to prevent future compromise.

- Sysctls and event counters provide operator visibility into what's
  happening:
  . kern.entropy.needed - bits of entropy short of full entropy
  . kern.entropy.pending - bits known to be pending in per-CPU pools,
    can be consolidated with sysctl -w kern.entropy.consolidate=1
  . kern.entropy.epoch - number of times consolidation has happened,
    never 0, and -1 iff we have never reached full entropy

CPRNG_STRONG

- A cprng_strong instance is now a collection of per-CPU NIST
  Hash_DRBGs.  There are only two in the system: user_cprng for
  /dev/urandom and sysctl kern.?random, and kern_cprng for kernel
  users which may need to operate in interrupt context up to IPL_VM.

  (Calling cprng_strong in interrupt context does not strike me as a
  particularly good idea, so I added an event counter to see whether
  anything actually does.)

- Event counters provide operator visibility into when reseeding
  happens.

INTEL RDRAND/RDSEED, VIA C3 RNG (CPU_RNG)

- Unwired for now; will be rewired in a subsequent commit.
2020-04-30 03:28:18 +00:00
rillig
0cf5f48424 usr.bin/make: add test case for lazy conditions 2020-04-29 23:15:21 +00:00
mrg
92e849c948 bump ramdisk size to 3200k for gcc 8. yay! 2020-04-29 06:53:46 +00:00
rjs
9df5444666 The x86_pte tests are only built when MKKMOD=yes. 2020-04-28 13:43:45 +00:00
mlelstv
6676af1407 Add missing futex tests. 2020-04-26 21:05:36 +00:00
thorpej
276ef22378 Add a NetBSD native futex implementation, mostly written by riastradh@.
Map the COMPAT_LINUX futex calls to the native ones.
2020-04-26 18:53:31 +00:00
maxv
e497fc86e6 Add tests on the x86 PTEs. We scan the MMU page tables directly and verify
certain properties.
2020-04-26 09:08:40 +00:00
rin
e14b16b8c0 Adjust for binutils 2.34. 2020-04-26 06:58:05 +00:00
bouyer
224cc4e632 Add /usr/include/xen/intrdefs.h to sets
Add xen to KLINKFILES for amd64/i386
2020-04-25 15:46:59 +00:00
kre
9d0d79c629 Update to tzdata2020a (new zone file America/Nuuk)
XXX pullup -8 -9
2020-04-25 12:18:47 +00:00
uki
6f0f0600e3 Add -unknown- to "./netbsd" in modules/mi to fix "build.sh syspkgs" failure 2020-04-23 11:41:28 +00:00
maxv
7ee848d944 Add tests for USER_LDT. 2020-04-19 13:22:58 +00:00
jdolecek
39b0cf9180 enable NO_IOBUF_ALIGNED for x_newfs and x_fsck_ffs 2020-04-18 12:56:38 +00:00
jdolecek
ad81495fd9 include aligned_alloc(3), now needed for newfs and fsck_ffs 2020-04-17 14:55:24 +00:00
roy
b19d027e40 We solves the zpool SIGBUS issue by building a threaded libhack. 2020-04-14 12:14:59 +00:00
kre
e9f637c8af Since dhcpcd-hools/02-dump seems to have been removed from the
repository, don't attempt to install it, and don't expect it to
be installed.    If a better fix is to return 02-dump, then this
change can be reverted (by anyone, just go ahead and do it).

dhcpcd(8) should also have mention of 02-dump removed, if removing
it was intentional.
2020-04-14 03:16:26 +00:00
tsutsui
e68b02666c Fix typo. 2020-04-12 17:13:29 +00:00
simonb
a91470c59b Add uxrcom driver for Exar XR21V141x USB serial adapters. Based in part
on the OpenBSD single-port XR21V1410 uxrcom driver, but adds support
for multi-port chipsets and uses the common umodem framework instead of
being a standalone driver.

Thanks to skrll@ for much USB clue and mrg@ for financing the
development of this driver.
2020-04-12 01:10:53 +00:00
christos
407ffe11fc Add new t_extattr 2020-04-11 01:51:14 +00:00
tsutsui
4c1178c516 Drop the entry for Yasushi Yamasaki, per recent ad clause removal. 2020-04-10 17:02:33 +00:00
martin
32f67d2cf1 Ooops, editor mishap in previous 2020-04-07 10:22:00 +00:00
martin
94c50ac97f Sync image size with available space reserved in the RAMDISK kernel 2020-04-06 13:28:15 +00:00
martin
05220c998f Use full available ram disk space 2020-04-06 11:58:10 +00:00
sevan
841fdb7e60 Support the use of DHCP in the install environment 2020-04-05 14:36:43 +00:00
martin
d001b02d00 Adapt to libterminfo as part of libhack-curses 2020-04-05 11:19:01 +00:00
martin
fa0d5eae99 Extend the curses hack to terminfo - build selected parts of
libterminfo as part of libhack, so we can drop unwanted features
for small install media.
2020-04-05 11:18:02 +00:00
mlelstv
f8df89e092 revert to previous 2020-04-05 05:19:24 +00:00
christos
102c608adf we don't delete entries, we mark them obsolete so that postinstall can
delete the files.
2020-04-05 01:21:43 +00:00
mlelstv
e264b2bd0f one more netsmb reference. 2020-04-04 22:08:33 +00:00
christos
d8e96a2d4f Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules.  This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.
2020-04-04 19:50:53 +00:00
christos
8809b7dc13 fix netsmb, libgnuctf 2020-04-04 19:26:51 +00:00
christos
ec53555ab5 gnuctf is only binutils=234 2020-04-04 17:00:05 +00:00
christos
1a8140ac32 fix libgnuctf 2020-04-04 16:05:39 +00:00
christos
1e0e781857 fix sets for new binutils 2020-04-04 16:04:01 +00:00
jdolecek
b28734a61b remove SMBFS and nsmb/netsmb - userland part 2020-04-04 15:39:13 +00:00
mlelstv
9f445f8e17 More binutils version mismatch. 2020-04-04 12:06:57 +00:00
mlelstv
19fee71a55 conditionally list library versions for binutils 2.31 and 2.34 2020-04-04 09:57:12 +00:00
roy
da35319256 Adjust set lists for dhcpcd chroot 2020-04-02 13:03:22 +00:00
kamil
bf4492493d Add ioctlprint - descriptive ioctl value printer
ioctlprint(1) is embedded in the kdump(1) program.
2020-04-02 03:32:46 +00:00
maxv
0512ed0af2 Put the ioctl definitions in a header, and install it. 2020-03-31 16:28:28 +00:00
christos
f56084844e Add rpcapd 2020-03-30 02:12:38 +00:00
christos
66d7aa31df enable remote for libpcap and add rpcapd 2020-03-29 17:13:46 +00:00
martin
f5c15489c8 Try to fix previous: include etc.evbarm/Makefile.inc to get proper sub-arch
settings and key the subdirs off KERENEL_SETS instead of ALL_KERNELS
(which is not always defined)
2020-03-28 15:41:23 +00:00
rin
5bbf0e2308 Get back to terminfo.cdb. 2020-03-27 15:18:22 +00:00
christos
3958d16a96 As described in tech-userlevel:
- Modify the writing code to only write entries in the new
  format for the terminal descriptions that require it.
- Store new format entries as <name>@v3
- Store old format entries with clamped values as <name> for
  backwards compatibility
- Lookup first <name>@v3 and then <name> if that is not found.
- Don't create terminfo2 anymore; old programs keep working with
  clamped entries, and new programs be able to use the wide
  fields with using the original db file.
2020-03-27 15:11:57 +00:00
thorpej
8ddade78c3 Let xunlong,orangepi-lite2 share bwfm config with raspberrypi,3-model-b-plus;
it seem to work fine and there's no better alternative at the moment.
2020-03-27 04:31:18 +00:00
skrll
35f8f9c96c Only build sshramdisk when building RPI_INSTALLx 2020-03-26 08:02:55 +00:00
skrll
909a200b92 Bump IMAGESIZE 2020-03-26 07:44:43 +00:00
kre
5388a00941 Document strerror_l()
While here also document (but comment it out since it isn't
available - yet) strerror_lr().   To include that, simply
uncomment the relevant lines, and (twice I think) s/returns/return/
on lines just after currently commented out lines (that is, it
currently says, "A returns" after the comments are returned, we
need it to be "A and B return" - the "and B" appears when the comment
markers are removed, removing the 's' from returns must be done manually.

In addition to adding strerror_l() some additional enhancements were
made to the general strerror() doc.
2020-03-25 18:45:42 +00:00
christos
4fa722caef add pw_gensalt 2020-03-25 17:13:49 +00:00
roy
bb2ce1fb3d curses: Add stubs for mouse functions
No mouse support actually included.
But that doesn't matter because most terms don't actually support a mouse.

We should look into hooking these into wsmouse(4) and xterm mouse
in the future.

Compatable with nCurses mouse API version 2.
2020-03-23 13:37:36 +00:00
martin
a5c8ab7a11 Bump image size - new firmware files need more space 2020-03-23 11:45:00 +00:00
thorpej
3639ae7e3e Install the common AP6212 nvram config and use it for sinovoip,bpi-m2-zero. 2020-03-22 22:36:12 +00:00
thorpej
fa16de81c1 The raspberrypi,model-zero-w uses the same nvram config file as the
raspberrypi,3-model-b.
2020-03-22 22:17:11 +00:00
thorpej
e36e7c169a Install the "bwfm" firmware for the Pinebook Pro. 2020-03-22 21:13:35 +00:00
thorpej
4886cefda0 Add new bwfm firmware binaries and config files. Only install the
SDIO firmware binaries and platform-specific config files on platforms
where they're relevant.
2020-03-22 20:21:53 +00:00
ad
5de49fc7c2 Wrap vnode_impl.h in defined(_KERNEL) || defined(_KMEMUSER), and install
it for kmem grovellers.
2020-03-22 14:27:33 +00:00
tsutsui
608bd4460c Add "build.sh live-image" support for hpcarm.
Tested on WS003SH.
See also PR/55075 for live-image with FAT partition support.
2020-03-21 14:25:49 +00:00
tsutsui
d9d42379c6 Add "build.sh live-image" support for zaurus.
Tested on SL-C3000 and SL-C700.
See also PR/55075 for live-image with FAT partition support.
2020-03-21 14:24:12 +00:00
tsutsui
2b0ec46162 Add "live-image with a FAT partition for bootstrap files" support.
See PR/55075 for more details.
2020-03-21 14:19:26 +00:00
rin
fe3b3a2843 Catch up with major bump in terminfo. Unbreak build. 2020-03-16 10:02:47 +00:00
skrll
73cad4db9c hopefully fix builds 2020-03-14 06:39:20 +00:00
roy
aadfdb111b terminfo: promote numeric parameters from short to int
POSIX mandates implementations must support upto a short but may exceed it.
When NetBSD terminfo was implemented, no terminfo description used over
a short, but because ncurses has supported ints for some time, some now do.

Infact, such a terminfo description was imported where colour pairs for
screen-256color went up to 65536 which exposed a bug in the existing
implementation where it set to zero. Because the number might mean
something more than a range, we need to be able to store it accurately.

This requires a version bump because whilst the API hasn't changed thanks
to C int promotion, the ABI has. Also the underlying database structure
has changed as well - we now store the numeric paramter inside a uint32_t
field rather than a uint16_t one.
Whilst this change can still read the old style database, the old one
cannot read the new one and thus we now maintain the database as
terminfo2.cdb, leaving the old library and database alone so old programs
still work fine.

libcurses, libfrom, libmenu and libpanel have also been bumped to
accomoate this change.
2020-03-13 15:19:24 +00:00
pgoyette
e135ca8390 Add new netbsd32 quota modules to sets lists 2020-03-12 15:04:13 +00:00
skrll
fcbc11fb45 Fixup the evbarm PCI modules 2020-03-11 08:31:08 +00:00
christos
7aea3fca18 wrong test name 2020-03-09 02:22:20 +00:00
mgorny
43b5dbaaaf Update libc SOVERSION 2020-03-08 22:42:35 +00:00
mgorny
5fb02e28e8 Add tests for missing libc catalog entries 2020-03-08 22:08:46 +00:00
christos
40bc2ecca0 new test for ifconfig 2020-03-08 17:23:55 +00:00
skrll
304e3f3f2c Fix sets 2020-03-08 15:21:15 +00:00
uki
96f142dc63 Delete unavailable package from attrs 2020-03-07 13:01:07 +00:00
kamil
fe331b9d9e Add new ptrace(2) test file
t_ptrace_sigchld - for SIGCHLD handler + ptrace(2).

Right now a single test is enabled (raise(SIGKILL)) and marked as failed
as it never finishes as the child is never collected before exiting the
parent uninterested about its child (SA_NOCLDWAIT).
2020-03-06 18:32:35 +00:00
christos
e13814a4fd fix pam annotations 2020-03-04 22:09:00 +00:00
christos
f13dbbb9b4 add libfido2, libcbor, pam-u2f, sort 2020-03-03 00:38:12 +00:00
roy
00fb306ae0 ramdisk-zfsroot: Build with -D_REENTRANT
zpool(8) requires libhack built with it.
2020-03-02 16:04:49 +00:00
roy
1d37b848af libhack: revert prior, will be done per consumer instead. 2020-03-02 16:01:52 +00:00
roy
0d1a142685 libhack: build with -D_REENTRANT
Some tools that use libhack expect thread locking.
An example of this is zpool(8).

Without it, it randomly crashes. As such, force _REENTRANT to avoid
debugging future random crashes from any other applications which
rely on this.
2020-03-01 22:47:26 +00:00
christos
a2362fee00 Redo the sshsk_sign() stuff properly, but putting the helper in libssh.so 2020-03-01 20:59:52 +00:00
skrll
9e9cdb30a4 if_ixl is MD 2020-02-29 18:46:12 +00:00
christos
a04c941cc5 Deal with sshkey_sign. I am going to fix this properly at some point, but
it needs coordination from upstream (Patrick Welche)
2020-02-28 13:00:51 +00:00
yamaguchi
7b177b731a Make ixl(4) be able to build as a module 2020-02-27 06:30:55 +00:00
christos
9a26835b4c new openssh 2020-02-27 00:25:49 +00:00
kamil
64685cea19 Register groups.0 and users.0 in distribution sets
Fixes MKCATPAGES=yes build.
2020-02-26 16:12:44 +00:00
riastradh
d823475ff2 kernfs no longer needs a hacky workaround to make rootdev appear. 2020-02-26 16:00:48 +00:00
riastradh
e4d662933e Draft man pages for the standard users and groups.
These are currently listed in order of uid because I went through
src/etc/group and src/etc/master.passwd line by line, and sorting any
other way after the fact -- like lexicographically, how it should be
-- was kinda inconvenient.

Feel free to sort, add information, add historical references,
correct any mistakes, &c., so that these remain living documents
describing NetBSD's standard users and groups and practices around
them.
2020-02-26 07:31:51 +00:00
roy
7d5fdd89d0 ramdisk-zfsroot: Remove the module loading magic
It's been determined that it's too magical and it's either the job
of the bootloader or you compile it into the kernel yourself.

This entry works in /boot.cfg:

menu=Boot ZFS Root:load solaris;load zfs;fs /ramdisk-zfsroot.fs;boot
2020-02-25 20:05:10 +00:00
mrg
ca82237625 updates for xkeyboard-config 2.29. 2020-02-23 11:17:03 +00:00
jmcneill
55db4fad0c RPi4 has a different root device, so use config.txt conditionals to load
an alternate cmdline txt file (cmdline-pi4.txt) on these boards.
2020-02-23 10:56:03 +00:00
roy
a0b4f4b376 ramdisk-zfsroot: We no longer need to have /etc/zfs in mtree
Now that mountall doesn't rely on /etc/zfs/zpool.cache being present.
2020-02-23 10:51:12 +00:00
roy
896ddeb466 zfs: Allow modules to be loaded once in the ZFS chroot
Rather than copying the needed modules from FFS to the ramdisk,
load then directly from FFS instead.

This way, we can symlink ramdisk stand into /altroot and let nature take
it's course like loading firmware.

Set shell exit on error rather than using chained commands.
zpool import seems to SIGBUS randomly on amd64 and if we didn't do the
former then zpool would hang the init. Now at least we exit to the shell.
2020-02-23 05:15:54 +00:00
ad
284662e223 Add rw_lock_op(): return either RW_READER or RW_WRITER for a lock that is
known to be held by the caller.  Panic if the lock is not held.
2020-02-22 21:24:44 +00:00
roy
5403a7a7c1 zfs: build a ramdisk on amd64 with enough to mount rpool/ROOT on /
Until we get ZFS integrated into our boot loader, this is the next best
thing. The idea is simple - have a small FFS partition with a kernel,
modules and this ramdisk. Once the ramdisk boots it will mount the FFS
partition read only, copy the needed ZFS modules to the ramdisk and then
unmount the partition. Then we import the ZFS root pool, mount the
ZFS root filesystem and then pivot to it.

Because the initial FFS partition is not mounted at this point, we
can mount it in /altroot so we can replace the kernel and modules with
newer ones so it's easily maintainable.

This ZFS boot strapper currently makes the following assumptions:
 * The device NAME=boot is the FFS with kernel, modules and this ramdisk.
 * The ZFS root pool and root filesystem are called rpool/ROOT.

A boot.cfg menu entry can then be added like so:
menu=Boot ZFS root:fs /ramdisk-zfsroot.fs;boot
2020-02-22 09:53:47 +00:00
uki
bc4050cada etc and modules packages should be preserve 2020-02-15 03:27:58 +00:00
uki
b373ac9cc5 PR misc/46937: add modules package, from Lloyd Parkes. 2020-02-11 11:36:52 +00:00
martin
5dcf5b437a Add new test programs 2020-02-11 09:32:07 +00:00
isaki
e758b536e1 Add ATF tests for audio(4).
91 passed test cases
    0 failed test cases.
    0 expected failed test cases.
    62 skipped test cases.

There are many skipped tests, because the test itself supports full-
duplex, half-duplex and uni-directional devices but pad(4) used in ATF
tests is uni-directional device.
2020-02-11 07:03:16 +00:00
riastradh
d78835f01e Test that fpu state is preserved by fork. 2020-02-11 03:15:10 +00:00
jmcneill
428130a8e6 Retire azalia(4). 2020-02-09 16:06:17 +00:00
kamil
bc3e03d8e1 Install LLVM sanitizers to /usr/lib/clang/9.0.0
This is the proper location where clang 9.0.0 looks for them.
2020-02-07 18:48:58 +00:00
thorpej
563163014b Add percpu_foreach_xcall(9). 2020-02-07 13:10:26 +00:00
uki
3c045c30bc Building X11 system packages by "build.sh syspkgs" 2020-02-06 12:36:38 +00:00
uki
52ffe2313c Fix incorrect package name in xcomp 2020-02-06 12:13:45 +00:00
kamil
771c425869 Port realpath(1) from FreeBSD
realpath(1) wraps realpath(3) and returns resolved physical path.

This utility shipped with GNU and FreeBSD is sometimes
used in scripts in the wild.
2020-02-02 21:49:43 +00:00
tsutsui
fc9073f9fe Add MAX/MIN PAGE_SIZE and PAGE_SHIFT definitions of m68k for jemalloc(3).
Background:
- All m68k ports have fixed PAGE_SIZE value in their kernels,
  but each port uses different PAGE_SIZE value (4096 or 8192)
  due to historical reasons.
- Currently module(7) binaries are built per each port so
  all m68k kernel sources don't support run-time variable PAGE_SIZE.
- MI <uvm/uvm_param.h> assumes that the port supports a variable
  PAGE_SIZE on module(7) builds if both MAX_PAGE_SIZE and MIN_PAGE_SIZE
  are defined and they have different values.
- On the other hand, jemalloc(3) checks MAX_PAGE_SHIFT in
  src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h
  for internal optimization.
- m68k ports share userland binaries (especially pkgsrc binaries)
  among all ports, so we need to define MAX_PAGE_SHIFT as 13 to
  support m68k ports where PAGE_SIZE==8192.
  (though this would affect only if static binaries built on
   4k page hosts are executed on 8k page hosts)

To solve these inconsistency on PAGE_SIZE definitions,
we should have an independent PAGE_SIZE related definitions
for userland, but it requires major reorganization.
For now (especially for netbsd-9) we define MAX/MIN PAGE_SIZE and
PAGE_SHIFT values in <m68k/vmparam.h> only in !defined(_KERNEL) case.

Discussed on source-changes-d@ and tech-kern@ with christos@ and thorpej@:
 https://mail-index.netbsd.org/source-changes-d/2020/01/thread1.html#012035
 https://mail-index.netbsd.org/tech-kern/2020/01/thread1.html#025954

Should be pulled up to netbsd-9.
2020-02-01 19:41:48 +00:00
riastradh
d92a26fbe9 New function percpu_create.
Associates a constructor and destructor with the percpu.  Currently
the constructor runs immediately, but in principle we could use the
same API for future CPU hotplug support.

This lets you sleep for allocation or draining users before
deallocation when setting up or tearing down a percpu -- currently we
have many abuses of percpu_foreach in tree for that purpose.

Proposed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2020/01/30/msg026036.html
2020-02-01 12:49:02 +00:00
tsutsui
c8cea24eea Add and enable dhcpcd for news68k installation.
news68k has already required two floppies since 9.0
so there is no popular demand to shrink ramdisk.
2020-02-01 06:02:00 +00:00
jmcneill
bc2c80f256 Build radeonsi driver. 2020-01-31 20:56:03 +00:00
maya
5e031685d6 remove urio(4), a driver for the Rio500 MP3 player.
At this point it is highly unlikely this 1999 device still has users,
but it still comes up in the context of maxv's USB-fuzzing (and any device
could pretend to be a urio(4)), so it's best to get rid of it.

Renamed all major entries to obsolete, as was done in previous removals.

This still requires an update to sanitizers, but they're located in
"external", perhaps it should be first committed upstream?

Proposed on tech-kern a month ago.
2020-01-29 18:39:00 +00:00
christos
209f53364e bump a little for llvm 2020-01-29 16:24:21 +00:00
thorpej
da7319bed1 Add <net/if_stats.h>. 2020-01-29 03:17:34 +00:00
christos
9284796821 grow for clang 2020-01-25 19:09:38 +00:00
roy
4bfa4dda38 These directories may not be installed for aarch64 2020-01-25 11:26:39 +00:00
uki
1edad8f421 Fix incorrect package name, lacked category prefix. 2020-01-25 00:12:42 +00:00
uwe
499393c223 Use -mdoc2html to generate HTML TOC to avoids warnings. 2020-01-23 23:59:53 +00:00
uwe
120b2450d3 Override HTML <title> to something more informative.
Requested by martin@
2020-01-23 23:56:07 +00:00
uwe
e4fa1cc96e Use .Os NetBSD/\*M \*V to get more informative footer. 2020-01-23 23:34:47 +00:00
thorpej
c718a72d76 I overlooked the esh(4) man page when removing HIPPI support; remove it
now.  Thanks maxv@ for noticing and pointing it out.
2020-01-22 14:01:50 +00:00
mlelstv
1e89c63a0f Was too slight a bump. 2020-01-21 14:58:58 +00:00
martin
85760d7e91 Bump image size slightly 2020-01-21 11:48:10 +00:00