From owner-freebsd-arm@freebsd.org Mon May 18 13:02:06 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 5F4A82CA63D for ; Mon, 18 May 2020 13:02:06 +0000 (UTC) (envelope-from dan.kotowski@a9development.com) Received: from mail2.protonmail.ch (mail2.protonmail.ch [185.70.40.22]) (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 49QfL52tk2z3VHf for ; Mon, 18 May 2020 13:02:05 +0000 (UTC) (envelope-from dan.kotowski@a9development.com) Date: Mon, 18 May 2020 13:01:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a9development.com; s=protonmail; t=1589806922; bh=UATuxf/K3A22rbH2SQzdai3HA0DcHk8blB4Pu6U6mno=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=WPcIYsMk3ZFZt7taMTWBY+tUNK1uG9gp5E6gQGQSzEApfB4k45pVDlrgr94Tx9DfN 8TmsxvXkX0UKXCuwYSaDAOtDeZFOdJF2fLK58oiJ31AiFdBADbndPcJ2qSwn8LLFCq U8monr56oiDZxaQcEEHf1cUXZVz4u+RRieWnWcNo= To: John-Mark Gurney From: Dan Kotowski Cc: myfreeweb , "freebsd-arm@freebsd.org" Reply-To: Dan Kotowski Subject: Re: FreeBSD on Layerscape/QorIQ LX2160X Message-ID: <3nsQUg1Gm4VFYfpHVELk6PWaHyYNb3CoyoKnLV55_3VR48tr90bhaseG3sJg007L8czZ4mXUmR_YMQvYVdMbUs1bsoqGtZp5d17FqYT6b-o=@a9development.com> In-Reply-To: <20200516051207.GT4213@funkthat.com> References: <72D47662-240E-4851-844A-A4F92F18B3F2@unrelenting.technology> <20200516051207.GT4213@funkthat.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: 49QfL52tk2z3VHf X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=a9development.com header.s=protonmail header.b=WPcIYsMk; dmarc=pass (policy=none) header.from=a9development.com; spf=pass (mx1.freebsd.org: domain of dan.kotowski@a9development.com designates 185.70.40.22 as permitted sender) smtp.mailfrom=dan.kotowski@a9development.com X-Spamd-Result: default: False [-1.64 / 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)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[185.70.40.22:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[a9development.com:+]; DMARC_POLICY_ALLOW(-0.50)[a9development.com,none]; NEURAL_HAM_SHORT(-0.54)[-0.538]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; 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.22: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 13:02:06 -0000 After a solid 16hrs this weekend, I can confirm that the pre-built images d= o NOT "just work", at least not with SolidRun's HoneyComb version rev 1.4. The 12.1 arm7 GENERICSD image fails to boot. The included EFI/BOOT/bootarm.= efi fails to load. I dropped in a copy of EFI/BOOT/bootarm64.efi from the a= arch64 image, but that failed to handoff the process properly. Tested with= both u-boot and UEFI. The 12.1 aarch64 memstick installer iamge fails out trying to mount the UFS= partition and drops into the mountroot> shell with error 19. Listing GEOM = managed disk devices returned an empty list. My silicon is rev 1.4 so I have to use the SD slot for the firmware layer, = which is a mild inconvenience because I can't use that slot for an OS iamge= (https://github.com/SolidRun/lx2160a_build/issues/36#issuecomment-62986567= 4). Unfortunately that's where I ran out of time. I spent most of the time trac= ing and tweaking SolidRun's build scripts, testing various combinations of = firmware builds and boot images, and learning my way through both the u-boo= t and UEFI implementations. Barring other simple ideas, my next step is to make buildworld for TARGET= =3Darm64 TARGET_ARCH=3Daarch64, drop that on an NVMe gumstick, and see if I= can get that booted. More in the coming days... Dan Kotowski =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Saturday, May 16, 2020 5:12 AM, John-Mark Gurney wrot= e: > myfreeweb wrote this message on Thu, May 14, 2020 at 15:48 +0000: > > > On May 14, 2020 3:32:13 PM UTC, Dan Kotowski dan.kotowski@a9development= .com wrote: > > > > > I'm wondering if anybody knows of work being done to port FreeBSD to = the Layerscape platforms? > > > I happen to have a SolidRun HoneyComb LX2K workstation, based on NXP'= s Layerscape LX2160A, next to my desk running a custom-multistrapped Debian= Jessie build, but would love to get FreeBSD running instead. I have only m= inimal experience working down in BSD driver/kernel land and no experience = at all with Crochet, but would like to learn. And while I cannot afford to = donate the actual hardware I'm happy to work with others to test builds. > > > > Do not even think about crochet or device trees or any of the embedded = stuff on such a machine!! ;) > > Just use the latest UEFI firmware in ACPI mode to boot generic FreeBSD. > > Looking at their ACPI tables, they do finally have PCIe and USB3 as gen= eric devices, though oddly not SATA: https://github.com/SolidRun/edk2-platf= orms/tree/master-lx2160a/Silicon/NXP/LX2160A/AcpiTables/Dsdt > > If this is the case, then the generic aarch64 images should boot on > it... Not sure what will happen w/ the SATA though... > > -------------------------------------------------------------------------= --------------------------------------------------- > > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not."