]> Zhao Yanbai Git Server - minix.git/log
minix.git
10 years agorestore single user mode 29/2829/1
Ben Gras [Fri, 12 Sep 2014 21:15:46 +0000 (23:15 +0200)]
restore single user mode

. the minix init started rc with the 'bootargs' variable.
  this can now be cleanly passed to rc by executing sysenv
  from the ramdisk rc script.

Change-Id: I68d0d2ab0be326b2ae30438a62dd7649b600c2d2

10 years agosmall arm image script changes 28/2828/1
Ben Gras [Fri, 12 Sep 2014 10:34:13 +0000 (12:34 +0200)]
small arm image script changes

. let you specify IMG as a block device directly. this minimizes
  i/o (only write used parts of the filesystem) and so turnaround
  time - while still allowing the big default FS size.

Change-Id: Ib738499464e0d350a474a706f688d3f10806207d

10 years agoTemporarily disable the is9600 FS server 27/2827/1
Lionel Sambuc [Fri, 12 Sep 2014 11:39:49 +0000 (13:39 +0200)]
Temporarily disable the is9600 FS server

It is currently too broken to be of any use anyway. Fixes are pending,
which is why this patch is intended to be reverted before those are
merged.

For the time being, the following tools can be used to access cdroms:
 - isodir
 - isoinfo
 - isoread
 - writeisofs

Change-Id: I681e8f1224bb464ba978f893dc18d46fa06a8208

10 years agousb/hcd: asserts should not have side effects 26/2826/1
Lionel Sambuc [Fri, 12 Sep 2014 11:20:40 +0000 (13:20 +0200)]
usb/hcd: asserts should not have side effects

They can be deactivated with -DNDEBUG, which is why they can't contain
code which should always be run.

It seems the local implementation of USB_ASSERT doesn't honor the
CPP flags NDEBUG, this will be corrected in a later patch.

Change-Id: Iac56b09fd563f1b8c4c7be15a468a05b9cc86a18

10 years agopkgin_sets: Fix python package name 25/2825/1
Lionel Sambuc [Fri, 12 Sep 2014 09:10:30 +0000 (11:10 +0200)]
pkgin_sets: Fix python package name

Change-Id: I09658a10f750b3d15867d6bd69d749c61831a00d

10 years ago/usr/Makefile: prevent pkgin from hanging 24/2824/1
Lionel Sambuc [Fri, 12 Sep 2014 09:07:33 +0000 (11:07 +0200)]
/usr/Makefile: prevent pkgin from hanging

Change-Id: Ida6086f3c2d3300609aaebb931d094fd779c73ea

10 years agoKernel: update copyright year 23/2823/1
David van Moolenbroek [Wed, 10 Sep 2014 13:01:45 +0000 (13:01 +0000)]
Kernel: update copyright year

Change-Id: I1776f1bc6402f264c7095c17a9ace087036cf010

10 years agorc: update (unused) default service directory 22/2822/2
David van Moolenbroek [Tue, 9 Sep 2014 11:50:48 +0000 (11:50 +0000)]
rc: update (unused) default service directory

Change-Id: I62f838a47ef92975ef88319fffd94f83814fef49

10 years agoblocktest: update test.sh for new shell 21/2821/2
David van Moolenbroek [Tue, 9 Sep 2014 11:49:27 +0000 (11:49 +0000)]
blocktest: update test.sh for new shell

Change-Id: I9c08139db972013a16f5794bd213b69bba0b5350

10 years agoPorting uuencode/uudecode from NetBSD 20/2820/2
Sky Liu [Sun, 7 Sep 2014 02:05:15 +0000 (10:05 +0800)]
Porting uuencode/uudecode from NetBSD

Lionel: I fixed small mistakes in the mi file, typos, missing keywords,
        and whitespace fixes.

Change-Id: If0c04b923af328838f2d0950e189bf28995bc0f0

10 years agoDrop minix-malloc & friends 19/2819/2
Lionel Sambuc [Wed, 3 Sep 2014 14:53:25 +0000 (16:53 +0200)]
Drop minix-malloc & friends

Known limitations:
 - comment for now testisofs, as iso9660fs is known to be broken.

Benefits:
 - near 3x speed improvement on C++ code compilation, bringing down
   make build to from 44min down to 21min.

 - Allows for X applications to work properly, which should be available
   in near-term future through pkgsrc for 3.3.0.

Change-Id: I8f4179a7ea925ed381642add32cfd8c5822217e4

10 years agoAllow elf_unpack to withstand invalid ELF headers 18/2818/2
Lionel Sambuc [Mon, 8 Sep 2014 08:16:41 +0000 (10:16 +0200)]
Allow elf_unpack to withstand invalid ELF headers

Change-Id: I10a0f3111176b9614b8531d6736e2e860eb95ce4

10 years agoSet uts.machine to i386 on intel 32bit platforms. 17/2817/1
Lionel Sambuc [Fri, 5 Sep 2014 13:35:17 +0000 (15:35 +0200)]
Set uts.machine to i386 on intel 32bit platforms.

Change-Id: Ic0833843f0d3e3df50fcbde11b453b846f0d4f33

10 years agocommands/setup: fixes for new sh & renamed fsck 16/2816/1
Lionel Sambuc [Fri, 5 Sep 2014 08:01:18 +0000 (10:01 +0200)]
commands/setup: fixes for new sh & renamed fsck

 - adapt an arithmetic expression for the new sh
 - update the fsck call to use the main fsck wrapper instead of a
   specific fsck version.

Change-Id: I7e25bf6e54b5c9f564082459e78b9ce5c39254cf

10 years agoRemove SETS.* from the CD. 15/2815/1
Lionel Sambuc [Thu, 4 Sep 2014 13:45:59 +0000 (15:45 +0200)]
Remove SETS.* from the CD.

Change-Id: I06385c51d7d24b4e0e6af037c5953ef11695c923

10 years agoset LD_LIBRARY_PATH 14/2814/1
Lionel Sambuc [Thu, 4 Sep 2014 13:37:27 +0000 (15:37 +0200)]
set LD_LIBRARY_PATH

Change-Id: I959043857b381df561ce156b7388444628c81afb

10 years agotps65950: allow 0 as id for qemu beaglexm 13/2813/1
Ben Gras [Thu, 4 Sep 2014 11:46:02 +0000 (13:46 +0200)]
tps65950: allow 0 as id for qemu beaglexm

makes booting on qemu beaglexm a lot prettier.

Change-Id: I45d0383abbf0d21227a95f538ed78ca6c1ed7871

10 years agodevmand: skip unconfigured script invocations 12/2812/1
Ben Gras [Thu, 4 Sep 2014 11:31:37 +0000 (13:31 +0200)]
devmand: skip unconfigured script invocations

. if a up/down script isn't specified, devmand
  would try to execute a command line with (null)
  in it, causing messy messages on startup
. skip script at a higher level when missing,
  and add asserts for expected strings at the lower level

Change-Id: Ia0d772076f3781caa5879ea4e64b53fa6c6e8478

10 years agoretire unstack & datasizes in favour of addr2line 11/2811/1
Ben Gras [Wed, 3 Sep 2014 16:40:27 +0000 (18:40 +0200)]
retire unstack & datasizes in favour of addr2line

Change-Id: Ibf5db75f3358c3c0bf81ca211a6602b333af0473

10 years agoincrease root FS size to 128MB 10/2810/1
Ben Gras [Wed, 3 Sep 2014 16:36:11 +0000 (18:36 +0200)]
increase root FS size to 128MB

Change-Id: Ibccc32d672b138fd267641e5e5a6e06bfa8502e9

10 years agoVM: mem_shared: allow re-pagefault 08/2808/1
Ben Gras [Wed, 3 Sep 2014 11:42:30 +0000 (13:42 +0200)]
VM: mem_shared: allow re-pagefault

Change-Id: Iffd0e265c03f064545c9689ac204c58335d32c9a

10 years agoAHCI: remove obsolete free_contig calls 07/2807/1
David van Moolenbroek [Tue, 2 Sep 2014 15:51:16 +0000 (15:51 +0000)]
AHCI: remove obsolete free_contig calls

The memory used to be in its own memory region, but is now a part of
a larger memory region which is already being freed anyway.

Change-Id: Ice3174cec76e07112a1997b969dc3f47f573514c

10 years agoSome more NDEBUG fixes 06/2806/1
Lionel Sambuc [Tue, 2 Sep 2014 14:57:50 +0000 (16:57 +0200)]
Some more NDEBUG fixes

 - replace a stray assert(0) with abort()
 - remove unrequired copy-pasted #undef NDEBUG
 - replace some #if NDEBUG by #if DEBUG as they protect debug printf()s.

Change-Id: Iff4c0331b06e860d32d91ce6b1d6c765ed065c8b

10 years agoFix -DNEDUG builds 05/2805/1
Lionel Sambuc [Tue, 2 Sep 2014 13:22:15 +0000 (15:22 +0200)]
Fix -DNEDUG builds

 - assert() is macro which is defined as empty, while panic is always
   present. I added an explicit abort() after the macro to make sure the
   function never returns in case of wrong flags.

 - Fixed gcc build with -NDEBUG, -Os for ARM.
   * A few 'may be used uninitialized' messages
   * A few new missing support library functions where added in libminc.

