Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2024 00:04:55 +0000
From:      "Anantharam, Arjun" <arjun.anantharam@intel.com>
To:        Andrew Turner <andrew@fubar.geek.nz>
Cc:        Warner Losh <imp@bsdimp.com>, Mark Millard <marklmi@yahoo.com>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: FreeBSD OS installation stuck after selecting Boot installer
Message-ID:  <MW3PR11MB476199009EFF9650069B752980AD2@MW3PR11MB4761.namprd11.prod.outlook.com>
In-Reply-To: <084E63D4-8A02-4E7B-8C26-152ED0D0317A@fubar.geek.nz>
References:  <9BE6FB50-27DC-453E-B915-131D45C901CD@yahoo.com> <MW3PR11MB4761B4889AFA6C18AB31BFDE80C92@MW3PR11MB4761.namprd11.prod.outlook.com> <CANCZdfrWofc-e=9_-wf=ose64w1y2fyg8Y%2BVWAC58JJV3q7vuQ@mail.gmail.com> <MW3PR11MB4761223785D1EFC855D7148280C92@MW3PR11MB4761.namprd11.prod.outlook.com> <MW3PR11MB47614BE548FC663F56011C0F80C92@MW3PR11MB4761.namprd11.prod.outlook.com> <MW3PR11MB4761A8E40EA013CA1AE9EA4980CB2@MW3PR11MB4761.namprd11.prod.outlook.com> <MN2PR11MB4758E974AFEA6AAB15DD240B80D62@MN2PR11MB4758.namprd11.prod.outlook.com> <CANCZdfoL0A-Aj21g-E_uPcx%2Bf0U-mhM0s35rja7RNHukCOF6Fg@mail.gmail.com> <MW3PR11MB4761CA9388199BC11600D70B80D72@MW3PR11MB4761.namprd11.prod.outlook.com> <1DEED962-C5D8-4B6D-8BC9-870A9BFE1176@fubar.geek.nz> <MW3PR11MB476109F1B8FC134E5BF39CC680D32@MW3PR11MB4761.namprd11.prod.outlook.com> <MW3PR11MB47617F8DD22E17DA3219FC3380D32@MW3PR11MB4761.namprd11.prod.outlook.com> <MW3PR11MB47619F77AE942F17F1762D8A80DD2@MW3PR11MB4761.namprd11.prod.outlook.com> <MW3PR11MB47617D13959F782479FC481280A42@MW3PR11MB4761.namprd11.prod.outlook.com> <084E63D4-8A02-4E7B-8C26-152ED0D0317A@fubar.geek.nz>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
Hi,

The location from which we are trying to boot FreeBSD is a VFS or RAMDisk method:
OK lsdev
disk devices:
     disk0:    4194304 X 512 blocks
       disk0p1: EFI
      disk0p2: FreeBSD UFS
 http: (unknown)
 net devices:
    net0:
     net1:
     net2:
     net3:


Looks like FreeBSD does not have access to this RAMDisk and hence unable to boot the image. I was digging through FreeBSD forums and found some relevant details. I guess the first step would be to build FreeBSD to prepare it as RAMDisk image, so from the links below i could gather something like this ?
Some Examples:
https://forums.freebsd.org/threads/how-would-i-load-root-image-into-memory-backed-fs-and-run-the-system-from-that.78021/
https://www.reddit.com/r/freebsd/comments/tzm2xi/run_from_ram/
https://forums.freebsd.org/threads/mount-memory-disk-on-boot.61090/
https://forums.freebsd.org/threads/questions-about-ramdisk-in-freebsd.20345/

