#
296373 |
|
04-Mar-2016 |
marius |
- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1 builds. - Update newvers.sh to reflect RC1. - Update __FreeBSD_version to reflect 10.3. - Update default pkg(8) configuration to use the quarterly branch.
Approved by: re (implicit) |
#
295453 |
|
09-Feb-2016 |
emaste |
MFC boot loader path and RBX constant deduplication
r294765 (imp)
Move all the separate copies of the same strings into paths.h. There's nothing machine specific about these.
r294765 (imp)
RBX_ defines are in rbx.h, move it there.
r294847 (imp)
Remove static from these two. They slipped through the cracks.
r294925 (imp)
Fix mistake when transitioning to the new defines with ZFS loader. I hate adding yet another define, but it is the lessor of the evil choices available. Kill another evil by removing PATH_BOOT3 and replacing it with PATH_LOADER or PATH_LOADER_ZFS as appropriate.
Approved by: re (gjb)
|
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
244307 |
|
16-Dec-2012 |
marius |
Restore pre-r234898 printing of boot loader and path.
MFC after: 3 days
|
#
243305 |
|
19-Nov-2012 |
marius |
Fix build after r243245.
Submitted by: trasz
|
#
235988 |
|
25-May-2012 |
gleb |
Use 32-bit ufs_ino_t instead of ino_t to keep boot2 small and prevent unnecessary 64-bit math on 32-bit machines.
Sponsored by: Google Summer of Code 2011
|
#
234898 |
|
01-May-2012 |
marius |
Add initial support for booting from ZFS on sparc64. At least on Sun Fire V100, the firmware is known to be broken and not allowing to simultaneously open disk devices, causing attempts to boot from a mirror or RAIDZ to cause a crash. This will be worked around later. The firmwares of newer sun4u models don't seem to exhibit this problem though.
Steps for ZFS booting:
1. create VTOC8 label # gpart create -s vtoc8 da0
2. add partitions, f.e.: # gpart add -t freebsd-zfs -s 60g da0 # gpart add -t freebsd-swap da0 resulting in something like: # gpart show => 0 143331930 da0 VTOC8 (68G) 0 125821080 1 freebsd-zfs (60G) 125821080 17510850 2 freebsd-swap (8.4G)
3. create zpool # zpool create bunker da0a or for mirror/RAIDZ (after preparing additional disks as in steps 1. + 2.): # zpool create bunker mirror da0a da1a # zpool create bunker raidz da0a da1a da2a ...
4. set bootfs # zpool set bootfs=bunker bunker
5. install zfsboot # zpool export bunker # gpart bootcode -p /boot/zfsboot da0
6. write zfsloader to the ZFS Boot Block (so far, there's no dedicated tool for this, so dd(1) has to be used for this purpose) When using mirror/RAIDZ, step 4. and the dd(1) invocation should be repeated for the additional disks in order to be able to boot from another disk in case of failure. # sysctl kern.geom.debugflags=0x10 # dd if=/boot/zfsloader of=/dev/da0a bs=512 oseek=1024 conv=notrunc # zpool import bunker
7. install system on ZFS filesystem Don't forget to set 'zfs_load="YES"' and vfs.root.mountfrom="zfs:bunker" in loader.conf as well as 'zfs_enable="YES"'in rc.conf.
8. copy zpool.cache to the ZFS filesystem cp -p /boot/zfs/zpool.cache /bunker/boot/zfs/zpool.cache
9. set mountpoint # zfs set mountpoint=/ bunker
10. Now, given that aliases for all disks in the zpool exists (check with the `devalias` command on the boot monitor prompt) and disk0 corresponds to da0 (likewise for additional disks), the system can be booted from the ZFS with: {1} ok boot disk0
PR: 165025 Submitted by: Gavin Mu
|
#
212729 |
|
16-Sep-2010 |
marius |
Merge from powerpc: - Change putc_func_t to use a char instead of an int for the character. - Make functions and variables not used outside of this source file static. - Remove unused prototypes and variables. - The OFW read and seek methods take 3 and not 4 input arguments.
|
#
139738 |
|
05-Jan-2005 |
imp |
Start each of the license/copyright comments with /*-
|
#
133862 |
|
16-Aug-2004 |
marius |
Instead of "OpenFirmware", "openfirmware", etc. use the official spelling "Open Firmware" from IEEE 1275 and OpenFirmware.org (no pun intended).
Ok'ed by: tmm
|
#
124139 |
|
04-Jan-2004 |
obrien |
Convert to __FBSDID.
|
#
113583 |
|
16-Apr-2003 |
phk |
Cut&Paste considered far too easy:
Don't include <sys/disklabel.h>
|
#
113083 |
|
04-Apr-2003 |
phk |
Libdisk does not need to include <sys/diskslice.h> any more.
Move the remaining bits of <sys/diskslice.h> to <i386/include/bootinfo.h>
Move i386/pc98 specific bits from <sys/reboot.h> to <i386/include/bootinfo.h> as well.
Adjust includes in sys/boot accordingly.
|
#
97865 |
|
05-Jun-2002 |
phk |
Remove UFS related #includes, they're read in ufsread.c now.
|
#
97864 |
|
05-Jun-2002 |
phk |
Make sparc64 share ufsread.c with i386.
Sponsored by: DARPA & NAI Labs.
|
#
97863 |
|
05-Jun-2002 |
phk |
Avoid entering IOCCC with a memcpy turned bcopy.
|
#
96497 |
|
13-May-2002 |
obrien |
Match the default newfs UFS block size.
|
#
95351 |
|
24-Apr-2002 |
jake |
Split file system setup code out into a function called mount. Implement vsnprintf. Implement panic in terms of it.
|
#
95346 |
|
24-Apr-2002 |
jake |
Add support for loading files other than /boot/loader. Useful if you're loader is screwed and you want loader.old. Rewrite the scaled down printf so it actually works right, and add support for more formats.
|
#
95342 |
|
24-Apr-2002 |
jake |
Add an exit function.
|
#
95340 |
|
24-Apr-2002 |
jake |
memcpy, memset -> bcopy, bzero.
|
#
95339 |
|
24-Apr-2002 |
jake |
Clean up elf loading to not make assumptions about the ordering of sections. Don't load the symbol table; this is only needed for loading kernels and we load the loader.
|
#
95338 |
|
24-Apr-2002 |
jake |
Remove xfsread. Just call fsread directly.
|
#
95337 |
|
24-Apr-2002 |
jake |
Remove a bunch of unused variables, functions and macros. Allocate storage statically instead of using a faked up malloc.
|
#
91678 |
|
05-Mar-2002 |
robert |
- Fix seeking for offsets requiring more than 32 bits. - Add sanity checks to lookup(). - Implement the 'l' modifier in printf().
Submitted by: tmm
|
#
91295 |
|
26-Feb-2002 |
robert |
- Fix indentation and return statements to conform to style(9). - Use the __FBSDID macro. - Fix some warnings.
Submitted by: obrien (partly)
|
#
90699 |
|
15-Feb-2002 |
robert |
Add the FreeBSD/sparc64 bootblock and its make file.
|