Commit Graph

81 Commits

Author SHA1 Message Date
riastradh 717c76abf5 MAKEDEV: Tidy some entries on x86 and Arm.
While here, reduce some diffs arising from ordering and formatting
between these architectures.

Only difference between evbarm and aarch64 now is /dev/vchiq.  Not
sure offhand if it makes sense on aarch64 or only 32-bit Arm.

PR port-amd64/58093: /dev/efi missing on x86
PR port-arm/58100: /dev/ttyVI* missing on aarch64
PR port-arm/58101: /dev/nvme* missing on aarch64
PR port-arm/58102: /dev/raid* missing on aarch64
2024-04-02 22:29:35 +00:00
riastradh 9a55048f5c x86: Release the ramdisks too.
This way we will get cgdroot.fs (and zfsroot.fs too) in the release.

PR misc/57534
2024-03-20 13:51:35 +00:00
kre 82842e14f0 Don't forget pci17 2022-12-11 17:35:56 +00:00
riastradh cc725e3507 viocon(4): New virtio tty driver imported from OpenBSD.
viocon* at virtio?

/dev/ttyVI??

Tested under qemu with:

qemu-system-aarch64 ... \
  -device virtio-serial \
  -chardev socket,path=/tmp/ttyVI00,server=on,wait=off,id=ttyVI00 \
  -device virtconsole,chardev=ttyVI00,name=org.NetBSD.dev.ttyVI00 \
  ...

I updated MAKEDEV.conf to create /dev/ttyVI?? on all ports where it
looks likely to work based on:
(a) having pci or a non-pci virtio attachment,
(b) `qemu-system-$ARCH -M ?' mentioned something resembling the port,
    and
(c) `qemu-system-$ARCH -device virtio-serial' launched without
    complaining about the virtio-serial device.

(Criterion (c) excluded sparc and sparc64.)
2022-08-12 11:15:40 +00:00
jmcneill 065fe7e8c6 smbios: Add character device for accessing SMBIOS tables
The /dev/smbios character device gives an aperture into physical memory
that allows read-only access to the SMBIOS header and tables.
2021-07-24 11:39:18 +00:00
jmcneill 161b30af53 acpi: add character device for accessing ACPI tables
The /dev/acpi character device gives an aperture into physical memory
that allows only read access to known ACPI tables: RSDP, XSDT/RSDT, and
the root tables. Adapt acpidump(8) to use this interface by default,
falling back to the old /dev/mem method if it is not available or if
ACPIDUMP_USE_DEVMEM=1 is set in the environment. The user visible benefit
of this change is that "options INSECURE" is no longer required to
dump ACPI tables.
2020-12-06 02:57:29 +00:00
nia a819d6d927 Create 8 /dev/ldX by default, as with other disk drivers and ports 2020-08-03 04:32:13 +00:00
jdolecek b763920b00 add support for wwanc(4) device nodes (xmm[0-9]) 2020-07-26 15:47:27 +00:00
jdolecek 1322d29b97 remove nsmb from MD list of devices to create for 'all' 2020-04-05 14:09:17 +00:00
sevan cb3f9ff633 Undo loading pciverbose module by default.
See item 14 in src/doc/TODO.modules.
2019-12-05 22:02:29 +00:00
sevan ffa03210f1 Make use of the pcidevs database by default. 2019-12-04 21:53:20 +00:00
abs 039df638d6 Switch default console tty from /dev/console to /dev/constty
With this switch processes (such as xconsole) can open /dev/console
without breaking login on the text or serial console. This can be
trivially triggered by enabling xdm in rc.conf and hitting
Ctrl+Alt+F1 or equivalent once booted.

The changes:
- Add entry for /dev/console or /dev/constty if missing
- If a port's had /dev/console 'on' switch it off and enable /dev/constty
- If a port did not have /dev/console 'on', leave /dev/constty off

Some ports had /dev/console off and /dev/ttyE0 enabled, presumably to
avoid just this issue. It may make sense to adjust these also (but not
in this pass)

As discussed on current-users
2019-09-25 23:09:19 +00:00
maya 4bc990b409 Create up to pci19.
We probably don't need more than one pci file, but the code needs to be
changed for it, which might introduce problems, and we're just before a
branch.

Not needed for evbarm because it uses devpubd by default.

