[Bug 725965] New: No tty at all using grub2-efi-mkconfig default script
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c0 Summary: No tty at all using grub2-efi-mkconfig default script Classification: openSUSE Product: openSUSE 12.1 Version: RC 1 Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: vljn@ovi.com QAContact: jsrain@suse.com Found By: --- Blocker: --- Created an attachment (id=458368) --> (http://bugzilla.novell.com/attachment.cgi?id=458368) My (non modified) grub.cfg generated file User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Hi, when using grub2-efi-mkconfig to generate a grub.cfg file, the "set gfxpayload=" seems uneffective. When I boot, I have no kernel console at all : the last output of grub (loading kernel... loading initrd...) stays untill X is launched. And ctrl alt Fx just display a black screen, which is problematic if there's a X failure for instance. Manually editing to have set gfxpayload=1024x768x16 makes console appear, but the mkconfig script does not generate it. Reproducible: Always Steps to Reproduce: 1.Ensure you don't boot in KMS mode (to prevent KMS driver to override grub gfxpayload config) 2.Generate a grub.cfg using grub2-efi-mkconfig 3.Boot Actual Results: No console at all Expected Results: There should be a console -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #458368|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c3 --- Comment #3 from Michael Chang <mchang@suse.com> 2011-11-28 08:23:35 UTC --- Vincent, I can reproduce your issue also on my UEFI laptop. I suppose the "set gfxpayload=keep" simply keep the mode setting by the BIOS. It should be "efifb" that set the mode according to it and create "/dev/fb" thus the console could run on it. However something went wrong thus "/dev/fb" not created ? ( It's my assumption too because no console I could use verify it) To fix this issue I would think two possible ways 1. By default set gfxpayload=auto or gfxpayload=text as they are also mentioned in grub2 manual.[1] I think the purpose of "gfxpayload=keep" is to offer a better boot experience because this omits the mode setting in the transition (bios => loader => kernel). Thus simply switch to other alternative need more discussion. 2. Suppose efifo should be able to work and provide a console, I will try if it can be fixed this way. http://www.gnu.org/software/grub/manual/grub.html#gfxpayload [1] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c4 --- Comment #4 from Michael Chang <mchang@suse.com> 2011-11-29 06:59:43 UTC --- I found efifb was not loaded if set gfxpayload=keep or gfxpayload=text, while set gfxpayload=auto it was loaded and offered a console to me. Besides gfxpayload=text wasn't set the kernel boot in text mode. My conjecture of the working scenario of above two should be gfxpayload=text : text mode and provide text mode console gfxpayload=keep : efifb should set the mode same with in boot loader menu (might possble be a text mode, depends on what's the mode bios hands over to boot loader and bios sets his own mode or not ..) However they're all not work as my expectation .. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c5 --- Comment #5 from Michael Chang <mchang@suse.com> 2011-12-02 08:44:01 UTC --- I think I know the cause, that's because the modeinfo not delivered from loader (grub2) to kernel thus efifb won't start. Kernel boots in pure text mode. This wouldn't be a problem if bios leaves a text mode to loader. But if this mode is graphical mode this problem will occur. The text console won't work in a graphical mode. I took a bit look at grub2's code, the fix wouldn't trivial .. That's because it relies on an (video) adapter object be in active state to query what's the mode set to kernel. This object would not be created unless someone (eg, gfxterm) made a set video mode request. We can't force creating it to fix the issue, as this means force to set a mode which not applicable. We have to let the grub2 aware the initial mode bios leaves to it and take actions accordingly (for eg, create object during initial holding correct modeinfo). But this would not work because, as far as I can see so far, no viable interface defined in video driver for knowing the current mode . -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c6 --- Comment #6 from Michael Chang <mchang@suse.com> 2011-12-02 09:03:29 UTC --- Created an attachment (id=465543) --> (http://bugzilla.novell.com/attachment.cgi?id=465543) set-gfxpayload-keep-when-gfxterm-used.patch -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c7 --- Comment #7 from Michael Chang <mchang@suse.com> 2011-12-02 09:13:19 UTC --- I'd like to propose script to fix this issue (not perfect but should be better than current). Set gfxpayload=keep only when gfxterm is used, thus ensures the same video mode could be delivered to kernel (and more seamless as modes are the same). If gfxterm not running, we don't set gfxpayload=keep for safe. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c8 --- Comment #8 from Michael Chang <mchang@suse.com> 2011-12-02 09:14:45 UTC --- Hi Vincent, Would it be possible for you to test patch in comment #6? Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |vljn@ovi.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|vljn@ovi.com | AssignedTo|jslaby@suse.com |mchang@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO CC| |jslaby@suse.com InfoProvider| |vljn@ovi.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c9 Alin M Elena <alinm.elena@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alinm.elena@gmail.com --- Comment #9 from Alin M Elena <alinm.elena@gmail.com> 2012-04-22 15:38:55 UTC --- Hi Michael, I have exactly the same issue, when running on a mac bookpro 7,1. if you want I can test and help to debug. Alin -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c10 --- Comment #10 from Michael Chang <mchang@suse.com> 2012-04-23 03:23:51 UTC --- Alin, If you could help that would be great and very very welcome..:-) Best if you can test the patch in Comment #6 and see if it can solve the problem .. Let's see what will happen. Thanks a lot . -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c11 --- Comment #11 from Alin M Elena <alinm.elena@gmail.com> 2012-04-23 09:11:04 UTC --- Hi Michael, I branched grub2 from the devel package for factory. the patch fails to apply [alin@baphomet:~/lavello/home:ealin:varia/grub2]: cat /var/tmp/build-root/home/abuild/rpmbuild/BUILD/grub-1.99/grub-1.99/util/grub.d/10_linux.in.rej --- util/grub.d/10_linux.in +++ util/grub.d/10_linux.in @@ -89,7 +96,8 @@ load_video EOF if grep -qx "CONFIG_FB_EFI=y" "${config}" 2> /dev/null \ -null && grep -qx "CONFIG_VT_HW_CONSOLE_BINDING=y" "${config}" 2> /dev/null; then +then && grep -qx "CONFIG_VT_HW_CONSOLE_BINDING=y" "${config}" 2> /dev/null \ +null && [ "x$gfxterm" = x1 ]; then cat << EOF set gfxpayload=keep EOF I suspect a new one needs to be generated. more info on what I did I generated a boot image with grub2-mkimage -d /usr/lib/grub2-efi/x86_64-efi -o BOOTX64.efi -O x86_64-efi --prefix /efi/boot part_gpt part_msdos lvm fat ext2 chain boot configfile normal minicmd linux reboot halt search gfxterm gfxmenu efi_gop efi_uga video loadbios gzio video_bochs video_cirrus echo true loadenv mount -t vfat -o rw,users /dev/sda1 /boot/efi/ copy the generated image into /boot/efi/EFI/BOOT/ and then generated the config... grub2-efi-mkconfig > /boot/efi/EFI/BOOT/grub.cfg I also added a link ln -s /boot/efi/EFI/BOOT/grub.cfg /boot/grub2-efi/grub.cfg but I am not sure about the last bit... regarsd, Alin -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c12 --- Comment #12 from Alin M Elena <alinm.elena@gmail.com> 2012-04-23 13:14:48 UTC --- Hi Michael, added the patch https://build.opensuse.org/package/show?package=grub2&project=home%3Aealin%3Avaria and installed the package... I generated a new cfg [root@abbaton:~]: grub2-efi-mkconfig > /boot/efi/EFI/BOOT/grub.cfg Generating grub.cfg ... cat: /boot/grub2-efi/video.lst: No such file or directory Found linux image: /boot/vmlinuz-3.3.0-2-desktop Found initrd image: /boot/initrd-3.3.0-2-desktop /dev/sdb: open failed: No medium found No volume groups found Found Mac OS X on /dev/sda2 done I still have the same issue. more tests? Alin -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c13 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|vljn@ovi.com |alinm.elena@gmail.com --- Comment #13 from Michael Chang <mchang@suse.com> 2012-04-24 03:54:35 UTC --- Alin, First I suggest you try packaged grub2 scripts for installing loader instead of manual steps in comment #11 (basically what you did is also what grub2-efi-install tends to cover ..). 1. grub2-efi-install 2. grub2-efi-mkconfig -o /boot/grub2-efi/grub.cfg If above two script not sufficient to get your environment work .. we need to figure it out and fix those scripts to get work done. You could take a look at those scripts, most interesting for you would be /usr/sbin/grub2-efi-install Back to this bug .. could you do more additional steps to confirm that the steps in comment#1 works for bringing you console back ? ..
Manually editing to have set gfxpayload=1024x768x16 makes console appear, but the mkconfig script does not generate it.
Or you can force efifb loaded via kernel parameter (see comment#4 that efifo could offer a efi firmware framebuffer console to use ..) video=efifb http://www.mjmwired.net/kernel/Documentation/fb/efifb.txt I just want to make sure that the problem you have and this one are exactly same root cause (same symptom sometime have different cause and we need to sort this out first .. ) Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c14 --- Comment #14 from Alin M Elena <alinm.elena@gmail.com> 2012-04-24 08:37:40 UTC --- Hi Michael, I will answer you in parts. I used the two scripts you suggested... grub2-efi-install said the installation was successful... I have seen an entire collection of modules [root@abbaton:/boot/grub2-efi]: ls acpi.mod command.lst fixvideo.mod gcry_tiger.mod jfs.mod minicmd.mod part_sunpc.mod search_label.mod usb_keyboard.mod affs.mod configfile.mod font.mod gcry_twofish.mod jpeg.mod minix2.mod parttool.lst search.mod usb.mod afs_be.mod core.efi fshelp.mod gcry_whirlpool.mod keylayouts.mod minix.mod parttool.mod serial.mod usbms.mod afs.mod cpio.mod fs.lst gettext.mod keystatus.mod mmap.mod password.mod setjmp.mod usbserial_common.mod aout.mod cpuid.mod functional_test.mod gfxmenu.mod linux.mod moddep.lst password_pbkdf2.mod setpci.mod usbserial_ftdi.mod appleldr.mod crypto.lst gcry_arcfour.mod gfxterm.mod loadbios.mod msdospart.mod pbkdf2.mod sfs.mod usbserial_pl2303.mod ata.mod crypto.mod gcry_blowfish.mod gptsync.mod loadenv.mod multiboot2.mod pci.mod sleep.mod usbtest.mod ata_pthru.mod cs5536.mod gcry_camellia.mod grub.cfg locale multiboot.mod play.mod tar.mod video_bochs.mod at_keyboard.mod datehook.mod gcry_cast5.mod grub.efi loopback.mod nilfs2.mod png.mod terminal.lst video_cirrus.mod befs_be.mod date.mod gcry_crc.mod grubenv lsacpi.mod normal.mod probe.mod terminal.mod video_fb.mod befs.mod datetime.mod gcry_des.mod gzio.mod lsefimmap.mod ntfscomp.mod raid5rec.mod terminfo.mod videoinfo.mod bitmap.mod device.map gcry_md4.mod halt.mod lsefisystab.mod ntfs.mod raid6rec.mod test_blockarg.mod video.lst bitmap_scale.mod dm_nv.mod gcry_md5.mod hashsum.mod lsmmap.mod ohci.mod raid.mod testload.mod video.mod blocklist.mod echo.mod gcry_rfc2268.mod hdparm.mod ls.mod part_acorn.mod read.mod test.mod videotest.mod boot.mod efi_gop.mod gcry_rijndael.mod hello.mod lspci.mod part_amiga.mod reboot.mod tga.mod xfs.mod bsd.mod efi_uga.mod gcry_rmd160.mod help.mod lssal.mod part_apple.mod regexp.mod trig.mod xnu.mod btrfs.mod elf.mod gcry_seed.mod hexdump.mod lvm.mod part_bsd.mod reiserfs.mod true.mod xnu_uuid.mod bufio.mod example_functional_test.mod gcry_serpent.mod hfs.mod mdraid09.mod part_gpt.mod relocator.mod udf.mod xzio.mod cat.mod ext2.mod gcry_sha1.mod hfsplus.mod mdraid1x.mod partmap.lst scsi.mod ufs1.mod zfsinfo.mod chain.mod extcmd.mod gcry_sha256.mod iorw.mod memdisk.mod part_msdos.mod search_fs_file.mod ufs2.mod zfs.mod cmp.mod fat.mod gcry_sha512.mod iso9660.mod memrw.mod part_sun.mod search_fs_uuid.mod uhci.mod the makecfg generated a nice entry file, which I attached... Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.3.0-2-desktop Found initrd image: /boot/initrd-3.3.0-2-desktop /dev/sdb: open failed: No medium found No volume groups found Found Mac OS X on /dev/sda2 done though there is no entry on my refit... I still get my only two old ones... this one which was created yesterday -rwxr-xr-x 1 root root 603648 Apr 23 11:56 /boot/efi/EFI/opensuse/grub.efi* by some kind of magic or bonus as I do not remember asking for it... and my old manual created... as described above. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c15 --- Comment #15 from Alin M Elena <alinm.elena@gmail.com> 2012-04-24 08:40:09 UTC --- Created an attachment (id=487659) --> (http://bugzilla.novell.com/attachment.cgi?id=487659) grub.cfg generated with patched grub -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c16 --- Comment #16 from Alin M Elena <alinm.elena@gmail.com> 2012-04-24 09:22:53 UTC --- ok.. part2 now I have tried with both gfxpayload and with passing video=efifb to the kernel... in both cases the same miserable failure... there is one small concern I have... this I tested with my generated efi as I could not find the one generated by grub2-efi-install... Alin -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c17 Jeffrey Cheung <jcheung@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jcheung@suse.com --- Comment #17 from Jeffrey Cheung <jcheung@suse.com> 2013-11-07 03:31:29 UTC --- Hi, can you try opensuse12.3 or opensuse13.1RC2 to see if the problem exist ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c18 --- Comment #18 from Jeffrey Cheung <jcheung@suse.com> 2014-02-11 03:15:23 UTC --- With the release of the gnumeric on January 27th, 2014 the SUSE sponsored maintenance of openSUSE 12.2 has ended. openSUSE 12.2 is now officially discontinued and out of support by SUSE. This issue was created againist openSUSE 12.1, so I am going to close for WONTFIX. If encountered the same problem, please create a new bugzilla againist openSUSE 13.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725965 https://bugzilla.novell.com/show_bug.cgi?id=725965#c19 Jeffrey Cheung <jcheung@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |CLOSED InfoProvider|alinm.elena@gmail.com | Resolution| |WONTFIX --- Comment #19 from Jeffrey Cheung <jcheung@suse.com> 2014-02-11 03:57:20 UTC --- Per comment#18. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com