From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EPNBLsjTSGItZQAAgWs5BA (envelope-from ) for ; Sun, 03 Apr 2022 00:52:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KNzuKsjTSGK1AwAAauVa8A (envelope-from ) for ; Sun, 03 Apr 2022 00:52:56 +0200 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 328EA1D7FB for ; Sun, 3 Apr 2022 00:52:56 +0200 (CEST) Received: from localhost ([::1]:56594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1namc2-0000YP-MW for larch@yhetil.org; Sat, 02 Apr 2022 18:52:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nambF-0000YF-MK for help-guix@gnu.org; Sat, 02 Apr 2022 18:52:05 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:53604) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nambD-0008HW-Lm for help-guix@gnu.org; Sat, 02 Apr 2022 18:52:05 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:20]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 152FD1AB53; Sat, 2 Apr 2022 15:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1648939922; bh=jC+mhKv5w6eKGpQVMJvXvXSz9CwKb0xK0LuyYEZFi2M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=VbOJVDzaYfsksGFyKtqIVUMOn4OB+7K+DMAxGhTjD7So60KgcaYESxrtgWKSwJJv7 cWGF8QF7OeMuc7PAxtDM48Sr9DmYclwo+Dg/e6WNx9urDN6lsKBQI91K7WnjmXTZFK jeL7kb73h/i38ZMJhBWS/fyr57K7tEYb4NKe1+KOakKlTyr00LdBG7sD/7S8WReU5K uYaGpGvMhBfOFprcoJEWew8akocWE4ucxiZyQvBAPW2nwS4FW5lT9Xu3ottlERt8Xa S3sfnMUpybaVKq71X5PNrSnqPnvTY6YvfD9GbEDahoJpethWgCOey8x/L0ulVW4IfE tkzRcrmIqY9Mw== From: Vagrant Cascadian To: Ricardo Wurmus Subject: Re: cannot boot from microSD card on aarch64 machine In-Reply-To: <87ilrr4g16.fsf@elephly.net> References: <87h78g1qu5.fsf@mdc-berlin.de> <87r172aru4.fsf@gmail.com> <87wngc77qz.fsf@elephly.net> <87lewo47dr.fsf@contorta> <87ilrr4g16.fsf@elephly.net> Date: Sat, 02 Apr 2022 15:51:57 -0700 Message-ID: <877d875caa.fsf@contorta> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=173.255.214.101; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648939976; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KBveRkKhqca8wyIfFaBaRDKlh1Yi2WWKJORebpE3fWI=; b=WOTabB5qFNknmytfoJAoZ/p4fgAE0lhVp4WUAu9vdkLrxZ0i2VMR6LtnpmVTiRM+yXgS9K +UhQS8MvroscUUSYnyMEKcaWpcsJO+KUDeg0zIZDXwlCdT5A6HrNu9ehDw+vWeUvZSh26Q MLPx7TZZnLTuRJuSAWfDdh5r3//j7Fmh6MYe7yHfecnii1fY/93/vWTC6PG6fHIhMcBiP4 RzN9+M85nzWNDEbkpptjfbmRlcwD1/4PgmdYbUy1q1TV+3X1ZYZ0HbIY6Pdjs4C5hLOay4 JtRJvnsFcH/pZoEkW/p6DzBkUZ8eGy2BKmhsV6d8Q23aTNxrVKGDrr3Ejpzxwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648939976; a=rsa-sha256; cv=none; b=PlNjYiKqze28QWuH8iCf3K6k0f4K49iH0niTKX5u2EWopwjChClXnZuoclF2GiNcEaWP2f F0P5xTZ/t/5Qmoay+5M6Ol9K4B4c+sylyTtjOSgFcWZZtc3mre+piagS3UGVycuyMat3GG BTGIX9X3Ear1bR2cjgaaF2p5bf5dPKD2VSEmAPBHQnpECOixiz2eHfDRWXtuuCrn5I4ThT Z6PjNU9yUdhmtYzND8pjYGMiOX6V+7nftVfF+WE4ir+DgHZjkem+8QCJU+LyZ3IJcW8kWW oVj88cCj0/XijZKGIVgCTxWk0fhjmdErJs4VmJEN9W41iI5/XMQksz7jXXfqwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debian.org header.s=1.vagrant.user header.b=VbOJVDza; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -10.98 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debian.org header.s=1.vagrant.user header.b=VbOJVDza; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 328EA1D7FB X-Spam-Score: -10.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: Zg0s9i8+cPEs --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2022-04-02, Ricardo Wurmus wrote: > Vagrant Cascadian writes: >> I was able to get it to work! With your updated patch to disable openssl >> (and rebasing against newer u-boot), and the phase modifying the config >> and the the rockchip include file to add support for SCSI devices. >> >> The netbsd patches weren't needed with 2022.04-rc5. > > Oh, that=E2=80=99s great! It really is, thanks for getting it as far as you did! Although very mildly disappointed that this might deprioritize making split /boot in guix a reality. :) > Do you have patches for the u-boot upgrade that I could test? https://www.aikidev.net/~vagrant/guix/u-boot-2022.04-rc5-with-rockpro64-scs= i.patch Pretty similar to what you had already, with some added native-inputs for the newer u-boot version, minor adjustments to the patch to disable openssl, and I only tweaked the upstream files in the u-boot-rockpro64-rk3399 package, not for all u-boot packages. There is also an unrelated extraneous patch, but I left it out of the above patch for brevity. I think it *might* be possible to get the patches a little smaller... and of course should get submitted upstream! I'd consider pushing the updates now, but u-boot 2022.04 is planned to be released monday, so may as well wait till then. > Are you using a PCIe card with your rockpro64? Yup. Pretty sure it's whatever PCIe dual-port sata card I bought right along with the rockpro64. U-boot is still on microSD, but it loads the kernel+initrd+dtb from SCSI. The scsi target ends up pretty low in the boot order, so you have to either manually set the boot_targets or make sure your mmc/nvme devices aren't bootable (e.g. change partition type, rename boot extlinux.conf, etc.): Hit any key to stop autoboot: 0 =3D> printenv boot_targets boot_targets=3Dmmc1 mmc0 nvme0 scsi0 usb0 pxe dhcp sf0 =3D> setenv boot_targets scsi0 =3D> boot scanning bus for devices... SATA link 0 timeout. Target spinup took 0 ms. AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl SATA mode flags: 64bit ncq stag led clo pmp pio slum part ccc sxs Device 0: (1:0) Vendor: ATA Prod.: Faspeed F510-120 Rev: O080 Type: Hard Disk Capacity: 114473.4 MB =3D 111.7 GB (234441648 x 512) =20=20 Device 0: (1:0) Vendor: ATA Prod.: Faspeed F510-120 Rev: O080 Type: Hard Disk Capacity: 114473.4 MB =3D 111.7 GB (234441648 x 512) ... is now current device Scanning scsi 0:2... Found /boot/extlinux/extlinux.conf Retrieving file: /boot/extlinux/extlinux.conf Ignoring unknown command: UI 1: GNU with Linux-Libre 5.17 Retrieving file: /gnu/store/fxrc92smbx16k29fw8yz1s0mi7nslnan-raw-initrd/i= nitrd.cpio.gz Retrieving file: /gnu/store/z5kqlcqf4r0hpyj6cdkcylh3gmcp4x9x-linux-libre-= 5.17/Image append: root=3D/dev/sda2 gnu.system=3D/gnu/store/fz4g427hcdjp70wh7rjh88vr= vwi8r5yp-system gnu.load=3D/gnu/store/fz4g427hcdjp70wh7rjh88vrvwi8r5yp-syst= em/boot modprobe.blacklist=3Dusbmouse,usbkbd quiet Retrieving file: /gnu/store/z5kqlcqf4r0hpyj6cdkcylh3gmcp4x9x-linux-libre-= 5.17/lib/dtbs/rockchip/rk3399-rockpro64.dtb Happy guixing on your shiny rockpro64! live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYkjTjgAKCRDcUY/If5cW qnYrAQDBRtbeXp+lBrlLv6VprSimnFBWfp2uTOOIfcppJE2IDgEAi8OdfENJTXg0 Zx30wEZ8Fn1f4VFdv7kZ4so319/glAs= =lETB -----END PGP SIGNATURE----- --=-=-=--