Stopgap fix for PR xsrc/54388.
2019-07-21 11:14:18 +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
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
maxv 9a1e316930 Add /dev/nvmm. 2018-12-23 12:18:30 +00:00
msaitoh 5ed77d2b40 Add tprof 2018-11-27 14:55:56 +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 477e523c7d Distribute GENERIC_KASLR on amd64. 2018-08-02 16:26:09 +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
nonaka 30c261211c fix incorrect nvme controller number. 2016-09-08 14:44:44 +00:00
nonaka e7c0cc5d9a Add NVMe command passthrough support. 2016-06-04 16:11:50 +00:00
christos f7f367e20c don't make ipty. postinstall removes them. 2015-02-22 14:42:44 +00:00
snj 85566b644e Nuke the five(!) install floppies. Welcome to 2015. Approved by
dsl@, Master of Port.
2015-01-11 04:03:47 +00:00
chs 35b7579ba4 add more sd and pci devices.
remove duplicate ch0.
2012-09-23 01:15:17 +00:00
bouyer f2b31f39d0 Add a pass-through ioctl for mfi(4), allowing userland to send raw commands
to the controller. This is compatible with the linux and FreeBSD
implementations.
Add the needed conversion for mfi ioctls in COMPAT_LINUX
Allocate a character major number, and create /dev/mfi0 by default
on amd64 and i386.
This allows (along with a hand-created /emul/linux/proc/devices file)
to run the MegaCLI linux binary provided by LSI.
2012-09-19 21:24:28 +00:00
reinoud 40d2eec2c6 Disable GENERIC_USERMODE kernel auto-build to avoid problems with the current
autobuild-system.
2012-07-04 13:54:20 +00:00
reinoud e631798833 Move i386 and amd64 usermode configurations to their respective directories
and make the usermode kernels buildalbe under build.sh.

The resulting kernels are build and packaged correctly as are the associated
modules.
2012-06-30 15:03:56 +00:00
martin c2e51849fc Per discussion on tech-userlevel, finally fix PR 10127:
move all ttyE* entries that use "vt100" emulation to wsvt25 term type.
The terminfo vt220 entry lacked (correctly) a delete key entry, which
was a regression against the netbsd-5 termcap entry. On the other hand,
only a very small number of foreign systems lacks support for wsvt25
nowadays.
2012-06-13 20:49:11 +00:00
christos 05e9a23818 give wedges to everyone 2012-04-07 17:22:10 +00:00
mlelstv 149eeb0360 bootmenu doesn't parse "prompt" as part of a command list, it must
stand alone.
2011-12-21 14:33:13 +00:00
tls 1177cf8de7 Use random seed file (saved entropy) from default location by default
in i386 and amd64 boot.cfg.
2011-12-09 06:50:36 +00:00
jmcneill 0ce410dc8d default powerd=YES if acpi is present 2011-12-04 13:09:07 +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
ahoka 2b6ee22130 Import the Flash and NAND subsytem code contributed by the University
of Szeged, Hungary.

The commit includes:
 - Flash layer, which gives a common API to access flash devices
 - NAND controller subsystem for the flash layer
 - An example OMAP driver which is used on BeagleBoard or alike ARM boards
2011-02-26 18:07:13 +00:00
jym d2834deaa5 Build miniroot.kmod installation module for amd64. Hook GENERIC
with it.

See http://mail-index.netbsd.org/port-i386/2011/01/14/msg002247.html
2011-01-18 00:22:56 +00:00
christos 4cc3f6a334 add clear=1 2008-12-13 23:30:03 +00:00
joerg d490657a1e Now that the installation floppies are including tmpfs as well, stop
distinguishing MAKEDEV init and MAKEDEV all for x86.
2008-11-04 14:25:10 +00:00
joerg 3c39079d4a Create 8 dk instances by default. 2008-10-31 16:26:47 +00:00
joerg 3ecd0576c6 Can't type. xkbd -> xbd. 2008-10-31 16:25:29 +00:00
joerg 0a4bf6163b Create 4 Xen disks by default and all three Xen devices to make it
usable out-of-the-box.
2008-10-31 16:14:23 +00:00
abs 3388ad407f Add a constty entry, marked 'off', with otherwise the same settings
as the console. Now when coming up in single user mode the tset in
/.profile can set the terminal type correctly.
Note: I believe constty should be 'on' and console 'off', but thats a
separate discussion
2008-10-07 10:00:00 +00:00
tsutsui d6a9de7378 Move "makedev cfs" for the vcoda device from MI MAKEDEV.tmpl to
MD MAKEDEV.conf.  Not all ports have vcoda in their majors.foo files
and we shouldn't (re)assign major numbers on all ports before 5.0.

Should close PR port-sgimips/38962.
2008-09-13 11:46:18 +00:00
ad 928d6a0983 Give i386 and amd64 a default boot.cfg. 2008-04-30 16:48:53 +00:00
lukem 2c1c2b60b2 Convert all the etc/etc.*/Makefile.inc to use RELEASEDIR/RELEASEMACHINEDIR
just like etc/Makefile does.
2008-03-18 04:20:36 +00:00
ad f28895c808 Remove GENERIC.MP config and enable SMP by default on amd64. 2007-12-20 23:32:24 +00:00
bouyer 8fc0f9f54d Build amd64 xen kernels, and include them in the distrib. 2007-11-22 21:23:42 +00:00
bouyer 400aed76df Add Xen devices 2007-11-22 16:25:04 +00:00
pavel de89ac5321 Add a comment reminding to update the release notes if the list of
kernels change.
2007-07-24 10:49:23 +00:00