Use RF_PROTECTED_SECTORS instead of a (wrong) magic value.
The bootblock now is able to load ofwboot from a raid1 root.
This commit is contained in:
parent
0d510f3e7e
commit
31895478bc
|
@ -1,4 +1,4 @@
|
||||||
\ $NetBSD: bootblk.fth,v 1.5 2003/04/05 08:58:55 he Exp $
|
\ $NetBSD: bootblk.fth,v 1.6 2004/06/18 18:42:15 martin Exp $
|
||||||
\
|
\
|
||||||
\ IEEE 1275 Open Firmware Boot Block
|
\ IEEE 1275 Open Firmware Boot Block
|
||||||
\
|
\
|
||||||
|
@ -441,7 +441,7 @@ h# 2000 buffer: indir-block
|
||||||
then 2drop
|
then 2drop
|
||||||
sboff read-super
|
sboff read-super
|
||||||
sb-buf fs_magic l@ fs_magic_value <> if
|
sb-buf fs_magic l@ fs_magic_value <> if
|
||||||
64 dup to raid-offset
|
rf_protected dup to raid-offset
|
||||||
dev_bsize * sboff + read-super
|
dev_bsize * sboff + read-super
|
||||||
sb-buf fs_magic l@ fs_magic_value <> if
|
sb-buf fs_magic l@ fs_magic_value <> if
|
||||||
." Invalid superblock magic" cr
|
." Invalid superblock magic" cr
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: genfth.cf,v 1.3 2003/04/05 08:58:55 he Exp $
|
# $NetBSD: genfth.cf,v 1.4 2004/06/18 18:42:15 martin Exp $
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 1997 The NetBSD Foundation, Inc.
|
# Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||||
|
@ -83,6 +83,7 @@ include <sys/time.h>
|
||||||
include <ufs/ufs/dinode.h>
|
include <ufs/ufs/dinode.h>
|
||||||
include <ufs/ufs/dir.h>
|
include <ufs/ufs/dir.h>
|
||||||
include <ufs/ffs/fs.h>
|
include <ufs/ffs/fs.h>
|
||||||
|
include <dev/raidframe/raidframevar.h>
|
||||||
|
|
||||||
#
|
#
|
||||||
# ufs sizing constants
|
# ufs sizing constants
|
||||||
|
@ -97,6 +98,9 @@ define bblock BBLOCK
|
||||||
# XXX: Will not work for UFS2!
|
# XXX: Will not work for UFS2!
|
||||||
define sblock SBLOCK_UFS1
|
define sblock SBLOCK_UFS1
|
||||||
|
|
||||||
|
# RAID1 boot support
|
||||||
|
define rf_protected RF_PROTECTED_SECTORS
|
||||||
|
|
||||||
#
|
#
|
||||||
# ufs superblock
|
# ufs superblock
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue