Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fresh installation kernel stuck after GRUB
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Tue Jan 24, 2017 7:07 pm    Post subject: Reply with quote

DONAHUE wrote:
sysresccd is heavily modular; it tries the ext3 module, rejects it, loads ext4

did you just do the base handbook install or have you gone beyond to setup direct boot into a GUI?


Just the official guide:
Last step build kernel
Next step is finalise gentoo installation


By the way,
Loading kernel message is just before the linux vmlinuz line. It is an echo,
So it is really doing nothing
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Tue Jan 24, 2017 7:20 pm    Post subject: Reply with quote

Hoping for requested data, agreeing that kernel is not being found.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Tue Jan 24, 2017 7:25 pm    Post subject: Reply with quote

DONAHUE wrote:
Hoping for requested data, agreeing that kernel is not being found.



So is it still the boot partition?!
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Tue Jan 24, 2017 7:58 pm    Post subject: Reply with quote

Quote:
/dev/sdb2 1640448 2172927 532480 260M EFI System
is in your original post fdisk -l
It is in the right place for a M$ produced ESP but not the M$ size (100MB). If you remember how it came to be, that information could be helpful.
From the narrative you have provided a second ESP may exist at directory /boot/efi or /boot/EFI created by grub from gentoo.
it may be simplest to explore this straight from sysrescuecd: boot sysresc,
Code:
mount /dev/sdb6 /mnt/gentoo
ls -alR /mnt/gentoo/boot | wgetpaste -t
mkdir /mnt/esp
mount /dev/sdb2 /mnt/esp 
ls -alR /mnt/esp | wgetpaste -t
Post the url's returned
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Tue Jan 24, 2017 8:05 pm    Post subject: Reply with quote

Look at this:

Code:

sysresccd linux # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.39-gentoo
Found linux image: /vmlinuz-4.4.39-gentoo
done


this is strange to me...why it is finding 2 kernel?
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Tue Jan 24, 2017 8:59 pm    Post subject: Reply with quote

boot sysresc,
Code:
mount /dev/sdb6 /mnt/gentoo
ls /mnt/gentoo | wgetpaste -t
ls -alR /mnt/gentoo/boot | wgetpaste -t
mkdir /mnt/esp
mount /dev/sdb2 /mnt/esp 
ls -alR /mnt/esp | wgetpaste -t
post url's returned
maybe more than one
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Tue Jan 24, 2017 9:56 pm    Post subject: Reply with quote

DONAHUE wrote:
boot sysresc,
Code:
mount /dev/sdb6 /mnt/gentoo
ls /mnt/gentoo | wgetpaste -t
ls -alR /mnt/gentoo/boot | wgetpaste -t
mkdir /mnt/esp
mount /dev/sdb2 /mnt/esp 
ls -alR /mnt/esp | wgetpaste -t
post url's returned
maybe more than one


http://bpaste.net/show/e7c12febd7c8
ls -alR /mnt/gentoo/boot it is empty because it is not mounted

now I changed it again, so I have
/dev/sda6 /boot
/dev/sdb2 /boot/efi

ls of boot (mounted) http://bpaste.net/show/3fae533b32a3
ls of boot/efi (mounted): http://bpaste.net/show/7d53ec112227


and the result is the same: I see the list of kernel but when I start it, nothing just the message. I put another echo after "linux /vmlinuz..." and it was also printing that one!
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Tue Jan 24, 2017 10:58 pm    Post subject: Reply with quote

Sorry, I'm severely confused. Can't tell if you were running in the sysresccd system or had chrooted into the gentoo chroot. If you could please fresh reboot sysresccd and run literally:
Code:
mount /dev/sdb6 /mnt/gentoo
ls -al /mnt/gentoo | wgetpaste -t
ls -alR /mnt/gentoo/boot | wgetpaste -t
mkdir /mnt/esp
mount /dev/sdb2 /mnt/esp 
ls -alR /mnt/esp | wgetpaste -t
blkid | wgetpaste -t
and post the url's returned

it does appear that a second kernel is at sysresc's /mnt/gentoo (the / directory in gentoo)

will windows still boot? It should not based on the ESP content.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Wed Jan 25, 2017 10:06 am    Post subject: Reply with quote

DONAHUE wrote:
Sorry, I'm severely confused. Can't tell if you were running in the sysresccd system or had chrooted into the gentoo chroot. If you could please fresh reboot sysresccd and run literally:
Code:
mount /dev/sdb6 /mnt/gentoo
ls -al /mnt/gentoo | wgetpaste -t
ls -alR /mnt/gentoo/boot | wgetpaste -t
mkdir /mnt/esp
mount /dev/sdb2 /mnt/esp 
ls -alR /mnt/esp | wgetpaste -t
blkid | wgetpaste -t
and post the url's returned

it does appear that a second kernel is at sysresc's /mnt/gentoo (the / directory in gentoo)

will windows still boot? It should not based on the ESP content.


Hi, thanks I am as well...
content of /mnt/gentoo: [url] http://bpaste.net/show/a7862e5c1584[/url]
content of /mnt/gentoo/boot: [url] http://bpaste.net/show/a2c379824aea[/url]
content of /mnt/esp (now I moved to /dev/sda6): http://bpaste.net/show/b9295c50143c
content of blkid: [url] http://bpaste.net/show/c41235d063bc[/url]


This is my new fstab:
Code:

/dev/sdb6               /               ext4            defaults,relatime,discard       0 1
/dev/sda6               /boot           vfat            noatime                         0 1
###/dev/sdb2            /boot/efi       vfat            noauto,noatime                  1 2
/dev/sda7               /tmp            ext4            noatime                         0 1
/dev/sda3               /var            ext4            noatime                         0 1
/dev/sda4               none            swap            sw,discard                      0 0
/dev/sda5               /home           ext4            noatime                         0 1


Set the boot on /dev/sda6 seems that fixes the double vmlinuz lines when using grub-mkconfig
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Wed Jan 25, 2017 12:32 pm    Post subject: Reply with quote

I have seen a picture I took of partitions under kubuntu (that was working) and the boot was like this:
Code:

/dev/sda6          /boot
/dev/sdb2          /boot/efi


I have tried this configuration, but was behaving like all the others: just stuck on "Loading vmlinux..."

So I assume there is something else beyond the boot partitions...
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 25, 2017 12:41 pm    Post subject: Reply with quote

Recommend returning /mnt/gentoo/etc/fstab to:
Code:
/dev/sdb6  /              ext4     defaults,relatime,discard   0 1
/dev/sdb2            /boot/efi   vfat      noauto,noatime         1 2
/dev/sda7              /tmp      ext4     noatime            0 1
/dev/sda3            /var      ext4     noatime            0 1
/dev/sda4            none      swap    sw,discard                 0 0
/dev/sda5              /home      ext4     noatime            0 1
multiple partitions on a single mount point can give very strange results
Your kernel looked unusually good, propose an experiment involving a few quick changes to remake it as efi_stub bootable. It will still be grub bootable. Will send a ripped off procedure shortly. In the meantime, the sysresccd menu provides an offer to boot a system found on the hard drive, give it a try.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Wed Jan 25, 2017 12:45 pm    Post subject: Reply with quote

DONAHUE wrote:
Recommend returning /mnt/gentoo/etc/fstab to:
Code:
/dev/sdb6  /              ext4     defaults,relatime,discard   0 1
/dev/sdb2            /boot/efi   vfat      noauto,noatime         1 2
/dev/sda7              /tmp      ext4     noatime            0 1
/dev/sda3            /var      ext4     noatime            0 1
/dev/sda4            none      swap    sw,discard                 0 0
/dev/sda5              /home      ext4     noatime            0 1
multiple partitions on a single mount point can give very strange results
Your kernel looked unusually good, propose an experiment involving a few quick changes to remake it as efi_stub bootable. It will still be grub bootable. Will send a ripped off procedure shortly. In the meantime, the sysresccd menu provides an offer to boot a system found on the hard drive, give it a try.


Could the problem be the fact I am using ext4 instead ext2 (since the entries in grub.cfg call insmod ext2)?
Because ext4 is built in the kernel it is not avaiable as module...so I see only this as real problem about why the kernel is not found!
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 25, 2017 1:09 pm    Post subject: Reply with quote

grub uses its own modules
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Wed Jan 25, 2017 1:11 pm    Post subject: Reply with quote

DONAHUE wrote:
grub uses its own modules



Ok I agree with this, but when in grub I tried to change "insmod ext2" with ext4, booting the kernel it said module ext4 not found.
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 25, 2017 1:25 pm    Post subject: Reply with quote

pretending more knowledge than I have regarding grub2, as ext4 is just ext2 with extensions the grub module named ext2 can and does have the ability to read an ext4 FS
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Wed Jan 25, 2017 1:29 pm    Post subject: Reply with quote

DONAHUE wrote:
pretending more knowledge than I have regarding grub2, as ext4 is just ext2 with extensions the grub module named ext2 can and does have the ability to read an ext4 FS


