Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mmpU4-0002gw-Do for mharc-grub-devel@gnu.org; Mon, 15 Nov 2021 22:50:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmpU3-0002go-Oz for grub-devel@gnu.org; Mon, 15 Nov 2021 22:50:11 -0500 Received: from [2607:f8b0:4864:20::933] (port=42841 helo=mail-ua1-x933.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmpU2-0005ur-8d for grub-devel@gnu.org; Mon, 15 Nov 2021 22:50:11 -0500 Received: by mail-ua1-x933.google.com with SMTP id t13so39488762uad.9 for ; Mon, 15 Nov 2021 19:50:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R29OxiaE/UWzznokl5RbZlvsolecrggEZgcDFqhAhOQ=; b=KtMJuPXOWwMyuhUTWt91ts4GZyisloWAl9zoaWLhdNJ0eJ7l5Ir+IC8wkrzSU4HICO pngUGyEechiTc3BtJ8zev6XvgZTsgM7cs1f8CA2pcqCIjnkChVGM3zCYrP2p7lhDyHaQ j4EREtbXXNSeEPMPNj+SyPH7zq8ICCDF196j4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=R29OxiaE/UWzznokl5RbZlvsolecrggEZgcDFqhAhOQ=; b=UYHdzXkUer0POByPF4HwYRFS6krms6sasA4Um7WCOyZGwN4f+0ZI8EjgEkUl0FnDkJ s9I5kao2JZJIDr39+DG6/SCzZnIvUA3q7URr3JtbHSY15932/zPCAQG3xHALcvj2m9yJ axJJ5fF/D+z51hL+J1Bz+JTta5WIp/iZAWVnf3trG3cn+0hk2Sh1GinvZdt2Azk2k2Aa TKMPGu3u+SwiApIH/1PoAt//NVsDTWZQpjbAkPWX3pluALHy1KwLpGCprYCiOLunQO5I J+yAVcSdKx+p3i4aLj0ndDGIcZcnpct/wLKGkm9LgjiPQHYzHDRrxL6xsZu8g1ORiGGm b9PQ== X-Gm-Message-State: AOAM530Qla0jPJJ7ausTw5JfxAtlJLsfUN5Zeol9aklWTOpcj9y9FOp7 OgCQSE903fkNNd8ZP88louikH27+/WgABg== X-Google-Smtp-Source: ABdhPJwti0OnaYai8CHkg6NTloINg66P8v9nK7ccqzNL5skvj9cwVkTYw5eDZJ8rr5+KBGE5QLBLzQ== X-Received: by 2002:a17:902:ba84:b0:142:5514:8dd7 with SMTP id k4-20020a170902ba8400b0014255148dd7mr41603203pls.87.1637034129623; Mon, 15 Nov 2021 19:42:09 -0800 (PST) Received: from localhost ([2001:4479:e000:e400:390c:7b17:9641:ce9d]) by smtp.gmail.com with ESMTPSA id p188sm16685760pfg.102.2021.11.15.19.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 19:42:09 -0800 (PST) From: Daniel Axtens To: grub-devel@gnu.org Cc: Daniel Axtens Subject: [PATCH 0/2] powerpc-ieee1275: support larger core.elf images Date: Tue, 16 Nov 2021 14:42:03 +1100 Message-Id: <20211116034205.463101-1-dja@axtens.net> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::933 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::933; envelope-from=dja@axtens.net; helo=mail-ua1-x933.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2021 03:50:12 -0000 Red Hat recently experienced an issue which I narrowed down to using a grub core.elf image that was too big: the current limit is just under 2MB. These are two patches that fix the issue and attempt to future proof the area. With these patches, the maximum size will be: - SLOF, or PFW with the PowerPC IEEE1275 note: just under 8MB - PFW without the PowerPC IEEE1275 note: a bit under 4MB As such, I recommend people building large grub images for Power systems (such as secure bootable images) build with the PowerPC IEEE1275 note from now on. Daniel Axtens (2): powerpc-ieee1275: load grub at 8MB, not 2MB ieee1275: set real-base in the PowerPC IEEE1275 Note to 32MB grub-core/Makefile.core.def | 2 +- include/grub/offsets.h | 2 +- util/grub-mkimagexx.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 2.32.0