Re: diff: efiboot: alignment for media which has IoAlign > 1

2021-03-15 Thread Mark Kettenis
> Date: Thu, 11 Mar 2021 15:05:11 +0900 (JST) > From: YASUOKA Masahiko > > On Wed, 10 Mar 2021 13:15:58 +0100 (CET) > Mark Kettenis wrote: > >> On Wed, 10 Mar 2021 20:35:41 +0900 (JST) > >> YASUOKA Masahiko wrote: > >> > efiboot cannot load the kernel properly on some machines if booted > >> >

Re: diff: efiboot: alignment for media which has IoAlign > 1

2021-03-14 Thread Masato Asou
Hi, I was tested attached patch on following machines and worked fine on those machines. - ESXi vitrual machine - AMD TYZEN 7 - Intel corei7 -- ASOU Masato From: YASUOKA Masahiko Date: Thu, 11 Mar 2021 15:05:11 +0900 (JST) > On Wed, 10 Mar 2021 13:15:58 +0100 (CET) > Mark Kettenis

Re: diff: efiboot: alignment for media which has IoAlign > 1

2021-03-10 Thread YASUOKA Masahiko
On Wed, 10 Mar 2021 13:15:58 +0100 (CET) Mark Kettenis wrote: >> On Wed, 10 Mar 2021 20:35:41 +0900 (JST) >> YASUOKA Masahiko wrote: >> > efiboot cannot load the kernel properly on some machines if booted >> > from CD-ROM. In that case boot fails with a message like follow: >> > >> >

Re: diff: efiboot: alignment for media which has IoAlign > 1

2021-03-10 Thread Mark Kettenis
> Date: Wed, 10 Mar 2021 20:42:42 +0900 (JST) > From: YASUOKA Masahiko > > Sorry for making noise, let me update the diff. > > > + if (ed->blkio->Media->IoAlign > 1 && > > + ((UINTN)buf + i_lblks * DEV_BSIZE) > > + %

Re: diff: efiboot: alignment for media which has IoAlign > 1

2021-03-10 Thread YASUOKA Masahiko
Sorry for making noise, let me update the diff. > + if (ed->blkio->Media->IoAlign > 1 && > + ((UINTN)buf + i_lblks * DEV_BSIZE) > + % ed->blkio->Media->IoAlign == 0) first condition was reversed.. On Wed, 10 Mar 2021 20:35:41

diff: efiboot: alignment for media which has IoAlign > 1

2021-03-10 Thread YASUOKA Masahiko
Hi, efiboot cannot load the kernel properly on some machines if booted from CD-ROM. In that case boot fails with a message like follow: booting cd0a:. [359648read symbols: Unknown error: code 255 As far as Asou and my test, this happens on hosts on VMware ESXi 6.7, 7.0 and asou's