From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUfR1-0001ye-Ua for guix-patches@gnu.org; Sun, 17 Jun 2018 17:42:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUfQw-0001b6-TF for guix-patches@gnu.org; Sun, 17 Jun 2018 17:42:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:46216) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUfQw-0001ap-Pf for guix-patches@gnu.org; Sun, 17 Jun 2018 17:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fUfQw-0005CV-Fr for guix-patches@gnu.org; Sun, 17 Jun 2018 17:42:02 -0400 Subject: [bug#31416] [PATCH 3/4] bootloader: Add make-u-boot-bootloader. Resent-Message-ID: Date: Sun, 17 Jun 2018 23:41:38 +0200 From: Danny Milosavljevic Message-ID: <20180617234138.725002ef@scratchpost.org> In-Reply-To: <87in6hkvb2.fsf@gnu.org> References: <20180511143515.23435-1-dannym@scratchpost.org> <20180511143652.26935-1-dannym@scratchpost.org> <20180511143652.26935-3-dannym@scratchpost.org> <87603rnbi5.fsf@gnu.org> <20180513125925.66a91367@scratchpost.org> <87in7qbppv.fsf@gnu.org> <20180514182953.3d4c4f3c@scratchpost.org> <87r2l8wmjk.fsf@gnu.org> <20180617022855.671a3ef6@scratchpost.org> <87in6hkvb2.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/.sR7aPvqy8emwujPn9Ug8aK"; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 31416@debbugs.gnu.org --Sig_/.sR7aPvqy8emwujPn9Ug8aK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On Sun, 17 Jun 2018 22:33:05 +0200 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > Instead of using these .cfg files as-is, how about =E2=80=9Cimporting=E2= =80=9D them? > That structure (or whatever) we discussed could contain > essentially the relevant part of those .cfg files Yeah > (the partitioning info > founds in those files seems less relevant to me Yes. Buildroot is a huge superset of what we actually need :). > IOW, we could definitely take Buildroot as an inspiration (it=E2=80=99s p= robably > one of the best tools in this area), but maybe not reuse the actual > files. The advantage if we reused the actual files is that we'd not have to mainta= in it so much ourselves. But if we use the solution, it's not actually that much work to maint= ain it. I've extracted the list of socs using u-boot-2018.05$ grep -C 1 -r SYS_SOC . |grep default |awk '{print $3}' |s= ort |uniq |grep '"' >Q and I got this list: "ae250" "ae3xx" "ag101" "am33xx" "apq8016" "apq8096" "armada100" "aspeed" "at91" "ath79" "au1x00" "baytrail" "bcm235xx" "bcm281xx" "bcm283x" "bcm3380" "bcmcygnus" "bcmnsp" "braswell" "broadwell" "coreboot" "davinci" "efi" "ep93xx" "exynos" "fsl-layerscape" "hi3798cv200" "hi6220" "highbank" "ivybridge" "keystone" "kirkwood" "lpc32xx" "ls102xa" "meson" "mvebu" "mx25" "mx27" "mx31" "mx35" "mx5" "mx6" "mx7" "mx7ulp" "mx8m" "mxs" "ns2" "omap3" "omap4" "omap5" "orion5x" "pic32mzda" "qemu" "quark" "queensbay" "rmobile" "rockchip" "s5pc1xx" "snapdragon" "socfpga" "socfpga_arria10" "spear" "stih410" "stm32mp" "stv0991" "sunxi" "tangier" "tegra114" "tegra124" "tegra186" "tegra20" "tegra210" "tegra30" "uniphier-v7" "vf610" "zynq" "zynqmp" Not that bad, eh? Next would be to find those in buildroot, extract the relevant information = from their genimage.cfg and unify them. But that's a little involved. A path would be: (1) Extract possible SYS_SOC and SYS_VENDOR from all u-boot Kconfigs (2) Find out which u-boot defconfigs would lead to those u-boot Kconfigs (3) Find out which buildroot defconfigs would lead to those u-boot defconfi= gs (4) Find out which buildroot board directory is used by each buildroot defc= onfig (5) Extract the genimage.cfg from each such buildroot board directory (6) Extract the u-boot installation specific parts from the genimage.cfg (7) Unify the set of "genimage.cfg" parts for this SOC and make sure they a= re always the same --Sig_/.sR7aPvqy8emwujPn9Ug8aK Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlsm1ZIACgkQ5xo1VCww uqUapQf/U2K5H8bKNPuwjVnHTtQoJs4XTwZdgDmiCksknqla9ndesZ83JUgu4DGI TFSutoS6jIaMtHnn/U/V9NATRBOiHxW+cKYk6yggh039VO1k7cFW9GVEjmw1/950 F60k601BO2p1HPLGIQnLhvZghDSRzJpK2ZGWh56vVGBsuIHBqm2/P8q5t3cvksGW a8AvQ04GcLRM8Et3fqV7XfDsrYQZeVSTO6K3behjbT4ZP081RgupYbr++l85HKn1 zPgM9s/ZD58EqsU0VTeSUJiMSX9woySXROWHtEl0UspW+C/CjeIi0pwN9mjCqiQu twUq+Lpl+NcXR4xSV19/o3QwjS1mIA== =vHbM -----END PGP SIGNATURE----- --Sig_/.sR7aPvqy8emwujPn9Ug8aK--