summaryrefslogtreecommitdiffstats
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
* Increment the disk block offset after writing, not before. Thisiedowse2006-05-311-3/+3
| | | | | | | | | | fixes filesystem corruption when nextboot.conf is located after cylinder 1023. The bug appears to have been introduced at the time bd_read was copied to create bd_write. PR: bin/98005 Reported by: yar MFC after: 1 week
* - Replace the entry for the no longer existing lnc(4) module with anmarius2006-05-141-2/+3
| | | | | | entry for the replacement le(4) module. - Add an entry for the gem(4) module. - Remove gratuitous whitespace in the description of the hme(4) entry.
* Add a bootable CD support.nyan2006-05-144-1/+1169
|
* Remove more Alpha bits from the boot code including fixing severaljhb2006-05-1211-30/+8
| | | | stale comments.
* Remove Alpha bits for ficl.jhb2006-05-124-544/+0
|
* First pass at removing Alpha kernel support.jhb2006-05-1162-6642/+0
|
* Fix build (s:pc98/cbus/cbus.h:pc98/pc98/pc98_machdep.h:)nyan2006-05-091-1/+1
| | | | Pointyhat to: nyan
* Restore the pre-5.x behavior of only beeping if the user makes a badjhb2006-05-031-5/+8
| | | | | | | | | | | selection and not always beeping on startup. The two bytes for the extra 'jmp' instruction were obtained by removing recognition of BSD/OS partitions. Requested by: many Tested by: subset of many Head nod: imp, keramida MFC after: 2 weeks
* Use PTOV() to convert physical addresses to appropriate virtual addressesjhb2006-04-251-2/+4
| | | | | in the loader when searching for the ACPI RSDP. (The loader runs in a flat mode with va 0 == pa 0xa000.)
* MFp4:imp2006-04-211-2/+2
| | | | | Make getc(0) polling (this has the happy side effect of saving 8 bytes in the generated code).
* MFp4: Loop forever getting characters... A kludge for now.imp2006-04-211-1/+1
|
* MFp4: Integrate support for building tag support for linux booting.imp2006-04-211-0/+7
|
* MFp4:imp2006-04-211-5/+2
| | | | | | Init eeprom here now that we don't init the eeprom in arm_init.s and read in the second 8k of the data. Tweak formatting.
* Move from arm_init.s -> .S. #ifdef linux vs freebsd defaults for theimp2006-04-212-13/+10
| | | | | boot loader (linux booting helps regression testing). No repo copy because of limited history.
* MFp4: formatting nits and minor style changes that likely won't matter.imp2006-04-211-2/+2
|
* Allow one to enable building tags. Check the size of the boot imag.imp2006-04-211-2/+15
|
* MFp4:imp2006-04-211-1/+13
| | | | | On the KB9202 go ahead and enable the flash controller so the boot loader can access the parallel flash.
* MFp4:imp2006-04-211-1/+3
| | | | | | | Make this compile, assuming that you have linux installed in a sensible place. tag_list is disabled by default, since we don't distribute linux, but it is desirable to allow the boot loader to boot Linux or FreeBSD (mostly for testing).
* MFp4:imp2006-04-211-2/+2
| | | | Minor diffs to reduce diffs to p4.
* spi flash updating boot loader. upload this file for the recoveryimp2006-04-213-0/+92
| | | | | | xmodem download. Then download the image you want in the flash. This will burn the image into the flash. You must then reset the unit and the new flash image will be used for booting...
* iic eeprom updating boot loader. upload this file for the recoveryimp2006-04-213-0/+98
| | | | | | xmodem download. Then download the image you want in the eeprom. This will burn the image into the eeprom. You must then reset the unit and the new eeprom image will be used for booting...
* Add boot0iic and boot0spi. These are 'shortcut' boot loaders designedimp2006-04-211-1/+1
| | | | | to replace either a bad iic eeprom with one you download with xmodem, or likewise with a spi flash.
* MFp4 (checkpoint of work in progress):imp2006-04-1934-48/+2979
| | | | | | | | | | | | o Use a directory layout that is more akin to the i386 boot layout. o Create a libat91 for library routines that are used by one or more of the boot loaders. o Create bootiic for booting from an iic part. o Create bootspi for booting from an spi part. o Optimize the size of many of these routines (especially emac.c). Except for the emac.c optimizations, all these have been tested. o eliminate the inc directory, libat91 superceeds it. o Move linker.cfg up a layer to allow it to be shared.
* Fix style nit noticed by bde.imp2006-04-151-1712/+1712
|
* Add commented out define for TSC board's boot0.imp2006-04-131-0/+1
|
* MFp4:imp2006-04-131-4/+7
| | | | | | | | | | For 32-bit SDRAM systems, enable D16 to D31 in the PIO controller. Otherwise they read back as 0xffff. Shave 8 bytes from the object size by using AT91C_BASE_PIOA directly and by not assigning PIO_BSR to 0 in the DBGU init. That's a nop in two ways (everything defaults to peripheral A, and writing 0 changes nothing).
* Merge from p4:imp2006-04-131-1084/+1084
| | | | | | | | | | | | | | | Many places used #define FOO ((unsigned int) 0x23) where a simpler #define FOO 0x23u would have sufficed. This practice is overly verbose and has the disadvantage that you can't say #if FOO == BAR #endif because the extra "unsigned int" tokens choke cpp's little brain. Migrate to the latter style to allow use in preprocessor statements. The two are the same semantically anyway in a C context (at least for the uses they are put to presently, C gurus can explain to me how they differ).
* Need at91rm9200_lowlevel.h for SDRAM_BASE definition.imp2006-04-131-0/+1
|
* Common register definition for AT91RM9200imp2006-04-121-0/+2747
|
* Recovery boot loader for the AT91 family of processors. Download itimp2006-04-1211-0/+769
| | | | | | | | | | | | | | | | via xmodem to the DBGU port when the AT91 comes up in recovery mode. The recovery loader will then load your program via xmodem into SDRAM at 1MB which can do its things. It needs to be tweaked to the specific board one is using, but it fits in < 1kB (all of Atmel's ARM products have at least 8kb of SRAM that I can tell, so this should work for them all). Parts of this code were provided by Kwikbyte with copyright specifically disclaimed. I heavily modified it to act as a recovery loader (before it was a bootstrap loader) and to optimize for size (before I started the size was closer to 8k). Bootstrap loaders for SPI and IIC to follow.
* Merge in timeout into A20-enable routine from cdboot/boot1.sobomax2006-04-111-3/+10
| | | | MFC after: 1 day
* Drop the gateA20() function in the loader as it is unused. All the otherjhb2006-04-115-100/+2
| | | | | boot loaders that load the loader already handle A20. In fact, they are required to do so in order to setup the environment that btxldr expects.
* Minor whitespace tweak.jhb2006-04-111-2/+1
|
* Tweak comment.jhb2006-04-111-4/+4
|
* Use the proper condition to determine that we matched an filename.jhb2006-04-111-1/+1
| | | | | | | | | Otherwise, we could match on a filename that had the wrong last character (such as /boot/loaded instead of /boot/loader). PR: kern/95625 Submitted by: Oliver Fromme <olli@secnetix.de> MFC after: 1 month
* When enabling A20 put upper limit on amount of time we wait for the keyboardsobomax2006-04-111-3/+10
| | | | | | | | | | | controller to get ready (65K x ISA access time, visually around 1 second). If we have wait more than that amount it's likely that the hardware is a legacy-free one and simply doesn't have keyboard controller and doesn't require enabling A20 at all. This makes cdboot working for MacBook Pro with Boot Camp. MFC after: 1 day
* Remove the USB keyboard hack now that KBDMUX is enabled by default. Allowscottl2006-03-311-11/+1
| | | | it to be disabled if Safe Mode is selected.
* Reimplementation of world/kernel build options. For details, see:ru2006-03-179-11/+31
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* Export SMBIOS serial numbers by default. To turn it off, usejkim2006-03-142-8/+8
| | | | | | 'BOOT_HIDE_SERIAL_NUMBERS' knob. Suggested by: ceri
* Micro-optimize invalid UUID check.jkim2006-03-101-1/+3
|
* - Implement serial numbers, UUID, and asset tag (turned off by default).jkim2006-03-093-31/+80
| | | | | | Use 'BOOT_SENSITIVE_INFO=YES' variable to turn them on. - Use 'uint*_t' instead of 'u_int*_t', correct compilation warnings, and update copyright while I am here.
* Remove ELF dynamic tag definitions that aren't used. Ideally,marcel2006-01-181-21/+2
| | | | those that are used should come from <machine/elf.h>.
* s/R_IA64_/R_IA_64_/g as per the ia64 psABI.marcel2006-01-171-18/+13
|
* In moduledir_readhints() cast the value returned by sizeof() to ssize_tmarius2006-01-121-1/+2
| | | | | | | | | | | when checking whether it's greater than a struct stat st_size in order to also catch the case when st_size is -1. Previously this check didn't trigger on sparc64 when st_size is -1 (as it's the case for a file on a bzipfs, TFTP server etc.), causing the content of the linker hints file to be copied to memory referenced by a null-pointer. PR: 91231 MFC after: 1 week
* MFi386: revisions 1.34 and 1.36.nyan2005-12-211-2/+14
|
* MFi386: revision 1.8.nyan2005-12-211-2/+2
|
* MFi386: revision 1.46.nyan2005-12-211-15/+10
|
* For the cases when loading bzip2-compressed kernels enabled use lastsobomax2005-12-214-6/+10
| | | | | | | | | | | | | | 3MB of physical memory for heap instead of range between 1MB and 4MB. This makes this feature working with PAE and amd64 kernels, which are loaded at 2MB. Teach i386_copyin() to avoid using range allocated by heap in such case, so that it won't trash heap in the low memory conditions. This should make loading bzip2-compressed kernels/modules/mfs images generally useable, so that re@ team is welcome to evaluate merits of using this feature in the installation CDs. Valuable suggestions by: jhb
* Unbreak pc98 after my last changes to i386.sobomax2005-12-201-0/+3
|
* If LOADER_BZIP2_SUPPORT is defined allocate heap in the 1MB-4MB range tosobomax2005-12-191-2/+13
| | | | | | | | provide enough room for decompression (up to 2.5MB is necessary). This should be safe to do since we load i386 kernels after 8MB mark now, so that 16MB is the minimum amount of RAM necessary to even boot FreeBSD. This makes bzip2-support practically useable.
OpenPOWER on IntegriCloud