Home | History | Annotate | only in /src/etc/etc.luna68k
History log of /src/etc/etc.luna68k
RevisionDateAuthorComments
 1.31 24-Oct-2003  jdolecek switch over to unified MAKEDEV
 1.30 10-Oct-2003  jdolecek reassing majors for crypto and pf to use the newly defined MI major range
 1.29 03-Oct-2003  dsl Add a /dev/constty == /dev/console but with minor 1.
Use for tty sessions on 'console' so that output doesn't pinched by anyone
using TIOCCONS to get kernel and system messages.
 1.28 05-Sep-2003  dsl Put back port specific majors for ptys
 1.27 30-Aug-2003  dsl Change the way pseudo tty devices are generated in order to avoid
any pipes and running other commands (eg dd).
Measurable speeds up creating pseudo ttys.
(there has to be a better way than editing 51 files! - tedious at only
6 key presses per file)
 1.26 22-Aug-2003  itojun create /dev/crypto
 1.25 27-Jul-2003  itojun reserve cdev major # for PF. ok'ed by technical-exec
 1.24 27-Apr-2003  ragge Add ksyms to "std" devices.
 1.23 17-Apr-2003  fvdl Add an 'init' target, that creates the device nodes in the case where
MAKEDEV is being called from init(8) to create an MFS /dev. For most
ports, this is the same as 'all'. The only exceptions are i386 and
x86_64.
 1.22 31-Mar-2003  perry make ipl consistently "IP Filter"
 1.21 21-Oct-2002  lukem whitespace consistency cleanup
 1.20 04-Oct-2002  elric Include cgd on the list of things to be mknod(8)ed on all arches.
 1.19 09-Aug-2002  lukem - in local), only run $0.local if it is an existing file
(prevents spurious warning for mfs /dev, amongst other things)
- for mipsco, news68k, newsmips: ensure that "umask 77" is run after $0.local
- for playstation2: add local) target, and use in all) (for consistency)
 1.18 18-Jun-2002  wiz Add note about how to make MAKEDEV(8).
 1.17 17-Jun-2002  christos Add device creation support for systrace.
 1.16 13-Mar-2002  simonb branches: 1.16.2;
Remove trailing semicolons from lines that don't need them.
TABify many lines.
 1.15 04-Mar-2002  lukem various cleanups inspired by etc.i386/MAKEDEV:

* use "ln -fs foo bar" instead of "rm -f bar; ln -s foo bar"

* remove unnecessary chown root or chgrp wheel directives; older code here
didn't bother doing this, so why be inconsistent

* when making directories, don't use -p and don't redirect stdout to /dev/null

* clean up whitespace

* wrap the main parser code in a function makedev(), and call makedev
instead of "sh $0". (this is a bit faster)

* don't barf when we have fdesc mounted; just skip the devices fdesc provides


(these files should really be automagically generated...)
 1.14 03-Mar-2002  toshii Use a tab instead of 7 spaces.
 1.13 25-Feb-2002  atatat Change a 62 to a 16, so that the proper number of slots is skipped.
Fixes PR 15650.
 1.12 02-Feb-2002  tls Fix minor mistake made while increasing number of pty devices: where we had
"pty0 pty1 pty2 pty3" before, for a total of 64 device nodes, we now want
just "pty0" for a total of 62 -- the original commit had "pty0 pty1" for a
total of 124, which ate too many inodes and made "ls /dev" a bit messy.
 1.11 02-Feb-2002  tls Add support for many more (930 or 992) ptys than the current 256.

Changes taken from the i386 MAKEDEV. Note that the unusual use of 'dd'
to index an array was chosen because 'dd' is on all ports' install media.

