Bug 27484

Summary: Boot failure with no working display on Peaq C1011 notebook with 32-bit kernels (64-bit kernels are OK)
Product: Mageia Reporter: Herman Viaene <herman.viaene>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: mageia, marja11, ouaurelien
Version: 7   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:
Attachments: screen after correvy grub menu
ISO for testing EFI frame buffer display
ISO for testing EFI frame buffer display (v2)
Log from x86-64 Live USB

Description Herman Viaene 2020-10-29 16:15:45 CET
Description of problem:
Because of problems with the graphic installer, i want to try a text installation, but I cann't get there.
I found bug 2038 on it. But the installation has no F3 option anymore and the primary menu does not react on "Esc" either

Version-Release number of selected component (if applicable):
Mageia 7.1 x586 classic installer

How reproducible:
Always


Steps to Reproduce:
1.
2.
3.
Comment 1 Aurelien Oudelet 2020-10-31 17:52:41 CET
Thanks for the bug report.

Could you provide the file /root/drakx/report.bug.xz as an attachment ?
If you don't have the file, you can switch to console 2 (by pressing 'Ctrl-Alt-F2') during installation, put a floppy in floppy drive or plug a USB key/stick and type: 'bug' then press Enter. It will put report.bug on the floppy/key.

Eventually, can you provide a screenshot taken by a smartphone of the non-functioning screen?

Keywords: (none) => NEEDINFO
Version: 7 => Cauldron
CC: (none) => ouaurelien
Component: RPM Packages => Installer
Summary: Text install not possible anymore in classic iso installer x586 => Text install not possible anymore in classic iso installer i586

Comment 2 Aurelien Oudelet 2020-10-31 17:54:38 CET
@Herman,

Can you even test Cauldron i586 ISO?

