Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: i386/amd64 image generated trough mkimage stuck on primary bootsrap at boot
On Friday, July 8th, 2022 at 12:31 AM, RVP <rvp%SDF.ORG@localhost> wrote:
> On Thu, 7 Jul 2022, br0nko wrote:
>
> > bash-5.1# vndconfig vnd0 /home/phil/alix-netbsd.9.2.img
> > bash-5.1# fdisk -vv /dev/rvnd0
> > installboot -v -o timeout=5 /dev/rsd0a /usr/mdec/bootxx_ffsv1
>
>
> Is rsd0a where you copied /usr/mdec/boot, and dies rsd0a start at the
> same sector as rsd0c (the NetBSD slice)? A disklabel output would
> be useful...
>
> -RVP
The mkimage script is taking care of copying the mdec/boot I think, here's from an image build from current tree:
bash-5.1# vndconfig vnd0 example-amd64-image.img
bash-5.1# fdisk -vv /dev/rvnd0
Disk: /dev/rvnd0
NetBSD disklabel disk geometry:
cylinders: 1157, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 2369536, bytes/sector: 512
BIOS disk geometry:
cylinders: 148, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 2369536
Partitions aligned to 2048 sector boundaries, offset 63
Partition table:
0: NetBSD (sysid 169)
start 63, size 2312129 (1129 MB, Cyls 0/1/1-143/236/29), Active
beg: cylinder 0, head 1, sector 1
end: cylinder 143, head 236, sector 29
Information from PBR:
Not bootable: All bytes are identical (0x00)
Not bootable: Bad magic number (0x0000)
1: <UNUSED> (sysid 0)
start 0, size 0
beg: cylinder 0, head 0, sector 0
end: cylinder 0, head 0, sector 0
2: <UNUSED> (sysid 0)
start 0, size 0
beg: cylinder 0, head 0, sector 0
end: cylinder 0, head 0, sector 0
3: <UNUSED> (sysid 0)
start 0, size 0
beg: cylinder 0, head 0, sector 0
end: cylinder 0, head 0, sector 0
First active partition: 0
Drive serial number: 0 (0x00000000)
bash-5.1# disklabel /dev/rvnd0
# /dev/rvnd0:
type: SCSI
disk: STORAGE DEVICE
label: fictitious
flags: removable
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 1157
total sectors: 2369536
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 2369473 63 4.2BSD 0 0 0 # (Cyl. 0*- 1156)
c: 2312129 63 unused 0 0 # (Cyl. 0*- 1128)
d: 2369536 0 unused 0 0 # (Cyl. 0 - 1156)
bash-5.1# mount /dev/vnd0a /mnt
bash-5.1# ls /mnt
.cshrc altroot boot dev lib libexec netbsd rescue sbin tmp var
.profile bin boot.cfg etc libdata mnt proc root stand usr
bash-5.1# md5 /mnt/boot
MD5 (/mnt/boot) = 9d721d7c85264b66deff2d8472370870
bash-5.1# md5 /usr/mdec/boot
MD5 (/usr/mdec/boot) = 9d721d7c85264b66deff2d8472370870
bash-5.1# cat /mnt/boot.cfg
menu=Boot normally:rndseed /var/db/entropy-file;boot
menu=Boot single user:rndseed /var/db/entropy-file;boot -s
menu=Drop to boot prompt:prompt
default=1
timeout=5
clear=1
bash-5.1# head /mnt/etc/release
NetBSD 9.99.98/amd64
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
2018, 2019, 2020, 2021, 2022
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
br0nko
Home |
Main Index |
Thread Index |
Old Index