9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS?
@ 2025-11-22 15:53 layup28
  2025-11-22 16:49 ` Ron Minnich
  2025-11-24 21:07 ` Жора
  0 siblings, 2 replies; 10+ messages in thread
From: layup28 @ 2025-11-22 15:53 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

Has anyone managed to get graphics working on 9front  using Libreboot with libgfxinit only, i.e. with no VGA BIOS?
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-M13209d4a90dfef3aaa2fa53c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 841 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS?
  2025-11-22 15:53 [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS? layup28
@ 2025-11-22 16:49 ` Ron Minnich
  2025-11-23 13:20   ` Emery
  2025-11-24 21:07 ` Жора
  1 sibling, 1 reply; 10+ messages in thread
From: Ron Minnich @ 2025-11-22 16:49 UTC (permalink / raw)
  To: 9fans

twenty years ago I did. But all those systems are long gone. It's
doable however.

(I did this with LinuxBIOS, now coreboot, from which Libreboot is derived).

On Sat, Nov 22, 2025 at 8:36 AM <layup28@gmail.com> wrote:
>
> Has anyone managed to get graphics working on 9front  using Libreboot with libgfxinit only, i.e. with no VGA BIOS?
> 9fans / 9fans / see discussions + participants + delivery options Permalink

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-M691e70438accdfd04c6b382c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS?
  2025-11-22 16:49 ` Ron Minnich
@ 2025-11-23 13:20   ` Emery
  2025-11-23 16:26     ` ron minnich
  0 siblings, 1 reply; 10+ messages in thread
From: Emery @ 2025-11-23 13:20 UTC (permalink / raw)
  To: 9fans

With my x220 and coreboot the graphics are not initialized by 9front on coldboot.

if you boot into Linux, load the i915 module, then do a hot-reboot into 9front, then it works.

Cheers,
Emery

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-Ma9bc0d26ff213c66d576288c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS?
  2025-11-23 13:20   ` Emery
@ 2025-11-23 16:26     ` ron minnich
  2025-11-24 22:42       ` Jacob Moody
  0 siblings, 1 reply; 10+ messages in thread
From: ron minnich @ 2025-11-23 16:26 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 2502 bytes --]

There is i915 support in coreboot, not sure how much of that libreboot got
when it forked.

ca 2002, David Hendriks and I got graphics working, which later led to this
fun video: https://youtu.be/DmK_SQI56fQ?si=cNhl1v-5ZR4f5VYM

I put the i915 support in coreboot while I was working on chromebooks. We
showed this can be fast: https://youtu.be/4qLDjHThCyE?si=KFAkWdZjG1ggsRlp
as compared to intel's incredibly slow graphics layer in UEFI. (that video
ignores Intel's VGA BIOS entirely; it is coreboot vs. linux graphics
startup).

Later, others greatly improved the coreboot graphics support. I have no
idea what libreboot has done, or if they've kept up. Libreboot did have a
desire not to use vendor graphics BIOS in startup (i.e. no blobs), and that
might be an issue.

as for coreboot, x220, and Plan 9: do you see anything at all on the screen
before linux starts?

I developed coreboot graphics support by watching all the ins/outs/memory
read/memory write that linux did.This was possible because,  at the time
(2012) Jesse Barnes, then at Intel, had worked hard to make LInux graphics
work without needing the Intel video BIOS: chromebooks in normal mode let
Linux do ALL graphics startup. IIUC, Intel did not keep that
BIOS-independence going, and I believe a BIOS-free graphics setup on Intel
display hardware no longer works.

If you really want to chase this down, you can do the same thing I did.
You'll be surprised at how little it takes to get that last step going.
Usually, it's something very simple. I think it would be nice to have
coreboot+plan 9+x220 working. We could then even consider using a 4 byte
address SPI part and put Plan 9 boot file system in firmware :-)

A handy way to test things out is to start up your x220, cpu in, and
experiment with poking the frame buffer. What has not been tried, but ought
to work, is cpu in, run linux in a vm, and let it bring the buffer up. That
would be really interesting.

On Sun, Nov 23, 2025 at 8:05 AM Emery <emery@slow.janky.email> wrote:

> With my x220 and coreboot the graphics are not initialized by 9front on
> coldboot.
> 
> if you boot into Linux, load the i915 module, then do a hot-reboot into
> 9front, then it works.
> 
> Cheers,
> Emery

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-M7d1444d9bf25f89b711616cd
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 4111 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS?
  2025-11-22 15:53 [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS? layup28
  2025-11-22 16:49 ` Ron Minnich
@ 2025-11-24 21:07 ` Жора
  2025-11-25 19:05   ` Ron Minnich
  1 sibling, 1 reply; 10+ messages in thread
From: Жора @ 2025-11-24 21:07 UTC (permalink / raw)
  To: 9fans


[-- Attachment #1.1: Type: text/plain, Size: 778 bytes --]

On Sat, Nov 22, 2025 at 4:36 PM <layup28@gmail.com> wrote:

> Has anyone managed to get graphics working on 9front  using Libreboot with
> libgfxinit only, i.e. with no VGA BIOS?
> *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions
> <https://9fans.topicbox.com/groups/9fans> + participants
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options
> <https://9fans.topicbox.com/groups/9fans/subscription> Permalink
> <https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-M13209d4a90dfef3aaa2fa53c>
>

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-M9382a8c1e3d2ed5e580b5533
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #1.2: Type: text/html, Size: 1213 bytes --]

[-- Attachment #2: photo_2025-11-24_21-59-46.jpg --]
[-- Type: image/jpeg, Size: 394220 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS?
  2025-11-23 16:26     ` ron minnich
@ 2025-11-24 22:42       ` Jacob Moody
  2025-11-25  1:17         ` layup28
  0 siblings, 1 reply; 10+ messages in thread
From: Jacob Moody @ 2025-11-24 22:42 UTC (permalink / raw)
  To: 9fans

For what it's worth, I was able to get a x200 I librebooted to get in to 9front by using 9front's igfx instead of vesa.
Might work for you if your intel generation is supported.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-M543d0bbac1705ebbf22fef85
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS?
  2025-11-24 22:42       ` Jacob Moody
@ 2025-11-25  1:17         ` layup28
  2025-11-25 16:05           ` ron minnich
  0 siblings, 1 reply; 10+ messages in thread
From: layup28 @ 2025-11-25  1:17 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 857 bytes --]

I’m not running linux here. only 9front. 
Booting from linux USB sticks works without any issues.


Using the image seabios_x200_4mb_libgfxinit_txtmode.rom:
With igfx:
- I get a screen glitch (like on photo i sent), but the cursor is drawn. However, I can't move it.
With vesa:
- It says there's no framebuffer (don’t remember the exact error) and continues in terminal mode.

Using seabios_x200_4mb_libgfxinit_corebootfb.rom:
When I boot directly with SeaBIOS, it shows at startup:
bootfile=/amd64/9pc64
boot
…and then it just freezes.

When I boot through U-Boot, everything works fine, even with VESA.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-M0e33dfcd2d1441a9ee971805
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1631 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS?
  2025-11-25  1:17         ` layup28
@ 2025-11-25 16:05           ` ron minnich
  0 siblings, 0 replies; 10+ messages in thread
From: ron minnich @ 2025-11-25 16:05 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 2056 bytes --]

The thing we learned the hard way, is that on some hardware, you cannot set
up the graphics twice unless you do a reset in the middle and that is
difficult and sometimes impossible.

For one distro we did, webboot, we would always kexec another linux.

We found that, if we wanted graphics in the first linux with x11, we could
make the kexec of the final linux with x11 work with qemu, and not with
hardware; or with hardware, but not with qemu. It was a mess.

The fix in the end is never enable graphics until the last linux boots.

Just a data point, not sure that helps.

I can say the coreboot graphics init worked on many chromebooks. But Intel
fought it tooth and nail, so I also know it did not work in all.


On Mon, Nov 24, 2025 at 17:39 <layup28@gmail.com> wrote:

> I’m not running linux here. only 9front.
> Booting from linux USB sticks works without any issues.
>
>
> Using the image seabios_x200_4mb_libgfxinit_txtmode.rom:
> With igfx:
> - I get a screen glitch (like on photo i sent), but the cursor is drawn.
> However, I can't move it.
> With vesa:
> - It says there's no framebuffer (don’t remember the exact error) and
> continues in terminal mode.
>
> Using seabios_x200_4mb_libgfxinit_corebootfb.rom:
> When I boot directly with SeaBIOS, it shows at startup:
> bootfile=/amd64/9pc64
> boot
> …and then it just freezes.
>
> When I boot through U-Boot, everything works fine, even with VESA.
>
> *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions
> <https://9fans.topicbox.com/groups/9fans> + participants
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options
> <https://9fans.topicbox.com/groups/9fans/subscription> Permalink
> <https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-M0e33dfcd2d1441a9ee971805>
>

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-M48a65e9da36db6e2c520436a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 2949 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS?
  2025-11-24 21:07 ` Жора
@ 2025-11-25 19:05   ` Ron Minnich
  2025-12-04 17:25     ` jon4coffey
  0 siblings, 1 reply; 10+ messages in thread
From: Ron Minnich @ 2025-11-25 19:05 UTC (permalink / raw)
  To: 9fans

I'm  familiar with that kind of display trash, it usually means some
set of incompatible display setup was done ... it's fun to debug but
surprisingly easy to fix, once you see what's up.

https://docs.google.com/document/d/1g8FMob25VZYxbWri2iFB8YiSL8gwF9vKJH3HGxr0xQU/edit?usp=sharing
describes the chromebook work; the 'cli' tool was very handy for doing
register testing, and was in fact how I got the earliest coreboot
support working.

The first time I finally got display, I ran the cli tool, walked over
to talk to someone about how I was never going to get it working, came
back, and realized ... it was working.

I checked and the code is still here:
https://code.google.com/archive/p/i915tool/

LINKONLOGS is a pun: link was the first google pixel chromebook and
that was its codename.

On Mon, Nov 24, 2025 at 2:25 PM Жора <layup28@gmail.com> wrote:
>
>
>
> On Sat, Nov 22, 2025 at 4:36 PM <layup28@gmail.com> wrote:
>>
>> Has anyone managed to get graphics working on 9front  using Libreboot with libgfxinit only, i.e. with no VGA BIOS?
>
> 9fans / 9fans / see discussions + participants + delivery options Permalink

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-M0bc301115daac5d67f5c11cb
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS?
  2025-11-25 19:05   ` Ron Minnich
@ 2025-12-04 17:25     ` jon4coffey
  0 siblings, 0 replies; 10+ messages in thread
From: jon4coffey @ 2025-12-04 17:25 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 482 bytes --]

I have had success getting my libreboot ThinkPad x200 to boot 9front as recently as two? months ago.  The x200 has a listing in /lib/vgadb so try

monitor=x200

but be prepared to wait a minute or two for it to boot.  It worked eventually for me.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T82d344ab9bb6e428-Mf77b0d9a09bb0eff8f5c551b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1053 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-12-04 18:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-22 15:53 [9fans] Has anyone run 9front on Libreboot (libgfxinit) without a VGA BIOS? layup28
2025-11-22 16:49 ` Ron Minnich
2025-11-23 13:20   ` Emery
2025-11-23 16:26     ` ron minnich
2025-11-24 22:42       ` Jacob Moody
2025-11-25  1:17         ` layup28
2025-11-25 16:05           ` ron minnich
2025-11-24 21:07 ` Жора
2025-11-25 19:05   ` Ron Minnich
2025-12-04 17:25     ` jon4coffey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).