Commit Graph

4480 Commits

Author SHA1 Message Date
apb b80ac66c04 Don't try to fsck root device if "/" is not mentioned in fstab.
Also don't assume that all network mounts are "nfs".
2011-09-20 12:13:21 +00:00
jruoho 4a45a29ad9 Move the tests/libc/ieeefp to tests/libc/gen to match the structure of libc.
Also rename the test files to gain functional scope.
2011-09-19 05:25:50 +00:00
jym 256df2d4a9 - use -q to test for presence of a sysctl(7) variable silently
- modify powerd(8) sleep_button script so it can handle the soon-to-be
Xen suspend command.
2011-09-17 14:44:18 +00:00
apb 00aba3793b Revert previous now that "make cleandir" uses bsd.clean.mk to clean
both the obj dir and the src dir.
2011-09-10 17:02:46 +00:00
riz 6fc3b870af Create and install an rc.d file for devpubd - a daemon to listen
on drvctl and autocreate device nodes in /dev for those which don't have any.
Set the default to "NO" for now.
2011-09-06 21:32:29 +00:00
apb f11ca724cb Change foo*) case patterns to foo[0-9]*) in MD MAKEDEV.conf files,
as was done earlier today for the MI MAKEDEV.tmpl.  There are
also a few instances of slightly different changes in the
case patterns.
2011-09-06 14:40:10 +00:00
apb 99fac48d4f MAKEDEV dk<n> should create only the dk<n> device, but it previously
looped creating everything from dk0 to dk<n>.
Reported by M. Levinson.

Also add comments to cases where MAKEDEV loops creating multiple
devices.
2011-09-06 13:34:44 +00:00
apb 4bf21f27b6 In most case patterns, change foo*) to foo[0-9]*). There are also
a few where foo*) changes to foo|foo[0-9]*) or some other slightly
more complex pattern.

This should prevent "MAKEDEV foobar0" from accidentally matching
the foo* pattern when it should really give an error, and it
should make the order of the patterns less critical.
2011-09-06 10:54:03 +00:00
apb ed56faf952 Use ${.OBJDIR}/NetBSD.dist.tmp instead of just NetBSD.dist.tmp.
This fixes a problem in which NetBSD.dist.tmp had been created in
the SRCDIR by an earlier build (performed without an OBJDIR), and
the existence of the file in the SRCDIR confused a subsequent build
(performed with an OBJDIR).
2011-09-05 09:57:02 +00:00
mbalmer d88fd18413 Terminate line with a '.', not the word 'done', for consistency with other
startup scripts.
2011-09-02 07:13:28 +00:00
bouyer 9f200f93cc Add a INSTALL_LOONGSON kernel with a ramdisk.
build LOONGSON and INSTALL_LOONGSON for evbmips-mip64el
2011-08-29 18:32:18 +00:00
mrg f385d8f556 add the device publish daemon, written by jmcneill@.
listens on drvctl for new devices and invokes MAKEDEV for them.

missing:
  - manual page
  - rc.d script
  - more testing

but it works well enough to make new disk nodes appear in /dev when
netbsd sees them and they're missing.  you will need to make sure
you have a new /dev/MAKEDEV for this to work properly (postinstall
should handle this normally, of course.)


thanks jared!
2011-08-29 11:38:48 +00:00
dyoung 581feba28b Straggler from last: add the directory for ppath(3) tests. 2011-08-27 19:02:29 +00:00
dyoung 9943264696 Build and install ppath(3), property-list paths library. 2011-08-26 21:22:07 +00:00
matt b26c11e6b8 Build the GDIUM64 kernel (since it tests 16KB pages). 2011-08-24 16:03:34 +00:00
jym cec3d05bda Arch-specific rc.conf files are not really autonomous rc.conf
files, they are appended to the end of etc/defaults/rc.conf.

So rename them to rc.conf.append for clarity, as suggested by mrg@. Adapt
Makefile accordingly.
2011-08-22 20:48:38 +00:00
jym f56903492e Modify etc/defaults/Makefile so that architectures can specify an additional
rc.conf file. This one should reside under etc/etc.${MACHINE}/, and will
get automatically appended to etc/defaults/rc.conf at build time if present.

This is used by i386 and amd64 to append a small MD rc.conf(5) configuration
at the end of the defaults/rc.conf file, so that powerd(8) can be started
by default when we are running in a Xen environment. This is needed to support
save/restore functions for domains.

From all the alternatives proposed to fix that issue (from /etc/rc.conf
parsing in postinstall to etc/defaults/rc.conf arch-hooks) I believe
this one will appease everyone because it:
- does not touch etc/defaults/rc.conf template file,
- patches it at build time for MD hooks only when required,
- does not need to parse/modify a user-specified file like /etc/rc.conf (which
is a complex, error-prone operation),
- only enables powerd(8) by default when conditions are met (Xen environment)
while still allowing root to shoot himself in the foot if he wants to
override this manually in /etc/rc.conf.

See also http://mail-index.netbsd.org/tech-userlevel/2011/07/25/msg005246.html
2011-08-22 18:54:05 +00:00
phx 7084cee0f3 Turn off ttyE1-ttyE3 to avoid "Device not configured" messages after a
fresh installation with wscons disabled.
2011-08-21 10:41:51 +00:00
uwe 53fc796546 Revert previous as it introduces "Circular dependency on provision
`mountcritremote'".

route6d is "BEFORE: NETWORKING" and was made to "REQUIRE: mountcritremote",
but mountcritremote "REQUIRE: NETWORKING".
2011-08-18 16:46:14 +00:00
gdt ef4e1527ca Make route6d REQUIRE: mountcritremote.
route6d is in /usr/sbin, and thus on systems with separate / and /usr,
/etc/rc.d/route6d can be run before /usr is mounted, resulting in
route6d mysteriously failing to start.
2011-08-17 16:39:29 +00:00
apb 7535058544 Allow "echo -n" to work as expected in rc.d scripts that are executed
by /etc/rc.  Similarly for printf with a format that does not end with
"\n".  Previously, the partial line would not be visible on the console
until a newline was printed, possibly after an annoying delay.

This is done by adding echo() and printf() shell functions to rc.subr,
so that naive use of the echo and printf commands in rc.d scripts will
call these functions instead of the underlying commands.  These shell
functions send a new "nop" metadata message after the partial line, and
the rc_postprocess function in /etc/rc disentangles the partial line of
plain output from the metadata "nop".

Also add a "-n" option to the print_rc_normal function in rc.subr,
and make some cosmetic changes.
2011-08-11 22:52:46 +00:00
mbalmer a8d3ab0aa2 Print 'Keyboard encoding -> sg' instead of just 'encoding -> sg' on the
console.
2011-08-09 08:08:10 +00:00
jmcneill abbd5e9f62 add -u flag that causes the MAKEDEV script to only create a device node if it
doesn't exist
2011-08-06 12:29:39 +00:00
jmmv bbf950e188 Rename the _atf user to _tests. The _atf name will get obsoleted if/when
we migrate to Kyua (atf v2), so it's better to use a generic name that does
not depend on the specific implementation.  Also, this user has not gone
out yet into any stable release, so we can easily rename it.

Suggested by jruoho@.
2011-08-05 14:43:41 +00:00
matt ebed4b3440 Add CPMBR1400 and GDIUM as kernels to be built 2011-08-01 23:18:10 +00:00
taca 98fbd2eb78 Update to 2011060800.
- IPv6 address was added to D.ROOT-SERVERS.NET.
2011-08-01 10:04:27 +00:00
simonb fb56a64524 Restore "duplicate" entries, but use 0. and 1. names to ensure that
same hosts aren't used by both entries.
2011-07-28 22:28:07 +00:00
mbalmer 9e924e522c Remove duplicate (but commented out) entries. 2011-07-28 12:55:35 +00:00
christos 3c5f87c86e generate ecdsa key 2011-07-25 03:04:23 +00:00
mbalmer e37f33931b is is -> is 2011-07-24 08:28:11 +00:00
mrg a57ef5ffad remove unused directory. 2011-07-23 12:13:17 +00:00
christos 8095409b69 Sync keyboard list with reality. 2011-07-22 19:06:23 +00:00
tsutsui bf2202e183 Revive NetBSD/luna68k.
Even after almost a lost decade since NetBSD/luna68k was
switched to using ELF format by default back in 2001,
actually only one fix (bus.h) is required for a GENERIC kernel itself
to get multiuser login: prompt on a real hardware.  Hurrahhh!!!

Demonstrated with a working Xorg mono server on the NetBSD booth
at Open Source Conference 2011 Kansai @ Kyoto:
 http://www.ospn.jp/osc2011-kyoto/

"Very impressed," commented by Tomoko YOSHIDA,
Program Committee Chair of the Conference,
and some other OMRON guys.

Special Thanks to Tadashi Okamura, for providing
a working SX-9100/DT "LUNA" for this mission.


Changes details:

sys/arch/luna68k/include/bus.h
 - handle stride properly even on multi and region ops for MI spc(4)
 - also fix stride handling of (currently unused) 2 and 4 byte ops

sys/arch/luna68k/conf/Makefile.luna68k
sys/arch/luna68k/conf/kern.ldscript.head
sys/arch/luna68k/conf/kern.ldscript.tail
 - build a faked a.out kernel using elf2aout(8) tool
   and a linker script derived from cats and shark
   for the LUNA firmware that loads a.out binary directly
   via network or from a UNIOS partition on a local disk

sys/arch/luna68k/dev/omrasops.c
sys/arch/luna68k/dev/omron_rfont.h
 - use the original OMRON font derived from 4.4BSD-Lite/luna68k
   rather than gallant19 which is used on Sun workstations
   (XXX omrasops.c should be rewritten to use generic wsfont(4))

distrib/luna68k/*
distrib/utils/sysinst/arch/luna68k/*
etc/etc.luna68k/MAKEDEV.conf
etc/etc.luna68k/Makefile.inc
sys/arch/luna68k/conf/INSTALL
 - build a ramdisk based INSTALL kernel with sysinst(8) for luna68k
 - also build an installation iso image for luna68k

sys/arch/luna68k/conf/GENERIC
 - enable SYSVSHM (and other SYSV*) options for Xorg server

More Xorg changes (which need some more cleanup) and
isiboot.c fixes will come soon.
2011-07-16 15:52:20 +00:00
matt b8272261e5 Don't build 64bit kernel for evbmips-el 2011-07-14 05:31:16 +00:00
matt adf6b492c9 Add algor kernels 2011-07-10 23:49:31 +00:00
christos 011f77f43e default mdnstries to 0; most people don't use mdns, so this prevents spurious
warnings.
2011-07-09 19:24:13 +00:00
jmcneill 67cb532cd4 add /usr/include/dev/dtv 2011-07-09 14:55:44 +00:00
jmcneill 3b0709c8e2 create /dev/dvb/adapterN/* devices for dtv 2011-07-09 14:49:28 +00:00
jruoho 1d3a88895d Remove ../tests/syscall. 2011-07-07 07:40:46 +00:00
mrg e712e9f0f1 various updates for GCC 4.5. finally obsolete some very old gcc stuff. 2011-07-01 02:10:07 +00:00
matt 05461650d2 Add COMPRESS_PROGRAM=${TOOL_GZIP:Q} for pax.
Replace gzip with ${TOOL_GZIP}
2011-06-30 18:15:13 +00:00
nonaka c52f9a5df2 PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.
2011-06-25 05:45:10 +00:00
erh 2d7c053867 There is no .../5.99 path to use for PKG_PATH, so change it to 5.1 instead.
Also refer the reader to pkg_install.conf as an alternative.
2011-06-21 05:31:29 +00:00
plunky b41529f23b remove empty files 2011-06-18 18:43:41 +00:00
hans 21f62f04a1 remove -q argument, it is useless with Xorg and fails with XFree 2011-06-15 13:42:46 +00:00
christos 3a128b33dc PR/42642: Ed Ravin: Handle daemons that start with #!/usr/bin/env interp 2011-06-09 14:52:01 +00:00
phx 8e8cb185c4 Also create device nodes for wd2 and wd3. Up to 4 disks in a NAS system are
not unusual.
2011-06-08 18:37:23 +00:00
matt f48a97f0ed Add mpc85xx kernels. Add INSTALL_PMPPC
Put each family of kernels on a separate line.
2011-06-07 17:30:18 +00:00
njoly 3fa42f3842 Add testcase for PR bin/45004, to exercize suffixes lists for
mkdep(1).
2011-05-30 18:14:11 +00:00
plunky b52bb12959 provide a new 'bluetooth' rc.d script, to handle Bluetooth configuration
in a simpler manner. This replaces btattach, btconfig, bthcid, btdevctl
and sdpd scripts, and also should not require any configuration settings
other than "bluetooth=YES", though the full range of configurations is
still possible.
2011-05-27 09:28:41 +00:00