From owner-freebsd-arm@freebsd.org Tue Jun 11 18:37:32 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6232715C330F for ; Tue, 11 Jun 2019 18:37:32 +0000 (UTC) (envelope-from deepcore.dk@gmail.com) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B23C72074 for ; Tue, 11 Jun 2019 18:37:31 +0000 (UTC) (envelope-from deepcore.dk@gmail.com) Received: by mail-ed1-x532.google.com with SMTP id w33so21526264edb.10 for ; Tue, 11 Jun 2019 11:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=N32cvuUJSiN9Hjioz+jofptUlBgZFfVXevSvf/gQuzk=; b=g0IRMSYWJmcTseTji9oOBMQT7MnK6NOAzyX4n6CCSspJuUNtRtueOy2YVkoAUowLHA nUX1dSY6tDDzWM0aLcTB/A67RJYs/s+HDDRDakXfzeIUN3otHQEHLgfhhIaWiqGtWUvH 5gphvEUPpuwiOzrNlzGKUHUKv5a7PC//RGUitXtdhBSji7gSp3QWEXnttf+qPcEBG3W+ 66YrueMeOIAI3x4ZQO9qw0LIxb4FCBCu6fK+tAzGX6un+bk4VvJCGYivaSH70JD6F9Qm V7vBI0WInsq0toJ5WS1bY0loBKr6Rk2FlLm3qALev24Xl+JuDRNJLy66CuH7NNSR4Mu0 j4Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=N32cvuUJSiN9Hjioz+jofptUlBgZFfVXevSvf/gQuzk=; b=iJn+nnZ02NGCg7vU+2TvL21rsueiPrVfYs73UhjWb/JRrKb9QQyde28zsFlA/AXdDT xs7K0piM9vm36YjNHXsvYTZscv4VJZfnpKlSZ+wqSzB5cvztbC4++v4ySLxprCCb7y/M ibH12CEaYNaBVSmKTF1uiTQuWPCA7kGr2TJAzHSMEhysFK+/2bFkYzJHofHuuqILuYyP zMdq4Fbr1TICtIf+j5EbVpkC6G+cCVkweu6JxeiXIIuR7IeOA4Vjd3o7PJw0VyUQdeuW Qf3O4JiVuSRjkSyeFkHLNYbKhL7adXBVA7sVHZ5pqnH422JL9WuE2GhNSGP3J8HzhJO2 /dqg== X-Gm-Message-State: APjAAAVgncU+7f5l6ZafZkXmZQuAsRPhvZPgF5SBDCd0dflW6t1e8XNO huavEzgVzmjLGqaliLHpPws= X-Google-Smtp-Source: APXvYqwHNnZwXrUZlhEylwiA/hAhbRrOI0k1AdrtyN0S3K1taGS1dTwY8ePmocqib/w2ZqmiWE6/CQ== X-Received: by 2002:a50:f5c2:: with SMTP id x2mr35343090edm.13.1560278250261; Tue, 11 Jun 2019 11:37:30 -0700 (PDT) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id f3sm2397630ejo.90.2019.06.11.11.37.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 11:37:29 -0700 (PDT) From: "=?utf-8?Q?S=C3=B8ren_Schmidt?=" X-Google-Original-From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: <49A81763-B197-4E66-BA8E-0804C680B842@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Espressobin anyone ? Date: Tue, 11 Jun 2019 20:37:28 +0200 In-Reply-To: <44E733F9-5DEB-4A7C-8369-7F6DF2AE03BE@gmail.com> Cc: Marcin Wojtas To: Luiz Otavio O Souza , "freebsd-arm@freebsd.org" References: <334C83B6-1F12-436A-866B-947977A34D4D@deepcore.dk> <051F7682-B3EC-49D8-B52A-2A8C75BEE757@gmail.com> <9B48E915-C705-4582-837B-C92B40AD63EB@westryn.net> <7CDBFAF1-C36F-4A2D-8D80-CFF1F03CD2B9@deepcore.dk> <44E733F9-5DEB-4A7C-8369-7F6DF2AE03BE@gmail.com> X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 4B23C72074 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=g0IRMSYW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of deepcoredk@gmail.com designates 2a00:1450:4864:20::532 as permitted sender) smtp.mailfrom=deepcoredk@gmail.com X-Spamd-Result: default: False [-5.28 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.98)[-0.984,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-2.78)[ip: (-9.16), ipnet: 2a00:1450::/32(-2.40), asn: 15169(-2.29), country: US(-0.06)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Tue, 11 Jun 2019 18:37:32 -0000 Hi That does the trick, I now have my SDcard found and can boot and run = from it. However, there is still the problem with currdev not be set. I = instrumented the loader a bit: Consoles: EFI console =20 Reading loader env vars from /efi/freebsd/loader.env efiblk_get_pdinfo_by_handle failed stat /efi/freebsd/loader.env failed FreeBSD/arm64 EFI loader, Revision 1.1 However the file is there and readable: /efi/boot: total 16 -rwxr-xr-x 1 root wheel 15946 Jun 10 14:29 = armada-3720-espressobin.dtb /efi/freebsd: total 536 -rwxr-xr-x 1 root wheel 543176 Jun 10 14:29 loader.efi -rwxr-xr-x 1 root wheel 16 Jun 10 14:29 loader.env Setting it manually to disk0p2 makes boot possible. Also I needed this patch to get t he SATA driver detected, otherwise it = fails with error 6. Index: armada-37xx.dtsi =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- armada-37xx.dtsi (revision 348892) +++ armada-37xx.dtsi (working copy) @@ -443,7 +443,7 @@ =20 sata: sata@e0000 { compatible =3D = "marvell,armada-3700-ahci"; - reg =3D <0xe0000 0x178>; + reg =3D <0xe0000 0x2000>; interrupts =3D ; clocks =3D <&nb_periph_clk 1>; status =3D "disabled"; Both are easily worked around, and I can get on with the project this = was acquired for, thanks for getting this fixed! Any plans to get it MFC=E2=80=99d back to 12stable ? Otherwise I might = look into that as that=E2=80=99s what we use here=E2=80=A6 -S=C3=B8ren > On 11 Jun 2019, at 07.48, S=C3=B8ren Schmidt = wrote: > Excelent ! I=E2=80=99ll try that out when I get back home today. > I had a small fix to the sata target in the DTS in order to make the = disk attach work, otherwise it was almost there (less sdcard) with a = current from Friday.=20 >=20 > -S=C3=B8ren >=20 >=20 >> On 11 Jun 2019, at 00.01, Luiz Otavio O Souza = wrote: >>=20 >>> On Sun, 2 Jun 2019 at 13:41, S=C3=B8ren Schmidt = wrote: >>> [...] >>> mountroot> >>>=20 >>> However, the MMC/SDcard fails to be found so it will stop at = mounting root. >>>=20 >>> Having a disk on the SATA port can make it work from there though. >>>=20 >>> The etherswitch is not found, but the single =E2=80=9Cnata=E2=80=9D = port does show up.. >>>=20 >>> All in all the support is barely enough to boot a kernel, but a long = way from being useful. >>>=20 >>> You can use 12-stable as well, the same support seems to be present = there, and its much more stable, -current as is today panics=E2=80=A6 >>>=20 >>> Oh, and you need to get the =E2=80=9Cright=E2=80=9D .dtb file, = otherwise you get panic=E2=80=99s etc. >>>=20 >>=20 >> I've fixed the SD Card detection issue in r348882 and also the panic >> in -current. >>=20 >> Now you should be able to boot the espressobin with -current without >> any changes. >>=20 >> The correct DTS (to use) is in >> sys/gnu/dts/arm64/marvell/armada-3720-espressobin.dts. >>=20 >> With this DTS the switch will work (also fixed and improved recently, >> more to come..). >>=20 >> Let me know how it goes. >>=20 >> Luiz > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"