[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ieee1275: Include a.out header in assembly of sparc64 boot l
From: |
Eric Snowberg |
Subject: |
Re: [PATCH] ieee1275: Include a.out header in assembly of sparc64 boot loader |
Date: |
Mon, 25 Mar 2019 10:20:33 -0600 |
> On Mar 25, 2019, at 5:45 AM, Daniel Kiper <address@hidden> 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 <address@hidden>
>
> LGTM, Reviewed-by: Daniel Kiper <address@hidden>
>
> 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
- [PATCH] ieee1275: Include a.out header in assembly of sparc64 boot loader, John Paul Adrian Glaubitz, 2019/03/22
- Re: [PATCH] ieee1275: Include a.out header in assembly of sparc64 boot loader, Daniel Kiper, 2019/03/25
- Re: [PATCH] ieee1275: Include a.out header in assembly of sparc64 boot loader,
Eric Snowberg <=
- Re: [PATCH] ieee1275: Include a.out header in assembly of sparc64 boot loader, John Paul Adrian Glaubitz, 2019/03/25
- Re: [PATCH] ieee1275: Include a.out header in assembly of sparc64 boot loader, Eric Snowberg, 2019/03/25
- Re: [PATCH] ieee1275: Include a.out header in assembly of sparc64 boot loader, John Paul Adrian Glaubitz, 2019/03/25
- Re: [PATCH] ieee1275: Include a.out header in assembly of sparc64 boot loader, Eric Snowberg, 2019/03/25