From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 kBQoBri9H2KaGAEAgWs5BA (envelope-from ) for ; Wed, 02 Mar 2022 19:55:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mLluOre9H2I9aAEAG6o9tA (envelope-from ) for ; Wed, 02 Mar 2022 19:55:51 +0100 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 9D86E1D1F7 for ; Wed, 2 Mar 2022 19:55:51 +0100 (CET) Received: from localhost ([::1]:34300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPU8c-0003yj-Mp for larch@yhetil.org; Wed, 02 Mar 2022 13:55:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPU8K-0003tP-0D for help-guix@gnu.org; Wed, 02 Mar 2022 13:55:32 -0500 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPU8H-000120-Ge for help-guix@gnu.org; Wed, 02 Mar 2022 13:55:31 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1646247324; cv=none; d=zohomail.com; s=zohoarc; b=RJIVvR8LvZ7IpqzaFkGHtwuoFfq/09/UY6QjJtqhHHxnQK33jSubbbiSZU2k0L4VBLfUE1XW7CM33+fC3lzPyUSpsdM/U3lQMpnRgmMhSFfc2yT2kc9xtQ56wuZQs4b/0cLDv7900zhDJogBA7cg2fIXHRM/FCKNl5DoTlUtWCo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646247324; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Zar+Ikloc7t8uhk54Op1fONnza16meBfugYjaxYRiC0=; b=I7GLFVKnkSU4KHa8smYxQRPBj5rRXrHnH0bDEwayVNOzfCUYg7Rs9Y4MfcyiqCgPluzEM5xW52d+9UeLOHMfnl4zv7x0C8n6A24MAKlh3F6nvTmD8g45HwNVuGrR7dEfGUGX6A6Lwk1ABEanQP5Zm4a48K1uQFizPs/Q0sixLFw= 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=1646247324; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=Zar+Ikloc7t8uhk54Op1fONnza16meBfugYjaxYRiC0=; b=LxGbFcilv6L6bDrJkk0MCIVtJ+adYAHHNU0nFjS259/BdLMstQzbrwY5NtI1RPyI pW3Q2AEbaP70MbpXIawp5wGd2Zgt7Zqx2/YHKIEcvmAW7Ep/s7X7BvlAyIrwhCNanWk wlG2vET4+ws/di0xJq/ZVUwZExT9pcIPu8UM1rMM= Received: from localhost (p54ad4e6f.dip0.t-ipconnect.de [84.173.78.111]) by mx.zohomail.com with SMTPS id 1646247323896909.1534349318267; Wed, 2 Mar 2022 10:55:23 -0800 (PST) References: <87h78g1qu5.fsf@mdc-berlin.de> <871qzkfc9j.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: Wed, 02 Mar 2022 19:52:18 +0100 In-reply-to: <871qzkfc9j.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: <874k4g18x3.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_H5=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-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646247351; 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=Zar+Ikloc7t8uhk54Op1fONnza16meBfugYjaxYRiC0=; b=EW4+5GckAPVa4JX3QOsoEgwX5cjWyqqNhEa4PWN0i2//XwS8YF1Z9gwWsigUDLKzfAtCQp CZ02SEyyBIPOECDnEPOWzqh34hHdPbdDLFT40aWlay9MuY2qPAZPz9vZ0E36J1WmyEWCa9 ow/Vx9VUukhWmiMQwqzYofbEN60NDkVM0DC8S07Ith0QuDbP8S8vwOLrobF+0NZuSE8/8M a1OmATRVedfxEnXpWw05ImRjuZcqxu/Pl28aJRFu1C4T3xwUdYyVdTaeDupwE8q5PJpgg3 koDOHBf1xT3m21IaQqGcOvU3IRhF29LgLddY+Q6yZwicWiOobekgOiwny3vBzA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1646247351; a=rsa-sha256; cv=pass; b=KW6eoj4aAt13dPU2gkqR+fNV9Q+fXNssTi+xmAPqxZb+TEscQU/j6iEgfZpkSlsX6eZ61B KqV02AqcaTTyYhJt9aSqJl9kbN0i6wjrsPnvxJzGmMX1MLCiqKV54dxdHRz8u0NzDje0MA LTus/dnMA6DNV5X67KZnV9ZXnR/RYN5YyG+EGInIfUQEJZJ3jcklYX3BuMINYjIsLTRTi2 r3VtkCe1y1q3j9x5/U0J75l2vpEgCQgS9U6cEI6BRh2clpj4NGNwlqussEZdIg3jeqemPs GDP4OpKYevPa8f7jTCmizBNjht1WichixiipVZKgR5d9sh43XVrhb0xesSb+Bg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=LxGbFcil; 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: -6.58 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=LxGbFcil; 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: 9D86E1D1F7 X-Spam-Score: -6.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: Wqnr2aOGhZMA Vagrant Cascadian writes: > [[PGP Signed Part:Undecided]] > On 2022-03-02, Ricardo Wurmus wrote: >> I got myself a rockpro64 board. > ... >> So I then decided to build my own system and install a new u-boot onto >> the microSD card. Here=E2=80=99s the system I built: > ... >> (bootloader (bootloader-configuration >> (bootloader u-boot-rockpro64-rk3399-bootloader) >> ;; SD card/eMMC (SD priority) storage >> (target "/dev/mmcblk1"))) > > You need to leave a pretty generous gap at the partition table of your > microSD, either a GPT partition table with various partitions for the > various u-boot bits: > > http://opensource.rock-chips.com/wiki_Partitions > > or an MBR partition table with the first partition starting at sector > 32768, and the previous sectors empty. > > Otherwise, the u-boot installation may clobber parts of your partition > table or vice-versa. Do I need to prepare the microSD card at all? There=E2=80=99s no documenta= tion in the manual, so I have no idea what to do with it prior to =E2=80=9Cguix system init=E2=80=9D. Looking at the code I assumed that the disk-image-installer procedures take care of placing whatever blobs are needed at the expected locations. > Also, if you have a different u-boot installed to SPI or eMMC, those > will take priority over microSD on most rockchip platforms. There is no other u-boot installed. The machine does not show any activity when powered on without microSD card. >> (kernel linux-libre) >> (kernel-arguments >> (list "console=3DttyS2")) ; UART2 connected on the Pi2 bus > > I assume you're using a serial console. The rockchip platforms usually > default 1500000 for baud ... usually I use: > > screen /dev/ttyUSB0 1500000 > > Oh, now that I think about it, you might also want to set the speed for > your console in kernel-arguments: > > (kernel-arguments > (list "console=3DttyS2,1500000")) I=E2=80=99m not yet using a serial console, but I=E2=80=99ll come back to t= his later if necessary. >> Does it perhaps install the u-boot files at the wrong offsets? How >> would I begin to debug this? > > It is also entirely possible something is wrong with rockpro64 u-boot > offsets or u-boot itself ... been a while since I've tested. Hmm, okay. Thanks for the hints! --=20 Ricardo