Commit graph

272 commits

Author SHA1 Message Date
Ben Gras
3cc092ff06 . new kernel call sysctl for generic unprivileged system operations;
now used for printing diagnostic messages through the kernel message
   buffer. this lets processes print diagnostics without sending messages
   to tty and log directly, simplifying the message protocol a lot and
   reducing difficulties with deadlocks and other situations in which
   diagnostics are blackholed (e.g. grants don't work). this makes
   DIAGNOSTICS(_S), ASYN_DIAGNOSTICS and DIAG_REPL obsolete, although tty
   and log still accept the codes for 'old' binaries. This also simplifies
   diagnostics in several servers and drivers - only tty needs its own
   kputc() now.
 . simplifications in vfs, and some effort to get the vnode references
   right (consistent) even during shutdown. m_mounted_on is now NULL
   for root filesystems (!) (the original and new root), a less awkward
   special case than 'm_mounted_on == m_root_node'. root now has exactly
   one reference, to root, if no files are open, just like all other
   filesystems. m_driver_e is unused.
2009-01-26 17:43:59 +00:00
Ben Gras
7d48584659 profbuf syscall 2009-01-09 17:47:38 +00:00
Ben Gras
b6b361a474 rc script needs to open its own stdin, stdout and stderr 2008-12-11 14:50:56 +00:00
Ben Gras
011de3ac49 everyone needs GETINFO for HZ 2008-12-11 14:50:28 +00:00
Ben Gras
c078ec0331 Basic VM and other minor improvements.
Not complete, probably not fully debugged or optimized.
2008-11-19 12:26:10 +00:00
David van Moolenbroek
e8b863702a Added lance entry to drivers.conf. 2008-07-22 15:11:01 +00:00
Philip Homburg
75520b7403 ipc restrictions for some drivers and I/O MMU (amddev) 2008-02-21 16:24:35 +00:00
Ben Gras
c67a56708e es1370 driver and updated es1371 and framework by Pieter Hijma. 2007-11-23 11:40:33 +00:00
Ben Gras
1327804478 MFS doesn't need sys_exit(). 2007-10-23 14:24:41 +00:00
Ben Gras
515e8216e1 Basic entry for dpeth suggested by Jens de Smit. 2007-10-17 11:02:33 +00:00
Philip Homburg
341270673b mfs no longer needs access to VIRCOPY, Added rs.inet. Start inet with
rs.inet as the restart script.
2007-08-15 12:56:35 +00:00
Ben Gras
a80365f407 . add checks to printer driver kernel calls
. correct some i/o locations for printer in drivers.conf
2007-08-06 11:17:08 +00:00
Ben Gras
816f5dd550 a driver for wireless pci cards with the Prism chipset from Intersil
Original version, by Stevens Le Blond and Michael Valkering.
2007-07-24 14:49:09 +00:00
Ben Gras
ed920a691d include 'printer' driver 2007-05-30 15:40:12 +00:00
Ben Gras
b6cd5d0351 Include fonts blobs in src repository. 2007-05-16 13:00:43 +00:00
Philip Homburg
2db15eaa80 Added fxp. rtl8139 doesn't need to be root anymore. 2007-05-02 11:40:15 +00:00
Ben Gras
b49ba611bd shell at least as big in 'big' as in normal 2007-05-01 14:11:10 +00:00
Philip Homburg
29f7031340 Remove KILL and VIRCOPY from drivers that don't need them. Added rtl8139. 2007-04-23 15:39:46 +00:00
Ben Gras
8aa0d26891 update binary_sizes to not make binaries smaller than the build does. 2007-04-17 13:50:58 +00:00
Ben Gras
ef8ec86b78 Don't always update CMOS on shutdown. 2007-04-10 13:40:09 +00:00
Ben Gras
7b4cfd585a as needs more. 2007-04-05 10:47:04 +00:00
Ben Gras
3354ba1b6c . add /usr/share for zoneinfo
. throw out non-base /usr/gnu stuff
2007-04-05 10:37:22 +00:00
Ben Gras
70b95c31bc version /usr/lib/crontab too 2007-04-02 16:18:46 +00:00
Ben Gras
3fcf9fde61 Make /dev/mouse an alias for /dev/kbdaux for X 2007-03-08 16:04:59 +00:00
Ben Gras
f150b11a7b Removed args debugging line 2007-02-16 15:58:05 +00:00
Ben Gras
0d5c50f3fc Update CMOS time at shutdown time. 2007-02-16 15:52:39 +00:00
Ben Gras
b857dec78d Don't complain about missing ip address. 2007-02-09 16:28:34 +00:00
Ben Gras
e8edfe876d . no .vimrc in standard user's dirs
. install a vi hardlink to elvis
2007-01-22 17:08:36 +00:00
Ben Gras
2194bc0310 vfs/mount/rs/service changes:
. changed umount() and mount() to call 'service', so that it can include
   a custom label, so that umount() works again (RS slot gets freed now).
   merged umount() and mount() into one file to encode keep this label
   knowledge in one file.
 . removed obsolete RS_PID field and RS_RESCUE rescue command
 . added label to RS_START struct
 . vfs no longer does kill of fs process on unmount (which was failing
   due to RS_PID request not working)
 . don't assume that if error wasn't one of three errors, that no error
   occured in vfs/request.c
mfs changes:
 . added checks to copy statements to truncate copies at buffer sizes
   (left in debug code for now)
 . added checks for null-terminatedness, if less than NAME_MAX was copied
 . added checks for copy function success
is changes: 
 . dump rs label
drivers.conf changes:
 . added acl for mfs so that mfs can be started with 'service start',
   so that a custom label can be provided
2007-01-22 15:25:41 +00:00
Ben Gras
f47aa04a30 . removed readclock command and cmos driver.
. replaced by a readclock 'driver' that runs once, a re-imported version
  of the minix 2.0.4 readclock command.
. this has also restored cmos writing.
. readclock wrapper script calls service command to run /bin/readclock.drv
  once.
2007-01-12 16:35:04 +00:00
Ben Gras
53a6054b66 arch/i386/include/protect.h is unnecessary; add make.conf to etc/ and
note about it in docs/UPDATING.
2006-12-22 15:48:27 +00:00
Ben Gras
6f77685609 Split of architecture-dependent and -independent functions for i386,
mainly in the kernel and headers. This split based on work by
Ingmar Alting <iaalting@cs.vu.nl> done for his Minix PowerPC architecture
port.

 . kernel does not program the interrupt controller directly, do any
   other architecture-dependent operations, or contain assembly any more,
   but uses architecture-dependent functions in arch/$(ARCH)/.
 . architecture-dependent constants and types defined in arch/$(ARCH)/include.
 . <ibm/portio.h> moved to <minix/portio.h>, as they have become, for now,
   architecture-independent functions.
 . int86, sdevio, readbios, and iopenable are now i386-specific kernel calls
   and live in arch/i386/do_* now.
 . i386 arch now supports even less 86 code; e.g. mpx86.s and klib86.s have
   gone, and 'machine.protected' is gone (and always taken to be 1 in i386).
   If 86 support is to return, it should be a new architecture.
 . prototypes for the architecture-dependent functions defined in
   kernel/arch/$(ARCH)/*.c but used in kernel/ are in kernel/proto.h
 . /etc/make.conf included in makefiles and shell scripts that need to
   know the building architecture; it defines ARCH=<arch>, currently only
   i386.
 . some basic per-architecture build support outside of the kernel (lib)
 . in clock.c, only dequeue a process if it was ready
 . fixes for new include files

files deleted:
 . mpx/klib.s - only for choosing between mpx/klib86 and -386
 . klib86.s - only for 86

i386-specific files files moved (or arch-dependent stuff moved) to arch/i386/:
 . mpx386.s (entry point)
 . klib386.s
 . sconst.h
 . exception.c
 . protect.c
 . protect.h
 . i8269.c
2006-12-22 15:22:27 +00:00
Ben Gras
7d012272a1 make pci driver run as root, so it can call procstat 2006-12-15 15:56:36 +00:00
Philip Homburg
954ad990e5 at_wini now calls pci_reserve. 2006-11-01 14:55:00 +00:00
Philip Homburg
0c1d433f60 rs changes (also use driver configurations in the image ramdisk) 2006-10-31 13:35:04 +00:00
Ben Gras
b5b76d5691 Reorder for port order, and add svn (Subversion) as service (port 3690) 2006-09-27 13:55:54 +00:00
Philip Homburg
c39a693274 Disabled /etc/rc.rescue 2006-09-08 13:20:57 +00:00
Ben Gras
8f7876b1d1 /usr/local/gnu removed as prefix; gcc libs go into /usr/local/lib/gcc now 2006-08-15 15:58:24 +00:00
Ben Gras
99644bed66 /usr/local/src for easypack-fetched sources. 2006-07-31 11:40:14 +00:00
Ben Gras
0020ad8ac7 Make /usr/local/lib/{ack,gcc} for ack and gcc format libraries. 2006-07-21 16:09:05 +00:00
Ben Gras
0d9976ae9f Don't call X 'X Windows'. 2006-07-19 10:51:30 +00:00
Ben Gras
cef426ee54 There is no lex. 2006-06-20 10:14:25 +00:00
Ben Gras
28290d0898 install motd as motd.install 2006-04-13 18:06:22 +00:00
Ben Gras
96e45935a1 Undo issue 2006-04-13 17:49:54 +00:00
Ben Gras
b2648f99b7 Install dinks 2006-04-13 17:47:51 +00:00
Ben Gras
b539acfbd2 message 2006-04-13 14:38:16 +00:00
Ben Gras
4a8d5f5e38 fiX 2006-04-13 14:36:11 +00:00
Ben Gras
35d96ce368 Newline fix 2006-04-13 14:30:05 +00:00
Ben Gras
928b493106 Andy's issue. 2006-04-13 14:29:11 +00:00
Ben Gras
c3a0a231c6 Andy's motd 2006-04-13 14:27:16 +00:00
Ben Gras
7a0f8e28ba Start nonamed in local mode by default 2006-04-11 13:42:58 +00:00
Ben Gras
103f18cb1f (1) remove ftpd in favour of ftpd200
(2) add /etc/rc.daemons.dist, can be copied to /etc/rc.daemons
    if user wants the standard daemons to run, which are no longer run
    by default
2006-04-11 11:55:45 +00:00
Ben Gras
ae0b780257 ssh port 2006-04-10 15:36:48 +00:00
Ben Gras
04a1d3b3d7 Disable debug log 2006-04-05 14:25:21 +00:00
Ben Gras
978feddf13 Don't do this here too 2006-04-05 11:27:25 +00:00
Ben Gras
6137c5898c -f 2006-04-05 09:29:18 +00:00
Ben Gras
3b6220fe77 Add /usr/local/gnu/lib 2006-04-04 16:15:34 +00:00
Ben Gras
7a1853a524 Remove old syslogd.pid at boot time 2006-04-04 16:12:08 +00:00
Ben Gras
ea398f994a Only fiddle with /var/log on cd 2006-04-04 13:44:23 +00:00
Ben Gras
3775ce2eba Fixes for /var/log 2006-04-04 13:31:56 +00:00
Ben Gras
51e2078d8a Bah 2006-04-04 12:14:18 +00:00
Ben Gras
a3dfe3c9a4 Make /var/log writable (in /tmp); start syslogd after that 2006-04-04 11:52:57 +00:00
Ben Gras
910d6c8255 Added a default $MANPATH 2006-04-03 14:26:53 +00:00
Ben Gras
14a82e2d05 start syslogd instead of usyslogd ; include syslog.conf 2006-04-03 13:09:47 +00:00
Ben Gras
61f8571ff2 postfix complaint 2006-03-31 22:33:29 +00:00
Ben Gras
8b8fecf10d Add rsync ass service 2006-03-31 20:37:54 +00:00
Ben Gras
b057dcf920 Mail user+group 2006-03-30 22:10:32 +00:00
Ben Gras
99158dbdfc Add pty entries 2006-03-29 10:03:49 +00:00
Ben Gras
3e6ec29095 psip fix 2006-03-28 13:38:52 +00:00
Ben Gras
ef676bd39b Set ip address manually without dhcp when psip is set in /etc/inet.conf. 2006-03-28 12:35:33 +00:00
Ben Gras
354a40a813 Added full termcap file from
http://www.catb.org/terminfo/termtypes.tc.gz
as termcap.big and screen entries to termcap
2006-03-27 14:16:45 +00:00
Ben Gras
9b0832bbdd Update packme -> packman 2006-03-26 19:39:15 +00:00
Ben Gras
e28fe339bf Pports iwll go in commands, not bigports 2006-03-22 20:06:26 +00:00
Ben Gras
4269039311 NE 2006-03-17 12:32:32 +00:00
Ben Gras
f889a34b58 Package message 2006-03-17 12:31:35 +00:00
Ben Gras
827159c8ea *** empty log message *** 2006-03-17 08:15:13 +00:00
Ben Gras
6257b0a0dc More for em_opt for bzip2 2006-03-16 12:53:04 +00:00
Ben Gras
84ba9dd4d3 Dinks for the (source/binary) package scripts 2006-03-15 17:02:46 +00:00
Ben Gras
682efc75e5 Wait longer for ip address (fxp) 2006-03-10 17:33:15 +00:00
Ben Gras
498e232a5c Keep file modes and such 2006-03-10 14:35:15 +00:00
Ben Gras
bf081105f1 No label stuff. All drivers. 2006-03-10 12:43:26 +00:00
Ben Gras
4d115fcd91 rc: don't start floppy or at driver
passwd: add games for nethack
2006-03-08 12:21:40 +00:00
Ben Gras
aa3932eb8b Added 'xxl' binsizes size for x.
Leave sh and make at normal size for 'big'.
Call binsizes normal after creating release.
2006-03-03 12:44:22 +00:00
Ben Gras
fec2fa95e2 It's not always initialization 2006-02-20 15:11:41 +00:00
Ben Gras
ba667a0774 Don't copy memory to rescue
local package initialization
2006-02-17 16:46:08 +00:00
Ben Gras
17032f9909 Make a /usr/local/etc/rc.d 2006-02-17 15:14:46 +00:00
Ben Gras
c2f668d1d2 Refix 2006-02-17 14:05:46 +00:00
Ben Gras
2fa6eb3993 memory moved 2006-02-17 13:19:10 +00:00
Ben Gras
fc1582bb57 sshd user 2006-02-16 15:38:13 +00:00
Philip Homburg
c3a88d15d8 Initial root filesystem is now on a ramdisk that is part of the image. 2006-02-15 11:18:21 +00:00
Ben Gras
28087e3f17 *** empty log message *** 2006-02-03 15:41:58 +00:00
Ben Gras
23bcf287cb Let symlinks be in the installed set of files ; make symlink from /var/log to
/usr/log.
2006-01-25 13:00:14 +00:00
Ben Gras
6fab0ee47b more memory for as 2006-01-18 10:29:48 +00:00
Ben Gras
093cfe1143 . less verbose cd /usr debugging
. save random data only if /usr is mounted rw, don't display error otherwise
2006-01-18 09:33:09 +00:00
Ben Gras
428f9d63c4 Don't print randomness error when booting from install cd. 2006-01-17 17:57:40 +00:00
Jorrit Herder
2aac756e76 New up() functions in rc scripts. 2005-11-28 15:39:01 +00:00
Ben Gras
4b59679ebb Add /usr/spool/mail 2005-11-16 13:49:13 +00:00
Ben Gras
549e0bb855 Include X in path 2005-11-14 18:40:36 +00:00
Jorrit Herder
7a7e680da7 Added periodic checks from RS to drivers. 2005-10-21 14:34:13 +00:00
Jorrit Herder
4243d8e6bc Rescue script fixes. 2005-10-21 13:23:22 +00:00
Ben Gras
f0985a4e97 No /usr/gnu/bin in $PATH 2005-10-21 11:49:26 +00:00
Ben Gras
ca5b81bf6f /etc/rc.rescue initializes driver rescue environment 2005-10-21 10:47:13 +00:00
Ben Gras
fb7fb9e92c /boot/rescue (mount point for /dev/rescue) 2005-10-21 10:00:34 +00:00
Jorrit Herder
3e78f1aaa6 Tell RS server about upcoming shutdown. 2005-10-20 20:38:58 +00:00
Ben Gras
eedca63a05 bugs in trunk 2005-10-18 21:06:46 +00:00
Ben Gras
d371e7eac4 A .vimrc that makes vim colours work on the minix console and in xterm. 2005-10-11 17:55:14 +00:00
Ben Gras
04822e9cc9 Add /usr/gnu/bin to $PATH as last search step 2005-10-10 14:42:06 +00:00
Ben Gras
122c3ee967 don't make /usr/home any more 2005-10-06 15:28:19 +00:00
Ben Gras
5fd54a0d53 Print fsck messages to explain delays 2005-10-04 14:35:36 +00:00
Ben Gras
7de574f035 Let make install in src/etc also work from a source tree that isn't /usr/src 2005-09-30 11:45:59 +00:00
Ben Gras
17f7adebc5 Give ttys back 2005-09-25 20:29:33 +00:00
Ben Gras
6c4ba65530 *** empty log message *** 2005-09-25 17:30:12 +00:00
Ben Gras
dced21c350 vi kludge no longer needed 2005-09-12 22:07:10 +00:00
Ben Gras
0c12711e93 Restore /usr/ast 2005-09-09 13:23:34 +00:00
Ben Gras
75cb21f407 start lance driver too if/when selected 2005-09-08 21:15:11 +00:00
Ben Gras
c26fce0366 Include gnu hierachy 2005-09-08 12:21:45 +00:00
Ben Gras
42c8bb30f8 bin and ast to /home 2005-09-07 09:21:47 +00:00
Ben Gras
95348ccf2a big got bigger (for emacs) 2005-09-05 15:59:17 +00:00
Ben Gras
5c15fed299 oops 2005-09-01 16:58:19 +00:00
Ben Gras
e6ca4ed1bf oops 2005-09-01 16:27:49 +00:00
Ben Gras
946603a68c /home fixes 2005-09-01 16:26:22 +00:00
Ben Gras
0be5f3cf7b reorder drivers for more efficient making
mtree - added /usr/gnu

release - fiddling with deleting unwanted bits before copying for more
efficient packing
2005-09-01 12:30:17 +00:00
Ben Gras
e0e9e78d8e First /home steps 2005-08-31 16:29:56 +00:00
Ben Gras
9aa010403a Nits reported by Patrick Simpson 2005-08-31 13:06:51 +00:00
Ben Gras
6a56df46e9 *** empty log message *** 2005-08-30 16:56:46 +00:00
Ben Gras
f75536198d Minix sizing 2005-08-30 10:20:47 +00:00
Ben Gras
92cb06d0e9 Added binary (compiler) size adjustment script 2005-08-29 19:38:39 +00:00
Ben Gras
87732bd6e0 Added rc.cd that gets executed when starting from CD. 2005-08-24 07:33:13 +00:00
Ben Gras
695bcec49e *** empty log message *** 2005-08-12 13:31:47 +00:00
Ben Gras
48cb1bcb64 rotate log message 2005-08-12 13:25:27 +00:00
Ben Gras
d41f3858fd changed default INTR key to ^C instead of DEL 2005-08-12 09:40:16 +00:00
Jorrit Herder
3cb000654a Minor changes. 2005-08-11 13:22:31 +00:00
Ben Gras
94095d8727 Formatting fix for if networking isn't enabled. 2005-08-10 15:19:50 +00:00
Ben Gras
09a57f885a Don't source /etc/profile from /etc/rc, but source /etc/rc.timezone as
a timezone instead, and set TZ=GMT0 as a default.
2005-08-09 16:58:28 +00:00
Ben Gras
a4ae9574e9 motd fix;
cp /usr/lib/<compiler stuff> to /lib when on ramdisk;
make a /usr/log (to store logfile there, instead of /var/log).
2005-08-09 14:41:54 +00:00
Ben Gras
ddb8e7300d Took hostaddr out of the loop; if it fails after 10 secs, continue
startup script. (ast@)
2005-08-08 16:56:40 +00:00
Ben Gras
bfb7608412 various small fixes.
. motd update (ast)
 . made /usr/local/man/man* and made them bin-owned (mtree)
   (to let bin install there)
 . made copyright notice in kernel 1987-2006 (ast)
 . added chown -R bin /usr/src so that bin can compile everything
2005-08-08 14:34:10 +00:00
Ben Gras
5789f7abec config version bumped to 307; NOT cvs tagged yet; misc fixes 2005-08-05 19:19:18 +00:00
Jorrit Herder
941b5ebd1c Fix to device table at FS.
BIOS and AT installed in /sbin.
Floppy boot fixed.
2005-08-05 18:57:20 +00:00
Jorrit Herder
7de7ca978d Security check on physical address to be < 16 MB (ISA DMA uses 24-bit
addressing, which can address 16 MB max).
Floppy driver now dynamically loaded.
2005-08-05 16:23:42 +00:00
Philip Homburg
473317e571 Added dp8390 to /usr/etc/rc. Renamed get_mon_prm.c to env_get_prm.c.
Add env_setargs call for access to argc/argv.
2005-08-05 14:20:05 +00:00
Ben Gras
5340cf571d Added essential message to motd. 2005-08-05 12:57:52 +00:00
Ben Gras
e21c135fe5 added /sbin in mtree
/usr/etc/rc now reads variables from /usr/etc/rc.local it can feed to
drivers as args
2005-08-05 10:37:02 +00:00
Jorrit Herder
74711a3b14 Check if kernel calls is allowed (from process' call mask) added. Not yet
enforced. If a call is denied, this will be kprinted. Please report any such
errors, so that I can adjust the mask before returning errors instead of
warnings.

Wrote CMOS driver. All CMOS code from FS has been removed. Currently the
driver only supports get time calls. Set time is left out as an exercise
for the book readers ... startup scripts were updated because the CMOS driver
is needed early on. (IS got same treatment.) Don't forget to run MAKEDEV cmos
in /dev/, otherwise the driver cannot be loaded.
2005-08-04 19:23:03 +00:00
Jorrit Herder
8cb902dce3 Fix. Names were not showing. 2005-08-04 17:00:18 +00:00
Jorrit Herder
40e9875fd6 Startup script now checks if network driver is mentioned in inet.conf.
Also allowed disabling daemons (like services) with disable= parameter.
2005-08-04 16:45:29 +00:00
Jorrit Herder
e561081545 Miscellaneous clean ups and fixes to the kernel.
Support for FLOPPY in boot image. (Set controller=fd at boot monitor.)
Moved major device numbers to <minix/dmap.h> (maybe rename to dev.h?)
2005-08-04 09:26:36 +00:00
Jorrit Herder
89cf745fe2 Single boot driver loaded, while multiple can be included in the boot image.
The user needs to set label=... to choose the driver of his or her choice.
This driver will be mapped onto the controller that is set in controller=...

Minor cleanup of kernel source code (boot image table now is static).
2005-08-03 16:06:35 +00:00
Philip Homburg
c12b74dad5 Random is now a separate driver. 2005-08-03 15:22:41 +00:00
Jorrit Herder
4a8c5316ec Temporarily disabled FLOPPY to prevent mayhem due to ISA DMA below 16 MB. 2005-08-02 16:05:01 +00:00