summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand
AgeCommit message (Collapse)Author
2012-01-11Pass the DUID of the boot disk via bootduid instead of rootduid, since itJoel Sing
is the DUID that we booted from, which is not always going to be the same as the DUID that we mount root on.
2011-12-03Remove an OpenBSD-specific tweak regarding .Xr spacingIngo Schwarze
and make it compatible with bsd.lv mandoc and with groff-1.21. This tweak was originally added for compatibility with groff-1.15, which is no longer needed. ok jmc@ kristaps@
2011-11-13If a softraid chunk is offline we are not necessarily going to have theJoel Sing
disk/partition name - in this case print the chunk number instead.
2011-11-06Build boot(8) for i386 in the same manner that we build boot(8) for amd64 -Joel Sing
specify a list of source files to compile, instead of building and linking against libraries. ok deraadt@
2011-07-19Warn about but don't prevent installboot from installing /boot whenKenneth R Westerback
the OpenBSD partition starts at >128G. This restores previous behaviour but adds the warning. ok deraadt@ guenther@
2011-07-05Don't write /boot to sector 0 on non-floppy devices. Non-floppyKenneth R Westerback
devices must have an OpenBSD MBR partition to install /boot into. But search anything except floppy devices (e.g. vnd) for such a partition. Feedback & ok deraadt@
2011-07-05More non-512-byte sector groundwork. Don't let disklabel hint thatKenneth R Westerback
a ffs frag size can be less than the d_secsize of the disk. Make sure amd64 writedisklabel() puts the disklabel where readdoslabel() will read it. Tweak i386/amd64 installboot/biosboot so sectors are indeed used where sectors are claimed. Lets me fdisk, newfs, mount and installboot onto 2048 and 4096 byte sector devices. Other filesystem utilites will still hold surprises. Note that actually booting from such devices will await BIOSen that acknowledge such devices as bootable. ok guenther@
2011-07-03Change name of pointer to partition from pl to pp, as is used everywhere ↵Kenneth R Westerback
else, No functional change.
2011-06-26kill mcd dead. ok krw matthew millert thibTed Unangst
2011-06-26remove remnants of scd device, discovered by Frederic PerrinTed Unangst
2011-04-26Make amd64/i386 boot(8) pass the DUID of the selected boot device to theJoel Sing
kernel so that it can use it to identify the root disk. This will be needed in order to correctly boot from a softraid volume. ok deraadt@ marco@ krw@
2011-04-24Don't leak fd's in sr_installboot(). From cppcheck via Amit Kulkarni.Kenneth R Westerback
2011-03-19Make amd64/i386 installboot error out if /boot would cross theKenneth R Westerback
BOOTBIOS_MAXSEC line. ok deraadt@.
2011-03-17Make the various findopenbsd() functions non-recursive, eliminatingKenneth R Westerback
a global, a couple of parameters, and opening up possibility of traversing much longer EBR lists without blowing the stack. Make seach algorithm the same as used in kern/subr_disk.c by checking all primary partitions in the MBR/EBR before moving to next EBR. This makes it more likely that everybody finds the same OpenBSD partition. Largely from a diff posted to tech@ by ucsavl.
2011-03-15Bunch of white space and style adjustments to make amd64 versionKenneth R Westerback
the same as i386 version. No change to .o file except for the one %lld -> %u format fix.
2011-03-14Clamp BIOS io attempts to < 2 ^28 - 1 sectors (a.k.a. 128GB forKenneth R Westerback
512-byte sectors) as some BIOSen get confused when we ask for sectors higher up. Uss u_int throughout the boot code to calculate sector addresses, since 32 bits is enough to do 28 ^ 1 - 1 arithmetic. Add checks for wraparound. I can now install and boot from the 7th extended partition below 128GB. Much feedback & guidance from deraadt@. Also from weingart@ on BIOS io. ok deraadt@ (less a couple of minor tweaks found in testing)
2011-03-13Change daddr_t to daddr32_t. The bootblocks on our architectures onlyTheo de Raadt
do 32-bit block spanning. If later on we get some that can/should do 64-bit, that can be done now using daddr64_t (but of course, we are taking this step to finalize the daddr_t 64-bit conversion). ok miod krw
2011-03-11Zap stack garbage before passing buffer to biosd_io(), which mayKenneth R Westerback
be lied to by the BIOS about successfully reading data. ok deraadt@ weingart@
2011-03-08Fix extended partition searching so we don't get lost. The offsetKenneth R Westerback
of the next EBR is relative to the start of the extended partition described in the first MBR, not relative to the EBR specifying the offset in its extended partition entry. Clean up installboot -v output. Use daddr64_t for all sector numbers. Not a complete fix, but better than what we had. More tweaks to come. Inspired by a diff and cluebat from uscav on tech@ a few weeks ago. Feedback from matthew@, weingart@. ok deraadt@
2011-03-02- change recieved -> received in comments, as well as two unused definesJasper Lievisse Adriaanse
in pxe.h. ok deraadt@ sthen@
2011-01-23Add support to installboot(8) for installing biosboot(8) and boot(8) onJoel Sing
softraid volumes. If installboot is run on a softraid volume, a fake single inode FFS filesystem is constructed to contain boot(8). This is then installed onto the softraid volume via the BIOCINSTALLBOOT ioctl. biosboot(8) is then patched and installed onto each disk that is a member of the softraid volume. Joint work with otto@ who came up with the concept of constructing a fake FFS filesystem and wrote the code to do so. No objection from miod@
2010-12-06- properly remove NENTS now after fixing the fallout.Jasper Lievisse Adriaanse
ok deraadt@
2010-12-06- partially revert previous NENTS removal for arches which got busted.Jasper Lievisse Adriaanse
2010-12-06- drop NENTS(), which was yet another copy of nitems().Jasper Lievisse Adriaanse
no binary change ok deraadt@
2010-11-20__attribute__((packed)) -> __packed. The ioprbs.c chunk was commented out, andMiod Vallat
uncommenting it is intentional. ok deraadt@
2010-08-11crank versionTheo de Raadt
2010-08-11De-inline CHS_rw. Somehow the merger of two monster __asm __inline statementsTheo de Raadt
into one function is generating broken code; it might be because of missing register clobbers. This is a workaround... it'd be nice to know the real problem work done with mlarkin and pirofti
2010-08-10add a description for bsd.sp where appropriate; while here, writeIgor Sobrado
"multiprocessor" in a consistent way. written with lots of good advice from jmc@, who noted that changing hier(7) was not enough and carefully reviewed this diff. ok jmc@
2010-07-10and cdboot must be linked with -N still, too. even more curiousTheo de Raadt
2010-07-10actually, pxeboot must remain linked with -NTheo de Raadt
2010-07-10link bootblocks with -Z instead of -N, to ensure that the file offset andTheo de Raadt
addresses line up correctly. Newer i386 gcc4 - for some reason -- is prompting the linker with -N to not do this alignment which it used to do (perhaps because the alignment of all .o's have dropped to very small amounts??). Using -Z wastes around a page of bootblock space which matters even more on the small install media, so this definately needs revisiting. Workaround from toby
2010-07-02usefull -> useful;Jason McIntyre
2010-07-02Add ability to limit memory presented to kernel withTobias Weingartner
'machine memory =128M' style commands. Thanks to phessler for finding a small man page niggle. Bumped version strings to a nice round fraction, and make them the same across the board. Easier to identify boot binary versions that way. ok thib@, tedu@, phessler@
2010-05-07fix packed use as pointed out by gcc4.Jonathan Gray
ok kettenis@
2010-04-23Recycle unused disklabel fields in order to create a disklabel uniqueJoel Sing
identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
2010-03-06remove the (now inaccurate) note about not being able to runJason McIntyre
installboot on a mounted partition; from J.C. Roberts
2010-03-04has been no -r flag for a few years; J.C. RobertsTheo de Raadt
2009-11-30Bump up array size to prevent overflow when probing memoryCan Erkin Acar
on machines reporting > 32 memory regions. ok kettenis@
2009-09-30Fix comments to match reality.Tobias Weingartner
Thank you Vladimir Kirillov <proger () hackndev ! com>
2009-05-30Without -v, be quietTheo de Raadt
ok toby
2009-05-21The only value that d_npartitions should have is MAXPARTITIONS.Kenneth R Westerback
2009-04-30add support for passing db_console from the bootloader to the kernel.David Gwynne
based on the same change in amd64.
2009-04-23-v was printing some information which is irrelevant or duplicate. ThisTheo de Raadt
shrinks the output of installboot by a few lines.
2009-02-16Cancel the automatic boot when you hold ctrl to skip boot.conf.Stuart Henderson
"I like it" deraadt "sweet" tedu "love it" marco
2009-01-16add next-server option to exampleOleg Safiullin
ok jmc@ stevesk@
2008-12-10When booting from a CD on i386/amd64, assume the root filesystemKenneth R Westerback
is on the CD rather than always asking for its location. Behaviour pointed out at OpenCON by Stephan Rickauer. Tested by Stephan. nick@ has no objections. ok deraadt@
2008-10-04The wrong byte of the return code was being looked at for theTheo de Raadt
PCI probe. Yuichiro Goto, PR 5048 It would be nice if someone with a "pci0 at mainbus0 bus 0: configuration 2" system would double check this and mail us back. ok toby
2008-08-12Fix multiple addition error recently introduced for when extended partitionsTheo de Raadt
are just before an OpenBSD partition in a MBR; done with kettenis & otto ok reyk
2008-08-04fix extended partition support by handling chained EBRs correctlyReyk Floeter
(using a recursion limit). now OpenBSD can be installed in a subsequent DOS/Linux-compatible extended partition. ok krw@ deraadt@
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@