Re: uefi boot on Apple Mac

From: Aleksandr Rybalko <ray_at_ddteam.net>
Date: Mon, 7 Jul 2014 12:11:24 +0300
On Mon, 7 Jul 2014 08:18:37 +0800
Huang Wen Hui <huanghwh_at_gmail.com> wrote:

> I got the same result from Fedora-20:
> 
> [liveuser_at_localhost ~]$ dmesg|grep efifb
> [    2.665017] efifb: probing for efifb
> [    2.667915] efifb: framebuffer at 0x80020000, mapped to
> 0xffffc9000b980000, using 28800k, total 28800k
> [    2.667916] efifb: mode is 2880x1800x32, linelength=16384, pages=1
> [    2.667916] efifb: scrolling: redraw
> [    2.667917] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
> 
> stride(4096) *4 = linelength

No, stride >= line_width * bytes_per_pixel. It is just step size in
bytes, to skip into next line. (sometime it contain gaps related to
blank parts of screen, sometime related to round screen line to page
size).
So if it have mode - 2880x1800x32, it have to be 
2880 * (32 / 8) = 11520 or
11520 + (4096 - 1) & 0xffffffff_fffff000 = 12288 (0x03000, 3 4k_pages)


> 28800k=stride(4096) *4*1800=0x1c20000
> 
> 
> 2014-07-07 2:59 GMT+08:00 Adrian Chadd <adrian_at_freebsd.org>:
> 
> > The linux UEFI peeps have the same problem(s):
> >
> > http://mjg59.dreamwidth.org/10014.html
> >
> > Look for "stride".
> >
> >
> > -a
> >
> >
> > On 6 July 2014 06:40, Aleksandr Rybalko <ray_at_ddteam.net> wrote:
> > > On Fri, 4 Jul 2014 22:34:30 +0800
> > > Huang Wen Hui <huanghwh_at_gmail.com> wrote:
> > >
> > >> Hi,
> > >> On my MacbookPro11,3, I got this error message:
> > >>
> > >> http://sw.gddsn.org.cn/freebsd/uefi.jpg
> > >
> > > Hmmm, really weird.
> > > Looks like wrong info about UEFI framebuffer.
> > > Picture said:
> > > 1. 2880 x 1800
> > > 2. 4 bytes per pixel (masks cover whole 32bit)
> > > 3. but same time stride eq to 4096 (but have to be (width *
> > bytes_per_pixel) 4 * 2880)
> > >
> > >>
> > >> cheers,
> > >>
> > >> Huang WenHui
> > >>
> > >> 2014-07-04 22:13 GMT+08:00 Ed Maste <emaste_at_freebsd.org>:
> > >>
> > >> > On 24 May 2014 19:39, Rafael Esp'indola <rafael.espindola_at_gmail.com>
> > wrote:
> > >> > >
> > >> > > Yes, I got that in the mac laptops I tried, it worked on a Mac Pro.
> > It
> > >> > > might be the frame buffer corruption that Ed Maste was mentioning.
> > >> >
> > >> > I purchased a new MacBook Air yesterday (model identifier
> > >> > MacBookAir6,2).  UEFI boot and vt(4) worked correctly.  (My image
> > >> > included Rafael's patch; I haven't tried a boot without.)
> > >> >
> > >> > I also committed a change to display the framebuffer parameters
> > >> > (address, dimensions, etc.) on boot, in order to help identify the
> > >> > source of this issue.  If you have a moment can you build a new USB
> > >> > stick image and give it a try?
> > >> >
> > >> > -Ed
> > >> >
> > >> _______________________________________________
> > >> freebsd-current_at_freebsd.org mailing list
> > >> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > >> To unsubscribe, send any mail to "
> > freebsd-current-unsubscribe_at_freebsd.org"
> > >
> > > Thanks.
> > > WBW
> > > --
> > > Aleksandr Rybalko <ray_at_ddteam.net>
> > > _______________________________________________
> > > freebsd-current_at_freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > > To unsubscribe, send any mail to "
> > freebsd-current-unsubscribe_at_freebsd.org"
> >


-- 
Aleksandr Rybalko <ray_at_ddteam.net>
Received on Mon Jul 07 2014 - 07:08:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:50 UTC