This form of this change comes from Andrew Brown; the original idea to
bump the number of ptys this way comes from Brian Marcotte at Panix.
 1.10 13-Jan-2002  manu Added clockctl
 1.9 19-Dec-2001  wiz Standardize ch* and uk* descriptions.
 1.8 19-Dec-2001  wiz Standardize scsibus* description.
 1.7 21-Feb-2001  nisimura Make sure to have rnd pseudo device.
 1.6 29-Oct-2000  tsutsui Make md(4) device files on "all" target.
 1.5 27-Jul-2000  mason Move to a default of 64 PTYs in "all" targets. Normalize "floppy" and
"minimal" targets to use 16 PTYs.
 1.4 26-Feb-2000  tsutsui branches: 1.4.4;
Remove extra `;' in md* entry.
 1.3 21-Jan-2000  tsutsui - rename (revert) normal memory disk device name /dev/mdX -> /dev/mdXa
- now raw partitions are used for memory disk ioctls
 1.2 13-Jan-2000  nisimura Add raidframe and fix bozos and typos I made.
-
 1.1 05-Jan-2000  nisimura Introduce NetBSD/luna68k port into CVS repository.
 1.4.4.1 11-Aug-2000  mason Create 64 PTYs in "all" target by default.
Requested by mason, approved by jhawk.
 1.16.2.1 10-Aug-2002  lukem Pull up revision 1.19 (requested by lukem):
- in local), only run $0.local if it is an existing file
(prevents spurious warning for mfs /dev, amongst other things)
- for mipsco, news68k, newsmips: ensure that "umask 77" is run after $0.local
- for playstation2: add local) target, and use in all) (for consistency)
 1.11 09-Mar-2017  tsutsui Add a driver for LUNA's front panel LCD. Ported from OpenBSD/luna88k.

Reviewed by enami@. Tested by Naruaki Etomi and me.

A 68k LUNA with this driver will be demonstrated at AsiaBSDCon NetBSD booth
by Etomi-san, with LUNA-88K2 running OpenBSD/luna88k by Kenji Aoyama.
 1.10 16-Feb-2017  tsutsui Make sure to prepare /dev/xp node entry.

Missed in the initial xp(4) support import:
http://mail-index.netbsd.org/source-changes/2016/12/03/msg079493.html
 1.9 03-Dec-2016  tsutsui branches: 1.9.2;
Preliminary support for LUNA's HD647180X I/O processor (a.k.a. XP).

Demonstrated as "PSG tunes / PCM wav player on LUNA"
(using Z80 PSG/PCM drivers ported from NEC PC-6001)
at OSC2016 Kyoto and OSC2016 Hiroshima:
http://mail-index.netbsd.org/netbsd-advocacy/2016/08/01/msg000712.html
http://mail-index.netbsd.org/netbsd-advocacy/2016/11/29/msg000724.html
 1.8 14-Jan-2013  tsutsui branches: 1.8.10; 1.8.14; 1.8.16;
Tweak ramdisk devices.
- create sd2 and sd3 for external SCSI disks on LUNA-II
- ipty (2 ptys) is enough for sysinst rather than opty (16 ptys)
 1.7 16-Aug-2012  abs branches: 1.7.2;
Add 'bpf' to all ramdisk targets (*), or floppy targets if ramdisk calls that.
Sort bpf to come directly after 'std' where relevant.
* (apart from etc.evbppc who's ramdisk target *only* builds md0,
which just doesn't make sense).
Should allow a fighting chance for dhcpcd to get an IP address.
 1.6 02-Dec-2011  tsutsui - create scsibus1 for external SCSI bus on LUNA-II
- also create sd1 sd2 sd3 cd0 cd1 st1 devices on all_md
 1.5 16-Jul-2011  tsutsui branches: 1.5.2;
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.
 1.4 21-Dec-2003  lukem 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"
 1.3 19-Oct-2003  jdolecek 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
 1.2 19-Oct-2003  jdolecek use target 'wscons' to create wscons-related devices; this creates
also some additional control devices besides the terminal devices, which
are needed for full operation
 1.1 15-Oct-2003  jdolecek 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
 1.5.2.3 23-Jan-2013  yamt sync with head
 1.5.2.2 30-Oct-2012  yamt sync with head
 1.5.2.1 17-Apr-2012  yamt sync with head
 1.7.2.1 25-Feb-2013  tls resync with head
 1.8.16.2 13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.8.16.1 18-Jan-2017  skrll Sync with netbsd-5
 1.8.14.2 20-Mar-2017  pgoyette Sync with HEAD
 1.8.14.1 07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.8.10.2 19-Feb-2017  snj Pull up following revision(s) (requested by tsutsui in ticket #1360):
etc/etc.luna68k/MAKEDEV.conf: revision 1.10
Make sure to prepare /dev/xp node entry.
Missed in the initial xp(4) support import:
http://mail-index.netbsd.org/source-changes/2016/12/03/msg079493.html
 1.8.10.1 06-Dec-2016  snj Pull up following revision(s) (requested by tsutsui in ticket #1283):
distrib/sets/lists/comp/md.luna68k: revision 1.21
etc/etc.luna68k/MAKEDEV.conf: revision 1.9
sys/arch/luna68k/conf/GENERIC: revision 1.120
sys/arch/luna68k/conf/files.luna68k: revision 1.25
sys/arch/luna68k/conf/majors.luna68k: revision 1.21
sys/arch/luna68k/dev/xp.c: revision 1.1
sys/arch/luna68k/include/Makefile: revision 1.19
sys/arch/luna68k/include/xpio.h: revision 1.1
sys/arch/luna68k/luna68k/mainbus.c: revision 1.14
Preliminary support for LUNA's HD647180X I/O processor (a.k.a. XP).
Demonstrated as "PSG tunes / PCM wav player on LUNA"
(using Z80 PSG/PCM drivers ported from NEC PC-6001)
at OSC2016 Kyoto and OSC2016 Hiroshima:
http://mail-index.netbsd.org/netbsd-advocacy/2016/08/01/msg000712.html
http://mail-index.netbsd.org/netbsd-advocacy/2016/11/29/msg000724.html
 1.9.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.7 13-Nov-2014  tsutsui Stop building a.out kernels so that mkldscript.sh is no longer necessary.

Tested "build.sh release", and the default ELF GENERIC kernel loaded by
the native bootloader just works on LUNA-II.
 1.6 17-Oct-2011  tsutsui Make sure to put a.out GENERIC kernel into distribution.
 1.5 16-Jul-2011  tsutsui 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.
 1.4 24-Jul-2007  pavel branches: 1.4.18;
Add a comment reminding to update the release notes if the list of
kernels change.
 1.3 02-Dec-2002  lukem - add snap_post, which makes "clean depend all release" in ../distrib/
for all platforms.
- remove now unnecessary replicated code in the various snap_md_post targets
- remove snap_md_pre; nothing uses it any more
- use ${NETBSDSRCDIR} and ${KERNSRCDIR} as appropriate
 1.2 10-May-2002  jdolecek kill leftovers from the original
 1.1 08-May-2002  jdolecek add skeleton snapshot/release build hook
someone should actually write the distrib bits for luna68k eventually
 1.4.18.2 24-Jul-2007  pavel Add a comment reminding to update the release notes if the list of
kernels change.
 1.4.18.1 24-Jul-2007  pavel file Makefile.inc was added on branch matt-mips64 on 2007-07-24 10:49:27 +0000
 1.3 19-Dec-2002  jdolecek use single minimal default disktab file for most archs, replacing
MD disktab where possible (everything but vax)
the MD disktab was often either empty, or contained entries even for disks
which support geometry autodetection (SCSI), and/or non-interesting/long
obsolete entries

the old records are still available in example disktab in
/usr/share/examples/disktab/disktab in case anyone would need them
 1.2 07-May-2002  simonb Fix some white space niggles.
 1.1 07-May-2002  jdolecek add minimal disktab, with comments only (derived from pmax one)
 1.9 25-Sep-2019  abs 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
 1.8 14-Jan-2013  tsutsui branches: 1.8.32; 1.8.34;
Add an entry for wscons ttyE0.
 1.7 07-Oct-2008  abs branches: 1.7.18; 1.7.24;
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
 1.6 20-Jun-2004  christos branches: 1.6.26;
remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.
 1.5 04-Oct-2003  dsl Revert 'console' back to /dev/console (from /dev/constty)
 1.4 03-Oct-2003  dsl Change 'console' login to use /dev/constty so that its output isn't
stolen by code that requests system messages using TIOCCONS.
 1.3 13-Feb-2002  martti Added ttyp[g-zA-Z] (bin/15594).
 1.2 12-Aug-2000  mason This should be the final part of moving to 64 PTYs by default. Added
entries for tty{r,s}{0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f} to /etc/ttys.

Thanks to Matthew Green for pointing out the need.
 1.1 05-Jan-2000  nisimura branches: 1.1.4;
Introduce NetBSD/luna68k port into CVS repository.
 1.1.4.1 12-Aug-2000  mason This should be the last piece of the move to 64 default PTYs. /etc/ttys now
has entries for 64 ptys.

Thanks to Matthew Green for pointing out the need for this.
 1.6.26.1 17-Jan-2009  mjf Sync with HEAD.
 1.7.24.1 25-Feb-2013  tls resync with head
 1.7.18.1 23-Jan-2013  yamt sync with head
 1.8.34.1 28-Oct-2019  martin Pull up following revision(s) (requested by abs in ticket #384):

etc/etc.evbmips/ttys: revision 1.7
etc/etc.sparc64/ttys: revision 1.12
etc/etc.shark/ttys: revision 1.9
etc/etc.amiga/ttys: revision 1.25
etc/etc.arc/ttys: revision 1.9
etc/etc.sbmips/ttys: revision 1.6
etc/etc.landisk/ttys: revision 1.4
etc/etc.alpha/ttys: revision 1.13
etc/etc.amigappc/ttys: revision 1.4
etc/etc.mmeye/ttys: revision 1.8
etc/etc.ia64/ttys: revision 1.2
etc/etc.sandpoint/ttys: revision 1.8
etc/etc.hp300/ttys: revision 1.17
etc/etc.riscv/ttys: revision 1.2
etc/etc.i386/ttys: revision 1.21
etc/etc.aarch64/ttys: revision 1.2
etc/etc.algor/ttys: revision 1.6
etc/etc.sparc/ttys: revision 1.17
etc/etc.mipsco/ttys: revision 1.7
etc/etc.luna68k/ttys: revision 1.9
etc/etc.iyonix/ttys: revision 1.5
etc/etc.evbcf/ttys: revision 1.3
etc/etc.netwinder/ttys: revision 1.9
etc/etc.mvme68k/ttys: revision 1.10
etc/etc.evbarm/ttys: revision 1.8
etc/etc.evbsh3/ttys: revision 1.7
etc/etc.pmax/ttys: revision 1.16
etc/etc.hpcmips/ttys: revision 1.12
etc/etc.vax/ttys: revision 1.10
etc/etc.news68k/ttys: revision 1.10
etc/etc.mvmeppc/ttys: revision 1.7
etc/etc.hppa/ttys: revision 1.2
etc/etc.next68k/ttys: revision 1.11
etc/etc.ews4800mips/ttys: revision 1.3
etc/etc.epoc32/ttys: revision 1.2
etc/etc.emips/ttys: revision 1.2
etc/etc.evbppc/ttys: revision 1.7
etc/etc.sgimips/ttys: revision 1.11
etc/etc.or1k/ttys: revision 1.2
etc/etc.cesfic/ttys: revision 1.6
etc/etc.amd64/ttys: revision 1.7
etc/etc.playstation2/ttys: revision 1.7
etc/etc.zaurus/ttys: revision 1.4
etc/etc.newsmips/ttys: revision 1.10

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
 1.8.32.1 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed