[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On 27/04/2019 16:40, Thomas Schmitt wrote:

> Hi,
> 
> Mark Cave-Ayland wrote:
>> - In your second patch re-enable the -G/-B options but with -G set to
>> cdboot.img:
>>     add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-G cdboot.img -B ..."
> 
> Does this refer to
>   From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
>   Date: Thu, 25 Apr 2019 00:05:45 +0200
>   https://lists.debian.org/debian-sparc/2019/04/msg00036.html
> ?
> 
> 
>> Once this is done and the ISO image is generated, [...]
>> - Next check the offset and size of /boot/grub/core.img embedded in
>> sector 1 using dd and hexdump. As per Thomas' message you should find
>> the offset in bytes of the start of /boot/grub/core.img at offset 552
>> from the start of the .iso (64-bit big endian) and its size at offset
>> 560 from the start of the .iso (32-bit big endian)
> 
> This would be put there by xorriso -as mkisofs option
> 
>   --grub2-sparc-core ...path.of.file.in.ISO.filesystem...
> 
> With genisoimage it would be necessary to insert the info by
> post-processing. /usr/bin/isoinfo prints block addresses as first number
> in its "[   NN NN]" column. Byte offset is block address * 2048.

Ooops yes indeed, it is necessary to explicitly enable this via --grub2-sparc-core.
In that case I think the change for Adrian's second patch should in fact be this:

 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-G cdboot.img -B ... --grub2-sparc-core
/boot/grub/core.img"

Does that look better?


ATB,

Mark.


Reply to: