From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDd2D-0007Oh-5h for guix-patches@gnu.org; Tue, 01 May 2018 17:42:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDd2C-0005xh-9P for guix-patches@gnu.org; Tue, 01 May 2018 17:42:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38261) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDd2C-0005xP-5h for guix-patches@gnu.org; Tue, 01 May 2018 17:42:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fDd2A-0001Vb-8D for guix-patches@gnu.org; Tue, 01 May 2018 17:42:03 -0400 Subject: [bug#31308] [PATCH 0/3] Support u-boot on wandboard and mx6cuboxi Resent-Message-ID: From: Vagrant Cascadian In-Reply-To: <20180501224229.1520d136@scratchpost.org> References: <87k1sqo4it.fsf@aikidev.net> <876048v27m.fsf@gnu.org> <87efiwo0ks.fsf@aikidev.net> <20180501224229.1520d136@scratchpost.org> Date: Tue, 01 May 2018 14:41:38 -0700 Message-ID: <87tvrruk8d.fsf@aikidev.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; 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: Danny Milosavljevic Cc: 31308@debbugs.gnu.org --=-=-= Content-Type: text/plain On 2018-05-01, Danny Milosavljevic wrote: > For an eventual u-boot-installer, how do you install u-boot on wandboard? > > And how do we detect that we have to use this kind of installation method based on u-boot's .config ? An interesting idea... I had thought about making an SD image either as a separate target, or integrating it into u-boot-BOARD for targets that support booting from SD. > For comparison, for sunxi, it's: > > .config contains CONFIG_SYS_SOC="sunxi" => install via "dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8". I've been using: https://salsa.debian.org/debian/u-boot/blob/master/debian/u-boot-imx.README.Debian Which pretty much comes down to: dd conv=fsync,notrunc if=SPL of=DEVICE|IMAGEFILE bs=1k seek=1 dd conv=fsync,notrunc if=u-boot.img of=DEVICE|IMAGEFILE bs=1k seek=69 That works on wandboard and mx6cuboxi, as well as several other imx6 targets. The novena target requires u-boot.img to be copied to the first partition with a fat or ext filesystem, and only the SPL is written to the raw device. With usbarmory (imx5), only the u-boot.img portion is installed directly to the raw device at the offset above; there is no SPL. CONFIG_SPL=y seems to be the best indicator that it needs SPL, and as far as I know with CONFIG_MX[5,6]=y SPL is always installed to the same offset. It's less obvious to me comparing other configuration options what determines which method is needed for u-boot.img. Maybe with recent u-boot versions, it's possible to use either an offset or read it from a filesystem with a single image; I didn't have much luck with that in the past. I'll experiment a little more and see what I can figure out. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcDardHbDotegGFCHt4uC1IFLkbYFAlro3xIACgkQt4uC1IFL kbaDExAAgEbf71BdSanAaVVaKNtVcJl+KoIbeOy5osvjJDb/6sbWUu6oVGiVAPKR 8l3z1COf98d2krJhOl345iIsKeNxm9WfKIbM222tl2EeMLuZFuvoFdC/LNZGGb3j cEoyPUuQWWxNqAtaa1hJD472Tm9AOLLFzYOSj2iu/fmF4dFgyhf76llzS+rHAdTy u8aTMjHQOIOW89PlQi7X6pMzLrSH/ZD8dmcFiI+nEzr9HS021M0rYLNk/+Bv3W9u A5atmbWRE8QpgUBzzHJ5FYI3rbLG89eRoZ8ticuiZ8qTwDoRLZ5K3uPo6utrm1tk 9lznqaYThEgv9khBGnki00xYnvl6IwRSPfU74doVDstIqf7fygSGE0VCTXRVy6lN UhKhi9Y+XjFLBEvBumQ7opZ4Yx5KURV+3m8Gl5e/PF1nUn4Vus7JUeFttZA/4he8 LPD2GhGEBP32GaoGktEuOMygQ7C11FZffFvdxJdjgIhOrTnooza6rkNNjX1nnlS3 W2QF8t9qQMYkfxzllQtthx1UHy9vZWDnUlNrF0806aKfuhM4FV6ZEdEqUOIB81Wz vnhGmKn0DrztUQrtqyFwJ3Yf0/8mc4W2jVB0lRN7OM0neOxKpj6GDbExUi1JZyXk 75tf++qacQPw0Dg1gKOEZNgT6dAUvu3BLGz+RyaraDniaVkVSEU= =NU7a -----END PGP SIGNATURE----- --=-=-=--