Bug#927892: grub-ieee1275-bin: Please add bootinfo.txt for sparc and sparc64

2019-04-24 Thread Mark Cave-Ayland
On 24/04/2019 21:30, Frank Scheiner wrote:

> On 4/24/19 22:07, John Paul Adrian Glaubitz wrote:
>> On 4/24/19 9:46 PM, Mark Cave-Ayland wrote:
>>> For reference the CHRP bootinfo.txt isn't a configuration file, but is 
>>> actually
>>> parsed by CHRP-compliant open firmwares directly - SPARC firmwares, 
>>> including
>>> OpenBIOS don't support them. Can you explain why grub on SPARC is trying to 
>>> access
>>> this file?
>>
>> Good point, I didn't notice that there is a CHRP header and assumed that we 
>> need
>> this file on sparc and sparc64 as well.
>>
>> I haven't actually done any runtime tests yet, I replaced the configuration 
>> files
>> from ppc64el for grub-ieee1275 and adapted them for sparc64. debian-installer
>> builds fine with those changes, but as I said, I haven't tested anything yet.
>>
>> I am very welcome for any pointers though for what else is needed to use GRUB
>> for CD boot on sparc64.
> 
> `grub-mkimage` has a (target) format named "sparc64-ieee1275-cdcore".
> But I'm unsure if this is of any use for us, or needed at all, because
> if GRUB can load kernel and initramfs from disc, it should also be able
> to load its modules from disc, so a small GRUB image and separate
> modules (like for on-disk or diskless installations) could also work.
> 
> OTOH: if a "sparc64-ieee1275-cdcore" image and a corresponding grub.cfg
> works for disc booting, we could just exchange the SILO image and config
> for these.

Is it possible to see the source for sparc64-ieee1275-cdcore anywhere? A quick 
search
doesn't return anything obvious. And from memory grub is working when installed 
onto
the disk? If so, where is the source of the disk image for comparison?


ATB,

Mark.



Bug#927892: grub-ieee1275-bin: Please add bootinfo.txt for sparc and sparc64

2019-04-24 Thread Mark Cave-Ayland
On 24/04/2019 18:26, John Paul Adrian Glaubitz wrote:

> Source: grub2
> Version: 2.02+dfsg1-17
> Severity: normal
> User: debian-sp...@lists.debian.org
> Usertags: sparc64
> 
> Hello!
> 
> I have started working on switching the bootloader for debian-installer from
> silo to grub-ieee1275 on sparc and sparc64.
> 
> For that, I have looked at the corresponding code in debian-installer for
> ppc64el and noticed that the configuration file build/config/ppc64el.cfg
> requires a "bootinfo.txt" configuration file which is part of the
> grub-ieee1275-bin package.
> 
> Thus, in order to switch to grub-ieee1275 on sparc and sparc64, we need
> to add the bootinfo.txt there as well. Could you install the bootinfo.txt
> file for sparc and sparc64 as well?
> 
> Plus, it might be a good idea to adjust the GRUB version number as well
> as the name of the boot script to be a generic name like debian-installer.elf
> and not powerpc.elf.
> 
> Currently, the header of bootinfo.txt looks like this:
> 
> 
> grub 2.02~beta3
> grub 2.02~beta3
> boot &device;:\boot\grub\powerpc.elf
> 
> 
> Thanks,
> Adrian

Hi Adrian,

For reference the CHRP bootinfo.txt isn't a configuration file, but is actually
parsed by CHRP-compliant open firmwares directly - SPARC firmwares, including
OpenBIOS don't support them. Can you explain why grub on SPARC is trying to 
access
this file?



ATB,

Mark.



Bug#927892: grub-ieee1275-bin: Please add bootinfo.txt for sparc and sparc64

2019-04-24 Thread Frank Scheiner
On 4/24/19 22:07, John Paul Adrian Glaubitz wrote:
> On 4/24/19 9:46 PM, Mark Cave-Ayland wrote:
>> For reference the CHRP bootinfo.txt isn't a configuration file, but is 
>> actually
>> parsed by CHRP-compliant open firmwares directly - SPARC firmwares, including
>> OpenBIOS don't support them. Can you explain why grub on SPARC is trying to 
>> access
>> this file?
>
> Good point, I didn't notice that there is a CHRP header and assumed that we 
> need
> this file on sparc and sparc64 as well.
>
> I haven't actually done any runtime tests yet, I replaced the configuration 
> files
> from ppc64el for grub-ieee1275 and adapted them for sparc64. debian-installer
> builds fine with those changes, but as I said, I haven't tested anything yet.
>
> I am very welcome for any pointers though for what else is needed to use GRUB
> for CD boot on sparc64.

`grub-mkimage` has a (target) format named "sparc64-ieee1275-cdcore".
But I'm unsure if this is of any use for us, or needed at all, because
if GRUB can load kernel and initramfs from disc, it should also be able
to load its modules from disc, so a small GRUB image and separate
modules (like for on-disk or diskless installations) could also work.

OTOH: if a "sparc64-ieee1275-cdcore" image and a corresponding grub.cfg
works for disc booting, we could just exchange the SILO image and config
for these.

Cheers,
Frank



Bug#927892: grub-ieee1275-bin: Please add bootinfo.txt for sparc and sparc64

2019-04-24 Thread John Paul Adrian Glaubitz
On 4/24/19 9:46 PM, Mark Cave-Ayland wrote:
> For reference the CHRP bootinfo.txt isn't a configuration file, but is 
> actually
> parsed by CHRP-compliant open firmwares directly - SPARC firmwares, including
> OpenBIOS don't support them. Can you explain why grub on SPARC is trying to 
> access
> this file?

Good point, I didn't notice that there is a CHRP header and assumed that we need
this file on sparc and sparc64 as well.

I haven't actually done any runtime tests yet, I replaced the configuration 
files
from ppc64el for grub-ieee1275 and adapted them for sparc64. debian-installer
builds fine with those changes, but as I said, I haven't tested anything yet.

I am very welcome for any pointers though for what else is needed to use GRUB
for CD boot on sparc64.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#927892: grub-ieee1275-bin: Please add bootinfo.txt for sparc and sparc64

2019-04-24 Thread John Paul Adrian Glaubitz
Source: grub2
Version: 2.02+dfsg1-17
Severity: normal
User: debian-sp...@lists.debian.org
Usertags: sparc64

Hello!

I have started working on switching the bootloader for debian-installer from
silo to grub-ieee1275 on sparc and sparc64.

For that, I have looked at the corresponding code in debian-installer for
ppc64el and noticed that the configuration file build/config/ppc64el.cfg
requires a "bootinfo.txt" configuration file which is part of the
grub-ieee1275-bin package.

Thus, in order to switch to grub-ieee1275 on sparc and sparc64, we need
to add the bootinfo.txt there as well. Could you install the bootinfo.txt
file for sparc and sparc64 as well?

Plus, it might be a good idea to adjust the GRUB version number as well
as the name of the boot script to be a generic name like debian-installer.elf
and not powerpc.elf.

Currently, the header of bootinfo.txt looks like this:


grub 2.02~beta3
grub 2.02~beta3
boot &device;:\boot\grub\powerpc.elf


Thanks,
Adrian

--
  .''`.  John Paul Adrian Glaubitz
 : :' :  Debian Developer - glaub...@debian.org
 `. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
   `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913