History log of /src/sys/arch/ofppc/stand/ofwboot/ofdev.c |
Revision | | Date | Author | Comments |
1.19 |
| 21-Aug-2011 |
phx | Fixed booting from disks without a valid disklabel (e.g. CDROM). This became broken with my last changes in rev.1.18..
|
1.18 |
| 18-Aug-2011 |
phx | Finding the disklabel on MBR partitioned disks did no longer work since RDB support was added. Fixed that and bumped the version to 1.12.
|
1.17 |
| 11-Sep-2009 |
phx | Added support for RDB partitions. Moved MBR parition code out of ofdev.c into mbr.c. Tested on Pegasos2 (RDB and MBR) and RS6000.
|
1.16 |
| 12-Jan-2009 |
tsutsui | WARNSfy
|
1.15 |
| 03-Jan-2008 |
mrg | branches: 1.15.6; 1.15.10; 1.15.18; support FS_RAID partitions, and increase the offset by RF_PROTECTED_SECTORS (64) if so.
|
1.14 |
| 28-Jun-2006 |
he | branches: 1.14.34; 1.14.40; 1.14.48; Make devsw non-static to match libsa/stand.h.
|
1.13 |
| 11-Dec-2005 |
christos | branches: 1.13.4; 1.13.8; 1.13.16; merge ktrace-lwp.
|
1.12 |
| 23-Jun-2005 |
junyoung | branches: 1.12.2; Use FS_OPS() macro.
|
1.11 |
| 08-Oct-2003 |
lukem | Overhaul MBR handling (part 1):
<sys/bootblock.h>: * Added definitions for the Master Boot Record (MBR) used by a variety of systems (primarily i386), including the format of the BIOS Parameter Block (BPB). This information was cribbed from a variety of sources including <sys/disklabel_mbr.h> which this is a superset of.
As part of this, some data structure elements and #defines were renamed to be more "namespace friendly" and consistent with other bootblocks and MBR documentation. Update all uses of the old names to the new names.
<sys/disklabel_mbr.h>: * Deprecated in favor of <sys/bootblock.h> (the latter is more "host tool" friendly).
amd64 & i386: * Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to be consistent with the naming convention of the msdosfs tools.
* Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1 and it's confusing to have two functionally equivalent bootblocks, especially given that "ufs" has multiple meanings (it could be a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).
* Rework pbr.S (the first sector of bootxx_*): + Ensure that BPB (bytes 11..89) and the partition table (bytes 446..509) do not contain code. + Add support for booting from FAT partitions if BOOT_FROM_FAT is defined. (Only set for bootxx_msdos). + Remove "dummy" partition 3; if people want to installboot(8) these to the start of the disk they can use fdisk(8) to create a real MBR partition table... + Compile with TERSE_ERROR so it fits because of the above. Whilst this is less user friendly, I feel it's important to have a valid partition table and BPB in the MBR/PBR.
* Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent with other platforms.
* Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that we can boot off FAT partitions.
* Crank version of /usr/mdec/boot to 3.1, and fix some of the other entries in the version file.
installboot(8) (i386): * Read the existing MBR of the filesystem and retain the BIOS Parameter Block (BPB) in bytes 11..89 and the MBR partition table in bytes 446..509. (Previously installboot(8) would trash those two sections of the MBR.)
mbrlabel(8): * Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code to map the MBR partition type to the NetBSD disklabel type.
Test built "make release" for i386, and new bootblocks verified to work (even off FAT!).
|
1.10 |
| 08-Oct-2003 |
simonb | Use <lib/libkern/libkern.h> for str*() prototypes instead of the userland header <string.h>.
|
1.9 |
| 26-Jun-2003 |
aymeric | branches: 1.9.2; . ANSIfy . include needed headers . fix a couple of warnings
|
1.8 |
| 18-Sep-2002 |
chs | fix parsing of pathnames with a partition specifier. reformat for readability.
|
1.7 |
| 18-Jun-2002 |
itojun | avoid hardcoding MBR_MAGICOFF and MBR_MAGIC.
|
1.6 |
| 23-Oct-2001 |
thorpej | branches: 1.6.4; 1.6.12; Clean up the NetBSD/ofppc boot loader: - Garbage collect some cruft that doesn't apply to the ofppc port. - Make our OFW-friendly alloc.c more like the libsa alloc.c - Generally reduce some differences where we can between this boot loader and the NetBSD/macppc boot loader. - Use libsa's loadfile(). - Fix DDB symbol loading -- Add a magic number after the args string so the kernel knows the symbols are there, provide both ssym and esym, and make sure all these values are aligned to a 4-byte boundary. - Add support for MS-DOS file systems.
|
1.5 |
| 22-Jul-2001 |
wiz | bcopy -> memcpy, bzero -> memset
|
1.4 |
| 12-Oct-1999 |
wrstuden | branches: 1.4.14; Catch up with sys/disklabel_mbr.h.
|
1.3 |
| 02-Mar-1998 |
drochner | branches: 1.3.14; Change MBR partition type for NetBSD to 0xa9, like the i386 port. Provide compatibility via COMPAT_386BSD_MBRPART.
|
1.2 |
| 22-Feb-1998 |
mycroft | Clean up #include paths. Copy prom2boot() from kernel source. rename _rtt() to OF_exit(), and add a _rtt() that calls it.
|
1.1 |
| 16-Apr-1997 |
thorpej | New OpenFirmware boot code for NetBSD/powerpc, based on Wolfgang's original NetBSD/powerpc boot program. Highligts: - Rearrange a bit so that we can sanely add boot programs for non-OpenFirmware systems. - Add support for loading compressed kernels (for booting from 1.44M floppies). - Add support for loading Elf kernels (Elf is the new standard format for NetBSD/powerpc). (XXX Don't load symbols right now - the code to do it is there, but I don't particularly like how space for the symbol table is allocated; I will revisit this soon'ish).
|
1.3.14.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.4.14.4 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.4.14.3 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.4.14.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.4.14.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.6.12.1 |
| 16-Jul-2002 |
gehenna | catch up with -current.
|
1.6.4.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.6.4.2 |
| 20-Jun-2002 |
nathanw | Catch up to -current.
|
1.6.4.1 |
| 23-Oct-2001 |
nathanw | file ofdev.c was added on branch nathanw_sa on 2002-06-20 03:40:26 +0000
|
1.9.2.4 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.9.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.9.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.9.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.12.2.2 |
| 21-Jan-2008 |
yamt | sync with head
|
1.12.2.1 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.13.16.1 |
| 13-Jul-2006 |
gdamore | Merge from HEAD.
|
1.13.8.1 |
| 11-Aug-2006 |
yamt | sync with head
|
1.13.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.14.48.1 |
| 08-Jan-2008 |
bouyer | Sync with HEAD
|
1.14.40.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.14.34.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.15.18.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.15.10.2 |
| 16-Sep-2009 |
yamt | sync with head
|
1.15.10.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.15.6.1 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|