Michael Brown
b08a6f5300
[Command] Add "sanboot" command.
vor 16 Jahren
Michael Brown
74fd544101
Added the embedded pxelinux payload patch from hpa.
vor 17 Jahren
Michael Brown
9747c1a486
Remove the obsolete pre-aBFT AoE boot table.
vor 17 Jahren
Michael Brown
fb809da2df
Remove some assumptions about DHCP obtaining only a single options block.
vor 17 Jahren
Michael Brown
218651e125
Display name and status of each file as it is downloaded.
vor 17 Jahren
Michael Brown
710c6c1be1
Error message cleanups.
vor 17 Jahren
Michael Brown
d4947c05b2
Allow images to hold references to the originating URI.
Some shuffling around of the image management code; this needs tidying up.
vor 17 Jahren
Michael Brown
291d69d7fd
Added support for draft version of the AoE Boot Firmware Table.
vor 17 Jahren
Michael Brown
dde3f99e4e
Fix endianness of "shelf" field
vor 17 Jahren
Michael Brown
d0abffc2f6
Added the AoE boot information table as used by Vampyre's AoE
initiator. This table needs to be replaced by something similar to
iBFT (i.e. scanned for and identified by signature, rather than being
at a fixed address), but it works for now.
vor 17 Jahren
Michael Brown
43013da9bf
Quick hack to get AoE back in to the tree, on a par with the current
iSCSI hack.
vor 17 Jahren
Holger Lubitz
1ec846b038
make netboot() static
vor 17 Jahren
Michael Brown
47a86bca2d
Prepare for iBFT merge when possible. iscsiboot.c contains a really,
really ugly hack at present, but that doesn't hugely matter since I'm
aiming to change the interface to iSCSI devices anyway within the next
week.
vor 17 Jahren
Michael Brown
487dc5be56
Fix up iscsiboot missing prototype warnings
vor 17 Jahren
Michael Brown
b94420a52b
Ready to start testing
vor 17 Jahren
Michael Brown
539ff45fd0
Allow recording of TX and RX errors to aid in end-user debugging.
vor 17 Jahren
Marty Connor
9b3c4e4d79
Warnings purge: src/arch/i386, src/core/disk.c, ramdisk, autoboot
vor 17 Jahren
Michael Brown
4968caab82
Add trivial net device statistics (TX and RX packet count), reported
via UNDI API and also by ifstat command; may be useful for debugging.
vor 17 Jahren
Michael Brown
e4c9c91d6e
Removed debugging statements that should not have been checked in.
vor 17 Jahren
Michael Brown
4b08f4cf0f
Quick hack to get image booting working again
vor 17 Jahren
Michael Brown
7d6e4aab6f
Use monojob and dhcp_configure_netdev().
vor 17 Jahren
Michael Brown
07dc294de8
Update DHCP to use data-xfer interface (not yet tested).
vor 17 Jahren
Michael Brown
e708137029
DNS code now records a whole struct sockaddr for the name server.
vor 17 Jahren
Michael Brown
b256900d4f
Scripts temporarily deregister themselves while executing. This
allows us to avoid execution loops without having to hack around the
image registration order.
vor 17 Jahren
Anselm Martin Hoffmeister
ed7dc02a95
hoffmeis: Preparations for syslog support (LOGSERVER in DHCP, linewise
output buffering defintions and the like)
vor 17 Jahren
Michael Brown
160e66dbb9
Typo
vor 17 Jahren
Michael Brown
bde8878eef
Keep HTTP progress updated, and display a progress indicator during the
download
vor 18 Jahren
Michael Brown
73b09ecba6
Use stdio.h instead of vsprintf.h
vor 18 Jahren
Michael Brown
4e3976711d
A working name resolution framework
vor 18 Jahren
Michael Brown
dd6d94004f
HTTP/DNS now working fully asynchronously. HTTP/IP addresses and any
other protocol won't work at the moment.
vor 18 Jahren
Michael Brown
544fa25928
Rename e{malloc,realloc,free} to u{malloc,realloc,free}, to more obviously
reflect the fact that they allocate and deallocate user memory (i.e.
things reached through a userptr_t).
vor 18 Jahren
Michael Brown
ff8528ea9a
Create and use async_block() macro; it cuts down on the visual overhead
of blocking on asynchronous operations, when that isn't an important
aspect of the code.
vor 18 Jahren
Michael Brown
f11da20f25
When a network device is specified to tcpip_tx() or it's children, treat
it as a fallback network device rather than an explicitly forced network
device.
Clear routing table entries before re-attempting DHCP.
vor 18 Jahren
Michael Brown
df0397f334
Update TFTP and FTP to take the same temporary URI scheme as HTTP
vor 18 Jahren
Michael Brown
afa752f5fb
Protocol's get() method no longer takes ownership of the URI. HTTP is the
exception rather than the rule; we may as well keep things clean for other
protocols.
vor 18 Jahren
Michael Brown
4e20d73bb5
Gave asynchronous operations approximate POSIX signal semantics. This
will enable us to cascade async operations, which is necessary in order to
properly support DNS. (For example, an HTTP request may have to redirect
to a new location and will have to perform a new DNS lookup, so we can't
just rely on doing the name lookup at the time of parsing the initial
URL).
Anything other than HTTP is probably broken right now; I'll fix the others
up asap.
vor 18 Jahren
Michael Brown
341c0b9cfb
Add HTTP test support
vor 18 Jahren
Michael Brown
49fc8dcdc3
Use dhcp(), imgfetch() etc. to boot rather than dhcp_test().
vor 18 Jahren
Michael Brown
9952df9b52
Add "dhcp" command
vor 18 Jahren
Michael Brown
e2c0055e23
Let ifmgmt.c take care of calling efree(), since it's the once which
took out the contract to eventually call efree() when it called fetch().
Maintain the most recently loaded image at the start of the list, so that
imgautoselect() will pick it.
vor 18 Jahren
Michael Brown
39ede8c7e8
Added dhcp() user-level command.
vor 18 Jahren
Michael Brown
475d6d1f7c
fetch() now knows nothing about struct image; it simply loads a file and
returns the allocated buffer.
vor 18 Jahren
Michael Brown
2876197306
Allow "imgexec" with no arguments to boot the file that was loaded with
"kernel".
vor 18 Jahren
Michael Brown
f135a37f30
Cleaner separation between imgXXX() functions and image_cmd.c
vor 18 Jahren
Michael Brown
9817f93094
Add basic "fetch" and "imgstat" commands.
vor 18 Jahren
Michael Brown
de042993c0
Warn when net device on an active route is not open.
vor 18 Jahren
Michael Brown
d9ba8f790b
Add route() function to display routing table.
vor 18 Jahren
Michael Brown
78ded6604a
Try booting from the "boot" network device first (i.e. the one which we
were loaded from). The code to identify this device isn't present yet,
but the code to act upon the knowledge is.
vor 18 Jahren
Michael Brown
dad5274522
Add "name" field to struct device to allow human-readable hardware device
names.
Add "dev" pointer in struct net_device to tie network interfaces back to a
hardware device.
Force natural alignment of data types in __table() macros. This seems to
prevent gcc from taking the unilateral decision to occasionally increase
their alignment (which screws up the table packing).
vor 18 Jahren
Michael Brown
55e590ab3a
Move header file for usr/autoboot.c to include/usr
vor 18 Jahren