From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gANkLGcvSWJcdwAAgWs5BA (envelope-from ) for ; Sun, 03 Apr 2022 07:23:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kIKvJGcvSWIF6QAAG6o9tA (envelope-from ) for ; Sun, 03 Apr 2022 07:23:51 +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 37245219D for ; Sun, 3 Apr 2022 07:23:50 +0200 (CEST) Received: from localhost ([::1]:45702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nasiK-0002iA-Kz for larch@yhetil.org; Sun, 03 Apr 2022 01:23:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nashl-0002hw-Kx for help-guix@gnu.org; Sun, 03 Apr 2022 01:23:13 -0400 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21019) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nashj-0008UR-Gx for help-guix@gnu.org; Sun, 03 Apr 2022 01:23:13 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1648963387; cv=none; d=zohomail.com; s=zohoarc; b=Lj4LiCpVt4bE34aZ9lQWhuXH/Ttrx1k328wfIPit3dNAnkCLTrHATYUExhqsnZHf/+K8aC8uJfbvvv2QnVsgec4ZaY6fiGJCEjR+5o89fWZSpwaVp7UIKod3mTYu5+MUhBso5u2J5XmH999a5MkWvbgcdkxe6WFz0JBW70glCMc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1648963387; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=SxbJ+7s0/OZgFTojE8qHMVcFJoCIlqpi3CHvzyil0l8=; b=ij+QQ6PKPfUWCbLD0Mhe4dj8lkzjrjM4G7kACT6ZZAAV3+HgVb0siaB+KJ313HHbz6Ip+yRfmeuPrguPhv38ILzChrU0gACaELhMWVEBXCgUogqD5Q1oabhomqe6vnugmWMGGEJzrciW4yF63mDPe/yybJDpyLKsTlEKxOXZaC8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1648963387; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=SxbJ+7s0/OZgFTojE8qHMVcFJoCIlqpi3CHvzyil0l8=; b=NH0czbKVvLBvdZpQlXLUNpli3QgwEMfo18RJvt3ctoRAK9eJ7pnsan1xXBZe+DxX nr1I9V1q++9c7bwf7m8sM/fWxPH1QA53shyh02eDnnWT/Rq9o9E0noXTRpm0HVKxzzC 02REQncrKInWe2z9u+Nwa9YG7+ShaUhoFTXYDRZ4= Received: from localhost (248-110-142-46.pool.kielnet.net [46.142.110.248]) by mx.zohomail.com with SMTPS id 1648963383361979.1434868977047; Sat, 2 Apr 2022 22:23:03 -0700 (PDT) References: <87h78g1qu5.fsf@mdc-berlin.de> <87r172aru4.fsf@gmail.com> <87wngc77qz.fsf@elephly.net> <87lewo47dr.fsf@contorta> <87ilrr4g16.fsf@elephly.net> <877d875caa.fsf@contorta> User-agent: mu4e 1.6.10; emacs 28.0.50 From: Ricardo Wurmus To: Vagrant Cascadian Subject: Re: cannot boot from microSD card on aarch64 machine Date: Sun, 03 Apr 2022 07:08:16 +0200 In-reply-to: <877d875caa.fsf@contorta> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <871qye4u6k.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.50; envelope-from=rekado@elephly.net; helo=sender4-of-o50.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648963431; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SxbJ+7s0/OZgFTojE8qHMVcFJoCIlqpi3CHvzyil0l8=; b=CsDGi57cjwzWJfz4WGH1ZtUpPgIYRDxLpMfCsXxvXNoTs87dLxNk7rkG07NJWcA8r6EYEg xWZLhjglt/zOKKpWRX/JwO5NJniOuJwawOa7a+KnxZLPEJiaTHqBL2bNYabroHhuUjA4uk auWi2dGHMG+L7HlmuIxUa1RE/2x/B/iFY4lJDfxzFs+dB2TuCvB2OpTpvqC7QU+2rV0ZNG EFSIn00/EjClXrzgeyj5TNyE2SKq/7lIq3f/z5cDYkFKXStfpduYn88EUjm0vOdaN3oLF1 vU5U+GBDwBiSqHk6uI4I6T0NIXF3B/zN/Gt4fA9Mtmjw2rc9XjVT9cuVucheDw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1648963431; a=rsa-sha256; cv=pass; b=MdgPBN937foJdLt4mT535lRdJ6LQCULT1Q6lA5eDhEUQYGKfELXKG+rPGX7tHtJ3wP8mV5 pSv6JlYpg8csgdfJrFRi7c9V15GIXKhXe7vpAzbfLX29zRSRTOWAGwQNi2oV4e/dyUE6I0 1mrgRmvbj8aROv/aGOVa27ah9aA+Jrsuac6S0DG2+f5s1QRt2spjTr6Q3nxB9f9zUgQsoI D5xHy9DfpKZeC0gTyhnkSxpFUt160VEEkIST+D3OCGraLKzPBIwxCSZq4PRSvwBgmED8ia i6FxulK5zBMbB5CQGV6gfggJe387qv7vvgqeGgezEB1mJhAHMioP+5GorX+rZQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=NH0czbKV; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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.38 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=NH0czbKV; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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: 37245219D X-Spam-Score: -10.38 X-Migadu-Scanner: scn0.migadu.com X-TUID: fOSs/+HYDLbX Hi Vagrant, > 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-s= csi.patch Thank you! >> 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. I=E2=80=99ve got that one, too. > 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=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= /initrd.cpio.gz > Retrieving file: /gnu/store/z5kqlcqf4r0hpyj6cdkcylh3gmcp4x9x-linux-libr= e-5.17/Image > append: root=3D/dev/sda2 gnu.system=3D/gnu/store/fz4g427hcdjp70wh7rjh88= vrvwi8r5yp-system gnu.load=3D/gnu/store/fz4g427hcdjp70wh7rjh88vrvwi8r5yp-sy= stem/boot modprobe.blacklist=3Dusbmouse,usbkbd quiet > Retrieving file: /gnu/store/z5kqlcqf4r0hpyj6cdkcylh3gmcp4x9x-linux-libr= e-5.17/lib/dtbs/rockchip/rk3399-rockpro64.dtb Hmm, unfortunately, this is not working for me :( I applied the patch, built u-boot-rockpro64-rk3399 with ./pre-inst-env guix build u-boot-rockpro64-rk3399 and got /gnu/store/xw7nyd0fvg9rlsyhxbbk0hg5k18q5pd9-u-boot-rockpro64-rk3399-202= 2.04-rc5 I then wiped the old partitions on the microsd card with sudo wipefs -f -a /dev/sdb and copied the two files with dd: export where=3D/gnu/store/xw7nyd0fvg9rlsyhxbbk0hg5k18q5pd9-u-boot-rockp= ro64-rk3399-2022.04-rc5 sudo dd seek=3D64 obs=3D512 conv=3Dnotrunc if=3D$where/libexec/idbloade= r.img of=3D/dev/sdb sudo dd seek=3D16384 obs=3D512 conv=3Dnotrunc if=3D$where/libexec/u-boo= t.itb of=3D/dev/sdb sudo sync Moved the microsd to the rockpro64 slot and powered it on. u-boot comes up in the expected version, and since it successfully fails to boot from the microsd card it falls through to scanning for SCSI devices. Immediately after listing connected devices (even when none are connected to the PCIe card) a long error message appears, the display goes blank, and the CPU seemingly gets stuck. I can reliably reproduce this by typing on the u-boot console: pci enum scsi scan I don=E2=80=99t think the PCIe card is broken, because I can use it just fi= ne after booting from USB. Maybe I made a mistake that would seem really obvious to others? --=20 Ricardo