From owner-freebsd-arm@freebsd.org Sat Apr 25 16:12:27 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 DAE322B7135 for ; Sat, 25 Apr 2020 16:12:27 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 498bfL3kkjz4H8J; Sat, 25 Apr 2020 16:12:26 +0000 (UTC) (envelope-from greg@unrelenting.technology) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unrelenting.technology; s=default; t=1587831138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JzU+DofXYzQsxS5Ug9OKPVPbywN6xquBeiTaHE6fOUY=; b=OEgC0hyCX/Wq5AZzzAa5e+PLswk2hvioDvgB7rjJOJ07ULzpzp+U1yOIhrpsz9zA5ifgP7 FDMhxSC3thARdd8qSN3QPSb6OmQnYAzq3PHftmRtQJ4TbGqKp/c1p+iezPcaR+XJCnWdwH DKUUe+8uFB7mYG960/VTZDv1ceaNqZc= Date: Sat, 25 Apr 2020 16:12:16 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: greg@unrelenting.technology Message-ID: Subject: Re: Bootable image for Macchatobin Double Shot? To: "Mark Murray" Cc: "Marcel Flores" , freebsd-arm@freebsd.org In-Reply-To: References: <9F7FB8F8-A29C-4F95-B0BB-CFEFEAFDDD5E@FreeBSD.org> <1039B382-2CA4-4F49-9F95-08BD1386A447@FreeBSD.org> <092721df6b1de3e75820acd32ba1b0e7@unrelenting.technology> X-Spam-Score: 0.90 X-Rspamd-Queue-Id: 498bfL3kkjz4H8J X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=OEgC0hyC; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 94.23.1.103 as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-0.51 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.91)[-0.915,0]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:94.23.1.103]; NEURAL_HAM_LONG(-0.72)[-0.720,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.13)[ipnet: 94.23.0.0/16(3.62), asn: 16276(2.01), country: FR(0.00)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; FROM_NO_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16276, ipnet:94.23.0.0/16, country:FR]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Apr 2020 16:12:27 -0000 April 25, 2020 6:46 PM, "Mark Murray" wrote:=0A=0A>> = On 25 Apr 2020, at 16:22, greg@unrelenting.technology wrote:=0A>> =0A>> A= pril 25, 2020 5:51 PM, "Mark Murray" wrote:=0A>> =0A>= > https://unrelentingtech.s3.dualstack.eu-west-1.amazonaws.com/flash-imag= e.bin=0A>> https://unrelentingtech.s3.dualstack.eu-west-1.amazonaws.com/f= lash-image2.bin=0A>>> The second has the same binary bits as the one I do= wnloaded from the link in my original post.=0A>> =0A>> It should work the= n..=0A>> =0A>> Unless I really screwed something up and *somehow* this is= not a good image -=0A>> you can check by running (as root):=0A>> =0A>> /= usr/sbin/acpidump -t -d -o /dev/null | grep -a -C10 PNP0C02=0A> =0A> # /u= sr/sbin/acpidump -t -d -o /dev/null | grep -a -C10 PNP0C02=0A> acpidump: = FACS is corrupt=0A> =0A>> that should find the PCIe controller in the DSD= T table, its Memory32Fixed resource should=0A>> contain the address 0xE00= 00000, NOT 0xE0008000.=0A> =0A> Not quite there yet :-)=0A> =0A>> What do= es the pci command in the EFI Shell say? Run `pci 00 00 00 -i` to get inf= o about a=0A>> particular device,=0A>> e.g. https://gist.github.com/myfre= eweb/8b09f1c93ee9572aef01513ba9bf756f=0A> =0A> Shell> pci=0A> Seg Bus Dev= Func=0A> --- --- --- ----=0A> 00 00 00 00 =3D=3D> Network Controller - E= thernet controller=0A> Vendor 8086 Device 1521 Prog Interface 0=0A> 00 00= 00 01 =3D=3D> Network Controller - Ethernet controller=0A> Vendor 8086 D= evice 1521 Prog Interface 0=0A> ASSERT [PciHostBridgeDxe]=0A> /home/mw/gi= t/uefi-27/edk2-platforms/Silicon/Marvell/Armada7k8k/Library/Armada7k8kPci= ExpressLib/PciEx=0A> ressLib.c(78): Address < (0x0 + 1) * 0x00100000=0A> = =0A> Looks like something went badly wrong there :-(=0A=0AWoah, "/home/mw= /git/uefi-27" doesn't look like something that should appear in one of my= builds..!=0A=0AI guess flash-image2 is a reupload of an old build from t= he github wiki, and flash-image was my build,=0Abut I might have overwrit= ten it with a bad one. *facepalm*=0A=0AUploaded a new untested build that= should work as=0Ahttps://unrelentingtech.s3.dualstack.eu-west-1.amazonaw= s.com/flash-image.bin=0A(sha256:8ae81d0cb07b36bd145ae56621e63c48c303641e1= cf1a574714ca60211d66c66)=0A=0AI really should finally get around to makin= g this a proper "release", with a setting in the Setup screen=0Athat woul= d allow toggling the ECAM workaround on and off, and toggling the SPCR Li= nux workaround.=0ABut first I'd like to switch to upstream TrustedFirmwar= e, but my builds of it (using clang) don't work..=0A(This is currently us= ing older Marvell-forked TF-A.)=0A=0A>> Also, have you tried any other PC= Ie cards?=0A> =0A> Nope - 'fraid not :-(.=0A> =0A> My intention is to use= this dual-port NIC until (if?) the on-board NICs are made to work, then = I'll=0A> use them and then buy a cheapo PCIe video card to make a proper = console I can use with a KVM=0A> switch. But I need to get the PCI going = first :-)=0A=0AI've started an attempt at porting the onboard NIC driver = last summer:=0Ahttps://github.com/myfreeweb/pepevtwo-kmod=0A=0AGot as far= as initializing stuff (except DMA) that's initialized before the ports.