From nobody Sat Jul 20 00:04:55 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WQmy82dj8z5QfP0 for ; Sat, 20 Jul 2024 00:05:04 +0000 (UTC) (envelope-from arjun.anantharam@intel.com) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mgamail.intel.com", Issuer "Sectigo RSA Organization Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WQmy667Z2z4h0s for ; Sat, 20 Jul 2024 00:05:02 +0000 (UTC) (envelope-from arjun.anantharam@intel.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=intel.com header.s=Intel header.b=Ncpvhy6d; dmarc=pass (policy=none) header.from=intel.com; spf=pass (mx1.freebsd.org: domain of arjun.anantharam@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=arjun.anantharam@intel.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1721433903; x=1752969903; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=q29Fc50kxpCtr1AMGB82Nz6KJa8y47uNevf6mTdyjbw=; b=Ncpvhy6dZf2o8mWmUCezHRoLoExVvJCGwE+4Ce4jykR0VbgkgCTBoPt3 oaPnTEw8hDVEkRm4GeVWemyjPPctqlEDrBf4S9HckrCPyI1M9hQ+DV9Wg Cua0XGd6toDsAzFmklrz6LCx4/rU5GsNQaZx0DwTaU2BJ9EhWNq+2e955 aEtv9iwnSGcJ8ZlZWxpJOT6yxIdHkPlgDF3YyPoD+pbn5wTblLVeaX1qc MWwTNTuKPmBotGpnYFZb410B6IaGtQWjLuDUzMBc4KGwvEMBIN5mnEnkd zyOFunwfjxjfaSoQD2SWkG3+WQeC50Lo0tOWYj9fGvCBEDqkK6+bxuzxH w==; X-CSE-ConnectionGUID: TV5RrnNkR3CaSifJSHrVyg== X-CSE-MsgGUID: Nu42PtPRS4uIHatNE4g/Sg== X-IronPort-AV: E=McAfee;i="6700,10204,11138"; a="29655836" X-IronPort-AV: E=Sophos;i="6.09,222,1716274800"; d="scan'208,217";a="29655836" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2024 17:05:00 -0700 X-CSE-ConnectionGUID: gRz5onZaSfS67HMvRt8Auw== X-CSE-MsgGUID: jkqw6PXJQLmc2v7nXxAevw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,222,1716274800"; d="scan'208,217";a="56115268" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orviesa003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 19 Jul 2024 17:05:00 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 19 Jul 2024 17:04:59 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Fri, 19 Jul 2024 17:04:59 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.174) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 19 Jul 2024 17:04:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KJ4/JjCXUKGniZw04qwAWGITbo95xigPqEvaoYOmJ2D0LuuMfbvvKZ+zirk3ILFg/PUjM1mBTUejmjA+ywMyc+CfdlDZMpWCvqZ2TOyNigJn1jmSZ4EX1fymG+yDHMlySty0Z2oqm7Eg37xHtlXzaWKvzBeyxmdl+sEFwRTvlErroeJSLvItUSX4tCnx+fTzi7ULVzS4j7yc18zQ9wEFjZjoUK1fABXI5aJFHhTF/NTZ/pc5nR2YYlcaa/Nfyg1Izo+vnfSv08Vos8wF5klM4R6m6jyNGvzXgbwNI3Aegb5WApzku+Gy/nI7qsHU+2aBWKI50T83xlU4BHSjxcfhmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=p9XJ1uP+eWUkp9L0z1LuMnVZmcIVGm4N6B6uhtnJjv8=; b=CtZlfYLE4g64hde+elOlq/+cQDW1vf8rEjeqjMMxKl1Y1CGZwWz/5wNjvoOQmP0tVBWuGhOylmfT07HXTG01RBkpsiKrHxwtaa/cR/INKyA7gS0clG9bhxPEgzZkFyUR01iO61JDaosgR9RSwxgILtsrpUGHG8+g33qLhNsfKFt31TWfcznJbMiBy6sY5R6CJftK5K/k0gQr+9dIWzN8LpFEpYTqd171iIInrbR9+KLb3zYUctx1Ib8oHTYmA0qM1HKNoO7gXoiis7nzcqBwlaupPkkZai0q9NkCc5ZicS5YKaYTgb0ERPBy/DcGTN3wQDAkHyzXYm38mQHrgcxulg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW3PR11MB4761.namprd11.prod.outlook.com (2603:10b6:303:53::15) by PH0PR11MB5807.namprd11.prod.outlook.com (2603:10b6:510:140::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16; Sat, 20 Jul 2024 00:04:55 +0000 Received: from MW3PR11MB4761.namprd11.prod.outlook.com ([fe80::f9ab:2e1b:14d1:8737]) by MW3PR11MB4761.namprd11.prod.outlook.com ([fe80::f9ab:2e1b:14d1:8737%4]) with mapi id 15.20.7784.016; Sat, 20 Jul 2024 00:04:55 +0000 From: "Anantharam, Arjun" To: Andrew Turner CC: Warner Losh , Mark Millard , "freebsd-arm@freebsd.org" Subject: Re: FreeBSD OS installation stuck after selecting Boot installer Thread-Topic: FreeBSD OS installation stuck after selecting Boot installer Thread-Index: AQHaw5kHGGFRg6Nu5kenUR8xJXWTO7HRs0FpgAAEywCAAJ6dS4AAj+RzgAHvjhWABGU/MIAACxcAgAGBNamAAjfAAIAFj7N1gAAL5EqAAxKkbYAKj/A7gAArhQCADn79Mw== Date: Sat, 20 Jul 2024 00:04:55 +0000 Message-ID: References: <9BE6FB50-27DC-453E-B915-131D45C901CD.ref@yahoo.com> <9BE6FB50-27DC-453E-B915-131D45C901CD@yahoo.com> <1DEED962-C5D8-4B6D-8BC9-870A9BFE1176@fubar.geek.nz> <084E63D4-8A02-4E7B-8C26-152ED0D0317A@fubar.geek.nz> In-Reply-To: <084E63D4-8A02-4E7B-8C26-152ED0D0317A@fubar.geek.nz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW3PR11MB4761:EE_|PH0PR11MB5807:EE_ x-ms-office365-filtering-correlation-id: b4021be4-18c7-48f4-7715-08dca84f9603 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?Windows-1252?Q?2QiCUW2Stpjfhqmkyq5ASc+9ascyRaIwthKHOc03rc0zTp64sRhCfB8M?= =?Windows-1252?Q?yJZQFlelsW+K2LVVqwV+ED60MHpsNuIbIjaY/cK9tVymW+zBnrk0x8wJ?= =?Windows-1252?Q?yB/sQ9Y070HxrsOs/YjU4OROwePCXeeXoUEW+cuIlC9yMjwoTfWkzB2/?= =?Windows-1252?Q?Yty47DJv+7k7oX9ZLHxi7IdiSBSYwi2UsCv6Lw13lNe90E1kFuYJCVFn?= =?Windows-1252?Q?O44G7+UDB0QxA9raX0JNehSJ3IlViJHKNpJU9a87FnG7Pz881xyNEVY6?= =?Windows-1252?Q?30b41Za8pXy6zUNetSKk+crGdgNhMrHI6zhSDJruCHwPRHouj2eC5Gnj?= =?Windows-1252?Q?vD9U8XXnGw/Lx8u3DkZ/whLWRBOq6VhiMvI2Pk0rUZOh8CXlrWRW646A?= =?Windows-1252?Q?CiYDaaD/QPRIK5xTBT+AFuxsrjDrgiv26u+uycoP0nWU/D/yWWPn9WKF?= =?Windows-1252?Q?Fctx465UjKSlU4fVCbO69bgOyMQLrz3fic3v7rOxS4TnG53IcnOYgRHg?= =?Windows-1252?Q?vufFjvotKsgOdHF5QNmNo9RPF5WlzCRFF+S/rrITHd04iV+gDiLgw+HG?= =?Windows-1252?Q?K1Cd2Gg7m5hqkOtwtASfgsxYuIvoyrGKanEBINKYAoEjxGW5FGki+uJj?= =?Windows-1252?Q?1SaG06nKvu9S6XWbHndFu5TbB1kCd3g8yctzwOCNc6nF+o13yBTsDCHB?= =?Windows-1252?Q?VkmAzVAmn+ZRUJ1fz0sTdGpUNaCUgQt1fqg00bhpKn+ObX1zTO7mHNS6?= =?Windows-1252?Q?SoDj17Kx3sZ9bDixXztPbjPnqr34/nnQvDSgLx9S6DdOqOmjixSwdjoU?= =?Windows-1252?Q?szUJXPxfQSApHU8PXzTg0N1/StAQZJ5jF8gEBLV4qtdqxPUck97e+a+U?= =?Windows-1252?Q?wJOYFC6fl/AVYuvqeCCVNiJt1DUCP6NDOlwOb0OlQ5Rk3TLXFSw0fRZz?= =?Windows-1252?Q?DS3L4xnrjwm0hcljsoR9hrzPaB6sqFkS5HdEZOS76Z4eCcwGu9NHNCeL?= =?Windows-1252?Q?Tm6lMTcHYSFTDH2Imh4sDz82mH6sbSbM7Y+izBaQjDMOdcNuVg6GUly8?= =?Windows-1252?Q?z4lfg4d/+V4XDa6Bfr5sVBqG83u3S0qEHNR3vbJXF+RmxnMpm+BUGg6m?= =?Windows-1252?Q?lFD9gEUqSI3J915F/duBbbwN7SLEVvl4izGrvWC1cdrKDNhRvno3Pg0p?= =?Windows-1252?Q?7RRN77+FHCYS70+K60DIOElmIg7h3gJ8+ML3c/3cfV2WAU9MyWetzgsY?= =?Windows-1252?Q?U5k9hAIkDY+EQe5iESPAr+6OJcXz4i5bqaTuonh1N9GO2WFSwjSyBmUx?= =?Windows-1252?Q?GTlQRhz1LjtlYYr4F/zT818/TeJ+0dkeHXiKm3pKadkTej0zGyO/n2yW?= =?Windows-1252?Q?lhUQwzWtmYGxQz8wqrVDd4wEqovh2ExYy+zIOBhZfHN1mwWbSo5R/oQP?= =?Windows-1252?Q?ZZL1/+BWFWiMhgZUxOsvfwxL4U08TGwQC4LGgJ0aGdE=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR11MB4761.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?uDWtuEfHZ4FTO6+6E7XOe5MOPJLC+7pjM1O3GB9iAOK/1M/C3QJr86f2?= =?Windows-1252?Q?pWd3x4+0KjEwmq9+ke1dgycnOaYVvUURqgrt7PKf0gnHpKkdzD/Yw02N?= =?Windows-1252?Q?Cpiqhb7vsQyzTJ1LaOzlVN80J+og+q0ulsi0SYDUOIpMBJHUnS0iwwXb?= =?Windows-1252?Q?KAGsRjrD4EHlV0XIokRzHUn74dpVpxXkHOMsP5h8bTMpB0zGLQ6lofPp?= =?Windows-1252?Q?Ve86Ilty6b90kuLfLV4mdOXAy9ejmDvfg2wF0yWRzEEEieS2Hsv/Mf6i?= =?Windows-1252?Q?DuN1nKRf77pjjeT+1OhYbC93x5KnTPz+H1w+cQUqJVml99r+hUUB4mKQ?= =?Windows-1252?Q?ps3wJDussOXl9BRsosjS5AnjbIA5be9nW5lmNR8DWIJ1k38SH/26X4Ky?= =?Windows-1252?Q?C58or++QLMmOb0JssROrX6cLD4wJTNXlxt4FiF+JrQ9+c/SyuYCPSU+n?= =?Windows-1252?Q?ibUL3NwKt2YWJhRNDtNn2QpVSYJKKeD6ur7vjCSAQhiJNd8FSePF35y9?= =?Windows-1252?Q?Ex9MKZv9xb2qgGDSsYeSEXt0STVemrQGFcG7fNIbN77PIGkiO6znzGxQ?= =?Windows-1252?Q?hyIL7I3HJIsQ7y7lyBh62NCvqSHbhfHJzFa/u+45U8Hf63wIpO7L+Qiz?= =?Windows-1252?Q?1IZrpezlk/sfJqM/x8Cmdojyg31zoTEQBIhirzqf4+4HqcmFA1oAbpkX?= =?Windows-1252?Q?qRAvg+VHAvFJI18wefocGA8piQKa4Rq7ejPrldHc8S/1nsn75uswgRkW?= =?Windows-1252?Q?iDPq/VxDDNRPpyD7KJOokobyljdvqkUXfwNMTW5gT/pcUG8m2YX/UE4b?= =?Windows-1252?Q?/bS4g/owJvQvfuXm/X+qghr2/Zr+/C2iJjpxu2IIhm8+8DPu9oWk/sMb?= =?Windows-1252?Q?I6+aadAB7sSI7q66rdYg5XcIneE/CbhUjtVNHXd0AoYRQ0Kctw/56ArG?= =?Windows-1252?Q?QQ6c18B5uGTBvut4yjKIksOa+H1Xa2xukaDgRDDhOocPtXaca3u5xaM2?= =?Windows-1252?Q?xBhqV+2S4j6rLdgknY6++rmYddiaGlXYVaDTcFe1F6KcYWxmM9u37BJB?= =?Windows-1252?Q?z8i0FWL14gYi0VIGl8BgDBz2X6KD6p1ta8BkYeRTCJkF/3QJeY1bOB8H?= =?Windows-1252?Q?MGBTfWaof/laQqkZ+OQQcuxeq30CfLkO2ODQnhxDhKFB487cXKrG7z1g?= =?Windows-1252?Q?ezBUseb8zjtzhSTvwx7uw2lhNjrH6t+LStBBUscqc/c1g5YT0in2umVP?= =?Windows-1252?Q?cBixrTWPxMzkTHGsFb8H/7iOLeH9FXOcGdE7n+Dc6xMCl1jMbqRYchei?= =?Windows-1252?Q?9ipjgypy7OkvNe/DDkyhBwUL7GPoPRYniKrjCe8XyAMOXbZLweWfoxTs?= =?Windows-1252?Q?1vgZdJAP4AX7hdeblZDRjgzYWZsVvLT1X+WRI0AljEXCnT1yP98RRRk6?= =?Windows-1252?Q?NfH/QTmI1i/nbN4ApcZoHN9jd5mycE/CiKnTfbzbh/BZZo004YZgnc7e?= =?Windows-1252?Q?h0EOODzdBh0sH/9KDHYua+qoimzc+twk6JPbIE61OhjAqzm9zuXVMvCZ?= =?Windows-1252?Q?rgcneK9Ie21nMRrezxVyukC28mqGA3I8rZummyBTEgf+3lnOrD74sYBj?= =?Windows-1252?Q?+m/bSbyLA1p4zqXfD4duG5QYTLXGHY87gs6sjF3xUZL3pRqudFlZ5ULe?= =?Windows-1252?Q?cmMBRXd/214FHSyHCQDT8HBQAMZQX4DB?= Content-Type: multipart/alternative; boundary="_000_MW3PR11MB476199009EFF9650069B752980AD2MW3PR11MB4761namp_" List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW3PR11MB4761.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4021be4-18c7-48f4-7715-08dca84f9603 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2024 00:04:55.2216 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3a4zhZs8JI1EjETXWbfnWU/gwt2r2LG++K7VT0iDgya0/nxRz1+W/GZQIurosATLh+0ZnjQrRiTR0wEYB674QhFKBzefiAdItp2mvXsRd2w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5807 X-OriginatorOrg: intel.com X-Spamd-Bar: ---------- X-Spamd-Result: default: False [-10.67 / 15.00]; WHITELIST_SPF_DKIM(-3.00)[intel.com:d:+,intel.com:s:+]; DWL_DNSWL_MED(-2.00)[intel.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector10001:i=1]; NEURAL_HAM_SHORT(-0.97)[-0.975]; DMARC_POLICY_ALLOW(-0.50)[intel.com,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_DKIM_ALLOW(-0.20)[intel.com:s=Intel]; R_SPF_ALLOW(-0.20)[+ip4:198.175.65.0/26]; RCVD_IN_DNSWL_MED(-0.20)[198.175.65.11:from]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[intel.com:+]; RCVD_IN_DNSWL_NONE(0.00)[104.47.58.174:received]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_CC(0.00)[bsdimp.com,yahoo.com,freebsd.org]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:4983, ipnet:198.175.64.0/23, country:US]; RCPT_COUNT_THREE(0.00)[4]; RCVD_COUNT_SEVEN(0.00)[7] X-Rspamd-Queue-Id: 4WQmy667Z2z4h0s --_000_MW3PR11MB476199009EFF9650069B752980AD2MW3PR11MB4761namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi, The location from which we are trying to boot FreeBSD is a VFS or RAMDisk m= ethod: 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 releva= nt 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 thi= s ? 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=3Dmdmfs&sektion=3D8&manpat= h=3Dfreebsd-release-ports#EXAMPLES) and mdconfig(https://man.freebsd.org/cg= i/man.cgi?query=3Dmdconfig&sektion=3D8&manpath=3Dfreebsd-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=3D/dev/md0 of=3D/path/to/ramdisk.img bs=3D1M 2. Edit /boot/loader.conf: initrd_load=3D"YES" initrd_type=3D"mfs_root" initrd_name=3D"/boot/ramdisk.img" vfs.root.mountfrom=3D"ufs:/dev/md0" vfs.root.mountfrom.options=3D"ro,noatime" 3. Set Boot Variables in the Bootloader OK set initrd_load=3D"YES" OK set initrd_type=3D"mfs_root" OK set initrd_name=3D"/boot/ramdisk.img" OK set vfs.root.mountfrom=3D"ufs:/dev/md0" OK set vfs.root.mountfrom.options=3D"ro,noatime" OK boot Can someone please clarify if this is a right approach? Any inputs are appr= eciated!! Thanks, Arjun ________________________________ From: Andrew Turner Sent: Wednesday, July 10, 2024 11:36 AM To: Anantharam, Arjun Cc: Warner Losh ; Mark Millard ; freebsd= -arm@freebsd.org Subject: Re: FreeBSD OS installation stuck after selecting Boot installer On 10 Jul 2024, at 17:03, Anantharam, Arjun wr= ote: 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=3D0x8086, dev=3D0x1457, revid=3D0x21 domain=3D0, bus=3D0, slot=3D1, func=3D1 class=3D01-08-02, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0000, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) intpin=3Da, irq=3D255 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, siz= e 25, memory disabled This looks like the NVMe device that the nvme driver attaches to. The class= =3D01-08-02 indicates it=92s an NVMe device using the enterprise nvmhci. =85 found-> vendor=3D0x8086, dev=3D0x1458, revid=3D0x21 domain=3D0, bus=3D0, slot=3D1, func=3D7 class=3D01-08-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0000, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns) intpin=3Da, irq=3D255 powerspec 3 supports D0 D3 current D0 MSI-X supports 257 messages in map 0x18 map[10]: type Prefetchable Memory, range 64, base 0x2224000000, siz= e 25, memory disabled This is the NVMe device the nvme driver doesn=92t attach to. As the class i= s 01-08-00 the driver doesn=92t attach. The problem is the 00 at the end. I don=92t know the difference between the different interfaces so am unsure= how difficult it would be to support this device. Andrew --_000_MW3PR11MB476199009EFF9650069B752980AD2MW3PR11MB4761namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Hi,

The location from which we are trying to boot FreeBSD is a VFS or RAMDisk m= ethod:
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 releva= nt 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://www.reddit.com/r/freebsd/comments/tzm2xi/run_from_ram/
 
  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=3D/dev/md0 of=3D/path/to/ramdisk.img bs=3D1M
      2. Edit /boot/loader.conf:
 
initrd_load=3D"YES"
initrd_type=3D"mfs_root"
initrd_name=3D"/boot/ramdisk.img"
vfs.root.mountfrom=3D"ufs:/dev/md0"
vfs.root.mountfrom.options=3D"ro,noatime"
 
    3. Set Boot Variables in the Bootloader
 
OK set initrd_load=3D"YES"
OK set initrd_type=3D"mfs_root"
OK set initrd_name=3D"/boot/ramdisk.img"
OK set vfs.root.mountfrom=3D"ufs:/dev/md0"
OK set vfs.root.mountfrom.options=3D"ro,noatime"
OK boot

Can someone please clarify if this is a right approach? Any inputs are appr= eciated!!

Thanks,
Arjun

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=3D0x8086, dev=3D0x1457, revid=3D0x21
        domain=3D0, bus=3D0, slot=3D1, func=3D1
        class=3D01-08-02, hdrtype=3D0x00, mfdev=3D1
        cmdreg=3D0x0000, statreg=3D0x0010, cachelnsz=3D= 0 (dwords)
        lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), m= axlat=3D0x00 (0 ns)
        intpin=3Da, irq=3D255
        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, ba= se 0x2220000000, size 25, memory disabled

This looks like the NVMe device that the nvme driver attaches to. The&= nbsp;class=3D01-08-02 indicates it=92s an NVMe device using the enterprise = nvmhci.

=85

found-> vendor=3D0x8086, dev=3D0x1458, revid=3D0x21
        domain=3D0, bus=3D0, slot=3D1, func=3D7
        class=3D01-08-00, hdrtype=3D0x00, mfdev=3D1
        cmdreg=3D0x0000, statreg=3D0x0010, cachelnsz=3D= 0 (dwords)
        lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), m= axlat=3D0x00 (0 ns)
        intpin=3Da, irq=3D255
        powerspec 3  supports D0 D3  current = D0
        MSI-X supports 257 messages in map 0x18
        map[10]: type Prefetchable Memory, range 64, ba= se 0x2224000000, size 25, memory disabled

This is the NVMe device the nvme driver doesn=92t attach to. As the cl= ass is 01-08-00 the driver doesn=92t attach. The problem is the 00 at the e= nd.

I don=92t know the difference between the different interfaces so am u= nsure how difficult it would be to support this device.

Andrew
--_000_MW3PR11MB476199009EFF9650069B752980AD2MW3PR11MB4761namp_--