Change-Id: I69fcda2cd3888390b7ddeff4c0cd849105ce86ff

10 years agoMake the kernel less chatty 04/2804/1
Lionel Sambuc [Mon, 1 Sep 2014 14:17:18 +0000 (16:17 +0200)]
Make the kernel less chatty

Change some messages from always printed to varying level of the "verbose"
argument.

Change-Id: I6899268aa895c66e72806ca4d02bb53a0e4ea785

10 years agovm: allow split of mem_anon_contig region 03/2803/1
Ben Gras [Mon, 1 Sep 2014 13:02:08 +0000 (15:02 +0200)]
vm: allow split of mem_anon_contig region

. so that memory of such regions can be deallocated in any order

Change-Id: I34013d6085cf19a482412cf9bed6b7f96e60e1e6

10 years agotools/llvm: Do not build with symbols 02/2802/1
Lionel Sambuc [Mon, 1 Sep 2014 09:11:32 +0000 (11:11 +0200)]
tools/llvm: Do not build with symbols

Do not build clang and llvm libraries with debug symbols, when built as
a cross-compilation tool.

This saves a lot of space (about 4G), and hopefully also some
compilation time.

Change-Id: Ifeb91d6932d667fa901a8efe1a95a922e6f6ba98

10 years agoVFS: convert EINTR to EAGAIN for nonblocking I/O 01/2801/1
David van Moolenbroek [Sun, 31 Aug 2014 17:12:45 +0000 (17:12 +0000)]
VFS: convert EINTR to EAGAIN for nonblocking I/O

The conversion was never properly implemented for asynchronous
character drivers, and got lost during the removal of the
synchronous character protocol.

Change-Id: Ib858806859aa7a52d6b391d4c6c521a2be361fdd

10 years agorelease.sh changes & fixes 00/2800/2
Ben Gras [Sun, 31 Aug 2014 14:21:05 +0000 (16:21 +0200)]
release.sh changes & fixes

. source release.functions with explicit path
. make xargs touch not fail (due to too long invocations
  and spaces in paths)

Change-Id: I448b96cebd641bf2c7b86ecbb3d1f1cb568e4f70

10 years agoKernel: fix sys_trace 99/2799/1
David van Moolenbroek [Sat, 30 Aug 2014 19:10:12 +0000 (19:10 +0000)]
Kernel: fix sys_trace

Change-Id: I44bdd3b1d79bf751923581b75c3d44f011d2a5e0

10 years agoFix bitcode support for kernel 98/2798/2
Lionel Sambuc [Thu, 21 Aug 2014 11:35:45 +0000 (13:35 +0200)]
Fix bitcode support for kernel

10 years agominix/llvm/passes/Makefile.inc: Fix 97/2797/2
Lionel Sambuc [Wed, 20 Aug 2014 11:28:30 +0000 (13:28 +0200)]
minix/llvm/passes/Makefile.inc: Fix

This fixes and documents a mistake made during the sources move.

10 years agoAdd /usr/lib/bc/libgcc_s.a to the file list 96/2796/2
Erik van der Kouwe [Sun, 10 Aug 2014 08:54:06 +0000 (10:54 +0200)]
Add /usr/lib/bc/libgcc_s.a to the file list

Add /usr/lib/bc/libgcc_s.a in distrib/sets/lists/minix/mi.

10 years agoSkip modules that don't work on x86 95/2795/2
Erik van der Kouwe [Sun, 10 Aug 2014 20:19:20 +0000 (22:19 +0200)]
Skip modules that don't work on x86

Skip the following modules in relink.llvm/build.llvm:
 - i2c
 - gpio
 - cat24c256
 - tsl2550

10 years agoAdjust LLVM MINIX scripts for new source layout 94/2794/2
Erik van der Kouwe [Fri, 8 Aug 2014 19:43:24 +0000 (21:43 +0200)]
Adjust LLVM MINIX scripts for new source layout

Adjust to the fact that drivers and servers have moved into the minix
subdir.

10 years agobuild.llvm fix to allow pass arguments 93/2793/2
Erik van der Kouwe [Wed, 6 Aug 2014 13:18:41 +0000 (15:18 +0200)]
build.llvm fix to allow pass arguments

This allows pass arguments to be specified (written by Cristiano)

10 years agoImporting bin/sh 92/2792/2
Lionel Sambuc [Sun, 3 Aug 2014 21:10:41 +0000 (23:10 +0200)]
Importing bin/sh

/etc/profile enables by default tabcompletion, as well as emacs mode,
in order to keep the old MINIX ash behavior.

