From owner-freebsd-arm@freebsd.org Mon May 18 17:31:00 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7DD602D85EA for ; Mon, 18 May 2020 17:31:00 +0000 (UTC) (envelope-from dan.kotowski@a9development.com) Received: from mail1.protonmail.ch (mail1.protonmail.ch [185.70.40.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49QmJM2QCqz44JL for ; Mon, 18 May 2020 17:30:58 +0000 (UTC) (envelope-from dan.kotowski@a9development.com) Date: Mon, 18 May 2020 17:30:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a9development.com; s=protonmail; t=1589823056; bh=OWFDX8y4nJBt0cf2fSxVs6fBOblSBto7tR7dZo4F32U=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=pJtlllG+C+DFszUZxHtabfvZp/O59LFd1GdGRuayMhvPltkpT9+i95vFt3XcjNWVy JVUFBOkapcHKWMqOp05ucf8sqD/JiO3r8+Gs7Jh5AUlKG1Xuvs4A5/Mbr0SocmVXj1 XU4NEzrbjROHEys6NPRL8HIqjQWGk6hEHePpamUQ= To: Marcin Wojtas From: Dan Kotowski Cc: myfreeweb , "freebsd-arm@freebsd.org" Reply-To: Dan Kotowski Subject: Re: FreeBSD on Layerscape/QorIQ LX2160X Message-ID: <_RDUKp6prVKzbS78Ew-k-1jMchiNNTPM62rKtM_bK7V6weiePWCSD8Rxy4TS0raG4gb69-Z5ZqVcc9vZTBS83mku9Y92vWgDJJEqN8tOMec=@a9development.com> In-Reply-To: References: <3nsQUg1Gm4VFYfpHVELk6PWaHyYNb3CoyoKnLV55_3VR48tr90bhaseG3sJg007L8czZ4mXUmR_YMQvYVdMbUs1bsoqGtZp5d17FqYT6b-o=@a9development.com> <7AFDA7E0-82EC-4CD2-BB03-B7E33D019EDA@unrelenting.technology> <_lvahpuNQE69s4KpHud6ANL6yzL3RCVI-MTyB0_J_ULyW-3UWsqAXnm5gfoFcOyvfRQRabZk4Z4bQgyp15a001kA-WcvsvnWcjqgMBkgGTY=@a9development.com> <7F9D7164-2C04-4E27-85F9-A495EAC8FC84@unrelenting.technology> <9UQiT9Df6hGA9k3-pzwpHifFsu7BVL2zFGOqDsnGva556e8nyvrKPp5XnKWxksvEKx1bpD-dnuYw8VCGiP9Z_kHc6tDFJcmRXzeJqLbo-yo=@a9development.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Rspamd-Queue-Id: 49QmJM2QCqz44JL X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=a9development.com header.s=protonmail header.b=pJtlllG+; dmarc=pass (policy=none) header.from=a9development.com; spf=pass (mx1.freebsd.org: domain of dan.kotowski@a9development.com designates 185.70.40.18 as permitted sender) smtp.mailfrom=dan.kotowski@a9development.com X-Spamd-Result: default: False [-1.68 / 15.00]; HAS_REPLYTO(0.00)[dan.kotowski@a9development.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[a9development.com:s=protonmail]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[a9development.com:+]; DMARC_POLICY_ALLOW(-0.50)[a9development.com,none]; NEURAL_HAM_SHORT(-0.58)[-0.576]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_VERYGOOD(0.00)[185.70.40.18:from]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[185.70.40.18:from] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2020 17:31:00 -0000 > Hi Dan, > > pon., 18 maj 2020 o 18:12 Dan Kotowski > dan.kotowski@a9development.com napisa=C5=82(a): > > > > > > > > > The 12.1 aarch64 memstick installer iamge fails out trying = to mount the UFS partition and drops into the mountroot> shell with error 1= 9. Listing GEOM managed disk devices returned an empty list. > > > > > > > > > > > > > > What devices does the boot log show? No xhci I guess, how abo= ut pci, sdhci? > > > > > > > > > > > > Does this answer your question? https://gist.github.com/agrajag= 9/ce1107a1962283b64205bc8f35123a5c > > > > > > If not, I'll happily run what's needed to get you something bet= ter. > > > > > > > > > > No, the interesting part is the kernel boot log (dmesg) =E2=80= =93 the one where you saw the mountroot prompt! > > > > > > > > Better? https://gist.github.com/agrajag9/9a69b5baff70c8c1040fabeebd= 037214 > > > > > > Oh, well that explains the lack of devices: > > > > > > > Using DTB provided by EFI > > > > > > Try choosing ACPI in the UEFI setup menu if that's available. > > > And/or setting kern.cfg.order=3Dacpi in the FreeBSD loader menu / /bo= ot/loader.conf > > > > I couldn't find any options regarding ACPI in the UEFI menus, so I trie= d using `set kern.cfg.order=3Dacpi` but that still failed in the same way. > > https://gist.github.com/agrajag9/2fa73fc21bff10c9bee9eba810ea283d > > I also included the output from running some of the diagnostic UEFI she= ll commands in case that helps. And I have the compiled DTB on hand if that= helps as well. > > Did you try to change the relevant variable (responsible for switching > between ACPI and DT) via BootManager menu? > Device Manager -> O/S Hardware Description Selection -> > (F10 to save and then reset, so that it's taken into account when > loading the ACPI modules modules)? > It should work this way if it's done in a generic way, I haven't > studied SolidRun's edk2-platforms code much yet. > Please let me know if it helped. > > Best regards, > Marcin Unfortunately there aren't many option in the menu system and I didn't see = anything obvious like that. The Device Manager shows an empty Devices List,= and the Boot Manager only lets me select FS and BLK devices. The Boot Main= tenance Manager menu has sub-menus for Boot Options, Driver Options, Consol= e Options, and Boot From File - but again no mentions of ACPI or DTBs.