mdmfs (https://man.freebsd.org/cgi/man.cgi?query=mdmfs&sektion=8&manpath=freebsd-release-ports#EXAMPLES) and mdconfig(https://man.freebsd.org/cgi/man.cgi?query=mdconfig&sektion=8&manpath=freebsd-release-ports):

  1.  Prepare RAMDisk image

mdconfig -a -t vnode -s 10g -u 0
newfs /dev/md0
mount /dev/md0 /mnt
dump -0aLf - / | (cd /mnt && restore -rf -)
dd if=/dev/md0 of=/path/to/ramdisk.img bs=1M
      2. Edit /boot/loader.conf:

initrd_load="YES"
initrd_type="mfs_root"
initrd_name="/boot/ramdisk.img"
vfs.root.mountfrom="ufs:/dev/md0"
vfs.root.mountfrom.options="ro,noatime"

    3. Set Boot Variables in the Bootloader

OK set initrd_load="YES"
OK set initrd_type="mfs_root"
OK set initrd_name="/boot/ramdisk.img"
OK set vfs.root.mountfrom="ufs:/dev/md0"
OK set vfs.root.mountfrom.options="ro,noatime"
OK boot

Can someone please clarify if this is a right approach? Any inputs are appreciated!!

Thanks,
Arjun
________________________________
From: Andrew Turner <andrew@fubar.geek.nz>
Sent: Wednesday, July 10, 2024 11:36 AM
To: Anantharam, Arjun <arjun.anantharam@intel.com>
Cc: Warner Losh <imp@bsdimp.com>; Mark Millard <marklmi@yahoo.com>; freebsd-arm@freebsd.org <freebsd-arm@freebsd.org>
Subject: Re: FreeBSD OS installation stuck after selecting Boot installer


On 10 Jul 2024, at 17:03, Anantharam, Arjun <arjun.anantharam@intel.com> wrote:

Hi,

On most of our hardware, i still run into mount issues. Can anyone provide some guidance on this ?
This iso/img file boot is the only option right now for us to boot FreeBSD(no PXE boot option yet), so any inputs are appreciated!!


The issue appears to be the interface the NVMe provides to the kernel.

found-> vendor=0x8086, dev=0x1457, revid=0x21
        domain=0, bus=0, slot=1, func=1
        class=01-08-02, hdrtype=0x00, mfdev=1
        cmdreg=0x0000, statreg=0x0010, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
        intpin=a, irq=255
        powerspec 3  supports D0 D3  current D0
        MSI supports 1 message, 64 bit, vector masks
        MSI-X supports 257 messages in map 0x18
        map[10]: type Prefetchable Memory, range 64, base 0x2220000000, size 25, memory disabled

This looks like the NVMe device that the nvme driver attaches to. The class=01-08-02 indicates it’s an NVMe device using the enterprise nvmhci.

…

found-> vendor=0x8086, dev=0x1458, revid=0x21
        domain=0, bus=0, slot=1, func=7
        class=01-08-00, hdrtype=0x00, mfdev=1
        cmdreg=0x0000, statreg=0x0010, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
        intpin=a, irq=255
        powerspec 3  supports D0 D3  current D0
        MSI-X supports 257 messages in map 0x18
        map[10]: type Prefetchable Memory, range 64, base 0x2224000000, size 25, memory disabled

This is the NVMe device the nvme driver doesn’t attach to. As the class is 01-08-00 the driver doesn’t attach. The problem is the 00 at the end.

I don’t know the difference between the different interfaces so am unsure how difficult it would be to support this device.

Andrew

[-- Attachment #2 --]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Hi,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
The location from which we are trying to boot FreeBSD is a VFS or RAMDisk method:</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
OK lsdev<br>
<b>disk devices:<br>
&nbsp;&nbsp;&nbsp;&nbsp; disk0:&nbsp;&nbsp;&nbsp; 4194304 X 512 blocks<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; disk0p1: EFI<br>
&nbsp; &nbsp; &nbsp; disk0p2: FreeBSD UFS</b><br>
&nbsp;http: (unknown)<br>
&nbsp;net devices:<br>
&nbsp; &nbsp; net0:<br>
&nbsp;&nbsp;&nbsp;&nbsp; net1:<br>
&nbsp;&nbsp;&nbsp;&nbsp; net2:<br>
&nbsp;&nbsp;&nbsp;&nbsp; net3:</div>
<div id="appendonsend" style="color: inherit;"></div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Looks like FreeBSD does not have access to this RAMDisk and hence unable to boot the image. I was digging through FreeBSD forums and found some relevant details. I guess the first step would be to build FreeBSD to prepare it as RAMDisk image, so from the links
 below i could gather something like this ?</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Some Examples:</div>
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<a href="https://forums.freebsd.org/threads/how-would-i-load-root-image-into-memory-backed-fs-and-run-the-system-from-that.78021/" target="_blank" id="OWAc29ff825-be05-ce79-3311-e2bb4bbdc50b" class="fui-Link ___1rxvrpe f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn OWAAutoLink" title="https://forums.freebsd.org/threads/how-would-i-load-root-image-into-memory-backed-fs-and-run-the-system-from-that.78021/" rel="noreferrer noopener">https://forums.freebsd.org/threads/how-would-i-load-root-image-into-memory-backed-fs-and-run-the-system-from-that.78021/</a></div>;
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<a href="https://www.reddit.com/r/freebsd/comments/tzm2xi/run_from_ram/" target="_blank" id="OWAd2ea2ed6-c9b5-a1f0-dbb4-db4724b6e9a3" class="fui-Link ___1rxvrpe f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn OWAAutoLink" title="https://www.reddit.com/r/freebsd/comments/tzm2xi/run_from_ram/" rel="noreferrer noopener">https://www.reddit.com/r/freebsd/comments/tzm2xi/run_from_ram/</a></div>;
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<a href="https://forums.freebsd.org/threads/mount-memory-disk-on-boot.61090/" target="_blank" id="OWAefa859a8-b2f2-b594-eb99-17870745b1df" class="fui-Link ___1rxvrpe f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn OWAAutoLink" title="https://forums.freebsd.org/threads/mount-memory-disk-on-boot.61090/" rel="noreferrer noopener">https://forums.freebsd.org/threads/mount-memory-disk-on-boot.61090/</a></div>;
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<a href="https://forums.freebsd.org/threads/questions-about-ramdisk-in-freebsd.20345/" target="_blank" id="OWAa0ebf105-3ad3-3dd0-c283-497a9a337fab" class="fui-Link ___1rxvrpe f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn OWAAutoLink" title="https://forums.freebsd.org/threads/questions-about-ramdisk-in-freebsd.20345/" rel="noreferrer noopener">https://forums.freebsd.org/threads/questions-about-ramdisk-in-freebsd.20345/</a></div>;
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
&nbsp;</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
mdmfs (<a href="https://man.freebsd.org/cgi/man.cgi?query=mdmfs&amp;sektion=8&amp;manpath=freebsd-release-ports#EXAMPLES" target="_blank" id="OWAa3eb5b50-0901-26ff-6683-a610d29ebd8c" class="fui-Link ___1rxvrpe f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn OWAAutoLink" title="https://man.freebsd.org/cgi/man.cgi?query=mdmfs&amp;sektion=8&amp;manpath=freebsd-release-ports#examples" rel="noreferrer noopener">https://man.freebsd.org/cgi/man.cgi?query=mdmfs&amp;sektion=8&amp;manpath=freebsd-release-ports#EXAMPLES</a>)
 and mdconfig(<a href="https://man.freebsd.org/cgi/man.cgi?query=mdconfig&amp;sektion=8&amp;manpath=freebsd-release-ports" target="_blank" id="OWAb797770d-ef84-9e8a-ffe5-61bea2c83f40" class="fui-Link ___1rxvrpe f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1hu3pq6 f11qmguv f19f4twv f1tyq0we f1g0x7ka fhxju0i f1qch9an f1cnd47f fqv5qza f1vmzxwi f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn OWAAutoLink" title="https://man.freebsd.org/cgi/man.cgi?query=mdconfig&amp;sektion=8&amp;manpath=freebsd-release-ports" rel="noreferrer noopener">https://man.freebsd.org/cgi/man.cgi?query=mdconfig&amp;sektion=8&amp;manpath=freebsd-release-ports</a>):</div>;
<ol start="1" data-listchain="__List_Chain_29">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>Prepare RAMDisk image</b></li></ol>
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>mdconfig -a -t vnode -s 10g -u 0<br>
newfs /dev/md0<br>
mount /dev/md0 /mnt<br>
dump -0aLf - / | (cd /mnt &amp;&amp; restore -rf -)<br>
dd if=/dev/md0 of=/path/to/ramdisk.img bs=1M</b></div>
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>&nbsp; &nbsp; &nbsp; 2. Edit /boot/loader.conf:</b></div>
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>&nbsp;</b></div>
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>initrd_load=&quot;YES&quot;<br>
initrd_type=&quot;mfs_root&quot;<br>
initrd_name=&quot;/boot/ramdisk.img&quot;<br>
vfs.root.mountfrom=&quot;ufs:/dev/md0&quot;<br>
vfs.root.mountfrom.options=&quot;ro,noatime&quot;</b></div>
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>&nbsp;</b></div>
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>&nbsp; &nbsp; 3. Set Boot Variables in the Bootloader</b></div>
<div style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>&nbsp;</b></div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>OK set initrd_load=&quot;YES&quot;<br>
OK set initrd_type=&quot;mfs_root&quot;<br>
OK set initrd_name=&quot;/boot/ramdisk.img&quot;<br>
OK set vfs.root.mountfrom=&quot;ufs:/dev/md0&quot;<br>
OK set vfs.root.mountfrom.options=&quot;ro,noatime&quot;<br>
OK boot</b></div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Can someone please clarify if this is a right approach? Any inputs are appreciated!!</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div class="elementToProof" style="margin-top: 1em; margin-bottom: 1em; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Arjun</div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr" style="color: inherit;"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b>&nbsp;Andrew Turner &lt;andrew@fubar.geek.nz&gt;<br>
<b>Sent:</b>&nbsp;Wednesday, July 10, 2024 11:36 AM<br>
<b>To:</b>&nbsp;Anantharam, Arjun &lt;arjun.anantharam@intel.com&gt;<br>
<b>Cc:</b>&nbsp;Warner Losh &lt;imp@bsdimp.com&gt;; Mark Millard &lt;marklmi@yahoo.com&gt;; freebsd-arm@freebsd.org &lt;freebsd-arm@freebsd.org&gt;<br>
<b>Subject:</b>&nbsp;Re: FreeBSD OS installation stuck after selecting Boot installer</span>
<div>&nbsp;</div>
</div>
<div><br>
</div>
<blockquote>
<div>On 10 Jul 2024, at 17:03, Anantharam, Arjun &lt;arjun.anantharam@intel.com&gt; wrote:</div>
<br>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
Hi,</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
<br>
</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
On most of our hardware, i still run into mount issues. Can anyone provide some guidance on this ?</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
This iso/img file boot is the only option right now for us to boot FreeBSD(no PXE boot option yet), so any inputs are appreciated!!</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
<br>
</div>
</blockquote>
<div><br>
</div>
<div>The issue appears to be the interface the NVMe provides to the kernel.</div>
<br>
<blockquote>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
found-&gt; vendor=0x8086, dev=0x1457, revid=0x21</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; domain=0, bus=0, slot=1, func=1</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; class=01-08-02, hdrtype=0x00, mfdev=1</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; cmdreg=0x0000, statreg=0x0010, cachelnsz=0 (dwords)</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; intpin=a, irq=255</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; powerspec 3 &nbsp;supports D0 D3 &nbsp;current D0</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; MSI supports 1 message, 64 bit, vector masks</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; MSI-X supports 257 messages in map 0x18</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; map[10]: type Prefetchable Memory, range 64, base 0x2220000000, size 25, memory disabled</div>
</blockquote>
<div><br>
</div>
<div>This looks like the NVMe device that the nvme driver attaches to. The&nbsp;class=01-08-02 indicates it’s an NVMe device using the enterprise nvmhci.</div>
<div><br>
</div>
…
<div><br>
</div>
<blockquote>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
found-&gt; vendor=0x8086, dev=0x1458, revid=0x21</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; domain=0, bus=0, slot=1, func=7</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; class=01-08-00, hdrtype=0x00, mfdev=1</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; cmdreg=0x0000, statreg=0x0010, cachelnsz=0 (dwords)</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; intpin=a, irq=255</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; powerspec 3 &nbsp;supports D0 D3 &nbsp;current D0</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; MSI-X supports 257 messages in map 0x18</div>
<div style="text-align: left; text-indent: 0px; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt;">
&nbsp; &nbsp; &nbsp; &nbsp; map[10]: type Prefetchable Memory, range 64, base 0x2224000000, size 25, memory disabled</div>
</blockquote>
<div><br>
</div>
<div>This is the NVMe device the nvme driver doesn’t attach to. As the class is 01-08-00 the driver doesn’t attach. The problem is the 00 at the end.</div>
<div><br>
</div>
<div>I don’t know the difference between the different interfaces so am unsure how difficult it would be to support this device.</div>
<br>
<div>Andrew</div>
</body>
</html>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MW3PR11MB476199009EFF9650069B752980AD2>