Age | Commit message (Collapse) | Author |
|
Tested with tp-link UE305, works well.
From all other sources it seems this should also work for the
88178a, but I didn't have one on hand.
|
|
|
|
Mount /fd, /proc, /srv and /shr in initcode
and open /dev/cons instead of #c/cons.
This way, /boot/boot could theoretically be a rc-script
and there is less reliance on magic device characters.
|
|
Unplugging and then reattaching a keyboard or a mouse causes nusb/kb to
sysfatal() since the service file it's trying to create already exists.
|
|
|
|
This makes it much easier to run a rc
program without needing to bind in all of '#s/boot'.
|
|
|
|
|
|
With the intel wifi firmware, this saves around 3MB of the
kernel image size.
|
|
- avoid print() format routines (saves alot of code)
- avoid useless opens of /dev/cons (already done by initcode)
- avoid useless binds of /env and /dev (already done by initcode)
- do bind of /shr in bootrc, it is not needed by us
- we'r pid 1 so kernel will print the exit message for us
|
|
|
|
/sys/src/9/boot/nusbrc (thanks romano)
|
|
|
|
|
|
|
|
the rc & operator changes stdin to /dev/null, so we
have to do the <[0=1] inside the {}
this never showed up as an issue because many
fileservers just read 9p messages from standard
output.
|
|
|
|
this can happen with nusb/ether, which does not implement ifstats file.
|
|
wpapsk=password boot parameter
this allows automatic netbooting without password prompt
for the wirelss network.
|
|
we want devip to get reattached after hostowner has been written. factotum
already handles this with a private authdial() routine that mounts devip
when it is not present. so we detach devmnt before starting factotum,
and attach once factotum finishes.
|
|
devip remembers the attach uname so after we set hostowner we
remount devip so future connections have the right owner.
|
|
we did not interpret the $rootdir and $rootspec environment
variables right. $rootdir is what gets bound to / (usually /root)
and $rootspec is the mountspec of /root.
|
|
|
|
|
|
|
|
IAD csp(0102EF) (thanks sam-d)
|
|
|
|
|
|
|
|
syntax: reboot!bootfile[!method...]
this echos bootfile to /dev/reboot, causing bootfile kernel
to be started.
when method is given, we first connect to the filesystem and
set bootargs so that bootfile can be loaded from the target
network or local fileserver.
note, when no bootfile is given, this causes the kernel to
reboot to bios.
|
|
|
|
for ip autoconfiguration, setup ipv6 link local addresses
and do SLAAC in parallel to DHCP.
|
|
|
|
|
|
|
|
mechanism to pass arguments to /boot/boot
|
|
devfs:
- fix memory leak in devfs leaking the aes key
- allocate aes-xts cipher state in secure memory
- actually check if the hexkey got fully parsed
cryptsetup:
- get rid of stupid "type YES" prompt
- use genrandom() to generate salts and keys
- rewrite cryptsetup to use common pbkdf2 and readcons routines
- fix alot of error handling and simplify the code
- move cryptsetup command to disk/cryptsetup
- update cryptsetup(8) manual page
|
|
to the file server
|
|
theres a bootstrap problem:
when /bin/init is run, it processes /lib/namespace where we might want to
mount or bind resources to /n or /mnt. but mntgen was run later in
cpurc/termrc so these mounts would be ignored.
we already have mntgen in bootfs, so we can provide these mountpoints early.
i keep the termrc/cpurc mntgens where they are, but ignore the error
prints. this way old kernels will continue to work.
|
|
|
|
to solve the usb device enumeration race on boot, usbd creates /env/usbbusy
on startup and once all devices have been enumerated and readers have consumed
all the events, we remove the file so nusbrc/bootrc can continue. this makes
sure all the usb devices that where plugged in on boot are made available.
|
|
|
|
|
|
|
|
on some usb drives, there is no dos partition table, so check
the filesystem type and consider the whole drive.
|
|
|
|
|
|
|
|
|
|
bootmkfile will now looks for the following proto files in order
and pick the first one it finds to build the bootfs.paq file:
1) $CONF.boofs.proto (config specific)
2) bootfs.proto (kernel specific)
3) $BOOTDIR/bootfs.proto (default generic)
|