m...@netbsd.org wrote:
> This guide might be helpful for you
> https://wiki.netbsd.org/users/spz/moderndisk/

The motherboard supposedly autodetects either efi or bios boot so
I thought I might just go with efi first.

The url above plus Robert's and Greg's instructions have me this
far (wd2 shown only and doesn't include raid components yet):

gpt create wd2
gpt add -l uefiboot1 -s 20M -t efi wd2
gpt add -l boot_1 -t ffs -s 128M wd2
gpt add -s 7813733997 -l raid_1 -t raid wd2
-------------------
# gpt show -l wd2
       start        size  index  contents
           0           1         PMBR
           1           1         Pri GPT header
           2          32         Pri GPT table
          34       40960      1  GPT part - uefiboot1
       40994      262144      2  GPT part - boot_1
      303138  7813733997      3  GPT part - raid_1
  7814037135          32         Sec GPT table
  7814037167           1         Sec GPT header

# dkctl wd2 listwedges
/dev/rwd2: 3 wedges:
dk0: uefiboot1, 40960 blocks at 34, type: msdos
dk1: 377f97f5-4d8c-4381-a0ac-d1e8f207d5fc, 262144 blocks at 40994, type: ffs
dk2: 983e31c6-c0d0-465b-8389-ffde60980239, 7813733997 blocks at 303138, type: 
raidframe
-------------------
newfs_msdos -F 16 -b 1024 /dev/rdk0
mount name=uefiboot1 /mnt
mkdir -p /mnt/EFI/boot
cp /usr/mdec/*.efi /mnt/EFI/boot

cat > /mnt/boot.cfg
menu=Boot normally:dev hd0b:;rndseed /entropy/entropy-file;boot hd0b:netbsd
menu=Boot single user:dev hd0b:;rndseed /entropy/entropy-file;boot hd0b:netbsd 
-s
menu=Drop to boot prompt:prompt
default=1
timeout=5
clear=1
^D
umount /mnt

newfs -O2 dk1
mount /dev/dk1 /mnt
cat > /mnt/boot.cfg
menu=Boot normally:dev hd0b:;rndseed /entropy/entropy-file;boot hd0b:netbsd
menu=Boot single user:dev hd0b:;rndseed /entropy/entropy-file;boot hd0b:netbsd 
-s
menu=Boot normally from hd1b:dev hd1b:;rndseed /entropy/entropy-file;boot 
hd1b:netbsd
menu=Boot single user from hd1b:dev hd1b:;rndseed /entropy/entropy-file;boot 
hd1b:netbsd -s
menu=Drop to boot prompt:prompt
default=1
timeout=5
clear=1
^D

# copy /netbsd /stand modules, etc., etc. 

umount /mnt



Reply via email to