Yes, you should be right on this, but nevertheless, just for sake of compliance, now I set those in this way and from now on I will not make any other change (even if it is not booting the kernel):
Code:

/dev/sda6: UUID="1b6ee52b-627d-4318-8d47-b296599e406f" TYPE="ext2" PARTUUID="1f167658-3d17-44c8-93fa-4dbb8d68c912"
/dev/sda2: LABEL="Storage" UUID="18BA0256BA0230B4" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="435a0516-b6e8-4aae-a772-2306fad545a3"
/dev/sda3: UUID="142f2c81-55ab-4a76-bea0-cb7b5f4bc5c1" TYPE="ext4" PARTUUID="a7922263-5c38-4b5e-a2a2-e91dbd0f00b8"
/dev/sda4: UUID="ca708b98-c26a-4640-aa25-3e1866356bc9" TYPE="swap" PARTUUID="db17c236-25ac-4305-bc3e-9836997f2c64"
/dev/sda5: UUID="fa3ec6b8-d398-4bed-85a5-a8c2197e1229" TYPE="ext4" PARTUUID="c3ecb2a3-29e2-4b24-a9f7-60d82a70ca2e"
/dev/sda7: UUID="b81d601f-cc77-4ee7-8661-a9057c6c772a" TYPE="ext4" PARTUUID="eb533d0b-1895-4b02-9460-22113f1dc679"
/dev/sdb1: LABEL="Windows RE tools" UUID="68DEE923DEE8EA70" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="3d6cd383-4d90-45e7-9cd3-280f52134b97"
/dev/sdb4: LABEL="Windows" UUID="7E109279109237DB" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="bdda73e5-e525-4922-8786-d8a0347c4317"
/dev/sdb5: LABEL="Recovery image" UUID="9E8EF5C08EF5914F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="f2a64e2a-4569-4765-b1f1-87c90a79760f"
/dev/sdc1: LABEL="SYSRCD-4_9_" UUID="CED7-BC4B" TYPE="vfat" PARTUUID="000ec7df-01"
/dev/loop0: TYPE="squashfs"
/dev/sda1: PARTLABEL="Microsoft reserved partition" PARTUUID="4973300b-2041-4ba1-9e5c-9c818c180f26"
/dev/sdb2: SEC_TYPE="msdos" UUID="D9C7-AE9A" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="ff42c69d-48f9-45fc-9a54-6d2fab380c12"
/dev/sdb3: PARTLABEL="Microsoft reserved partition" PARTUUID="57281582-c188-4117-b0ca-5df185c6e9a5"
/dev/sdb6: UUID="88c559e1-7ac0-4966-bbce-0c1d072e1b11" TYPE="ext4" PARTUUID="fa62056a-6d51-45ab-8209-915f113ef4e7"


/dev/sda6 /boot ext2
/dev/sdb2 /boot//efi vfat

This is really close to what kubuntu has created except for ext2 that was ext4

I will try this out later.
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 25, 2017 3:19 pm    Post subject: Reply with quote

please be literal.
boot the sysresccd in UEFI mode.
Code:
mount /dev/sdb6 /mnt/gentoo
mkdir /mnt/gentoo/boot/efi
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
mount -t proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /tmp /mnt/gentoo/tmp
chroot /mnt/gentoo /bin/bash
/usr/sbin/env-update
source /etc/profile
export PS1="(chroot) $PS1"
mount /dev/sdb2 /boot/efi
eselect kernel set linux-4.4.39-gentoo
cd /usr/src/linux;make menuconfig
Edit the menuconfig to:
Quote:
Processor type and features --->
[*] EFI runtime service support
[*] EFI stub support
[*] Built-in kernel command line
(root=PARTUUID=fa62056a-6d51-45ab-8209-915f113ef4e7 ro net.ifnames=0 rootfstype=ext4) Built-in kernel command string
[*] Built-in command line overrides boot loader arguments

