Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mpgW5-0004I0-LO for mharc-grub-devel@gnu.org; Tue, 23 Nov 2021 19:52:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpgW3-0004HD-Ov for grub-devel@gnu.org; Tue, 23 Nov 2021 19:52:03 -0500 Received: from [2607:f8b0:4864:20::102a] (port=51737 helo=mail-pj1-x102a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpgW2-0003Ge-BB for grub-devel@gnu.org; Tue, 23 Nov 2021 19:52:03 -0500 Received: by mail-pj1-x102a.google.com with SMTP id gt5so982125pjb.1 for ; Tue, 23 Nov 2021 16:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=qhpQ6Ue1FErWEI4Zhh99m5J5Ue6Nz+aF3NUVFzm+j9M=; b=CCQDHHQer0YBwaR0VnP56doakzSoS3Z7S3JONUlAkeo6f/Dd7tKvTsPBsQu/kIsXA8 9IJU6yjYQrgJArBD9Itcu44ewpH8jfUYgUBQCYgkpdkB+9Ib++JU9uGxiaoFQzy7ySN/ nwSoT3Z9/CpFjbenkM7x7E2muYrf4NduqnJHY= 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:in-reply-to:references:date :message-id:mime-version; bh=qhpQ6Ue1FErWEI4Zhh99m5J5Ue6Nz+aF3NUVFzm+j9M=; b=opCFhVhXZFwMAFCokSwcDmQ6vFXP5xGJjFPtqgoIC+Mg9qTsmHfbi2NYqUlwOIq03V 3zC+6UlkVMgv23/jV2mNStsk6ZEhEpyZtw6KhzACNf3SWO8YbsVs4JjJgnXYag3QMr9T QjLLMvku6VKXF9xsbtVzcoIRt7FRNc45nUlFc8u40urxeWZQWXCm6bEQ+O+QT2Cs8yy2 zVvvuzXC+1i1kpq3jBi5XNeb7j1iTvNnV44NTigXonZ45ms/3Xc0BGJ5w5HyshrwOPBD LB/xgolJJZSCiB6nPoY8s0Wmh2NlfAk0g59IdFjjO/2QyDcUp4aubXu6jH0AqwvrsgcJ SEVA== X-Gm-Message-State: AOAM531CJIeX5dQvpv8/SvEHY9YvVlMAuUfl+7xURrhgEagYPpJy0q7m LHnDFeSq+N0iVcQSkhJNB/OcnHAjfcIbug== X-Google-Smtp-Source: ABdhPJyO0LGEb3aYDsBKP6XwrsPNFf6Ot9elPaQqTpuu5+ObVYozAHn2iwphtORFbew3TIcnHFpJbg== X-Received: by 2002:a17:90b:4b8d:: with SMTP id lr13mr9094909pjb.239.1637715121011; Tue, 23 Nov 2021 16:52:01 -0800 (PST) Received: from localhost ([2001:4479:e000:e400:4a7:5a98:de98:1432]) by smtp.gmail.com with ESMTPSA id mz7sm2362698pjb.7.2021.11.23.16.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Nov 2021 16:52:00 -0800 (PST) From: Daniel Axtens To: John Paul Adrian Glaubitz Cc: The development of GNU GRUB Subject: Re: [PATCH 0/2] powerpc-ieee1275: support larger core.elf images In-Reply-To: <645a4ced-d98f-06a8-32f5-5b309dd706b9@physik.fu-berlin.de> References: <20211116034205.463101-1-dja@axtens.net> <645a4ced-d98f-06a8-32f5-5b309dd706b9@physik.fu-berlin.de> Date: Wed, 24 Nov 2021 11:51:56 +1100 Message-ID: <87tug2cr4j.fsf@dja-thinkpad.axtens.net> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=dja@axtens.net; helo=mail-pj1-x102a.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: Wed, 24 Nov 2021 00:52:04 -0000 Hi Adrian, Thanks for testing! > root@ibook-g4-14:/home/glaubitz/grub# grub-install --macppc-directory=/boot/grub --no-nvram > Installing for powerpc-ieee1275 platform. > grub-install: warning: cannot open directory `/usr/local/share/locale': No such file or directory. > grub-install: error: `/usr/local/lib/grub/powerpc-ieee1275/kernel.img' is miscompiled: its start address is 0x200000 instead of 0x800000: ld.gold bug?. > root@ibook-g4-14:/home/glaubitz/grub# Fascinating. I saw a similar issue when I only updated the kernel (Makefile.core.def) and not the utils and fixed it with the change to offsets.h. Interestingly you're seeing the issue in reverse: the tools are expecting the new offset but /usr/local/lib/grub/powerpc-ieee1275/kernel.img is built with the old offset. Could you humour me and: - check that your kernel.img in /usr is indeed up to date - try grub-install ... -d ./grub-core? Many thanks! Kind regards, Daniel