Commit Graph

15 Commits

Author SHA1 Message Date
tsutsui 78a0766dec Create rd3 device nodes, for HPDisk. 2021-07-09 19:01:29 +00:00
tsutsui fb2f15afec Fix yet another "openpty() failed" error during sysinst.
Prepare a new entry for ramdisk that includes ipty target in
etc.hp300/MAKEDEV.conf and use it in distrib/hp300/ramdisk/Makefile.
See also PR/46812, PR/47123, and PR/47774.

We could simply add "ipty" to MAKEDEVTARGETS as miniroot/Makefile does,
but it's better to shrink ramdisk size as much as possible.

Should be pulled up to both netbsd-6 and netbsd-6-0.
2013-04-28 08:08:03 +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
tsutsui b04b7da893 Switch NetBSD/hp300 to wscons with rasops. Simply ported from OpenBSD/hp300.
- Only A1416 Kathmandu (topcat) framebuffer on 425t is tested, but
  all other variants (TigerShark, Hyperion, DaVinci, GatorBox, Renaissance)
  should also work if they are working on OpenBSD/hp300.
- sti(4) and SGC bus support are not pulled because I don't have 425e
  and I can't confirm that 362 and 382 actually have SGC bus.
  (I'll commit a DIO based dumb driver for 362 and 382 framebuffers later)
- Xorg server with wsfb driver will also be integrated soon
  once after keycode with NoSymbol problem is addressed.
  (We have to re-think what code should be used on WSDISPLAY_COMPAT_RAWKBD)
- MI HIL keyboard and mouse drivers are working fine though
  cngetc via hilkbd has some problem (still we can input commands).
- No old HP-UX like HIL ioctl compatibility (we removed COMPAT_HPUX anyway).
  grfinfo(8) and hilinfo(8) will be removed shortly.

Demonstrated on NetBSD booth at Open Source Conference 2011 Kagawa.
2011-02-06 18:26:51 +00:00
hubertf 6a5bb11672 Fix MAKEDEV on shark: Move ses(4) devices from MI code (MAKEDEV.tmpl) to
those platforms that actually have the driver.

See also:
http://mail-index.netbsd.org/tech-userlevel/2007/01/08/0001.html

Fixes PR 26511 properly.

OK'd by wrstuden@
2007-01-15 23:35:11 +00:00
tsutsui 76540c92cb Remove compat symlink entries for old dca(4), dcm(4) and apci(4).
Now they might cause other problems.
2005-10-07 16:15:41 +00:00
lukem e2288a51a0 Add warn() to display message to stderr prefixed by the script name,
and use appropriately.
2003-12-22 22:26:32 +00:00
lukem fcdfdbba5c Rework MAKEDEV:
*	Use "mknod -F netbsd -r" to create nodes, instead of
	"rm ; mknod; chmod; chown".
	This means permissions & ownership of existing nodes will
	not be changed.
	This is up to 30% faster when populating an empty /dev,
	and nearly 2x faster when re-running on an existing /dev.

    *	New options:
    	-f		force change of permission & ownership of existing
			devices
    	-m mknod	override name/path of mknod program
			(which defaults to $TOOL_MKNOD, then "mknod").
	-s		generate mtree(8) specfile instead of creating devices

    *	Remove /usr/etc from $PATH; not needed anymore.

    *	Provide functions to create devices & directories:
	    mkdev name [b|c] major minor [mode{=600} [gid{=0} [uid{=0}]]]
		create device node `name' with the appropriate permissions
	    lndev src target
		create a symlink from src to target
	    makedir dir mode
		create directory with appropriate mode

    *	UIDs and GIDs are hardcoded in at MAKEDEV generation time.
	(Unfortunately there's not a simple way of determining a GID
	a la "id -n user" for determining a UID).

This was tested by generating MAKEDEV for each MACHINE,MACHINE_ARCH
combination and comparing the results of "MAKEDEV all" from the
previous version to the new one.
(This testing actually highlighted mistakes in the previous configuration!)


Simplify distrib/common/Makefile.makedev to use "MAKEDEV -s"
2003-12-21 17:37:26 +00:00
he a085af0d99 Change "ln -sf" to "ln -fs" to placate makedev2spec.awk. 2003-12-14 19:09:34 +00:00
tsutsui 4c8374cf19 Update MD entries for DCA, DCM and APCI serial ports to migrate MI com(4):
- use ttyC[0123] for DCA and APCI with MI com(4)
- use ttyM[0-f] for DCM instead of tty0[0-f] to avoid confusion with MI com(4)
- create the foloowing symlnks to compatibility:
 tty0  -> ttyC0 (for DCA)
 ttya0 -> ttyC1 (for APCI)
 ttya1 -> ttyC2 (for APCI)
 ttya2 -> ttyC3 (for APCI)
 tty0? -> ttyM? (for DCM)
- note the above symlinks should be removed after the next release

As per discussion on recent port-hp300 (ok'ed by thorpej).
2003-11-22 17:20:08 +00:00
he 4318508981 'rd' under 'all' should be 'rd2', so make it so. 2003-11-01 19:02:54 +00:00
jdolecek 1eeb241e42 sync with reality, put back some entries mistakely omitted
in the initial conversion from MD MAKEDEV
2003-10-24 08:20:26 +00:00
jdolecek 7a46124ea4 determine the platform number of disk partitions by looking
at MAXPARTITIONS/OLDMAXPARTITIONS in kernel sources, so that it wouldn't
need to be specified separately in MAKEDEV.conf

change platform MAKEDEV.conf to contain only MD targets and nothing else;
simplify the parsing in MAKEDEV.awk accordingly
2003-10-19 19:07:26 +00:00
jdolecek cf58aa2b57 remove copyright notice accidentaly carried over from the hp300
MAKEDEV script
2003-10-19 18:50:35 +00:00
jdolecek 7126da0813 MD part of unified MAKEDEV
this contains information about disk partitions used by platform,
and MD MAKEDEV targets, such as 'init', MD part of 'all',
as well as any other MD-specific targets not covered by MAKEDEV.tmpl
2003-10-15 19:13:32 +00:00