Note: The shell now refuses to source a script without a relative or
      absolute path.
      This means:
        - '. myscript.sh' fails, while
        - '. ./myscript.sh' succeeds

Change-Id: I0be89b0747bd005e4c05cadb937af86883627dc6

10 years agoMuch USB code for ARM USB support 91/2791/3
Wojciech Zajac [Thu, 26 Jun 2014 12:05:41 +0000 (14:05 +0200)]
Much USB code for ARM USB support

Written by JP Embedded.

Host controller (HCD), mass storage, and hub drivers.

Change-Id: I4237cf7aeb4a1c0205a1876593a9cc67ef3d577e

10 years agomerge libminlib with libc 90/2790/1
Ben Gras [Thu, 28 Aug 2014 15:35:17 +0000 (17:35 +0200)]
merge libminlib with libc

Change-Id: I79cc4ea90c378a1da3dac16487b53034953827a7

10 years agoremove libcompat_minix as library 89/2789/1
Ben Gras [Sun, 24 Aug 2014 22:19:51 +0000 (00:19 +0200)]
remove libcompat_minix as library

. get rid of includes in libcompat_minix:
  . move configfile.h to minix/include/
  . all others are unneeded as they point to other files
. merge the .c files with libc

Change-Id: I5e840c66fb9bc484f377926aa9d66473bbd16259

10 years agosome small changes 88/2788/1
Ben Gras [Sun, 24 Aug 2014 22:19:25 +0000 (00:19 +0200)]
some small changes

. add /sbin to tests $PATH for ping
. take disable file mmap item from default boot menu
. ask for feedback in motd
. fix ext2fs on arm (the memory alloced with STATICINIT is flaky on arm)

Change-Id: I7525207074d62abc47ed3891139f6ef7ef6025be

10 years agoVFS: unbreak select on /dev/tty 87/2787/1
David van Moolenbroek [Tue, 26 Aug 2014 22:28:58 +0000 (22:28 +0000)]
VFS: unbreak select on /dev/tty

The remapping from /dev/tty to the real controlling terminal in the
device code was confusing the select code.  The latter is now aware
of this case and should handle it properly, at the cost of one extra
field in the filp structure.

There is a nasty, hopefully sufficiently rare case of /dev/tty being
kept open while controlling terminals are changing, that we are still
not handling.  Doing so would require more than just a few changes,
but the code should at least detect and cleanly fail on this case.

Test77 now has a basic test set for selecting on /dev/tty.

Change-Id: Iaedea449cdb728d0e66a9de8faacdfd9638dfe92

10 years agoPTY: let closed master cause EOF on slave 86/2786/1
David van Moolenbroek [Wed, 27 Aug 2014 14:23:52 +0000 (14:23 +0000)]
PTY: let closed master cause EOF on slave

This puts PTY on par with e.g. rs232 as well as behavior documented
for other OSes.  It is not a fix for an issue in userland, though.

- add a (minimal) test case to test77;
- fix a few other minor issues in test77.

Change-Id: I89c000921ee69dd9f5713665349c1ab1ad1dc2cc

10 years agoVFS: complete the devmajor_t/devminor_t switch 85/2785/1
David van Moolenbroek [Tue, 26 Aug 2014 16:39:02 +0000 (16:39 +0000)]
VFS: complete the devmajor_t/devminor_t switch

Change-Id: I9f809283f19d577cf7e02705fdbb2310ae2b6cba

10 years agotty/pty: unbreak stty(1) 84/2784/1
David van Moolenbroek [Mon, 25 Aug 2014 19:34:39 +0000 (19:34 +0000)]
tty/pty: unbreak stty(1)

Change-Id: I3f857dcbb89e18c7db3a72f4bd6809beb7904bc0

10 years agotty/pty: change back default CERASE to ^H 83/2783/1
David van Moolenbroek [Mon, 25 Aug 2014 19:33:27 +0000 (19:33 +0000)]
tty/pty: change back default CERASE to ^H

Alternatives should be considered (such as changing our keymaps to
better match NetBSD) in due time, but for now, the current default
is incredibly annoying!

Change-Id: I4cab5d6a9f39983ee8aa80362768fdb9cf3db948

10 years agouptime(1): also report uptime 82/2782/1
David van Moolenbroek [Thu, 28 Aug 2014 11:40:55 +0000 (11:40 +0000)]
uptime(1): also report uptime

It might be more useful this way.  *cough*

Change-Id: I318169fef8bf7737dc46eebf5c5332ce42a9076a

10 years agoINIT died problem / build system robustness 77/2777/2
Ben Gras [Mon, 25 Aug 2014 16:35:59 +0000 (18:35 +0200)]
INIT died problem / build system robustness

