Unable to create Goos FB in UEFI mode

Adi Lima <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <CACpRfcO70qntmQVajJSYXpXw4AAXKq3mgtKahLAQpfwsp4DXdg@mail.gmail.com>
Hi,
I've been trying to make this one work, but in vain, so far...
Either using qemu or in real hardware, all failed when booting from UEFI.

From qemu's stdio I know that the boot has been completed successfuly, but
it seems like fb-drv was unable to support current default mode from EFI
Framebuffer boot (or it is trying to switch to some other mode, and
failed?).

I was using standard ex_fb_spectrum_cc, with x86-fb.io, x86-fb.cfg and
x86-legacy.devs, all loaded by grub2 as Multiboot2 and Module2

Everything was fine if booted using BIOS, but I haven't try on UEFI mode
with CSM.

Can you give me a hint of what to try next, please?

Thanks in advance :-)


-- 
FX. J. Adi Lima
Trivision Studio

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
std-fbtest-uefi.txt (text/plain, 8.4 KB)
  Booting `Spectrum'

WARNING: no console will be available to OS

L4 Bootstrapper
  Build: #1 Wed Sep  4 22:24:36 WIB 2019, x86-64, 8.3.0
  RAM: 0000000000000000 - 000000000009ffff: 640kB
  RAM: 0000000000100000 - 00000000007fffff: 7168kB
  RAM: 0000000000808000 - 000000000080ffff: 32kB
  RAM: 0000000000900000 - 000000003e375fff: 1010136kB
  RAM: 000000003e377000 - 000000003e8a3fff: 5300kB
  RAM: 000000003e8cd000 - 000000003e9edfff: 1156kB
  RAM: 000000003eb1b000 - 000000003fb9afff: 16896kB
  RAM: 000000003fbff000 - 000000003ff4ffff: 3396kB
  Total RAM: 1020MB
  Scanning fiasco -serial_esc
  Scanning sigma0
  Scanning moe rom/x86-fb.cfg
  need 464 bytes to copy MBI
  reserved 464 bytes at 0x2000
  Moving up to 12 modules behind 0
  moving module 00 { 3c5000-5ca397 } -> { b25000-d2a397 } [2118552]
  moving module 07 { 1c6000-289e1f } -> { a61000-b24e1f } [802336]
  moving module 06 { 175000-1c5a9f } -> { a10000-a60a9f } [330400]
  moving module 04 { 100000-174a0f } -> { 99b000-a0fa0f } [477712]
  moving module 11 { 6e000-9d9af } -> { 96b000-99a9af } [194992]
  moving module 10 { 6d000-6d337 } -> { 96a000-96a337 } [824]
  moving module 09 { 6c000-6c1a7 } -> { 969000-9691a7 } [424]
  moving module 08 { 6b000-6b6e7 } -> { 968000-9686e7 } [1768]
  moving module 03 { 4d000-6a757 } -> { 94a000-967757 } [120664]
  moving module 02 { f000-4c79f } -> { 90c000-94979f } [251808]
  moving module 01 { 3000-e4d7 } -> { 900000-90b4d7 } [46296]
  moving module 05 { 141a000-16d79c7 } -> { d2b000-fe89c7 } [2873800]
  Loading fiasco
  Loading sigma0
  Loading moe
  find kernel info page...
  found kernel info page (via ELF) at 400000
Regions of list 'regions'
    [        0,       fff] {     1000} Arch   BIOS
    [     1000,      1fff] {     1000} Kern   fiasco
    [     2000,      21cf] {      1d0} Root   mbi_rt
    [     3000,      3023] {       24} Info   ACPI
    [   100000,    1112ff] {    11300} Sigma0 sigma0
    [   140000,    17a8ff] {    3a900} Root   moe
    [   17c0a0,    18df67] {    11ec8} Root   moe
    [   2d0400,    2e10b7] {    10cb8} Boot   bootstrap
    [   300000,    34afff] {    4b000} Kern   fiasco
    [   400000,    60dfff] {   20e000} Kern   fiasco
    [   800000,    807fff] {     8000} Arch   BIOS
    [   810000,    8fffff] {    f0000} Arch   BIOS
    [   94a000,    b24fff] {   1db000} Root   Module
    [   d2b000,    fe89c7] {   2bd9c8} Root   Module
    [  1012000,   1017fff] {     6000} Boot   bootstrap-ptab64
    [ 3e376000,  3e376fff] {     1000} Arch   BIOS
    [ 3e8a4000,  3e8b1fff] {     e000} Arch   BIOS
    [ 3e8b2000,  3e8ccfff] {    1b000} Arch   BIOS
    [ 3e9ee000,  3eab4fff] {    c7000} Arch   BIOS
    [ 3eab5000,  3eb1afff] {    66000} Arch   BIOS
    [ 3fb9b000,  3fbcafff] {    30000} Arch   BIOS
    [ 3fbcb000,  3fbf2fff] {    28000} Arch   BIOS
    [ 3fbf3000,  3fbfafff] {     8000} Arch   BIOS
    [ 3fbfb000,  3fbfefff] {     4000} Arch   BIOS
    [ 3ff50000,  3ff6ffff] {    20000} Arch   BIOS
    [ 3ff70000,  3fffffff] {    90000} Arch   BIOS
    [ 80000000,  8fffffff] { 10000000} Arch   BIOS
  found kernel options (via ELF) at 401000
  Sigma0 config    ip:0000000000100460 sp:0000000000000000
  Roottask config  ip:0000000000141f0d sp:0000000000000000
  Starting kernel fiasco at 0000000000300880

Welcome to L4/Fiasco.OC!
L4/Fiasco.OC microkernel on amd64
Rev: 06d33cb compiled with gcc 8.3.0 for x86-64    []
Build: #1 Wed Sep  4 20:57:05 WIB 2019


Superpages: yes
ACPI: RSDP[0x20003000]	r02 OEM:BOCHS.
FPU0: SSE 
ACPI: FACS phys=3fbfd000 virt=0x203fd000
ACPI: HW sig=0
SERIAL ESC: allocated IRQ 4 for serial uart
Enable MSI support: chained IRQ mgr @ 0xffffffff128ce090
SERIAL ESC: allocated IRQ 4 for serial uart
Not using serial hack in slow timer handler.
CPU[0]: GenuineIntel (6:F:B:0)[000006fb] Model: Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz at 2595MHz

  32 KB L1 I Cache (8-way associative, 64 bytes per line)
  32 KB L1 D Cache (8-way associative, 64 bytes per line)
2048 KB L2 U Cache (8-way associative, 64 bytes per line)
16384 KB L3 U Cache (16-way associative, 64 bytes per line)

Freeing init code/data: 16384 bytes (4 pages)

MP: detecting APs...
Calibrating timer loop... done.
MDB: use page size: 28
MDB: use page size: 21
MDB: use page size: 12
SIGMA0: Hello!
  KIP @ 400000
  allocated 4KB for maintenance structures
SIGMA0: Dump of all resource maps
RAM:------------------------
[4:2000;2fff]
[0:4000;9ffff]
[0:112000;13ffff]
[4:140000;17afff]
[0:17b000;17bfff]
[4:17c000;18dfff]
[0:18e000;3fffff]
[0:60a000;7fffff]
[0:808000;80ffff]
[0:900000;949fff]
[4:94a000;b24fff]
[0:b25000;d2afff]
[4:d2b000;fe8fff]
[0:fe9000;3c05dfff]
IOMEM:----------------------
[0:0;fff]
[0:3000;3fff]
[0:a0000;fffff]
[0:800000;807fff]
[0:810000;8fffff]
[0:3e376000;3e376fff]
[0:3e8a4000;3e8ccfff]
[0:3e9ee000;3eb1afff]
[0:3fb9b000;3fbfefff]
[0:3ff50000;febfffff]
[0:fec01000;fedfffff]
[0:fee01000;ffffffffffffffff]
IO PORTS--------------------------
[0:0;fffffff]
MOE: Hello world
MOE: found 974852 KByte free memory
MOE: found RAM from 2000 to 3c05e000
MOE: allocated 960 KByte for the page array @0x18e000
MOE: virtual user address space [0-7fffffffffff]
MOE: rom name space cap -> [C:103000]
MOE: rwfs name space cap -> [C:105000]
  BOOTFS: [94a000-967758] [C:107000] l4re
  BOOTFS: [99b000-a0fa10] [C:109000] ned
  BOOTFS: [d2b000-fe89c8] [C:10b000] io
  BOOTFS: [a10000-a60aa0] [C:10d000] fb-drv
  BOOTFS: [a61000-b24e20] [C:10f000] mag
  BOOTFS: [968000-9686e8] [C:111000] x86-fb.cfg
  BOOTFS: [969000-9691a8] [C:113000] x86-fb.io
  BOOTFS: [96a000-96a338] [C:115000] x86-legacy.devs
  BOOTFS: [96b000-99a9b0] [C:117000] ex_fb_spectrum_cc
MOE: cmdline: moe rom/x86-fb.cfg
MOE: Starting: rom/ned rom/x86-fb.cfg
MOE: loading 'rom/ned'
Ned says: Hi World!
Ned: loading file: 'rom/x86-fb.cfg'
IO      | Io service
IO      | Find root Pointer
IO      | Found root Pointer: 3000
IO      | ACPI: RSDP 0x0000000000003000 000024 (v02 BOCHS )
IO      | ACPI: XSDT 0x000000003FBF90E8 00004C (v01 BOCHS  BXPCFACP 00000001      01000013)
IO      | ACPI: FACP 0x000000003FBF6000 0000F4 (v03 BOCHS  BXPCFACP 00000001 BXPC 00000001)
IO      | ACPI: DSDT 0x000000003FBF7000 001EEA (v01 BOCHS  BXPCDSDT 00000001 BXPC 00000001)
IO      | ACPI: FACS 0x000000003FBFD000 000040
IO      | ACPI: APIC 0x000000003FBF5000 000080 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
IO      | ACPI: HPET 0x000000003FBF4000 000038 (v01 BOCHS  BXPCHPET 00000001 BXPC 00000001)
IO      | ACPI: MCFG 0x000000003FBF3000 00003C (v01 BOCHS  BXPCMCFG 00000001 BXPC 00000001)
IO      | ACPI: BGRT 0x000000003E376000 000038 (v01 INTEL  EDK2     00000002      01000013)
IO      | 
IO      | Initializing Namespace objects:
IO      | Table [DSDT: BXPCDSDT] (id 01) -  244 Objects with  32 Devices,   6 Regions,   76 Methods (19/57/9 Serial/Non/Cvt)
IO      | ACPI: 1 ACPI AML tables successfully acquired and loaded
IO      | Completing Region/Field/Buffer/Package initialization:
IO      |     Initialized 6/6 Regions 0/0 Fields 37/37 Buffers 5/5 Packages (253 nodes)
IO      |  evxfevnt-0168 Enable                : System is already in ACPI mode
IO      | Initializing General Purpose Events (GPEs):
IO      |     Initialized GPE 00 to 3F [_GPE] 8 regs on interrupt 0x9 (SCI)
IO      | Initializing Device/Processor/Thermal objects and executing _INI/_STA methods:
IO      |     Executed 1 _INI methods requiring 0 _STA executions (examined 36 objects)
IO      | ACPICA-Version:20170119, System in ACPI MODE, 32bit timer
IO      | ACPI: Enabled 1 GPEs in block 00 to 3F
IO      | IRQ     [00000000000000-00000000000000 1] none (32bit) (align=0 flags=40201)
IO      | IRQ     [00000000000000-00000000000000 1] none (32bit) (align=0 flags=40201)
IO      | IRQ     [00000000000000-00000000000000 1] none (32bit) (align=0 flags=40201)
IO      | Ready. Waiting for request.
mag     | Hello from MAG
fbdrv   | Trying execution of ``set VBE mode'' using x86emu
fbdrv   | Found VESA BIOS version 3.0
fbdrv   | OEM QEMU
fbdrv   | Scanning for 'best' possible mode:
fbdrv   | Trying to read DDC info
fbdrv   | DDC function not supported
fbdrv   | EDID not available (-19), finding best possible mode ...
fbdrv   | Mode: 0xf1   1024x768@32, RGB: 16(8):8(8):0(8) mode: bb
fbdrv   | Could not find suitable mode
fbdrv   | Failed to setup Framebuffer
mag     | Error: Exception: Void capability invoked: requesting goos info: backtrace ...
mag     | 
mag     | MAG: destroy FB svc
Ned[lua]: Warning: Capability 437000 does not support the meta protocol: -2004
lua error: rom/x86-fb.cfg:63: attempt to call a nil value (method 'create').
adi@dell-vostro:~/Documents/l4re/notes$
grub.cfg (application/octet-stream, 445 B) - not displayed
Screenshot_2019-09-06_13-59-14.png (image/png, 197.8 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.