From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sFLtMqV2y19tfwAA0tVLHw (envelope-from ) for ; Sat, 05 Dec 2020 12:01:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EBikLqV2y1/XHQAAbx9fmQ (envelope-from ) for ; Sat, 05 Dec 2020 12:01:41 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 777EE940222 for ; Sat, 5 Dec 2020 12:01:41 +0000 (UTC) Received: from localhost ([::1]:51410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klWFw-0005r2-Fv for larch@yhetil.org; Sat, 05 Dec 2020 07:01:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klLYh-00031t-Dk for guix-devel@gnu.org; Fri, 04 Dec 2020 19:36:19 -0500 Received: from cyberdimension.org ([80.67.179.20]:58956 helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1klLYf-00082o-2L for guix-devel@gnu.org; Fri, 04 Dec 2020 19:36:19 -0500 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 37179dcc; Sat, 5 Dec 2020 00:33:51 +0000 (UTC) Received: from primarylaptop.localdomain (localhost.localdomain [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id d7bb2bc8; Sat, 5 Dec 2020 00:33:51 +0000 (UTC) Date: Sat, 5 Dec 2020 01:33:55 +0100 From: Denis 'GNUtoo' Carikli To: Danny Milosavljevic Subject: Re: Question about Guix on Novena - mainly U-Boot Message-ID: <20201205013355.122af4b3@primarylaptop.localdomain> In-Reply-To: <20201204194937.6060a798@scratchpost.org> References: <20201204194937.6060a798@scratchpost.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/BZi9Ymk/O5MP0HLZA2LwlH+"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=80.67.179.20; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 05 Dec 2020 07:01:09 -0500 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.39 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 777EE940222 X-Spam-Score: -2.39 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: NT8Ah4Xwuofi --Sig_/BZi9Ymk/O5MP0HLZA2LwlH+ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 4 Dec 2020 19:49:37 +0100 Danny Milosavljevic wrote:>=20 > Now I want to make it boot it from SATA instead. The question is what "boot from SATA" means here, it could mean different things: - Have u-boot on the microSD card and load the rootfs from the SATA HDD/SSD. - Make the bootrom load u-boot from the SATA HDD/SSD. Luckily the I.MX6 SOC is capable of loading u-boot from a SATA HDD/SSD but it needs to be configured for that. However it looks like the novena-eeprom utility only somehow does the former: https://github.com/xobs/novena-eeprom/blob/master/novena-eeprom.h In addition I'm unsure if upstream u-boot can parse the sataroot flag as I didn't find it but I only looked very rapidely and not on the latest source code. To configure the I.MX6 SOC to boot from a SATA HDD/SSD you'll have to dig in the I.MX6Q reference manual and the schematics of the novena to see how it is configured. - You have fuses that select a boot mode - One of the boot mode selected by the fuses configuration enables GPIO overrides (this is what we want here). So with the reference manual and the schematics depending on the fuses configurations, you could be able to understand the boot order of the SOC (which peripherals it tries to load u-boot from and in which order). And if it's set in GPIO override mode and that the GPIOs are routed to some switch or jumpers, you can probably manage to change the way it boots and make sure it tries to load u-boot from the SATA HDD/SSD. The u-boot source code also may have documentation about that. Some boards (like the TBS2910) have some documentation on how they are configured to boot. Since I didn't find the novena in doc/boards, you might still have some luck if there is some more generic documentation about booting devices with I.MX6Q. If the Novena can't boot from SATA as-is, you could try to see if there isn't a way through the configuration headers to configure the bootrom to try to boot on SATA somehow. That configuration header (DCD) will probably need to be on a peripheral that the bootrom tries to boot on. Booting of I2C eeproms is possible on I.MX6 but again you'll have to check the documentation to see if it satisfies all requirements (including if the eeprom is wired to the proper I2C controller and/or pads to be able to be read from the bootrom). If not in the worst case you will probably need some minimal code on a peripheral the bootrom tries to load code from. There is probably some resources for the Novena (Forums, IRC channels etc) that already have all theses answers but in any case understanding a bit of the context here could help parse the answers. Denis. --Sig_/BZi9Ymk/O5MP0HLZA2LwlH+ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAl/K1XMACgkQX138wUF3 4mNUVg//a086arTShhlHyKL2lQyQyz6KVmi2fh7v0VibQtX2dydmmYpLJwWN/VVz gJH6zPUeBsxqwWZzUnMowYs74JC66aq8DqFyYAu0VizWwIVwvdbypPtjksbgsEGa lpiaVqRhMcUbnPZGK4U00f5S2s7MG2UTLcB1/zZn7396pMDUbtiHxQF+Tiiq7zvW kx0EbDMlcorZROpb66yY4q8hq1wsMNRW6mvXbTIyAKq1MhABw2Ow+MFSJL1xj1i8 o8WT+14oKHElMHwmprzWKqVNKdOoMHQ7v5EYBC9xokwdohWiEowpOXH054jcaH7R hS/VBB50HFNZqVtYjaNnq12ARUtPmqL1IhlJIyJq0Re2LBIaf1QTEJsBRfYnQ24G TLWAS+P+IZGMkTpT+LwjuSq6sYEc0DtIahWcSHYe9P3ndoRzTFE0RL6+xzSmioau vPrZImpH7zhfxsVePH5q+7SfyG9Jb5wMcVSfbX2r3NglM+PzkFmhnwUiRkbdZ1hU cWEFKozr+jxcbm6Y0ESFPuKcBYkw46EiQEfjoxEZykXJRaCz3lFfFXgMITWJpmtg 6TIf5FG9omD7ryBwKtp8ZZL6BRBREh0VhmzeisqVtQ9mo4YL1ZOrZLiuYkG9tONe hnHCOUsdaPpcgOam0oWsbsFfBHh35z8FZjbNGt530CozTyTlxNo= =31dA -----END PGP SIGNATURE----- --Sig_/BZi9Ymk/O5MP0HLZA2LwlH+--