(I must be set this bug to Cauldron as we can't intervene on already released ISO).
Comment 3 Martin Whitaker 2020-10-31 22:28:39 CET
To run the installer stage 2 in text mode, at the GRUB boot menu, press 'e' to edit the boot command line and add the word "text". That will still use the selected VGA mode, but use the ncurses interface instead of the GUI.

If you are using legacy boot, you can force the installer to use VGA text mode by removing the "vga=791" from the boot command line (or change it to "vga=0").

If you are using UEFI boot, the only option is to use the EFI frame buffer. That's a UEFI thing, not a limitation of our installer.

CC: (none) => mageia

Comment 4 Herman Viaene 2020-11-01 10:41:23 CET
Created attachment 11969 [details]
screen after  correvy grub menu

@ Aurelien
Once I get in this situation, there is nothing I can do anymore beside pressing the Power button. No response from any keyboard action or mouse.
Comment 5 Herman Viaene 2020-11-01 10:45:00 CET
@ Martin
Changing vga=0 and adding text does not have any result at all.
The story of the problem with the graphical installer has been unfolded in the qa-discuss ml. Should I instead make that a separate bug???
Comment 6 Martin Whitaker 2020-11-01 11:33:44 CET
@ Herman, is that with legacy boot?
Comment 7 Herman Viaene 2020-11-01 11:56:20 CET
The Phoenix Setup has
UEFI Secure Boot : Disabled.
I disabled it, because otherwise it refused to boot from the USB.
There is no legacy option.
Comment 8 Aurelien Oudelet 2020-11-01 12:03:26 CET
(In reply to Herman Viaene from comment #7)
> The Phoenix Setup has
> UEFI Secure Boot : Disabled.
> I disabled it, because otherwise it refused to boot from the USB.
> There is no legacy option.

Nor CSM/Compatibility ?
Comment 9 Herman Viaene 2020-11-01 14:26:57 CET
No, not there.
Comment 10 Martin Whitaker 2020-11-01 17:52:23 CET
Created attachment 11971 [details]
ISO for testing EFI frame buffer display
Comment 11 Martin Whitaker 2020-11-01 17:53:09 CET
My ASUS tablet with a 32-bit UEFI BIOS is the same - no CSM/legacy boot support.

As said, the vga= options only apply to legacy boot, and are ignored when the Linux kernel is booted via UEFI.

Although UEFI BIOSs support a text display mode, it is only available when the EFI boot services are running. Once the Linux kernel terminates them (which it does very early in the boot process), it must use the EFI frame buffer for display until it loads the real display driver for the hardware. Unfortunately the installer doesn't include/use the real display drivers, so it can only use the EFI frame buffer when booted via UEFI. And that doesn't seem to be working properly on your machine.

I've attached a small test ISO to try to debug this. Please decompress it, dump it onto a USB stick, and boot from that. It should first display a few lines of information about the EFI frame buffer, using the EFI console output service, then, when you press any key, switch to using the EFI frame buffer directly and display a short message. Let me know what you see on your machine.
Comment 12 Martin Whitaker 2020-11-01 19:17:47 CET
Created attachment 11972 [details]
ISO for testing EFI frame buffer display (v2)

Updated version that outputs a bit more information.

Attachment 11971 is obsolete: 0 => 1

Comment 13 Herman Viaene 2020-11-02 09:53:23 CET
Starting the iso says:
BGR32mode
FB base: 80000000
FB size: 1920 x 1080
FB format : R8 G8 B8 A8
FB stride : 7680
Press any key to continue....
Done that, gives me black screen with in the middle (somewhat to the left):
Frame buffer active
And that's the end.
Comment 14 Martin Whitaker 2020-11-02 14:55:50 CET
Well, there isn't anything wrong with that.

A couple of stabs in the dark to try:

1. At the installer boot menu, press 'c' to get the grub command prompt, type

  terminal_output console

to switch to text mode, press ESC to return to the boot menu (which should now be in text mode), and select "Install Mageia".

2. At the installer boot menu, press 'e' to edit the boot command line, and replace "$linux" by "linux" and "$initrd" by "initrd" (must do both), followed by Ctrl-X to boot the installer.

If neither of those makes any difference, could you boot the 64-bit Live ISO, capture the system log by, as root, running

  journalctl -b | xz > journal.log.xz

and attach the resulting journal.log.xz here.
Comment 15 Herman Viaene 2020-11-02 17:29:40 CET
None of the two options make any difference at all.
About the Live: do you mean the Live USB, or the Live installed on the HD??
Comment 16 Martin Whitaker 2020-11-02 18:17:36 CET
The Live USB would be best.
Comment 17 Herman Viaene 2020-11-03 10:08:57 CET
Created attachment 11973 [details]
Log from x86-64 Live USB
Comment 18 Martin Whitaker 2020-11-03 14:52:26 CET
From the log, it is detecting a 1024x768 EFI frame buffer (which is the first choice display size used for the GRUB menu, so what I would expect). The next question is whether that is actually working. If you remove "splash quiet" from the boot command, normally you will see the first few lines of text output at a low resolution, then the kernel loads the real display driver and the resolution (and font appearance) changes. Does that happen, or do you not get the low resolution display at the start of the kernel boot process?

Sorry for the continual questions, but this is a hard one to debug remotely.
Comment 19 Aurelien Oudelet 2020-11-03 16:17:30 CET
Issue with EFI FrameBuffer can come from GRUB to arbitrary set display resolution to 1024x768 for ex. instead of native screen resolution.

When an UEFI firmware boots, it normally can detect native screen resolution and set it properly.

For GRUB, a "GRUB_GFXPAYLOAD_LINUX=auto" option should be passed at installation time and at ISO construction, this will prevent kernel to switch EFI native resolution.
Also, "GRUB_GFXMODE=auto" should also be set instead of an arbitrary one like 1024x768.

On UEFI, "vga=" option passed to Kernel command line is deprecated and should not function well.

But, as Martin W. said above, removing "splash quiet" from Kernel command line should prevent resolution switch.

At last, if I really know about the graphic chipset in use, we could use some other workaround.
Comment 20 Herman Viaene 2020-11-04 10:08:06 CET
When I remove "splash quiet" from the boot command, I get the first screenfull of messages at a lower resolution before the system switches to a higher resolution.
Comment 21 Aurelien Oudelet 2020-11-04 10:19:33 CET
@ Herman,
When system switches higher resolution, can you read what it displays?
Comment 22 Herman Viaene 2020-11-04 10:27:48 CET
If I could read fast enough, yes, everything is readable.
Comment 23 Aurelien Oudelet 2020-11-04 10:35:25 CET
Yeah, good! Finally, do you get Installer GUI or ncurses?
Comment 24 Herman Viaene 2020-11-04 10:49:48 CET
 Just a second, are we still on the right track????
I logged this bug on the i586, because I was hoping to overcome the graphics display problem on my Peaq notebook in this way.
But now since Martin's question in Comment 14, I did the testing on the x86-64 Live iso, because it's the only iso that lets me see anything at all.
But maybe that's the only way to get anywhere here.
Anyway, I took the suggestion of Comment 3 I at that time applied to the i586 without result, and applied it now to the boot command of the x86-64 Live, taking the "Install" option , but that still brings me to the same graphical installation dialogues.
Comment 25 Herman Viaene 2020-11-04 10:52:15 CET
@ Aurelien
The x86-64 Live iso does the installation option in the installer GUI, whether or not I insert the "text" at the command line, that doesn't make any difference.
Comment 26 Martin Whitaker 2020-11-04 11:01:38 CET
@ Herman, yes, I asked you to test with the 64-bit Live because that is the only one that you reported works, and I'm trying to see what happens early in the kernel boot sequence, which is a hard if you don't have a working display.

Could you now try booting the 64-bit classical installer, replacing "splash quiet" with "rd.break=cmdline".
Comment 27 Herman Viaene 2020-11-04 11:11:04 CET
After 15 seconds of messages, I get to "Droppng to debug shell" and a CLI.
Comment 28 Herman Viaene 2020-11-04 11:14:00 CET
Martin, are you on IRC mageia-dev?
Comment 29 Martin Whitaker 2020-11-04 11:31:27 CET
I don't normally use IRC, but will see if I can get on it.
Comment 30 Herman Viaene 2020-11-04 12:18:56 CET
That CLI does not respond to any keyboard action. Is that what you expected???
Comment 31 Martin Whitaker 2020-11-04 12:42:07 CET
That's quite likely because you don't have the CSM in your BIOS, the UEFI boot services will have been terminated, but the real keyboard driver hasn't been loaded yet.

rd.break can stop at various checkpoints:

  cmdline|pre-udev|pre-trigger|initqueue|pre-mount|mount|pre-pivot|cleanup

Can you try a few more options to see if/when the display breaks.

(having trouble resetting my password on IRC - will probably have to register a new nick)
Comment 32 Herman Viaene 2020-11-05 10:13:18 CET
Up to pre-trigger I get to the same breakpoint.
With initqueue I get a lot further, but then the screen freezes: output still visible, but nothing happening anymore.
The last screenfull concerns USB devices, then 
scsi
sda
usb
sdb (there is the USB stick)
usb Logitech 
input Logitech optical mouse
and the last line:
hid-generic 0003:046D:C05A.0005: input.hdraw4: USB HID v1.11 Mouse [Logitech Optical Mouse] on usb-0000:00:1.4.0-2.4/input0
Comment 33 Martin Whitaker 2020-11-05 10:33:16 CET
And no response to the keyboard? (it may be that the shell prompt has scrolled off the screen due to the other messages)

What about later breakpoints?
Comment 34 Herman Viaene 2020-11-05 11:12:11 CET
You were right about scrolling off the screen.
So I repeated that one, and it was OK, as were all subsequent others.
Out of shere curiosity, I rebooted the x86-64 classic, made sure to delete the "splash quiet", and it went on in the installation procedure. I'm letting it run now and report back later.
Comment 35 Martin Whitaker 2020-11-05 12:44:51 CET
OK, if the 64-bit install works, the next step is to try the same things with the 32-bit installer, to see if we can pin down where that breaks.
Comment 36 Herman Viaene 2020-11-06 10:01:32 CET
Classic i586, delete splash quiet, add rd.break=cmdline: no good, already broken.
Comment 37 Martin Whitaker 2020-11-06 12:33:28 CET
OK, seems to be a problem specific to the desktop586 kernel on your machine. Can you try the 8-beta1 32-bit CI ISO, to see if it is fixed in a newer kernel version.

Just for my information, does the 64-bit CI ISO still work even with the "splash quiet" option. AFAIK, that option should have no effect, because the installer does not display the boot splash screen.
Comment 38 Herman Viaene 2020-11-06 14:47:03 CET
8-beta1 32-bit CI ISO is even worse.After choosing the USB to boot from, the screen goes black for some  seconds, and then immediately I get the vibrating bands. So even the grub menu gets thru.
Comment 39 Herman Viaene 2020-11-06 15:14:32 CET
64 bit CI in default boot: Well, it didn't. That is the reason why I turned to the Live.
Comment 40 Martin Whitaker 2020-11-07 11:40:53 CET
I have built an updated 32-bit Mageia 7 Live ISO, using the desktop instead of desktop586 kernel. You can download it from

  https://hidrive.ionos.com/share/po4ts04kjl

See if that works.
Comment 41 Herman Viaene 2020-11-07 13:28:30 CET
That one at least boots to the grub menu, but removing splash quiet and adding rd.break=cmdline brings the bands after some seconds, no break.
Comment 42 Martin Whitaker 2020-11-07 13:49:33 CET
And also if you keep the default boot settings?
Comment 43 Herman Viaene 2020-11-07 13:58:59 CET
Yes, the same, grub menu and then bands. The same whether I choose to run the Live or the installation option.
Comment 44 Martin Whitaker 2020-11-07 14:18:43 CET
OK, I'm out of ideas then. There are no such problems on my ASUS X205TA, which I believe has the same processor (Intel Atom Z3735F), so I think it must be something specific to your BIOS.

I'm sorry, but I think you are going to be limited to running a 64-bit system on that machine for now.

Keywords: NEEDINFO => (none)
Component: Installer => RPM Packages
Version: Cauldron => 7
Summary: Text install not possible anymore in classic iso installer i586 => Boot failure with no working display on Peaq C1011 notebook with 32-bit kernels (64-bit kernels are OK)
Assignee: bugsquad => kernel

Comment 45 Aurelien Oudelet 2021-07-06 13:15:02 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 46 Herman Viaene 2021-07-06 13:35:52 CEST
Since then, the Peaq notebook completely broke down, so I cann't do anything anymore sensible on this subject.
Comment 47 Marja Van Waes 2021-07-06 17:10:59 CEST
(In reply to Herman Viaene from comment #46)
> Since then, the Peaq notebook completely broke down, so I cann't do anything
> anymore sensible on this subject.

Thanks for the feedback. Closing, then, because you were the only one affected.

Resolution: (none) => OLD
CC: (none) => marja11
Status: NEW => RESOLVED