Date: Tue, 11 Jun 2019 20:37:28 +0200 From: "=?utf-8?Q?S=C3=B8ren_Schmidt?=" <deepcore.dk@gmail.com> To: Luiz Otavio O Souza <lists.br@gmail.com>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Cc: Marcin Wojtas <mw@semihalf.com> Subject: Re: Espressobin anyone ? Message-ID: <49A81763-B197-4E66-BA8E-0804C680B842@gmail.com> In-Reply-To: <44E733F9-5DEB-4A7C-8369-7F6DF2AE03BE@gmail.com> References: <F4B29A2F-D94B-4E44-B5D7-8F29B63BC286@deepcore.dk> <CAPv3WKdFWkxLLY9orLee8G9Z=vbVrGoRAJv%2BhcM%2BmE%2B4Ue9SDQ@mail.gmail.com> <334C83B6-1F12-436A-866B-947977A34D4D@deepcore.dk> <E73AFF5D-43CA-41A7-BDBA-ADEF2D342479@deepcore.dk> <BN7PR06MB518773EC2F92D56E1BE6587BAA090@BN7PR06MB5187.namprd06.prod.outlook.com> <051F7682-B3EC-49D8-B52A-2A8C75BEE757@gmail.com> <BN7PR06MB51872A92C05A6EFC02C32BFCAA090@BN7PR06MB5187.namprd06.prod.outlook.com> <F36EE3C6-17E6-4229-BFE1-D7BE81589D28@gmail.com> <9B48E915-C705-4582-837B-C92B40AD63EB@westryn.net> <7CDBFAF1-C36F-4A2D-8D80-CFF1F03CD2B9@deepcore.dk> <CAB=2f8zcYRe0hTkMspgdixy2WFnxBtL1jF1FYBk09A8yb7c3Yw@mail.gmail.com> <44E733F9-5DEB-4A7C-8369-7F6DF2AE03BE@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <GIC_SPI 27 = IRQ_TYPE_LEVEL_HIGH>; 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 <deepcore.dk@gmail.com> = 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 <lists.br@gmail.com> = wrote: >>=20 >>> On Sun, 2 Jun 2019 at 13:41, S=C3=B8ren Schmidt = <deepcore.dk@gmail.com> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49A81763-B197-4E66-BA8E-0804C680B842>