NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: non-functional /usr/mdec/boot? - NetBSD 9_Stable (20210114)



> is there any way to verify which version first stage booter is
> actually being activated? Maybe I can go into the source and
> add something to it's announce string so I can at least see
> if the latest one I installed (via installboot) is really
> installed?

I have built and installbooted a custom first stage bootstrap
(/usr/obj/destdir.amd64/usr/mdec/bootxx_ffsv1) that I can verify
*is* executed at start-up and hangs with any /boot for n9 both
self built and binaries from the official n9.1 release.

This 1st stage bootstrap works fine with all n8 /boot files I
have tried. It really feels that something significant must have
changed with /boot between the n8 branch and the n9 branch
which does not like *my* particular setup...

Below are a few other diagnostics I have tried in case they help
anyone else understand my issue...

# installboot -v -n -e /dev/wd0a
File system:         /dev/rwd0a
Boot options:        timeout 5, flags 0, speed 9600, ioaddr 0, console pc
# installboot -v -n -e /dev/rwd0a
File system:         /dev/rwd0a
Boot options:        timeout 5, flags 0, speed 9600, ioaddr 0, console pc
# installboot -v -n -e /dev/rwd0
File system:         /dev/rwd0
installboot: Invalid magic in existing bootstrap
installboot: Edit bootstrap operation failed
# installboot -v -n -e /dev/wd0
File system:         /dev/rwd0
installboot: Invalid magic in existing bootstrap
installboot: Edit bootstrap operation failed
# installboot -v -n -e /dev/wd0a
File system:         /dev/rwd0a
Boot options:        timeout 5, flags 0, speed 9600, ioaddr 0, console pc
# installboot -v -n -e /dev/wd1a
File system:         /dev/rwd1a
Boot options:        timeout 5, flags 0, speed 9600, ioaddr 0, console pc
# installboot -t raid -v -o timeout=8 /dev/rwd0a \
/usr/obj/destdir.amd64/usr/mdec/bootxx_ffsv1
File system:         /dev/rwd0a
File system type:    raid (blocksize 16384, needswap 0)
Primary bootstrap:   /usr/obj/destdir.amd64/usr/mdec/bootxx_ffsv1
Boot options:        timeout 8, flags 0, speed 9600, ioaddr 0, console pc
# installboot -v -n -e /dev/wd0a
File system:         /dev/rwd0a
Boot options:        timeout 8, flags 0, speed 9600, ioaddr 0, console pc
# installboot -t raid -v -o timeout=9 /dev/rwd1a
/usr/obj/destdir.amd64/usr/mdec/bootxx_ffsv1
File system:         /dev/rwd1a
File system type:    raid (blocksize 16384, needswap 0)
Primary bootstrap:   /usr/obj/destdir.amd64/usr/mdec/bootxx_ffsv1
Boot options:        timeout 9, flags 0, speed 9600, ioaddr 0, console pc
# installboot -v -n -e /dev/wd1a
File system:         /dev/rwd1a
Boot options:        timeout 9, flags 0, speed 9600, ioaddr 0, console pc

# /usr/sbin/dumpfs -s /dev/rwd1a
dumpfs: /dev/rwd1a: could not find superblock, skipped
# /usr/sbin/dumpfs -s /dev/wd1a
dumpfs: /dev/wd1a: Device busy
# /usr/sbin/dumpfs -s /dev/raid0a
dumpfs: /dev/raid0a: Device busy
# /usr/sbin/dumpfs -s /dev/rraid0a
file system: /dev/rraid0a
format  FFSv1
endian  little-endian
magic   11954           time    Tue Jan 19 14:18:06 2021
superblock location     8192    id      [ 5e039dba 70e4d4fd ]
cylgrp  dynamic inodes  4.4BSD  sblock  FFSv2   fslevel 4
nbfree  34132   ndir    2683    nifree  117464  nffree  345
ncg     6       size    524288  blocks  516119
bsize   16384   shift   14      mask    0xffffc000
fsize   2048    shift   11      mask    0xfffff800
frag    8       shift   3       fsbtodb 2
bpg     10923   fpg     87384   ipg     21504
minfree 5%      optim   time    maxcontig 4     maxbpg  4096
symlinklen 60   contigsumsize 4
maxfilesize 0x000400400402ffff
nindir  4096    inopb   128
avgfilesize 16384       avgfpdir 64
sblkno  8       cblkno  16      iblkno  24      dblkno  1368
sbsize  2048    cgsize  16384
csaddr  1368    cssize  2048
cgrotor 0       fmod    0       ronly   0       clean   0x02
wapbl version 0x1       location 2      flags 0x0
wapbl loc0 1209088      loc1 2048       loc2 512        loc3 125
usrquota 0      grpquota 0
flags   wapbl
fsmnt   /
volname         swuid   0

# /usr/bin/file -s /dev/rwd0a
/dev/rwd0a: DOS/MBR boot sector, BSD disklabel
# /usr/bin/file -s /dev/wd0a
/dev/wd0a: writable, no read permission
# /usr/bin/file -s /dev/wd0
/dev/wd0: DOS/MBR boot sector; partition 1 : ID=0xa9, active, start-CHS
(0x0,32,33), end-

# raidctl -s raid0
Components:
           /dev/wd1a: optimal
           /dev/wd0a: optimal
No spares.
Component label for /dev/wd1a:
   Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 20191223, Mod Counter: 808465757
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 312574848
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Soft
   Last configured as: raid0
Component label for /dev/wd0a:
   Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 20191223, Mod Counter: 808465757
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 312574848
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Soft
   Last configured as: raid0
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
# mount
/dev/raid0a on / type ffs (log, local)
/dev/raid0f on /var type ffs (log, local)
/dev/raid0e on /usr type ffs (log, local)
/dev/raid0g on /home type ffs (log, local)
/dev/raid0k on /sambashare type ffs (log, NFS exported, local)
/dev/raid0h on /usr/src type ffs (log, local)
/dev/raid0i on /usr/pkgsrc type ffs (log, local)
/dev/raid0j on /usr/obj type ffs (log, local)











Home | Main Index | Thread Index | Old Index