> On Mar 25, 2019, at 5:45 AM, Daniel Kiper <dki...@net-space.pl> wrote: > > On Fri, Mar 22, 2019 at 07:35:55AM +0100, John Paul Adrian Glaubitz wrote: >> Recent versions of binutils dropped support for the a.out and COFF >> formats on sparc64 targets. Since the boot loader on sparc64 is >> supposed to be an a.out binary and the a.out header entries are >> rather simple to calculate in our case, we just write the header >> ourselves instead of relying on external tools to do that. >> >> Signed-off-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> > > LGTM, Reviewed-by: Daniel Kiper <daniel.ki...@oracle.com> > > Eric, are you OK with this patch? >
I tried it out, but on my system it doesn’t fit in the 512 byte block? Am I missing something? Before the patch: $ grub-install --force --skip-fs-probe /dev/sdb1 Installing for sparc64-ieee1275 platform. grub-install: warning: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea.. grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.. Installation finished. No error reported. $ ls -al /boot/grub/sparc64-ieee1275/boot.img -rw-r--r--. 1 root root 512 Mar 25 12:13 /boot/grub/sparc64-ieee1275/boot.img After: $ grub-install --force --skip-fs-probe /dev/sdb1 Installing for sparc64-ieee1275 platform. grub-install: error: the size of `/boot/grub/sparc64-ieee1275/boot.img' is not 512. $ ls -al /boot/grub/sparc64-ieee1275/boot.img -rw-r--r--. 1 root root 544 Mar 25 12:10 /boot/grub/sparc64-ieee1275/boot.img _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel