Page 3 of 6

Re: uefi4kos

Posted: Sat Oct 31, 2020 3:43 pm
by dunkaist
Evgeniy wrote:KOS not support VGA, SVGA, XWGA video modes?
KolibriOS can choose one of the modes firmware reports as supported. It is seen from the log that uefi firmware on your laptop doesn't support 1024x768. You can edit /EFI/KOLIBRIOS/KOLIBRI.INI on the flash and set resolution 1280x800 there.

Of course there should be some kind of user interface to choose video mode interactively, like the blue screen. But nobody has implemented it so far. The problem is that existing blue screen works in real (16-bit) mode while uefi services run in protected (32-bit) or 64-bit modes.

Re: uefi4kos

Posted: Sat Oct 31, 2020 4:24 pm
by Evgeniy
I wouldn't be surprised if the mode on this device 800x1280 but not 1280x800...

I'll try both ways...

I'm think we not need user interface yet... Other generations will do it

: Can you add simple screen chooser?
Your program will already display all the screen permissions, Remain only add keyboard handler for clicking the button.
If pressed "1" - run 1 mode
if "2" - run 2 mode
etc...


Although it is possible abietis without it... The more interesting thing is what happens next stutter

Re: uefi4kos

Posted: Sat Oct 31, 2020 4:32 pm
by Evgeniy
You make good work!

Yes I was right screen resolution 800x1280.

Im edit /EFI/KOLIBRIOS/KOLIBRI.INI and try this config

Code: Select all

; Screen resolution
resolution=800x1280

; Duplicate debug output to the screen
debug_print=1

; Start LAUNCHER app after kernel is loaded
launcher_start=1

; Configure MTRR's
mtrr=1

; 3: use ramdisk loaded from kolibri.img
; 5: don't use ramdisk
imgfrom=3

; Path to /sys directory
syspath=/rd/1

; Interrupt booting to ask the user for boot params
ask_params=1
UEFI find videomode, that progress!

uefi32kos loaded
read options from config file
Load kernel
Load ramdisk
Allocate memory for DEVICES.DAT
Load DEVICES.DAT
Locate GOP handlers
GOP buffer size
00000008
Look for GOP handler
Query handler
Look for RSDP
RSDP found
ACPI tables done
option resolution: 800 1280

800 1280 1 800
Video mode found
Ask for params


The system try to start. On the screen something flashes but after one-two second system is rebooting.
How do I know at what stage it is not working properly?
What does ask_params allow? What i can input? And how?
Im try off ram_disk and off mtrr but it nothing effect! :?

KolibriOS welcome to the world of vertical screen modes

Re: uefi4kos

Posted: Sat Oct 31, 2020 5:34 pm
by Evgeniy
Im try this image on x64 laptop but BOOTX64.efi show black screen with console line and run stopped.

Re: uefi4kos

Posted: Sat Oct 31, 2020 10:06 pm
by dunkaist
It is interesting to try 800x600 resolution on 32-bit laptop, where width > height. If it boots ok, then the issue is because of height > width for 800x1280.

Do I understand correctly that there is no output of KolibriOS loader at all on 64-bit laptop, even "uefi64kos loaded"?

Re: uefi4kos

Posted: Sun Nov 01, 2020 12:55 am
by Evgeniy
dunkaist wrote:It is interesting to try 800x600 resolution on 32-bit laptop, where width > height. If it boots ok, then the issue is because of height > width for 800x1280.
Video mode 800x600 finded ok! But when loading of kernel started, kernel going to reboot.
dunkaist wrote: Do I understand correctly that there is no output of KolibriOS loader at all on 64-bit laptop, even "uefi64kos loaded"?
Yes

Re: uefi4kos

Posted: Sun Nov 01, 2020 5:36 am
by dunkaist
Evgeniy wrote:Video mode 800x600 finded ok! But when loading of kernel started, kernel going to reboot.
Boot with the below config and record a video of the screen. I understand that the text will not be readable, that's ok, but I will see the number of strings and their length to guess the moment when things go wrong.

Code: Select all

resolution=800x600
debug_print=1
launcher_start=0
mtrr=0
imgfrom=3
syspath=/rd/1
ask_params=0
Evgeniy wrote:dunkaist wrote:
Do I understand correctly that there is no output of KolibriOS loader at all on 64-bit laptop, even "uefi64kos loaded"?
Yes
Is "Secure boot" feature enabled in BIOS settings?
I have no other idea so far why bootx64.efi is not even loaded.

Re: uefi4kos

Posted: Sun Nov 01, 2020 9:05 pm
by Evgeniy
dunkaist wrote:Boot with the below config and record a video of the screen. I understand that the text will not be readable, that's ok, but I will see the number of strings and their length to guess the moment when things go wrong.
Tried. The UEFI loader starts and writes that all the lines are the same as before. Then a black screen, a bit of waiting, and a reboot. Nothing else on screen... Maybe the video card is not compatible with kolibri? Do you need vesa support there?

Can UEFI check the compatibility of the video card with KolibriOS?
dunkaist wrote:Is "Secure boot" feature enabled in BIOS settings?
I have no other idea so far why bootx64.efi is not even loaded.
I'm check bios of x64 laptop secure boot is disabled.
In x32 laptop secure boot is disabled too.

Can anyone else from the core developers look at or check your loader?

Do you save sources on svn for public view?

Re: uefi4kos

Posted: Sun Nov 01, 2020 9:37 pm
by Evgeniy
information about videocard of x32 laptop from uefi cmd shell by "pci" command

SEG 00 Bus 00 Dev 02 Func 00 ==> Display controller - VGA/8514 controller
Vendor 8086 Device 0F31 Prog Interface 0

Re: uefi4kos

Posted: Sun Nov 01, 2020 10:35 pm
by Evgeniy
Im test youre UEFI loader in Qemu boottester and it work fine.

So it's the hardware. It is not suitable for KolibriOS.

Image

Re: uefi4kos

Posted: Mon Nov 02, 2020 9:36 pm
by dunkaist
http://ftp.kolibrios.org/users/dunkaist ... bri.raw.xz

No logs needed.

Questions:
For 32-bit laptop: does it hang or reboot?
For 64-bit laptop: does it print anything?

Re: uefi4kos

Posted: Mon Nov 02, 2020 10:36 pm
by Evgeniy
On 32x uefi load labels, then black sceen and freeze without reebot.
On 64x "uefi64kos loaded" label and noting else

Re: uefi4kos

Posted: Tue Nov 03, 2020 12:32 pm
by dunkaist
Evgeniy wrote:On 64x "uefi64kos loaded" label and noting else
That's a great news that UEFI64 firmware loads our loader, finally. Let's go further: http://ftp.kolibrios.org/users/dunkaist ... i64.raw.xz. Only for 64-bit laptop.
Evgeniy wrote:On 32x uefi load labels, then black sceen and freeze without reebot.
Well, the video mode is set and the kernel is loaded into memory.
The screen will change its color several times and then the system will reboot. I need to know only the last color before reboot: http://ftp.kolibrios.org/users/dunkaist ... i32.raw.xz. Only for 32-bit laptop.
If the colors are changed too slow or fast, let me know.

Re: uefi4kos

Posted: Tue Nov 03, 2020 3:45 pm
by Evgeniy
dunkaist wrote:
Evgeniy wrote:On 32x uefi load labels, then black sceen and freeze without reebot.
Well, the video mode is set and the kernel is loaded into memory.
The screen will change its color several times and then the system will reboot. I need to know only the last color before reboot: http://ftp.kolibrios.org/users/dunkaist ... i32.raw.xz. Only for 32-bit laptop.
If the colors are changed too slow or fast, let me know.
white
red
green
blue
yellow
cyan
and reboot.

~1 color per second.
That color drwing from UEFI loader code or from KOS Kernel code?
dunkaist wrote:That's a great news that UEFI64 firmware loads our loader, finally. Let's go further: http://ftp.kolibrios.org/users/dunkaist ... i64.raw.xz. Only for 64-bit laptop.
Im try any times. Freeze and nothing else. No labels.

Re: uefi4kos

Posted: Tue Nov 03, 2020 5:34 pm
by dunkaist
Evgeniy wrote:That color drwing from UEFI loader code or from KOS Kernel code?
From the kernel. I.e. the kernel is loaded but crashes.
New image for 32-bit: http://ftp.kolibrios.org/users/dunkaist ... i32.raw.xz
Evgeniy wrote:Im try any times. Freeze and nothing else. No labels.
Aha, EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.ClearScreen hangs :shock:
New image for 64-bit: http://ftp.kolibrios.org/users/dunkaist ... i64.raw.xz