Firmware Drivers --->
EFI (Extensible Firmware Interface) Support --->
<*> EFI Variable Support via sysfs[

Device Drivers --->
Graphics support --->
<*> /dev/agpgart (AGP Support) --->
--- /dev/agpgart (AGP Support)
< > AMD Opteron/Athlon64 on-CPU GART support
<*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
< > VIA chipset support
-*- VGA Arbitration
(2) Maximum number of GPUs
[ ] Laptop Hybrid Graphics - GPU switching support
<M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
[ ] DRM DP AUX Interface
[*] Enable legacy fbdev support for your modesetting driver
[ ] Allow to specify an EDID data set instead of probing for it
I2C encoder or helper chips --->
< > ATI Radeon
< > AMD GPU
ACP (Audio CoProcessor) Configuration ----
<M> Nouveau (NVIDIA) cards
<M> Nouveau (NVIDIA) cards
(5) Maximum debug level (NEW)
(3) Default debug level (NEW)
[*] Support for backlight control (NEW)
<M> Intel 8xx/9xx/G3x/G4x/HD Graphics
[*] Enable preliminary support for prerelease Intel hardware by de
[*] Always enable userptr support
[ ] Enable Intel GVT-g graphics virtualization host support
< > Virtual GEM provider
< > DRM driver for VMware Virtual GPU
< > Intel GMA5/600 KMS Framebuffer
< > DisplayLink
< > AST server chips
< > Kernel modesetting driver for MGA G200 server engines
< > Cirrus driver for QEMU emulated device
< > QXL virtual GPU
< > DRM Support for bochs dispi vga interface (qemu stdvga)
Display Panels ----
Display Interface Bridges --->
[ ] Enable legacy drivers (DANGEROUS) ----
Frame buffer Devices --->
{*} Support for frame buffer devices --->
[ ] Framebuffer foreign endianness support ----
[*] Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
[ ] Asiliant (Chips) 69000 display support
[ ] IMS Twin Turbo display support
< > VGA 16-color graphics support
< > Userspace VESA VGA graphics support
[ ] VESA VGA graphics support
[*] EFI-based Framebuffer Support
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > OpenCores VGA/LCD core 2.0 framebuffer support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Intel740 support
< > Intel LE80578 (Vermilion) support
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident/CyberXXX/CyberBlade support
< > ARK 2000PV support
< > Permedia3 support
< > Fujitsu carmine frame buffer support
< > SMSC UFX6000/7000 USB Framebuffer support
< > Displaylink USB Framebuffer support
< > Framebuffer support for IBM GXT4000P/4500P/6000P/6500P adaptors
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
< > E-Ink Broadsheet/Epson S1D13521 controller support
< > AUO-K190X EPD controller support
[ ] Simple framebuffer support
< > Silicon Motion SM712 framebuffer support
-*- Backlight & LCD device support --->
--- Backlight & LCD device support
<*> Lowlevel LCD controls
< > Platform LCD controls
-*- Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Generic PWM based Backlight Driver
< > Apple Backlight Driver
< > Qualcomm PM8941 WLED Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED
< > Backlight Driver for ADP8870 using WLED
< > Backlight Driver for LM3630A
< > Backlight Driver for LM3639
< > Backlight driver for TI LP855X
< > Sanyo LV5207LP Backlight
< > Rohm BD6107 Backlight
Console display driver support --->
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(1024) Scrollback Buffer Size (in KB)
(80) Initial number of console screen columns
(25) Initial number of console screen rows
{*} Framebuffer Console support
-*- Map the console to the primary display device
[ ] Framebuffer Console Rotation
[*] Bootup logo --->
--- Bootup logo
[ ] Standard black and white Linux logo
[ ] Standard 16-color Linux logo
[*] Standard 224-color Linux logo
And save the config
Code:
make && make modules_install && make install
cp /boot/vmlinuz-3.4.39-gentoo /mnt/efi/EFI/Boot/bootx64.efi
emerge wgetpaste
efibootmgr -v | wgetpaste -t
grub-mkconfig -o /boot/grub/grub.cfg
ls -alR /boot | wgetpaste -t
exit
reboot
Note that the built in kernel command line will override a command line provided by an external boot loader. net.ifnames=0 will cause net interfaces to be named eth0 and wlan0 vice being renamed by udev. Feel free to delete it, if you prefer. rootfstype=ext4 eliminates working up ext2 to ext4. On the reboot entering UEFI/BIOS should show boot choices
references:http://www.rodsbooks.com/efi-bootloaders/
https://wiki.gentoo.org/wiki/EFI_stub_kernel
https://wiki.gentoo.org/wiki/Nouveau
https://wiki.gentoo.org/wiki/GRUB2

Have you tried booting windows?

If you tire of grub, rEFInd as boot manager plus efi_stub kernel as bootloader or efibootmgr as boot manager plus efi_stub kernel as bootloader are lower maintenance solutions. I use rEFInd/stub and the only maintenance is removing old kernels from /boot and /usr/src. efibootmgr/stub adds copying of new kernels to the esp. grub involves the dreaded grub-install grub-mkconfig I don't know elilo, gummiboot, or syslinux.

edit adds references, windows question, boot manager/loader discussion.
edit to correct cp /boot/vmlinuz-3.7.9-gentoo /mnt/efi/EFI/Boot/bootx64.efi to cp /boot/vmlinuz-3.4.39-gentoo /mnt/efi/EFI/Boot/bootx64.efi
edit to correct mount /dev/sdb2 /mount/efi to mount /dev/sdb2 /boot/efi
_________________
Defund the FCC.


Last edited by DONAHUE on Wed Jan 25, 2017 6:22 pm; edited 5 times in total
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Wed Jan 25, 2017 4:07 pm    Post subject: Reply with quote

DONAHUE wrote:
please be literal.
boot the sysresccd in UEFI mode.
Code:
mount /dev/sdb6 /mnt/gentoo
mkdir /mnt/gentoo/boot/efi
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
mount -t proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /tmp /mnt/gentoo/tmp
chroot /mnt/gentoo /bin/bash
/usr/sbin/env-update
source /etc/profile
export PS1="(chroot) $PS1"
mount /dev/sdb2 /mount/efi
eselect kernel set linux-4.4.39-gentoo
cd /usr/src/linux;make menuconfig
Edit the menuconfig to:
Quote:
Processor type and features --->
[*] EFI runtime service support
[*] EFI stub support
[*] Built-in kernel command line
(root=PARTUUID=fa62056a-6d51-45ab-8209-915f113ef4e7 ro net.ifnames=0 rootfstype=ext4) Built-in kernel command string
[*] Built-in command line overrides boot loader arguments

Firmware Drivers --->
EFI (Extensible Firmware Interface) Support --->
<*> EFI Variable Support via sysfs[

Device Drivers --->
Graphics support --->
<*> /dev/agpgart (AGP Support) --->
--- /dev/agpgart (AGP Support)
< > AMD Opteron/Athlon64 on-CPU GART support
<*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
< > VIA chipset support
-*- VGA Arbitration
(2) Maximum number of GPUs
[ ] Laptop Hybrid Graphics - GPU switching support
<M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
[ ] DRM DP AUX Interface
[*] Enable legacy fbdev support for your modesetting driver
[ ] Allow to specify an EDID data set instead of probing for it
I2C encoder or helper chips --->
< > ATI Radeon
< > AMD GPU
ACP (Audio CoProcessor) Configuration ----
<M> Nouveau (NVIDIA) cards
<M> Nouveau (NVIDIA) cards
(5) Maximum debug level (NEW)
(3) Default debug level (NEW)
[*] Support for backlight control (NEW)
<M> Intel 8xx/9xx/G3x/G4x/HD Graphics
[*] Enable preliminary support for prerelease Intel hardware by de
[*] Always enable userptr support
[ ] Enable Intel GVT-g graphics virtualization host support
< > Virtual GEM provider
< > DRM driver for VMware Virtual GPU
< > Intel GMA5/600 KMS Framebuffer
< > DisplayLink
< > AST server chips
< > Kernel modesetting driver for MGA G200 server engines
< > Cirrus driver for QEMU emulated device
< > QXL virtual GPU
< > DRM Support for bochs dispi vga interface (qemu stdvga)
Display Panels ----
Display Interface Bridges --->
[ ] Enable legacy drivers (DANGEROUS) ----
Frame buffer Devices --->
{*} Support for frame buffer devices --->
[ ] Framebuffer foreign endianness support ----
[*] Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
[ ] Asiliant (Chips) 69000 display support
[ ] IMS Twin Turbo display support
< > VGA 16-color graphics support
< > Userspace VESA VGA graphics support
[ ] VESA VGA graphics support
[*] EFI-based Framebuffer Support
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > OpenCores VGA/LCD core 2.0 framebuffer support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Intel740 support
< > Intel LE80578 (Vermilion) support
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident/CyberXXX/CyberBlade support
< > ARK 2000PV support
< > Permedia3 support
< > Fujitsu carmine frame buffer support
< > SMSC UFX6000/7000 USB Framebuffer support
< > Displaylink USB Framebuffer support
< > Framebuffer support for IBM GXT4000P/4500P/6000P/6500P adaptors
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
< > E-Ink Broadsheet/Epson S1D13521 controller support
< > AUO-K190X EPD controller support
[ ] Simple framebuffer support
< > Silicon Motion SM712 framebuffer support
-*- Backlight & LCD device support --->
--- Backlight & LCD device support
<*> Lowlevel LCD controls
< > Platform LCD controls
-*- Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Generic PWM based Backlight Driver
< > Apple Backlight Driver
< > Qualcomm PM8941 WLED Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED
< > Backlight Driver for ADP8870 using WLED
< > Backlight Driver for LM3630A
< > Backlight Driver for LM3639
< > Backlight driver for TI LP855X
< > Sanyo LV5207LP Backlight
< > Rohm BD6107 Backlight
Console display driver support --->
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(1024) Scrollback Buffer Size (in KB)
(80) Initial number of console screen columns
(25) Initial number of console screen rows
{*} Framebuffer Console support
-*- Map the console to the primary display device
[ ] Framebuffer Console Rotation
[*] Bootup logo --->
--- Bootup logo
[ ] Standard black and white Linux logo
[ ] Standard 16-color Linux logo
[*] Standard 224-color Linux logo
And save the config
Code:
make && make modules_install && make install
cp /boot/vmlinuz-3.7.9-gentoo /mnt/efi/EFI/Boot/bootx64.efi
emerge wgetpaste
efibootmgr -v | wgetpaste -t
grub-mkconfig -o /boot/grub/grub.cfg
ls -alR /boot | wgetpaste -t
exit
reboot
Note that the built in kernel command line will override a command line provided by an external boot loader. net.ifnames=0 will cause net interfaces to be named eth0 and wlan0 vice being renamed by udev. Feel free to delete it, if you prefer. rootfstype=ext4 eliminates working up ext2 to ext4. On the reboot entering UEFI/BIOS should show boot choices


What is this guide for?
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 25, 2017 4:20 pm    Post subject: Reply with quote

The promised "build an efi_stub kernel". Also should improve graphics support, put a kernel at /boot, in company with the recommended /etc/fstab provide for an esp mount at /boot/efi when you manually mount it.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 25, 2017 5:18 pm    Post subject: Reply with quote

Had to edit the guide to copy kernel vmlinuz-3.4.39-gentoo instead of vmlinuz-3.7.9-gentoo see edited version above. Sorry. Most embarrassing when I called for literal.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Wed Jan 25, 2017 5:36 pm    Post subject: Reply with quote

DONAHUE wrote:
please be literal.
boot the sysresccd in UEFI mode.
Code:
mount /dev/sdb6 /mnt/gentoo
mkdir /mnt/gentoo/boot/efi
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
mount -t proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /tmp /mnt/gentoo/tmp
chroot /mnt/gentoo /bin/bash
/usr/sbin/env-update
source /etc/profile
export PS1="(chroot) $PS1"
mount /dev/sdb2 /mount/efi
eselect kernel set linux-4.4.39-gentoo
cd /usr/src/linux;make menuconfig
Edit the menuconfig to:
Quote:
Processor type and features --->
[*] EFI runtime service support
[*] EFI stub support
[*] Built-in kernel command line
(root=PARTUUID=fa62056a-6d51-45ab-8209-915f113ef4e7 ro net.ifnames=0 rootfstype=ext4) Built-in kernel command string
[*] Built-in command line overrides boot loader arguments

Firmware Drivers --->
EFI (Extensible Firmware Interface) Support --->
<*> EFI Variable Support via sysfs[

Device Drivers --->
Graphics support --->
<*> /dev/agpgart (AGP Support) --->
--- /dev/agpgart (AGP Support)
< > AMD Opteron/Athlon64 on-CPU GART support
<*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
< > SiS chipset support
< > VIA chipset support
-*- VGA Arbitration
(2) Maximum number of GPUs
[ ] Laptop Hybrid Graphics - GPU switching support
<M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
--- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
[ ] DRM DP AUX Interface
[*] Enable legacy fbdev support for your modesetting driver
[ ] Allow to specify an EDID data set instead of probing for it
I2C encoder or helper chips --->
< > ATI Radeon
< > AMD GPU
ACP (Audio CoProcessor) Configuration ----
<M> Nouveau (NVIDIA) cards
<M> Nouveau (NVIDIA) cards
(5) Maximum debug level (NEW)
(3) Default debug level (NEW)
[*] Support for backlight control (NEW)
<M> Intel 8xx/9xx/G3x/G4x/HD Graphics
[*] Enable preliminary support for prerelease Intel hardware by de
[*] Always enable userptr support
[ ] Enable Intel GVT-g graphics virtualization host support
< > Virtual GEM provider
< > DRM driver for VMware Virtual GPU
< > Intel GMA5/600 KMS Framebuffer
< > DisplayLink
< > AST server chips
< > Kernel modesetting driver for MGA G200 server engines
< > Cirrus driver for QEMU emulated device
< > QXL virtual GPU
< > DRM Support for bochs dispi vga interface (qemu stdvga)
Display Panels ----
Display Interface Bridges --->
[ ] Enable legacy drivers (DANGEROUS) ----
Frame buffer Devices --->
{*} Support for frame buffer devices --->
[ ] Framebuffer foreign endianness support ----
[*] Enable Video Mode Handling Helpers
[*] Enable Tile Blitting Support
*** Frame buffer hardware drivers ***
< > Cirrus Logic support
< > Permedia2 support
< > CyberPro 2000/2010/5000 support
< > Arc Monochrome LCD board support
[ ] Asiliant (Chips) 69000 display support
[ ] IMS Twin Turbo display support
< > VGA 16-color graphics support
< > Userspace VESA VGA graphics support
[ ] VESA VGA graphics support
[*] EFI-based Framebuffer Support
< > N411 Apollo/Hecuba devkit support
< > Hercules mono graphics support
< > OpenCores VGA/LCD core 2.0 framebuffer support
< > Epson S1D13XXX framebuffer support
< > nVidia Framebuffer Support
< > nVidia Riva support
< > Intel740 support
< > Intel LE80578 (Vermilion) support
< > Matrox acceleration
< > ATI Radeon display support
< > ATI Rage128 display support
< > ATI Mach64 display support
< > S3 Trio/Virge support
< > S3 Savage support
< > SiS/XGI display support
< > NeoMagic display support
< > IMG Kyro support
< > 3Dfx Banshee/Voodoo3/Voodoo5 display support
< > 3Dfx Voodoo Graphics (sst1) support
< > VIA VT8623 support
< > Trident/CyberXXX/CyberBlade support
< > ARK 2000PV support
< > Permedia3 support
< > Fujitsu carmine frame buffer support
< > SMSC UFX6000/7000 USB Framebuffer support
< > Displaylink USB Framebuffer support
< > Framebuffer support for IBM GXT4000P/4500P/6000P/6500P adaptors
< > Virtual Frame Buffer support (ONLY FOR TESTING!)
< > E-Ink Metronome/8track controller support
< > Fujitsu MB862xx GDC support
< > E-Ink Broadsheet/Epson S1D13521 controller support
< > AUO-K190X EPD controller support
[ ] Simple framebuffer support
< > Silicon Motion SM712 framebuffer support
-*- Backlight & LCD device support --->
--- Backlight & LCD device support
<*> Lowlevel LCD controls
< > Platform LCD controls
-*- Lowlevel Backlight controls
< > Generic (aka Sharp Corgi) Backlight Driver
< > Generic PWM based Backlight Driver
< > Apple Backlight Driver
< > Qualcomm PM8941 WLED Driver
< > Tabletkiosk Sahara Touch-iT Backlight Driver
< > Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED
< > Backlight Driver for ADP8870 using WLED
< > Backlight Driver for LM3630A
< > Backlight Driver for LM3639
< > Backlight driver for TI LP855X
< > Sanyo LV5207LP Backlight
< > Rohm BD6107 Backlight
Console display driver support --->
-*- VGA text console
[*] Enable Scrollback Buffer in System RAM
(1024) Scrollback Buffer Size (in KB)
(80) Initial number of console screen columns
(25) Initial number of console screen rows
{*} Framebuffer Console support
-*- Map the console to the primary display device
[ ] Framebuffer Console Rotation
[*] Bootup logo --->
--- Bootup logo
[ ] Standard black and white Linux logo
[ ] Standard 16-color Linux logo
[*] Standard 224-color Linux logo
And save the config
Code:
make && make modules_install && make install
cp /boot/vmlinuz-3.4.39-gentoo /mnt/efi/EFI/Boot/bootx64.efi
emerge wgetpaste
efibootmgr -v | wgetpaste -t
grub-mkconfig -o /boot/grub/grub.cfg
ls -alR /boot | wgetpaste -t
exit
reboot
Note that the built in kernel command line will override a command line provided by an external boot loader. net.ifnames=0 will cause net interfaces to be named eth0 and wlan0 vice being renamed by udev. Feel free to delete it, if you prefer. rootfstype=ext4 eliminates working up ext2 to ext4. On the reboot entering UEFI/BIOS should show boot choices
references:http://www.rodsbooks.com/efi-bootloaders/
https://wiki.gentoo.org/wiki/EFI_stub_kernel
https://wiki.gentoo.org/wiki/Nouveau
https://wiki.gentoo.org/wiki/GRUB2

Have you tried booting windows?

If you tire of grub, rEFInd as boot manager plus efi_stub kernel as bootloader or efibootmgr as boot manager plus efi_stub kernel as bootloader are lower maintenance solutions. I use rEFInd/stub and the only maintenance is removing old kernels from /boot and /usr/src. efibootmgr/stub adds copying of new kernels to the esp. grub involves the dreaded grub-install grub-mkconfig I don't know elilo, gummiboot, or syslinux.

edit adds references, windows question, boot manager/loader discussion.
edit to correct cp /boot/vmlinuz-3.7.9-gentoo /mnt/efi/EFI/Boot/bootx64.efi to cp /boot/vmlinuz-3.4.39-gentoo /mnt/efi/EFI/Boot/bootx64.efi


Ok:
https://paste.pound-python.org/show/eB3LN7FKZaHs5EjjDG8r
https://paste.pound-python.org/show/8oftbYzK5xVCLxBYe10h
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 25, 2017 6:18 pm    Post subject: Reply with quote

another typo (brain failure by me) mount /dev/sdb2 /mount/efi should be mount /dev/sdb2 /boot/efi will correct above
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 25, 2017 6:50 pm    Post subject: Reply with quote

modified guide:
please be literal except for my typos :oops:
boot the sysresccd in UEFI mode.
Code:
mount /dev/sdb6 /mnt/gentoo
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
mount -t proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /tmp /mnt/gentoo/tmp
chroot /mnt/gentoo /bin/bash
/usr/sbin/env-update
source /etc/profile
export PS1="(chroot) $PS1"
mount /dev/sdb2 /boot/efi
cp /boot/vmlinuz-3.4.39-gentoo /boot/efi/EFI/Boot/bootx64.efi
emerge -C grub
emerge -av grub
grub-install --target=x86_64-efi --efi-directory=/boot/efi
grub-mkconfig -o /boot/grub/grub.cfg
ls -alR /boot | wgetpaste -t
efibootmgr -v | wgetpaste -t
exit
reboot
Note that the built in kernel command line will override a command line provided by an external boot loader. net.ifnames=0 will cause net interfaces to be named eth0 and wlan0 vice being renamed by udev. Feel free to delete it, if you prefer. rootfstype=ext4 eliminates working up ext2 to ext4. On the reboot entering UEFI/BIOS should show boot choices
references:http://www.rodsbooks.com/efi-bootloaders/
https://wiki.gentoo.org/wiki/EFI_stub_kernel
https://wiki.gentoo.org/wiki/Nouveau
https://wiki.gentoo.org/wiki/GRUB2

Have you tried booting windows?

If you tire of grub, rEFInd as boot manager plus efi_stub kernel as bootloader or efibootmgr as boot manager plus efi_stub kernel as bootloader are lower maintenance solutions. I use rEFInd/stub and the only maintenance is removing old kernels from /boot and /usr/src. efibootmgr/stub adds copying of new kernels to the esp. grub involves the dreaded grub-install grub-mkconfig I don't know elilo, gummiboot, or syslinux.

edit adds references, windows question, boot manager/loader discussion.
edit to correct cp /boot/vmlinuz-3.7.9-gentoo /mnt/efi/EFI/Boot/bootx64.efi to cp /boot/vmlinuz-3.4.39-gentoo /boot/efi/EFI/Boot/bootx64.efi
edit to correct mount /dev/sdb2 /mount/efi to mount /dev/sdb2 /boot/efi
_________________
Defund the FCC.
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Wed Jan 25, 2017 7:29 pm    Post subject: Reply with quote

Hi,
Yes I know don'worry....anyway it did not work and no grub is shown, just black screen.
Then I fixed as before and used the same kernel but despite grub let me select the entries,
boot is behaving as usually...
It seems that booting my kernel using sysresccd worked
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Wed Jan 25, 2017 7:50 pm    Post subject: Reply with quote

IIRC that menu choice uses the sysresc kernel but your installed system; essentially a chroot,
did you get the pastebin url's from this run? -- to help me find my errors please post them --
Speaking of which, any error messages this run?
Booting a rEFInd cd, https://sourceforge.net/projects/refind/files/0.10.4/refind-cd-0.10.4.zip/download , or usb, https://sourceforge.net/projects/refind/files/0.10.4/refind-flashdrive-0.10.4.zip/download , will tell you if your kernels are findable and bootable independent of grub. May also find the gremilins. Please try it.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum