cinap_lenrek
aa2422b5eb
bootrc: keep original address when ndb/dnsgetip fails and let dial complain
2014-12-10 18:02:41 +01:00
cinap_lenrek
d4076731f1
bootrc: use "address" instead "ip" in wording netboot questions, as we domain names are allowed now.
2014-12-10 17:37:53 +01:00
cinap_lenrek
23b3407663
bootrc: add ndb/dnsgetip resolver to bootfs so domain names can be used for fs=, auth= and secstore= (thanks mischief)
2014-12-10 03:22:14 +01:00
cinap_lenrek
d75f5a24ba
bootrc: preserve #ec/fs (thanks _sl)
2014-12-10 03:16:36 +01:00
cinap_lenrek
665f0c8e3e
bootrc: handle multiple fs and auth addresses in netboot, always set auth= in /net/ndb
2014-12-10 00:30:07 +01:00
cinap_lenrek
17566b4dd3
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.
2014-12-09 22:26:30 +01:00
cinap_lenrek
f128c6eab0
boot: dont print errors if ethernet has no ifstats file, can happen with usb ethernet
2014-08-17 06:08:06 +02:00
stanley lieber
6a182d56b7
nusbrc: ensure rpi ethernet always appears as /net/etherU0
2014-06-29 14:58:03 -04:00
cinap_lenrek
4275c49e72
nusb: implement aijus stable uniqueue device names
...
instead of naming devices by ther dynamically assigned device address,
we hash device uniqueue fields from the device descriptor and produce
a 5 digit hex string that will identify the device across machines.
when there is a collision (less than 1% chance with 100 devices),
usbd will append the device address to the name to make it uniqueue
for this machine.
the hname is passed to drivers in the devid argument, which now has
the form addr:hname, where the colon and hname can be omited (for backwards
compatibility).
when the new behaviour isnt desired, nousbhname= environment variable
can be defined giving the old behaviour.
2014-06-28 18:09:43 +02:00
cinap_lenrek
972f60a794
nusbrc: dont fork usb drivers into background
...
probing needs to run synchronous to avoid races with other
readers of /dev/usbevent.
2014-06-04 23:59:17 +02:00
ftrvxmtrx
645510e5ce
boot/nusbrc: add another rndis device
2014-04-23 23:46:00 +02:00
ftrvxmtrx
99c0abc76d
nusb/ether: add RNDIS support (tested on Nexus 5)
2014-04-22 23:34:52 +02:00
cinap_lenrek
8d0e4cf37b
wpa support for tcp boot, remove duplicate secstore code from factotum
...
to run aux/wpa at boot, we need factotum to be running. tho
factotum was started only after the network was configured.
what we do now is start factotum early, not fetching keys
from secstore. once network is available and the auth server
is known, we fetch keys from secstore using auth/secstore in
bootrc.
to pass the authserver for p9 authentication to factotum, we
write it in /net/ndb and the special _authdial() in factotum
will picks it up.
as we are using auth/secstore binary in any case, we remove
the duplicated secstore code from factotum and make it just
exec auth/secstore to fetch the keys on startup (unless -n
or -S is specified).
2014-04-18 20:55:41 +02:00
Matthew Veety
3f9d92c1a8
similar to my last commit, but combined the two waits for the usb devices. still configurable, but with usbwait. If usbwait is not defined then it defaults to the original 2 seconds.
2014-02-14 00:11:11 -05:00
Matthew Veety
1d64be1984
added in a way to make net.rc wait for the network hardware to come up before running ip/ipconfig. This fixes the issue with the Raspberry Pi where ip/ipconfig tried running prior to /net/etherU3 exists
2014-02-14 22:05:25 -05:00
cinap_lenrek
6c2e983d32
kernel: apply uintptr for ulong when a pointer is stored
...
this change is in preparation for amd64. the systab calling
convention was also changed to return uintptr (as segattach
returns a pointer) and the arguments are now passed as
va_list which handles amd64 arguments properly (all arguments
are passed in 64bit quantities on the stack, tho the upper
part will not be initialized when the element is smaller
than 8 bytes).
this is partial. xalloc needs to be converted in the future.
2014-01-20 00:47:55 +01:00
ppatience0
225cc4af5c
nusb/ether: add rtl8150 driver, remove unused includes
2013-10-02 02:25:43 -04:00
cinap_lenrek
e55d105159
bootrc: +x
2013-10-02 02:01:43 +02:00
ppatience0
334054e0e7
nusb/ether: add aue driver for admtek pegasus usb ethernet adapter
2013-08-24 19:18:15 -04:00
ppatience0
84172fc961
bootrc: fix spacing when asking for fs/auth ip
2013-04-28 18:34:47 -04:00
cinap_lenrek
c3105131fe
bootrc: fix mistake, god damn it
2012-12-06 03:46:22 +01:00
cinap_lenrek
620d6df973
bootrc: reparse all env variables, not just #ec
2012-12-06 02:03:59 +01:00
cinap_lenrek
23239adf54
nusb/ether: port drivers for asix and smsc ethernet
2012-12-06 23:05:24 +01:00
cinap_lenrek
0750687012
move usb ethernet in bootfs.paq
2012-12-05 13:53:34 +01:00
cinap_lenrek
2c4a77f21f
devproc: remove pgrpid == 1 check for notepg open
...
assuming that this check tried to prevent the hostowner
from killing init, it is silly because init would just
handle the note.
with kbdfs, we actually want to send interrupt note to
the initial process group so instead of working arround
this with rfork(RFNOTEG|RFNAMEG), we remove the check.
2012-11-07 18:57:02 +01:00
cinap_lenrek
599dd1c34f
make interrupt key (Del) just work in the console
...
these changes make the interrupt key available in the
console (before rio is started).
kbdfs: will now send a "interrupt" note to its invoking
process group in cooked mode.
bootrc: is now prepared to handle interrupts, mainly to
not accidently spawn a new bootargs prompt.
init: forwards the interrupt to the cpurc/termrc pgrp.
vncs: shields itself from kbdfs notegroup so interrrupt
wont kill the whole vnc session.
2012-11-06 17:19:41 +01:00
google
577a9f763f
Prevent nusb/disk and nusb/kb from blocking nusbrc
2012-09-06 13:15:59 +12:00
cinap_lenrek
1de9ca2de5
bring back il protocol support
2012-05-03 10:47:40 +02:00
cinap_lenrek
02217fa6c2
boot: check nousbrc boot parameter, add delay
2012-03-01 18:55:42 +01:00
cinap_lenrek
63f2214164
boot: ignore led file in /dev/sd*
2012-02-28 21:42:25 +01:00
cinap_lenrek
367b4be219
nusbrc: fix permissions, was broken when the complication got a complication
2012-01-09 21:30:57 +01:00
cinap_lenrek
95742d95a9
cleanup
2011-12-13 16:16:21 +01:00
cinap_lenrek
9194371eac
kbdfs: add -q (quiet) option
2011-09-02 15:16:10 +02:00
cinap_lenrek
df6360169f
nusbrc: $usbdelay
2011-08-28 21:07:20 +02:00
cinap_lenrek
cd47b3e9d4
bootrc: prefer 9660 filesystem as default on cdboot, restart factotum, delay for usb
2011-08-28 20:37:20 +02:00
cinap_lenrek
9403363364
bootrc: dont try to convert kernel variables, fix quoting
2011-08-27 17:58:20 +02:00
cinap_lenrek
6d9f649c41
bootrc: broke #ec copying, fix it. dontkill: ignore errors
2011-08-27 17:20:42 +02:00
cinap_lenrek
ce1915c53e
bootrc: simplify by just converting all variables from #ec
2011-08-23 00:24:24 +02:00
cinap_lenrek
e1488b2de7
bootrc: use rtc. temporarily.
2011-08-22 11:20:32 +02:00
cinap_lenrek
c44b78f739
change definition of Chan.create to return a chan like open
2011-08-17 23:27:31 +02:00
cinap_lenrek
f682600440
serial console stuff
2011-08-16 10:15:36 +02:00
cinap_lenrek
828f63711b
9boot: list known filesystem images on usb stick as boot filesystems
2011-08-16 04:09:15 +02:00
cinap_lenrek
04fa57de3a
usb storage device auto mount
2011-08-16 01:50:46 +02:00
cinap_lenrek
cb9e638c00
bind devshr to /shr
2011-08-16 01:49:37 +02:00
cinap_lenrek
b39d5fbbef
devshr: security!
2011-08-15 18:27:30 +02:00
cinap_lenrek
b43de8eb1f
nusb: fix usage inconsitency, shr names
2011-08-01 02:36:02 +02:00
aiju
2ba1b4c476
changed dev/rmdev to attach/detach, fixed nusbrc
2011-07-30 16:28:45 +02:00
aiju
54ed5417a9
merge
2011-07-30 14:32:33 +02:00
aiju
6aed9711b4
devshr: changed #σc to contain directories
...
nusb: detaching
2011-07-30 14:30:27 +02:00
cinap_lenrek
3f08f1d849
nusb: make private namespace for usb drivers, add nusb/audio to mkfile
2011-07-30 14:15:55 +02:00
cinap_lenrek
a2a95b615e
nusb: fix race
2011-07-30 07:34:17 +02:00
cinap_lenrek
f9846213d1
nusb: change usbevent format, put nusbrc in bootfs
2011-07-30 07:23:26 +02:00
cinap_lenrek
12619cb9a5
kbdfs: mouse button 2 emulation by changing mouse buttonmap when shift is pressed
2011-07-17 18:15:29 +02:00
cinap_lenrek
5fa804d69f
boot(8): simplify
2011-06-16 17:35:07 +02:00
cinap_lenrek
cde40efb0c
boot(8): add cfs support
2011-06-15 14:50:29 +02:00
cinap_lenrek
c4996be04f
boot(8): handle flags and arguments in bootrc
2011-06-14 21:03:03 +02:00
cinap_lenrek
f9c92129f3
boot(8): exec() bootrc instead of forkinga sub process
2011-06-04 08:43:45 +00:00
cinap_lenrek
7827e7ae6f
cleanup boot(8), replace read(1), fix cpu kernel configs
2011-06-04 08:07:21 +00:00
cinap_lenrek
f55d5517ed
boot(8): strip bootfs
2011-06-04 07:18:11 +00:00
cinap_lenrek
792b186b3a
boot(8): replace bzfs with paqfs
2011-06-04 05:19:29 +00:00
cinap_lenrek
1ac9d6ab0e
boot(8): fix null list in concatenation error for ! input
2011-05-21 03:42:13 +00:00
cinap_lenrek
76f99f7cb3
serial console support
2011-05-13 08:53:43 +00:00
cinap_lenrek
2febff5948
boot and namespace cleanup
2011-05-10 09:14:30 +00:00
cinap_lenrek
26c2845917
kbdfs
2011-05-09 08:32:14 +00:00
cinap_lenrek
67856b4507
bootargs=tcp fix
2011-05-06 07:02:22 +00:00
stanley lieber
84fb59d71a
bootrc: set sysname
2011-05-04 19:12:02 +00:00
cinap_lenrek
2908369aeb
add glenda to upas group on install
2011-05-04 14:33:04 +00:00
cinap_lenrek
7d87f85671
inst: reintroduce iso mounting for usb, replace /rc/bin/inst/isxxx with /rc/bin/fstype, remove fossil/venti specific code, rename plan9.iso to 9front.iso
2011-05-02 03:01:52 +00:00
cinap_lenrek
fa9a40027b
boot(8): merge usb boot method into local
2011-05-02 01:21:55 +00:00
ment
d78b83bdfc
boot: mountpoint fix
2011-04-30 17:06:05 +02:00
ment
6a4063e245
merge
2011-04-30 16:52:50 +02:00
cinap_lenrek
db7290d79e
cwfs: fix network listener, relay auth errors. boot(8): split bootargs only on first ! char, prepare /net so cwfs can announce 9fs
2011-05-01 07:07:32 +00:00
cinap_lenrek
064bce0841
boot(8): dont ask for keys every time on cpu kernel
2011-05-01 03:25:02 +00:00
cinap_lenrek
15656fc79d
boot(8): fix boot restarting
2011-04-30 20:17:33 +00:00
ment
012dec1119
boot: partitioning USB disks, mounting 9front.iso from FAT partition
2011-04-30 16:43:54 +02:00
cinap_lenrek
d719f8946c
boot(8): i'm bad at rc :-\
2011-04-23 18:22:24 +00:00
cinap_lenrek
b14bc93a79
boot(8): cleanup enviroment variables before init
2011-04-21 22:22:25 +00:00
cinap_lenrek
e8635a732a
boot(8): use first detected filesystem as bootargs default
2011-04-21 12:49:59 +00:00
cinap_lenrek
0aa4074bc1
boot(8): properly invoke filesystem wihout overriding service name to boot
2011-04-21 11:15:52 +00:00
cinap_lenrek
19a82a2654
add fstype command to detect 9660, kfs and cwfs filesystems
2011-04-21 10:40:03 +00:00
stanley lieber
18e9fc3615
usb driver does not present partition data via the ctl file. obtain partition data by performing ls on /dev/sd* directories.
2011-04-19 01:58:29 +00:00
cinap_lenrek
1b1fac3874
boot(8): fix it
2011-04-19 05:24:46 +00:00
iru
3029059953
merge
2011-04-17 17:27:47 -03:00
iru
b261a0c31b
Add /sys/src/9/boot/tread, a tool to read a line with a timeout.
...
While here, remove boot(8) references to pcload.
2011-04-17 17:25:55 -03:00
cinap_lenrek
6a197909c4
boot(8): usb/usbd might fail when no hubs are detected
2011-04-18 07:17:49 +00:00
cinap_lenrek
a455c61024
boot(8): kfs support
2011-04-18 06:33:38 +00:00
cinap_lenrek
0087d42a68
boot(8): add cwfs support to, restart if mount fails, usbd. cwfs: exit code
2011-04-18 05:58:04 +00:00
cinap_lenrek
9d24a107a5
boot(8): changed tread to read, other: fix perms
2011-04-18 01:59:36 +00:00
stanley lieber
55a28480b2
usb drives won't match sd??. use sd[A-Z][0-9]* instead.
2011-04-17 20:19:18 +00:00
iru
478d102443
Initial import of the new boot(8). Change pccd and pcf to use it.
2011-04-16 17:42:16 -03:00
cinap_lenrek
05569f6f2c
perms
2011-04-11 15:38:29 +00:00
Taru Karttunen
8f69bf2252
Some more permissions for kernel compile
2011-03-31 09:06:36 +00:00
Taru Karttunen
a9060cc06b
Import sources from 2011-03-30 iso image - lib
2011-03-30 19:35:09 +03:00
Taru Karttunen
e5888a1ffd
Import sources from 2011-03-30 iso image
2011-03-30 15:46:40 +03:00