Changes provoked by debugging / making 'PM: INIT died' error debuggable.

This was caused (in one instance) by a missing /dev/console (and everything
else) on the boot time ramdisk.

. sanity-check against this case by checking for console
. PM: print init stacktrace and exit status when init dies
. eliminate some explicitly invoked ${MAKE}s and a rm -rf in
  Makefiles, causing race conditions; use explicit ordering (.WAIT)
  instead, moving some of the burden of dependencies of partial builds
  to the user. On the plus side, generate ramdisk just once.
. make mkfs.mfs fail as soon as it sees an error missing file in
  the proto file. - except for EACCES on minix native for the mfs
  test. also fix some fmt warnings.
. init: include debug info in executable

Change-Id: I8eea4986a4f64ecaf223aff5da321d8b4f4a3fa4

10 years agoImport NetBSD w(1) and uptime(1) 68/2768/4
David van Moolenbroek [Tue, 26 Aug 2014 16:03:05 +0000 (16:03 +0000)]
Import NetBSD w(1) and uptime(1)

Change-Id: Id6cc36f4befbce4be3a471ae920d75972a44bef1

10 years agoFixes for -O3 with GCC 35/2735/3
Lionel Sambuc [Sat, 23 Aug 2014 07:41:54 +0000 (09:41 +0200)]
Fixes for -O3 with GCC

Change-Id: I8d8e267cc7996581729df4be0d8e21646ff9e1d2

10 years agops: fix reported run time 37/2737/1
David van Moolenbroek [Fri, 22 Aug 2014 14:35:55 +0000 (14:35 +0000)]
ps: fix reported run time

10 years agotest59: fix status type for mthread_join call 36/2736/1
David van Moolenbroek [Thu, 21 Aug 2014 15:22:24 +0000 (15:22 +0000)]
test59: fix status type for mthread_join call

Integer and pointer sizes may not be the same.

10 years agoFix -DNDEBUG support 28/2728/1
Lionel Sambuc [Fri, 22 Aug 2014 17:11:59 +0000 (19:11 +0200)]
Fix -DNDEBUG support

Change-Id: Ib64cef83a646bce2b0afa72b607fb9e5c306e859

10 years agoarm am335x: disable watchdog timer on bootup 27/2727/3
Ben Gras [Fri, 22 Aug 2014 12:06:57 +0000 (14:06 +0200)]
arm am335x: disable watchdog timer on bootup

. for new uboot (specifically beaglebone black rev c) compliance

Change-Id: I28fd0ca15f5365e14bf2bb9407f266e3e570b6d9

10 years agofix test48 - minix3.org.xyz resolves now 26/2726/1
Ben Gras [Fri, 22 Aug 2014 10:34:33 +0000 (12:34 +0200)]
fix test48 - minix3.org.xyz resolves now

Change-Id: I40b86b7c8cbfcbac0c976c2477200081c2cfc8f7

10 years agoRemoval of commands fix: Keep builtin man pages. 25/2725/1
Lionel Sambuc [Fri, 22 Aug 2014 10:17:04 +0000 (12:17 +0200)]
Removal of commands fix: Keep builtin man pages.

Change-Id: I5cff0f987ed637677406e90faeecb8104f6551bc

10 years agocommands/test: removed 24/2724/1
Lionel Sambuc [Sun, 3 Aug 2014 12:39:09 +0000 (14:39 +0200)]
commands/test: removed

Change-Id: I5557eb2116d23c466ce82f1c8c9d18590316a0d0

10 years agocommands/expr: removed 23/2723/1
Lionel Sambuc [Sun, 3 Aug 2014 12:37:13 +0000 (14:37 +0200)]
commands/expr: removed

Change-Id: I374f162959c6e0d708c7b1bd66f2c7a4346c097a

10 years agocommands/command: removed 22/2722/1
Lionel Sambuc [Sun, 3 Aug 2014 11:45:53 +0000 (13:45 +0200)]
commands/command: removed

Change-Id: I90d57681e7bcabebff323f27af57bab108fa6d4d

10 years agocommands/wait: removed 21/2721/1
Lionel Sambuc [Sun, 3 Aug 2014 11:27:57 +0000 (13:27 +0200)]
commands/wait: removed

Change-Id: Ie712ec86ef9bbdeffb2fafb51b64600bd118d1e2

10 years agocommands/read: removed 20/2720/1
Lionel Sambuc [Sun, 3 Aug 2014 10:53:12 +0000 (12:53 +0200)]
commands/read: removed

Change-Id: Iaa24bb634b31932f793f02c4df10b48030ab70a0

10 years agocommands/umask: removed 19/2719/1
Lionel Sambuc [Sun, 3 Aug 2014 10:44:34 +0000 (12:44 +0200)]
commands/umask: removed

Change-Id: I0e09cd3e311dad61e72989262fef037759ae9d5d

10 years agocommands/cd: removed 18/2718/1
Lionel Sambuc [Sun, 3 Aug 2014 10:40:23 +0000 (12:40 +0200)]
commands/cd: removed

Change-Id: I438c1dfc778e23131fbd0ee1246abfb7df9437f3

10 years agocommands/getopts: removed 17/2717/1
Lionel Sambuc [Sun, 3 Aug 2014 10:38:50 +0000 (12:38 +0200)]
commands/getopts: removed

Change-Id: Idc9ec425749a76e2664906f2483be6071273507f

10 years agonetbsd ping & traceroute 13/2713/6
Ben Gras [Mon, 3 Jun 2013 10:54:08 +0000 (10:54 +0000)]
netbsd ping & traceroute

. remove minix ping
. add support for socket(AF_INET, SOCK_RAW, {IPPROTO_ICMP,IPPROTO_UDP})
. gives test48 a better chance of detecting network connectivity

Change-Id: Ia678546d27ac378642f1160a141e1fc33458cce2

10 years agoreleasetools/Makefile: updates 16/2716/1
Lionel Sambuc [Wed, 20 Aug 2014 14:21:09 +0000 (16:21 +0200)]
releasetools/Makefile: updates

10 years agominix/driver/storage/ramdisk: Makefile rework 14/2714/2
Lionel Sambuc [Sun, 3 Aug 2014 19:38:36 +0000 (21:38 +0200)]
minix/driver/storage/ramdisk: Makefile rework

This is an attempt at simplifying the Makefile, by specifying the home
directory of every utility, instead of trying to guess depending on some
variable.

While this is a bit more verbose, this simplifies the logic. This also makes
it simpler to add / remove programs from the ramdisk.

Change-Id: Id789a6cc6e5a9be11decec0f30c5327f19819aa1

10 years agoDDEKit interrupt fix 15/2715/1
Wojciech Zajac [Tue, 19 Aug 2014 16:23:26 +0000 (18:23 +0200)]
DDEKit interrupt fix

    - With this patch, DDEKit no longer uses IRQ number as interrupt ID
      and more IRQ numbers can be used with it

    - DDEKit IRQ code, will now check return values and panic on error

Change-Id: I9ef5ab1ee2262242204bdd8c0a60459a19ddcc1b

10 years agoUpdate usr/Makefile 12/2712/1
Lionel Sambuc [Thu, 14 Aug 2014 17:02:49 +0000 (19:02 +0200)]
Update usr/Makefile

 - This improves the user messages.

 - This update the pkgsrc checkout rules to point to the new repository,
   as well as the new work process we are introducing.

 - This introduces rules for the MINIX sources, as we don't have the
   space anymore to distribute them by default on the official ISO.

Change-Id: Id1867286bd15efc46bad1d906c1ca1b3a883b064

10 years ago/usr/tests/minix-posix/check-install 09/2709/3
Lionel Sambuc [Wed, 13 Aug 2014 11:21:19 +0000 (13:21 +0200)]
/usr/tests/minix-posix/check-install

This script runs a subset of all the available test. This is aimed at
first time users which might be surprised by the warnings and time the
full test suite takes.

This runs all the tests which in case of success only print "ok" and
don't take too much time to run, independently of the network
connectivity.

Change-Id: Id54b7656a98f9ec81880f91cb63ca888a175f20f

10 years agoIntroduce pkgin_sets 06/2706/2
Lionel Sambuc [Wed, 6 Aug 2014 15:29:21 +0000 (17:29 +0200)]
Introduce pkgin_sets

This tool allow you to install one or more predefined package sets.

Change-Id: Id21c9e9fbd43f44f2d3b040961411428e1ae0af9

10 years agoTOOL_TIC: Set to "/usr/bin/tic", instead of "tic" 07/2707/2
Lionel Sambuc [Fri, 8 Aug 2014 16:14:06 +0000 (18:14 +0200)]
TOOL_TIC: Set to "/usr/bin/tic", instead of "tic"

There is a tic command which comes with a package. When this package is
installed, this prevent "make build" from completing, as the packaged
tic as incompatible arguments.

Change-Id: Ic75057013b92158d715c5533f01d79f65317a400

10 years agoServices move to /service fixes 05/2705/1
Lionel Sambuc [Fri, 8 Aug 2014 15:50:03 +0000 (17:50 +0200)]
Services move to /service fixes

 - Fix init rights not adjusted at boot time

 - Fix usbd not loaded on BBB / BBW

Change-Id: Ic690547876d486165e74c749a4fe43891d0e1e8d

10 years agoreleasetools/*image.sh 04/2704/1
Lionel Sambuc [Fri, 8 Aug 2014 12:05:25 +0000 (14:05 +0200)]
releasetools/*image.sh

 - Removed an "export CPPFLAGS=${FLAG}" which prevented proper settings
   from the environment to be passed to the build step.

 - Re-arranged variable settings at the top, so that we don't need
   to evaluate the argument to vfat mkfs command anymore in
   arm_sdimage.sh

 - "Merged" both script for easier comparison in the future.

Change-Id: Id59f902e4eaeb7f268d5051789462f14421a114a

10 years agoOSX and FreeBSD don't have mkfs.vfat. 03/2703/1
Philip Homburg [Tue, 5 Aug 2014 13:35:37 +0000 (15:35 +0200)]
OSX and FreeBSD don't have mkfs.vfat.

Use newfs_msdos instead.

Change-Id: I51c4086192332f0967a434d88add14db2791395e

10 years agoUpdate download urls in fetch.sh 02/2702/1
Lionel Sambuc [Thu, 7 Aug 2014 12:27:32 +0000 (14:27 +0200)]
Update download urls in fetch.sh

Change-Id: Ib3d6c2771e8bc6d03efa85af52f2ed6288ebc7dd

10 years agoRemoving /home/bin 01/2701/1
Lionel Sambuc [Thu, 7 Aug 2014 11:37:43 +0000 (13:37 +0200)]
Removing /home/bin

The bin user doesn't need an actual home folder to run the tests. As
such this account should not be used in 'su - bin'. To be noted that
'su bin' still works as expected, and allow to run the minix test set
as usual.

Change-Id: I21fd178bf3b7b28849f05ef24930b553094cc851

10 years agoRemoving the ast account 00/2700/1
Lionel Sambuc [Thu, 7 Aug 2014 11:15:50 +0000 (13:15 +0200)]
Removing the ast account

We used to have an account "ast" as a token to Andrew S. Tannebaum,
the creator of MINIX. The account was disable by default, with no
possible way to login.

It seems it generates more confusion than it is worth, so this removes it.

The default skeleton user profile is still stored into /etc/ast instead
of the usual /etc/skel.

Change-Id: I71818c0bb9580cdecfa9621f8693586fc48d17cb

10 years agosetup.sh: Improved user messages. 99/2699/1
Lionel Sambuc [Thu, 7 Aug 2014 11:08:12 +0000 (13:08 +0200)]
setup.sh: Improved user messages.

Change-Id: I5b260b5893ec5ec5a905c48ea8f04aeb2f764bd9

10 years agoClearing history in docs/UPDATING
Lionel Sambuc [Fri, 1 Aug 2014 12:58:40 +0000 (14:58 +0200)]
Clearing history in docs/UPDATING

As the ABI breaks everything, there is no point to keep the full source
upgrade documentation tweaks preceding the merge.

Change-Id: I1d5dcc7a7586e6aabd6b671dc2693f4fc9c5391c

10 years agoImprove default HOST_CC / CC settings
Lionel Sambuc [Thu, 31 Jul 2014 16:36:24 +0000 (18:36 +0200)]
Improve default HOST_CC / CC settings

Instead of blindly defaulting to cc, try to find the actual compiler
installed on the system, and as a last resort

Change-Id: I114780b8e4bb54fab72dbd80466266126d6574a5

10 years agoCC=.. mkdep fix
Ben Gras [Thu, 31 Jul 2014 13:53:30 +0000 (13:53 +0000)]
CC=.. mkdep fix

Change-Id: If9dd0d0ca3c272c31896dfc423b7320edc89861e

10 years agoservers/rs: Add sanity check on executable size
Lionel Sambuc [Wed, 30 Jul 2014 14:10:03 +0000 (16:10 +0200)]
servers/rs: Add sanity check on executable size

RS used to do a stat, and check that the stat was successful, but it
didn't check that the executable was not actually empty.

This patch adds a check to detect file which are smaller than the minimum
ELF size possible.

Change-Id: I22b004084f17e7d395e2c1377add7bc8b51c3d5e

10 years agoUpdate the default package URL
Lionel Sambuc [Tue, 29 Jul 2014 19:17:48 +0000 (21:17 +0200)]
Update the default package URL

Change-Id: I1f82f195b5bbc511b54b0598cf55a2231ed20c42

10 years agoRemove old scripts to check against NBSD
Lionel Sambuc [Tue, 29 Jul 2014 19:07:39 +0000 (21:07 +0200)]
Remove old scripts to check against NBSD

As we have switched to a local git repository containing the NetBSD
reference, at specific points in time, the following scripts are not
anymore useful.

Change-Id: Iec0606a640a73e6ce80ecc5d9ac438daab9f2a1f

10 years agoMove all services to /service
Lionel Sambuc [Tue, 29 Jul 2014 18:29:57 +0000 (20:29 +0200)]
Move all services to /service

This concerns all services, a.k.a drivers, filesystem drivers, network
(inet, lwip, uds) servers, and the system servers.

Change-Id: I626fd15c795e15af42df2d10d47fb4a703665d63

10 years agoRemove /multiboot
Lionel Sambuc [Tue, 29 Jul 2014 15:07:15 +0000 (17:07 +0200)]
Remove /multiboot

This is just a duplicate of /boot/.temp, and it is not used anymore.

Change-Id: I8a4d6e68829de3ff3628ff0fe15f6d1d0a6b128f

10 years agoNew sources layout
Lionel Sambuc [Mon, 28 Jul 2014 19:19:37 +0000 (21:19 +0200)]
New sources layout

Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9

10 years agoRevert "bin/mv: Temporary fix"
Lionel Sambuc [Mon, 28 Jul 2014 11:53:23 +0000 (13:53 +0200)]
Revert "bin/mv: Temporary fix"

This is no longer required as /bin/cp has been imported.

This reverts commit e3257d3ff741480d640cefe2507a77e65322f40d.

10 years agoImport NetBSD cp command.
Zachary Storer [Sun, 27 Jul 2014 12:19:54 +0000 (06:19 -0600)]
Import NetBSD cp command.

Change-Id: I61943a2ef6d5945b9e10e520e5ebf85e99ac668a

10 years agoRemove the minix 'cpdir' command alias.
Zachary Storer [Sat, 26 Jul 2014 20:52:16 +0000 (14:52 -0600)]
Remove the minix 'cpdir' command alias.

Change-Id: If51dcc8cb2f46e375638f1e2e4e8baddb790ab2c

10 years agoRemove the minix 'clone' command alias.
Zachary Storer [Tue, 22 Jul 2014 18:16:17 +0000 (12:16 -0600)]
Remove the minix 'clone' command alias.

10 years agoimporting shar from NetBSD
Sky Liu [Sun, 27 Jul 2014 22:22:49 +0000 (07:22 +0900)]
importing shar from NetBSD

10 years agorelease script fixes
Ben Gras [Mon, 28 Jul 2014 11:32:51 +0000 (13:32 +0200)]
release script fixes

. we need libc++ in the base system
. big packages & sources don't fit on the cd any more
. the fetch scripts have to be triggered for some tools

Change-Id: Ife53c64fda0ed65b96fa8d6a0b0fee2c6a14d6d7

10 years agoSorted ipc.h for easier navigation
Lionel Sambuc [Mon, 28 Jul 2014 10:10:14 +0000 (12:10 +0200)]
Sorted ipc.h for easier navigation

Also removed unused macros "M1", "M3", and "M4"

Change-Id: Ib0a454589394ca97936c9d3f95a4fd4e7691a720

10 years agoMessage type for COMMON_REQ_GCOV_DATA.
Lionel Sambuc [Mon, 28 Jul 2014 08:44:15 +0000 (10:44 +0200)]
Message type for COMMON_REQ_GCOV_DATA.

Change-Id: I97d31059990e33411a685d5d8191c728a02e7d0f

10 years agoremove "generic" messages m5, m8, m11
Lionel Sambuc [Mon, 28 Jul 2014 07:35:53 +0000 (09:35 +0200)]
remove "generic" messages m5, m8, m11

10 years agoUse one message type for all BDEV request.
Lionel Sambuc [Mon, 28 Jul 2014 05:13:42 +0000 (07:13 +0200)]
Use one message type for all BDEV request.

There are missing field assignements, and/or messsages being re-used
without re-initializations, which allows for fields to be implicitly
forwarded.

This prevents me from creating per request message types, as I can't
spend currently any more time debugging this issue.

10 years agofix for crosscompile with llvm and build libstdc++
Lionel Sambuc [Fri, 25 Jul 2014 10:35:38 +0000 (12:35 +0200)]
fix for crosscompile with llvm and build libstdc++

Change-Id: I1da0b77214a2e128a2649d518e4cf8d23cf13bc0

10 years agoMessage type for BDEV_REPLY.
Lionel Sambuc [Fri, 25 Jul 2014 18:39:06 +0000 (20:39 +0200)]
Message type for BDEV_REPLY.

Change-Id: I48ca5a4f77cc9e924e8aee2fe6c32e0da9b42560