From nobody Sat Jun 12 12:16:39 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1B4215D664B; Sat, 12 Jun 2021 12:16:50 +0000 (UTC) (envelope-from dan.kotowski@a9development.com) Received: from mail-4323.protonmail.ch (mail-4323.protonmail.ch [185.70.43.23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G2Gss5g2zz4j4w; Sat, 12 Jun 2021 12:16:49 +0000 (UTC) (envelope-from dan.kotowski@a9development.com) Date: Sat, 12 Jun 2021 12:16:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a9development.com; s=protonmail; t=1623500200; bh=R9DHuXM0+0EoOcoipmoEb+odndLt/JMRY9rLEcfuQQc=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=FvZ8Th6v9EB/gQx/vzdcMK/f+IovGa3Vz/3BWNQMDOVA78KFeoMG6rRw2MLPLEaOD 3dhGMFSgbV1VYtZV8ey7h4xliBG2Z2AJDR+3jV53JyykcFywESe+loIPVBfIpTv4hQ 0NfsvVY5GP4J228P9SN1n7vKokUM6FBAvZJOwCu0= To: Dmitry Salychev From: Dan Kotowski Cc: bzeeb-lists@lists.zabbadoz.net, freebsd-arm@freebsd.org, freebsd-hackers@freebsd.org Reply-To: Dan Kotowski Subject: Re: U-Boot for HoneyComb LX2 Message-ID: <_31rYm0hKlOPZ9FvQ0EqZmig8gGICEKyq9meNvnA29wDK5dpKs0KFnFBgBr3mJ6L_ufrceojMNgSi1Z_-TqjYh7Vem28hWkffAVCMnkb1cs=@a9development.com> In-Reply-To: References: <198F84BF-5932-4E58-BCE3-CC33B185923A@lists.zabbadoz.net> List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.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 mailout.protonmail.ch X-Rspamd-Queue-Id: 4G2Gss5g2zz4j4w X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > (well, I had to configure DKIM long ago... done finally) > > Personally, I'd be glad to use any bootloader which provided a firmware f= or > > DPAA2 MC. I checked SolidRun's script [1] to build a UEFI image briefly a= nd > > didn't find anything about MC firmware, DPL or DPC. However, similar scri= pt > > with U-Boot [2] has them written to the resulted image: > > # DPAA2-MC at 0x5000 > > dd if=3D$ROOTDIR/build/qoriq-mc-binary/lx216xa/${MC} of=3Dimages/${IMG} b= s=3D512 seek=3D20480 conv=3Dnotrunc > > # DPAA2 DPL at 0x6800 > > dd if=3D$ROOTDIR/build/mc-utils/config/lx2160a/CEX7/${DPL} of=3Dimages/${= IMG} bs=3D512 seek=3D26624 conv=3Dnotrunc > > # DPAA2 DPC at 0x7000 > > dd if=3D$ROOTDIR/build/mc-utils/config/lx2160a/CEX7/${DPC} of=3Dimages/${= IMG} bs=3D512 seek=3D28672 conv=3Dnotrunc > > Do you know how MC is initialized in case of UEFI? > > Regards, > > Dmitry > > [1] https://github.com/SolidRun/lx2160a_uefi/blob/master/runme.sh > > [2] https://github.com/SolidRun/lx2160a_build/blob/master/runme.sh DPL and DPC are tied to the SERDES config: if [ "x${SERDES:0:3}" =3D=3D "x13_" ]; then =09DPC=3Ddpc-dual-100g.dtb =09DPL=3Ddpl-eth.dual-100g.19.dtb fi if [ "x${SERDES:0:2}" =3D=3D "x8_" ]; then =09DPC=3Ddpc-8_x_usxgmii.dtb =09DPL=3Ddpl-eth.8x10g.19.dtb fi if [ "x${SERDES:0:2}" =3D=3D "x4_" ]; then =09DPC=3Ddpc-8_x_usxgmii.dtb =09DPL=3Ddpl-eth.8x10g.19.dtb fi if [ "x${SERDES:0:3}" =3D=3D "x20_" ]; then =09DPC=3Ddpc-dual-40g.dtb =09DPL=3Ddpl-eth.dual-40g.19.dtb fi Right now we're mostly working with 8_5_2, but I know Jon is doing some mor= e work to get things sorted. IIRC he's waiting on some PRs to get merged up= stream in the Tianocore EDK2 repos. I think someone was working on porting the lx2160a_uefi repo but I haven't = heard much about it in a while. If you're a Discord user, Jon Nettleton - one of SolidRun's engineers - and= a handful of others who are playing with Honeycombs in different capacitie= s are also collaborating here: https://discord.gg/tgHuG4Cq