[haiku-development] Re: Haiku over Raspberry PI

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 10 Jul 2017 09:39:50 +0000

10 juillet 2017 11:34 "Rahul Jain" <talentediq@xxxxxxxxx> a écrit:

http://cgit.haiku-os.org/haiku/tree/src/system/boot/platform/u-boot/video.cpp#n87

Ah right, this was the old code for the Pi without U-Boot (we should delete 
it, I think?).
Try this: 
http://cgit.haiku-os.org/haiku/tree/src/system/boot/platform/u-boot/video.cpp

Thanks for that .. :)
It actually hangs on writing to gMailBox with the sFramebufferConfig

see :
http://cgit.haiku-os.org/haiku/tree/src/system/boot/arch/arm/arch_framebuffer_bcm2835.cpp#n127

well may be we are sending hardcoded 1920X1080 resolution from
"gFramebuffer->SetDefaultMode"
http://cgit.haiku-os.org/haiku/tree/src/system/boot/platform/u-boot/video.cpp#n87

in SetDefaulMode we have
result = SetVideoMode(1920, 1080, 16);

Well my qemu window is not that big hence could be the reason it hangs.

This must not be Hardcoded , Must be dynamic after querying size of display ..

The qemu window should resize itself when the software changes the video mode.

We could try to read EDID data from the display, but with the HDMI output on 
the Pi, assuming 1080p sounds reasonable.
It is hard to get the EDID data in a generic way, u-boot won't tell us. How can 
it be accessed on the Pi?

-- 
Adrien.

Other related posts: