]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
9 years agogetfcr: change getfcr/setfcr to use VFP
cinap_lenrek [Thu, 25 Dec 2014 16:44:49 +0000 (17:44 +0100)]
getfcr: change getfcr/setfcr to use VFP

9 years agozynq: only tmpmap() while splhi(), remove unneeded coherence() after tmpunmap(),...
cinap_lenrek [Thu, 25 Dec 2014 10:30:29 +0000 (11:30 +0100)]
zynq: only tmpmap() while splhi(), remove unneeded coherence() after tmpunmap(), splhi() in l2free()

we have to call tmpmap() with interrupts disabled as the map
is a per cpu and a interrupt can preempt us while we where
commited to use a entry but *before* we wrote it!

tmpunmap() already calls coherence() before flushpg() so it
is not needed after tmpunmap().

splhi() in l2free() isnt needed as l2free() is always called
with interrupts disabled from mmuswitch() and mmurelease().

9 years agozynq: dont do install target by default in the mkfile
cinap_lenrek [Thu, 25 Dec 2014 10:12:31 +0000 (11:12 +0100)]
zynq: dont do install target by default in the mkfile

9 years agozynq: fpsave() and fpclear() both need to disable the fpu
cinap_lenrek [Wed, 24 Dec 2014 19:53:58 +0000 (20:53 +0100)]
zynq: fpsave() and fpclear() both need to disable the fpu

fpsave needs to disable the fpu! otherwise we won't catch
the mathtrap() in the kernel or when context switching to
another process that will attempt to use it.

9 years agozynq: active.machs = 1
cinap_lenrek [Wed, 24 Dec 2014 15:56:48 +0000 (16:56 +0100)]
zynq: active.machs = 1

9 years agozynq: set mainmem->maxsize so kernel malloc() wont fail after 4MB
cinap_lenrek [Wed, 24 Dec 2014 12:37:54 +0000 (13:37 +0100)]
zynq: set mainmem->maxsize so kernel malloc() wont fail after 4MB

9 years ago5l: remove -f flag and add -F flag to disable VFP code generation
cinap_lenrek [Wed, 24 Dec 2014 10:38:44 +0000 (11:38 +0100)]
5l: remove -f flag and add -F flag to disable VFP code generation

almost nobody uses FPA anymore, so make VFP the default but
provide -F flag to disable it.

9 years agozynq: fix kernel configuration so it builds
cinap_lenrek [Wed, 24 Dec 2014 10:20:40 +0000 (11:20 +0100)]
zynq: fix kernel configuration so it builds

9 years agonusb/serial: fix nusb/serial hang with ftdi
cinap_lenrek [Wed, 24 Dec 2014 10:04:18 +0000 (11:04 +0100)]
nusb/serial: fix nusb/serial hang with ftdi

have to create process, not a thread in ftdi code so main
process can exit after posting fs service.

9 years agoadded zynq kernel
aiju [Wed, 24 Dec 2014 09:21:51 +0000 (10:21 +0100)]
added zynq kernel

9 years agofortunes: if(~ $i (seek _nsec)) { # untested so far - geoff
stanley lieber [Tue, 23 Dec 2014 17:04:11 +0000 (12:04 -0500)]
fortunes: if(~ $i (seek _nsec)) { # untested so far - geoff

9 years agorc-httpd(8): add HISTORY to man page
stanley lieber [Tue, 23 Dec 2014 17:03:42 +0000 (12:03 -0500)]
rc-httpd(8): add HISTORY to man page

9 years agopc, pc64, xen: change return type of intrdisable() to void
cinap_lenrek [Mon, 22 Dec 2014 15:56:04 +0000 (16:56 +0100)]
pc, pc64, xen: change return type of intrdisable() to void

intrdisable() will always be able to unregister the interrupt
now, so there is no reason to have it return an error value.

all drivers except uart8250 already assumed it to never fail
and theres no need to maintain that complexity.

9 years agosdvirtio: provide enable() and disable() functions so it can be switched off
cinap_lenrek [Mon, 22 Dec 2014 15:16:36 +0000 (16:16 +0100)]
sdvirtio: provide enable() and disable() functions so it can be switched off

9 years agopc, pc64: fix intrdisable() to remove the Vctl entry even tho we can't disable the...
cinap_lenrek [Mon, 22 Dec 2014 15:10:18 +0000 (16:10 +0100)]
pc, pc64: fix intrdisable() to remove the Vctl entry even tho we can't disable the interrupt on apic

9 years agosdvirtio: move common "queue i/o and wait" code into vqio() function, handle notify...
cinap_lenrek [Mon, 22 Dec 2014 11:17:48 +0000 (12:17 +0100)]
sdvirtio: move common "queue i/o and wait" code into vqio() function, handle notify suppression

9 years agopc, pc64, xen: simplify #P/irqalloc
cinap_lenrek [Mon, 22 Dec 2014 09:49:52 +0000 (10:49 +0100)]
pc, pc64, xen: simplify #P/irqalloc

9 years agopc, pc64: include PCArch.id in #P/archctl simplify #P/ioalloc read handler
cinap_lenrek [Mon, 22 Dec 2014 08:33:35 +0000 (09:33 +0100)]
pc, pc64: include PCArch.id in #P/archctl simplify #P/ioalloc read handler

9 years agoape: add fprint %z format (thanks Ori_B)
cinap_lenrek [Mon, 22 Dec 2014 08:18:18 +0000 (09:18 +0100)]
ape: add fprint %z format (thanks Ori_B)

9 years agoip: exclude "don't fragment" bit from ipv4 reassembly test
cinap_lenrek [Sun, 21 Dec 2014 16:25:55 +0000 (17:25 +0100)]
ip: exclude "don't fragment" bit from ipv4 reassembly test

other operating systems always set the "don't fragment" bit
in ther outgoing ipv4 packets causing us to unnecesarily
call ip4reassemble() looking for a fragment reassembly queue.

the change excludes the "don't fragment" bit from the test
so we now call ip4reassemble() only when the "more fragmens"
bit is set or a fragment offset other than zero is given.

this optimization was discovered from akaros.

9 years agopci(8): document vid/did argument
mischief [Sun, 21 Dec 2014 06:32:51 +0000 (22:32 -0800)]
pci(8): document vid/did argument

9 years agopci(8): fix usage
mischief [Sun, 21 Dec 2014 05:56:06 +0000 (21:56 -0800)]
pci(8): fix usage

9 years agomerge
mischief [Sun, 21 Dec 2014 05:42:55 +0000 (21:42 -0800)]
merge

9 years agopci: import pci script and updated database from 9atom
mischief [Sun, 21 Dec 2014 05:41:34 +0000 (21:41 -0800)]
pci: import pci script and updated database from 9atom

9 years agotee: get rid of openf[100] array and just dup() filedescriptors to 3+[0..n-1]
cinap_lenrek [Sun, 21 Dec 2014 04:12:56 +0000 (05:12 +0100)]
tee: get rid of openf[100] array and just dup() filedescriptors to 3+[0..n-1]

9 years agomerge
cinap_lenrek [Sun, 21 Dec 2014 03:48:29 +0000 (04:48 +0100)]
merge

9 years agokernel: avoid inconsistent reads in /proc/#/fd and /proc/#/ns
cinap_lenrek [Sun, 21 Dec 2014 03:46:22 +0000 (04:46 +0100)]
kernel: avoid inconsistent reads in /proc/#/fd and /proc/#/ns

to allow bytewise access to /proc/#/fd, the contents of the file where
recreated on each call. if fd's had been closed or reassigned between
the reads, the offset would be inconsistent and a read could start off
in the middle of a line. this happens when you cat /proc/#/fd file of
a busy process that mutates its filedescriptor table.

to fix this, we now return one line record at a time. if the line
fits in the read size, then this means the next read will always start
at the beginning of the next line record. we remember the consumed
byte count in Chan.mrock and the current record in Chan.nrock. (these
fields are free to usefor non-directory files)

if a read comes in and the offset is the same as c->mrock, we do not
need to regenerate the file and just render the next c->nrock's record.

for reads smaller than the line count, we have to regenerate the content
up to the offset and the race is still possible, but this should not
be the common case.

the same algorithm is now used for /proc/#/ns file, allowing a simpler
reimplementation and getting rid of Mntwalk state strcture.

9 years agomerge
ftrvxmtrx [Sun, 21 Dec 2014 00:30:36 +0000 (01:30 +0100)]
merge

9 years agosam: '^' and '_' cmds; same as '<' and '|' except that stdout goes to the command...
ftrvxmtrx [Sun, 21 Dec 2014 00:28:14 +0000 (01:28 +0100)]
sam: '^' and '_' cmds; same as '<' and '|' except that stdout goes to the command window

9 years agoflate: fix wrong adler32() length calculation (thanks qrstuv)
cinap_lenrek [Sat, 20 Dec 2014 02:34:40 +0000 (03:34 +0100)]
flate: fix wrong adler32() length calculation (thanks qrstuv)

9 years agovblade: fix code so #pragma pack isnt needed
cinap_lenrek [Fri, 19 Dec 2014 02:57:27 +0000 (03:57 +0100)]
vblade: fix code so #pragma pack isnt needed

9 years agoadd erik quanstros vblade utility
cinap_lenrek [Fri, 19 Dec 2014 01:50:22 +0000 (02:50 +0100)]
add erik quanstros vblade utility

9 years agopc64: enable devaoe and sdloop in kernel configuration
cinap_lenrek [Fri, 19 Dec 2014 01:40:45 +0000 (02:40 +0100)]
pc64: enable devaoe and sdloop in kernel configuration

9 years agosdloop: hardcode Enotup[] string to avoid devaoe dependency
cinap_lenrek [Fri, 19 Dec 2014 01:38:36 +0000 (02:38 +0100)]
sdloop: hardcode Enotup[] string to avoid devaoe dependency

9 years agosdaoe: allow aoedev= shorthand for id!lun -> id!#æ/aoe/lun
cinap_lenrek [Fri, 19 Dec 2014 01:37:40 +0000 (02:37 +0100)]
sdaoe: allow aoedev= shorthand for id!lun -> id!#æ/aoe/lun

we cannot type æ character in the bootloader console, so allow
the shorthand syntax id!lun which gets translated to id!#æ/aoe/lun.

9 years agopc, pc64: adjust mpshutdown() comment to reflect the current state
cinap_lenrek [Fri, 19 Dec 2014 22:57:43 +0000 (23:57 +0100)]
pc, pc64: adjust mpshutdown() comment to reflect the current state

9 years agopc, pc64: untangle acpireset() from mpshutdown()
cinap_lenrek [Fri, 19 Dec 2014 22:34:43 +0000 (23:34 +0100)]
pc, pc64: untangle acpireset() from mpshutdown()

mpshutdown() used to call acpireset() making it impossible to build
a kernel without archacpi. now, mpshutdown() is a helper function
that only shuts down the application processors that gets used from
mpreset() and acpireset().

the generic machine reset code in exported by devarch's archreset()
function that is called by mpreset() and from acpireset() as a fallback.
so the code duplication that was in mpshutdown() is avoided.

9 years agohgfs(4): add SOURCE to man page (thanks, spew)
stanley lieber [Thu, 18 Dec 2014 21:11:12 +0000 (16:11 -0500)]
hgfs(4): add SOURCE to man page (thanks, spew)

9 years agofortunes: oh really.
stanley lieber [Thu, 18 Dec 2014 21:07:17 +0000 (16:07 -0500)]
fortunes: oh really.

9 years agohgfs(4): add HISTORY to man page
stanley lieber [Thu, 18 Dec 2014 21:06:25 +0000 (16:06 -0500)]
hgfs(4): add HISTORY to man page

9 years agoxen: remove segmentation constants, not used on xen.
cinap_lenrek [Thu, 18 Dec 2014 01:53:49 +0000 (02:53 +0100)]
xen: remove segmentation constants, not used on xen.

9 years agopc: remove mmuinit0()
cinap_lenrek [Thu, 18 Dec 2014 01:04:42 +0000 (02:04 +0100)]
pc: remove mmuinit0()

all mmuinit0() does is initialize m->gdt, but this isnt neccesary
as this is done by mmuinit() anyway before loading the gdt.

9 years agomerge
cinap_lenrek [Thu, 18 Dec 2014 22:55:00 +0000 (23:55 +0100)]
merge

9 years agokernel: remove "checked xxx page table entries" print from checkpages()
cinap_lenrek [Thu, 18 Dec 2014 22:53:32 +0000 (23:53 +0100)]
kernel: remove "checked xxx page table entries" print from checkpages()

the purpose of checkpages() is to verify consitency of the hardware mmu state,
not to notify on the console that a program faulted. a program could also
continue after handling the note. (this seems to be the case in go programs)

9 years agokernel: print addresses in hex and sizes in decimal in xallocsummary
cinap_lenrek [Thu, 18 Dec 2014 22:06:39 +0000 (23:06 +0100)]
kernel: print addresses in hex and sizes in decimal in xallocsummary

9 years agoacme: allow typing '\n' in window tags
mischief [Wed, 17 Dec 2014 22:27:31 +0000 (14:27 -0800)]
acme: allow typing '\n' in window tags

9 years agopc, pc64: cleanup devarch
cinap_lenrek [Wed, 17 Dec 2014 21:49:51 +0000 (22:49 +0100)]
pc, pc64: cleanup devarch

- shorten cpuidprnt so it doesnt have to break line
- addarchfile: complain when running out of entries
- fix range check in rmemrw() (harmless)
- use nil instead of 0 for pointers

9 years agofstype(1): cleanup
cinap_lenrek [Wed, 17 Dec 2014 20:43:54 +0000 (21:43 +0100)]
fstype(1): cleanup

9 years agoboot(8): the method!server notation isnt usefull anymore...
cinap_lenrek [Wed, 17 Dec 2014 10:18:05 +0000 (11:18 +0100)]
boot(8): the method!server notation isnt usefull anymore...

- in 9front, the bootargs are in the form: method!device args
- remove redundant and wrong paragraphs regarding tcp booting
- document il boot method
- fix boot and bootrc confusions

9 years agoteg2, xen: remove unused bootdisk[] and fix conf.nswppo factor in kernel memory size...
cinap_lenrek [Wed, 17 Dec 2014 09:03:45 +0000 (10:03 +0100)]
teg2, xen: remove unused bootdisk[] and fix conf.nswppo factor in kernel memory size calculation

9 years agopc: remove unused bootdisk[] variable
cinap_lenrek [Wed, 17 Dec 2014 08:45:50 +0000 (09:45 +0100)]
pc: remove unused bootdisk[] variable

9 years agopc, pc64: remove old B.COM command line parsing and just pass tokenized BOOTLINE...
cinap_lenrek [Wed, 17 Dec 2014 08:23:21 +0000 (09:23 +0100)]
pc, pc64: remove old B.COM command line parsing and just pass tokenized BOOTLINE to /boot/boot as argv[]

this change allows command line passing to /boot/boot from qemu like:
qemu -kernel 9pcf -append "-u glenda tcp"

9 years agokernel: replace ulong with uintptr in ucallocb() and fix unneeded parentheses
cinap_lenrek [Tue, 16 Dec 2014 08:41:05 +0000 (09:41 +0100)]
kernel: replace ulong with uintptr in ucallocb() and fix unneeded parentheses

9 years agokernel: remove obsolete comment regarding Mntcache size in */main.c
cinap_lenrek [Tue, 16 Dec 2014 07:11:21 +0000 (08:11 +0100)]
kernel: remove obsolete comment regarding Mntcache size in */main.c

9 years agokernel: new mount cache
cinap_lenrek [Tue, 16 Dec 2014 04:41:20 +0000 (05:41 +0100)]
kernel: new mount cache

this is a new more simple version of the mount cache
that does not require dynamic allocations for extends.

the Mntcache structure now contains a page bitmap
that is used for quick page invalidation. the size
of the bitmap is proportional to MAXCACHE.

instead of keeping track of cached range in the
Extend data structure, we keep all the information
in the Page itself. the offset from the page where
the cache range starts is in the low PGSHIT bits and
the end in the top bits of Page.va.

we choose Page.daddr to map 1:1 the Mountcache number
and page number (pn) in the Mountcache. to find a page,
we first check the bitmap if the page is there and then
do a pagelookup() with the daddr key.

9 years agoaudio/flacdec: fix pcmconv pipeline race (thanks mischief and henesy)
cinap_lenrek [Mon, 15 Dec 2014 06:26:03 +0000 (07:26 +0100)]
audio/flacdec: fix pcmconv pipeline race (thanks mischief and henesy)

9 years agokernel: minor changes to mount cache
cinap_lenrek [Mon, 15 Dec 2014 05:28:27 +0000 (06:28 +0100)]
kernel: minor changes to mount cache

change page cache ids (bid) to uintptr so we use the full
address space of Page.daddr.

make maxcache offset check consistent in cread().

use consistent types in cupdate() and simplify with goto.

make internal functions static.

use nil instead of 0 for pointers.

9 years agoxen: fix cross build
cinap_lenrek [Mon, 15 Dec 2014 00:43:31 +0000 (01:43 +0100)]
xen: fix cross build

9 years agokernel: use new disk/mkfs -o option to get proper source filename list for bootfs...
cinap_lenrek [Mon, 15 Dec 2014 00:04:05 +0000 (01:04 +0100)]
kernel: use new disk/mkfs -o option to get proper source filename list for bootfs.proto

9 years agodisk/mkfs: add -o flag to list source files
cinap_lenrek [Sun, 14 Dec 2014 23:52:22 +0000 (00:52 +0100)]
disk/mkfs: add -o flag to list source files

9 years agomerge
cinap_lenrek [Sun, 14 Dec 2014 21:27:06 +0000 (22:27 +0100)]
merge

9 years agokernel: remove *.acid files in nuke target instead of $CONF.clean target
cinap_lenrek [Sun, 14 Dec 2014 21:25:15 +0000 (22:25 +0100)]
kernel: remove *.acid files in nuke target instead of $CONF.clean target

9 years agopng: fail on invalid bpc
ftrvxmtrx [Sun, 14 Dec 2014 21:20:06 +0000 (22:20 +0100)]
png: fail on invalid bpc

9 years agokernel: get rid of /boot/boot parametrization
cinap_lenrek [Sun, 14 Dec 2014 21:10:34 +0000 (22:10 +0100)]
kernel: get rid of /boot/boot parametrization

there is no use for "bootdisk" variable parametrization
of /boot/boot and no point for the boot section with its
boot methods in the kernel configuration anymore. so
mkboot and boot$CONF.out are gone.

move the rules for bootfs.paq creation in 9/boot/bootmkfile.
location of bootfs.proto is now in 9/boot/bootfs.proto.
our /boot/boot target is now just "boot".

9 years agoxen: fix mtrr dummy functions
cinap_lenrek [Sun, 14 Dec 2014 20:58:02 +0000 (21:58 +0100)]
xen: fix mtrr dummy functions

9 years agobio: add Bfdopen() from plan9port
cinap_lenrek [Sun, 14 Dec 2014 19:21:42 +0000 (20:21 +0100)]
bio: add Bfdopen() from plan9port

9 years agokernel: evaluate dependencies of bootfs.proto files for bootfs.paq
cinap_lenrek [Sat, 13 Dec 2014 23:00:59 +0000 (00:00 +0100)]
kernel: evaluate dependencies of bootfs.proto files for bootfs.paq

expand the list of files specified in bootfs.proto and use them
as dependencies to bootfs.paq rule. this way, bootfs.paq is
regenerated when the to be included files have been modified.

9 years agovarious cmds: replace magic numbers with Kdel/Keof, etc
ftrvxmtrx [Sat, 13 Dec 2014 20:58:49 +0000 (21:58 +0100)]
various cmds: replace magic numbers with Kdel/Keof, etc

9 years agokernel: correct dependency for printstub.$O instead of print.$O
cinap_lenrek [Sat, 13 Dec 2014 20:44:51 +0000 (21:44 +0100)]
kernel: correct dependency for printstub.$O instead of print.$O

9 years agostats: handle 'q' to close
mischief [Sat, 13 Dec 2014 19:28:16 +0000 (11:28 -0800)]
stats: handle 'q' to close

a side effect of this is keys typed other than q/Del no longer get drawn on top of the window.

9 years agopc, pc64: untangle embedded controller (ec) dependency from devarch
cinap_lenrek [Sat, 13 Dec 2014 05:23:23 +0000 (06:23 +0100)]
pc, pc64: untangle embedded controller (ec) dependency from devarch

9 years agokernel: generate dummy bootscreeninit() function when building without vga device
cinap_lenrek [Sat, 13 Dec 2014 04:29:51 +0000 (05:29 +0100)]
kernel: generate dummy bootscreeninit() function when building without vga device

9 years agondb/cs: fix spelling (thanks mischief)
cinap_lenrek [Sat, 13 Dec 2014 22:16:04 +0000 (23:16 +0100)]
ndb/cs: fix spelling (thanks mischief)

9 years agoacme/win: fix mistake
cinap_lenrek [Fri, 12 Dec 2014 20:18:31 +0000 (21:18 +0100)]
acme/win: fix mistake

have to save partial reminder before null terminating current
event buffer :)

9 years agoacme/win: remove old crap
cinap_lenrek [Fri, 12 Dec 2014 20:09:49 +0000 (21:09 +0100)]
acme/win: remove old crap

9 years agomerge
cinap_lenrek [Fri, 12 Dec 2014 20:07:44 +0000 (21:07 +0100)]
merge

9 years agoacme/win: fix fswrite() not assuming iounit < EVENTSIZE
cinap_lenrek [Fri, 12 Dec 2014 20:06:16 +0000 (21:06 +0100)]
acme/win: fix fswrite() not assuming iounit < EVENTSIZE

9 years agofortunes: UX-wise (and generally speaking, for most common uses of a computer these...
stanley lieber [Thu, 11 Dec 2014 19:45:51 +0000 (14:45 -0500)]
fortunes: UX-wise (and generally speaking, for most common uses of a computer these days), Plan9 is, sadly, almost useless.

9 years agoqmail: call mail instead of smtp with the wrong path
stanley lieber [Thu, 11 Dec 2014 19:45:16 +0000 (14:45 -0500)]
qmail: call mail instead of smtp with the wrong path

9 years agocfs: change default mountpoint to /mnt/cfs and fix the manual (thanks mischief)
cinap_lenrek [Thu, 11 Dec 2014 19:38:04 +0000 (20:38 +0100)]
cfs: change default mountpoint to /mnt/cfs and fix the manual (thanks mischief)

9 years agoacme: fix buffer overrun in xfidutfread() and xfidruneread(), cleanup
cinap_lenrek [Thu, 11 Dec 2014 19:20:47 +0000 (20:20 +0100)]
acme: fix buffer overrun in xfidutfread() and xfidruneread(), cleanup

the utf8 buffers b1 where allocated from fbufalloc() which gives
us BUFSIZE bytes, but Xfid->count can be bigger than that. so just
emalloc() the requested number of bytes.

when converting from Runes to utf-8, we have to account for the
terminating '\0' byte snprint() places, so fix the maxrune number
calculation instead of using BUFSIZE+1 as buffer size.

9 years agokbmap: fix sprint() buffer overflow (thanks silasm)
cinap_lenrek [Thu, 11 Dec 2014 17:32:50 +0000 (18:32 +0100)]
kbmap: fix sprint() buffer overflow (thanks silasm)

A buffer can be overflowed in the init function of kbmap.c by using a filename of more than 112 characters.

sample output:
% cd /sys/lib/kbmap
% touch aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
% kbmap
kbmap 1974: suicide: sys: trap: fault write addr=0xa6a96510 pc=0x000011df
offending code is most likely the call to sprint in the init function of /sys/src/cmd/kbmap.c,
which in this case writes /sys/lib/kbmap/$file to a 128-bit buffer.
I'm willing to submit a patch for this myself along with a few minor improvements/fixes to kbmap
if I can figure out the nuances of doing so.

--silasm

9 years agoplan9.ini(8): fix typo (thanks ftrvxmtrx)
cinap_lenrek [Thu, 11 Dec 2014 16:03:01 +0000 (17:03 +0100)]
plan9.ini(8): fix typo (thanks ftrvxmtrx)

9 years agoplan9.ini(8): etheryuk
cinap_lenrek [Wed, 10 Dec 2014 18:38:44 +0000 (19:38 +0100)]
plan9.ini(8): etheryuk

9 years agoplan9.ini(8): document bcm and virtio ethernet and hda and ac97 audio.
cinap_lenrek [Wed, 10 Dec 2014 18:29:46 +0000 (19:29 +0100)]
plan9.ini(8): document bcm and virtio ethernet and hda and ac97 audio.

9 years agoplan9.ini(8): remove factotumopts= (not implemented), add secstore=, clarify domain...
cinap_lenrek [Wed, 10 Dec 2014 17:34:08 +0000 (18:34 +0100)]
plan9.ini(8): remove factotumopts= (not implemented), add secstore=, clarify domain name use for fs= and auth=

9 years agobootrc: keep original address when ndb/dnsgetip fails and let dial complain
cinap_lenrek [Wed, 10 Dec 2014 17:02:41 +0000 (18:02 +0100)]
bootrc: keep original address when ndb/dnsgetip fails and let dial complain

9 years agobootrc: use "address" instead "ip" in wording netboot questions, as we domain names...
cinap_lenrek [Wed, 10 Dec 2014 16:37:53 +0000 (17:37 +0100)]
bootrc: use "address" instead "ip" in wording netboot questions, as we domain names are allowed now.

9 years agomerge
cinap_lenrek [Wed, 10 Dec 2014 02:24:21 +0000 (03:24 +0100)]
merge

9 years agobootfs: remove disk/kfs fileserver, nobody uses it
cinap_lenrek [Wed, 10 Dec 2014 02:22:59 +0000 (03:22 +0100)]
bootfs: remove disk/kfs fileserver, nobody uses it

9 years agobootrc: add ndb/dnsgetip resolver to bootfs so domain names can be used for fs=,...
cinap_lenrek [Wed, 10 Dec 2014 02:22:14 +0000 (03:22 +0100)]
bootrc: add ndb/dnsgetip resolver to bootfs so domain names can be used for fs=, auth= and secstore= (thanks mischief)

9 years agobootrc: preserve #ec/fs (thanks _sl)
cinap_lenrek [Wed, 10 Dec 2014 02:16:36 +0000 (03:16 +0100)]
bootrc: preserve #ec/fs (thanks _sl)

9 years agondb(8): document ndb/dnsgetip
mischief [Wed, 10 Dec 2014 01:33:09 +0000 (17:33 -0800)]
ndb(8): document ndb/dnsgetip

9 years agodnsgetip: filter negative answers, remove -f flag, use dnsgetip logfile
cinap_lenrek [Wed, 10 Dec 2014 01:30:25 +0000 (02:30 +0100)]
dnsgetip: filter negative answers, remove -f flag, use dnsgetip logfile

9 years agondb: add dnsgetip program to resolve A and AAAA records during bootstrapping
mischief [Wed, 10 Dec 2014 00:18:08 +0000 (16:18 -0800)]
ndb: add dnsgetip program to resolve A and AAAA records during bootstrapping

9 years agobootrc: handle multiple fs and auth addresses in netboot, always set auth= in /net/ndb
cinap_lenrek [Tue, 9 Dec 2014 23:30:07 +0000 (00:30 +0100)]
bootrc: handle multiple fs and auth addresses in netboot, always set auth= in /net/ndb

9 years agobootrc: do not pass authserver with -a flag to factotum, handle multiple secstore...
cinap_lenrek [Tue, 9 Dec 2014 21:26:30 +0000 (22:26 +0100)]
bootrc: do not pass authserver with -a flag to factotum, handle multiple secstore addresses

factotum is started in bootrc before the network is setup
(as we need it to negotiate wpa key for wifi). once, the network
is setup, the bootstrap authservers are passed in /net/ndb,
which factotum reads when doing bootstrap authdial. it does
this only when no authserver was specified earlier! but we
want net.rc to select the proper bootstrap authserver...

the $secstore variable takes precedence over $auth. as
there is no connection server yet, we have to select the set
of servers here and pass them to secstore with -s flag.
note that this will work if multiple addresses where
specified.

9 years agofactotum: accept multiple bootstrap auth servers in /net/ndb and -a arguments
cinap_lenrek [Tue, 9 Dec 2014 21:07:37 +0000 (22:07 +0100)]
factotum: accept multiple bootstrap auth servers in /net/ndb and -a arguments

we might have to deal with multiple bootstrap auth server
ip addresses (ipv4 and ipv6) in the future, so deal with them.

9 years agosecstore: allow multiple server addresses in $secstore and multiple -s arguments
cinap_lenrek [Tue, 9 Dec 2014 20:53:07 +0000 (21:53 +0100)]
secstore: allow multiple server addresses in $secstore and multiple -s arguments

on bootstrap, we might have to deal with multiple auth server ip
addresses (ipv4 and ipv6), so deal with it.

9 years agodevsegment: fix segmentcreate function signature
mischief [Tue, 9 Dec 2014 07:16:22 +0000 (23:16 -0800)]
devsegment: fix segmentcreate function signature