Received: by 2002:a17:504:4644:b0:1be9:327d:8ee3 with SMTP id d4csp450934njg; Tue, 25 Feb 2025 11:33:28 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUoJFrHrnX4VzWXpzvFZZT/EeqWZTd7vz+VlhEGiB/XIDsfbw3NKASm7LcOm86DtcNhmc+Opai1AGIjjQ==@linaro.org X-Google-Smtp-Source: AGHT+IHdWrZuZPVTkMuBhKsVpRRR9jOaDpj3MZ23a6OeXYqY/91s2R1F+p+2D+PYdGz3RM7sQekq X-Received: by 2002:a05:6214:230e:b0:6e6:5efa:4dfa with SMTP id 6a1803df08f44-6e6b010d162mr289849276d6.21.1740512008649; Tue, 25 Feb 2025 11:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1740512008; cv=none; d=google.com; s=arc-20240605; b=KGGaBUxUjD4tJ7NOFqBsmfpRTMLf1xhC74DBu5oEkRLyH+jcUrp1d3u0GNgTemFQWB bWP6U1UCXun46CuAP+tzqdvcvLeH7ut/j/KSrHVkH1PdzWHaNCsRTbzRWkUNJlRT07BI RJyo22YyakdVQTlZMSMOv1w5JJvGsUujYejCbVXcsRQ4VsbipOTKsARB5Nk0LQhQWSL/ VReIoeunRHu9MWXv61t5GZM7Y4BbXjfgeCtmJ901su8anzIPIgXRZaqS3A6njDmuZn0i KWzguz+1bnfjQGKCC+cfLs0kErjKqoZYJT5kY/yoN/tLVyalc6LbDX0aeqS1eJGIb7CD Is6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:references:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=JvE73Rg5rWKbwPbQYMIOUPC3ryk2kn7Ur9BRIhAoTLE=; fh=eJdcurJOcIGCPvkFwSIH5tJ5Rs6mqbs2W0UdqyEV36k=; b=FJXvnP6Bnmuy0i9TvlKzCnKQ/XWBJ6OtdJlXZaM5YDoeiByzPtUcH56mycF6FDH07A nKSLLvApF1bxhhIvpnmOejORriqn+443qFf25BrnSadg66NkRBwuaj/l7J/IIclsntjd SC/SyQaA+Lv5fKcXkeD11qwypaCvjRTebSuMDZoMvLkHVxCX9y/ZVC7YZS7fapHssyP8 0G67ikVIlPWaP6xA5X6xPl/gQHC/VFXKbSb91Ll166VH14ZeWQ1uyJIiePNob7s5oecW kc5UCVPqGcD0K8DnuFoaFXPiEUnGNWcw9MDfD15zNg59tLKBHJu32Qc5pE1sWO3g0aVF uG4w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PUGjtKEW; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6e87b0e560asi21744406d6.355.2025.02.25.11.33.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Feb 2025 11:33:28 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PUGjtKEW; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tn0fX-0002wU-Sd; Tue, 25 Feb 2025 14:32:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tn0fO-0002v8-C7; Tue, 25 Feb 2025 14:32:34 -0500 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tn0fM-0007un-GK; Tue, 25 Feb 2025 14:32:29 -0500 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5dec996069aso9727651a12.2; Tue, 25 Feb 2025 11:32:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740511946; x=1741116746; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=JvE73Rg5rWKbwPbQYMIOUPC3ryk2kn7Ur9BRIhAoTLE=; b=PUGjtKEW++kskJ0q2+dZ7lW5VRJBxAg8Z4WD+qp9YGcqIGUjNjqzldTA9CPqJKPWN9 STSjNfXYIvyUjHpPToUleALEfV5+MUBDpxiTcdVhza/fIyDoZk4MEe4ALCD6DpO1ykiv sjJgNMQkSLIJLfT1JShBkbvB6Ng1ayit539iDVXlXzSOG6vF9VN+2rjrZ6ETgsvQ9F3B 6mgzvjEq8jm1YvI4YFB1Kh1J7fN5j1aPmbhq8Eg2LJmqJkmml+DlhaJN/l+5AIUFX6tR 9qjOyR6inrs5pAR4/M4ksNJRdV0UTRKYAs/PaqwRpJJus+5B4hzjg2sHsmozHXKGgiU3 EUPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740511946; x=1741116746; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JvE73Rg5rWKbwPbQYMIOUPC3ryk2kn7Ur9BRIhAoTLE=; b=ZphiLipMnlzsbNTQAy8utR4i3WAwwsqvBB7wa2xeDHcV+1JqeDhxsQnYT4sgH9xTQv WiZy9bw3A/w+5x+N/96GEc0EdRGr87NQJ51pHiqsAUS1Vzc8JfwoCLRwSLgCBm5yg7bc uyR/1c0VKT9PKZ5begOKF9BZ7bbQA+08XBtCmX7HhkWXc3+Bx92eCp5dmlmVZnSaBofd DCvYBxlJJ2TAcnS+48NTEXIxhTwxtoMjXzy9Y0iaFj9isqiI08136/WcVDGpJBwj/C62 WNhgjmEXYTY0/yL4y9NJfO2tnSwX/pTWnvNxKheF5z/S1WP6HJzV3adqgx6VOqOY/9Js j3fQ== X-Forwarded-Encrypted: i=1; AJvYcCWH7zaVbr7acnMZdILS21kAdTkZgZoQVzQzn+hLz7WEmHK0QeMaL02iX/1ttfj7j5nxlbEAgFZ2wA==@nongnu.org X-Gm-Message-State: AOJu0YxXt/a5dhff4erdwm5oqMhk1g/DIizETt3QAKrq2VSX60F5emew gSI1fiHtlJnRk5E6frUzsntYRlgeZXsFVWl3MawVeLzFq5VQ5qok X-Gm-Gg: ASbGncsdaJun3lLf62T0bc3PUxQzcLZxOzcPyaUIY5pBb61rpwelN71DfN3Qwa/KLyF gTGfglZ2raWpBB0NVHX7XOFML3xozdokPmxD9AFRRIaCuTQyw6W8LYVyrp63CyHIJcW8xrjNYWx W52g0I7Jbhp9IRQ+fesjAsp7VLuWvaGKNaYzH6vs0Q80nWGol3ADNf+aScFfdG4ZnxpK7uPjEOW U80MtcKPBKdqT2Nn1GNX7OfJDD0mdF9yQr7DbpLqx21ar2FXTuEneAANehoJbZHeXzI+WKHbkv2 RGXRg9X0D3UWnxgF/Y918nBDg+Y6P9hK7wqrhoLgALc12sKVlXmYxoVurcZ04jes+8GJLkJgagh 3wI0= X-Received: by 2002:a05:6402:34cc:b0:5dc:cfc5:9305 with SMTP id 4fb4d7f45d1cf-5e4a0dfc8b9mr885142a12.25.1740511946057; Tue, 25 Feb 2025 11:32:26 -0800 (PST) Received: from [127.0.0.1] (dynamic-077-188-213-172.77.188.pool.telefonica.de. [77.188.213.172]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5e45b80b87asm1629151a12.39.2025.02.25.11.32.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Feb 2025 11:32:25 -0800 (PST) Date: Tue, 25 Feb 2025 18:48:50 +0000 From: Bernhard Beschow To: Peter Maydell CC: qemu-devel@nongnu.org, Paolo Bonzini , Jean-Christophe Dubois , qemu-arm@nongnu.org, =?ISO-8859-1?Q?Marc-Andr=E9_Lureau?= , Laurent Vivier , Andrey Smirnov , Fabiano Rosas , Alistair Francis , "Edgar E. Iglesias" , =?ISO-8859-1?Q?Philippe_Mathieu-Daud=E9?= Subject: Re: [PATCH v2 16/18] hw/arm/fsl-imx8mp: Add boot ROM In-Reply-To: References: <20250223114708.1780-1-shentey@gmail.com> <20250223114708.1780-17-shentey@gmail.com> Message-ID: <6DBA3ED8-1ED6-4657-992E-3B12FFF8332B@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=shentey@gmail.com; helo=mail-ed1-x52a.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: kxyU2UAPe8KG Am 25=2E Februar 2025 14:29:15 UTC schrieb Peter Maydell : >On Sun, 23 Feb 2025 at 11:47, Bernhard Beschow wrot= e: >> >> On a real device, the boot ROM contains the very first instructions the= CPU >> executes=2E Also, U-Boot calls into the ROM to determine the boot devic= e=2E While >> we're not actually implementing this here, let's create the infrastruct= ure and >> add a dummy ROM with all zeros=2E This allows for implementing a ROM la= ter without >> touching the source code and even allows for users to provide their own= ROMs=2E >> >> The imx8mp-boot=2Erom was created with >> `dd if=3D/dev/zero of=3Dimx8mp-boot=2Erom bs=3D1 count=3D258048`=2E >> >> Signed-off-by: Bernhard Beschow > >Hi; I've thought about this a bit, and I think we should just >postpone having code to load a rom blob until we have an >actual rom blob that's not all zeroes=2E This makes this >board the same as e=2Eg=2E imx7 which also doesn't try to load >a ROM blob=2E You can create a memory region for the ROM, >like imx7; just don't load anything into it, and that's >exactly the same as if there was an all-zeroes file that >got loaded=2E > >This doesn't prevent users from experimenting with providing >their own ROM code, because they can do that with the >generic loader (passing it either an ELF file set up to >load to the ROM area or else a binary blob plus the >start address of 0)=2E > >That way we aren't carrying code we aren't using and an >awkward binary blob in git; we can add those when we need >them=2E Yes, makes sense=2E Best regards, Bernhard > >thanks >-- PMM