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

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
LegionOfHell
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2019
Posts: 86
Location: Toronto, Canada

PostPosted: Sun Apr 28, 2019 4:48 am    Post subject: kernel panics after Gentoo installation Reply with quote

I first tried installing Gentoo using the minimal installation CD image...however my eMMC drive was not detected by it...

So I used Ubuntu 19.04 live CD to install Gentoo...After rebooting I get two types of kernel panics:

this:

https://ibb.co/9tBr63s

And this:

https://ibb.co/1LHg8Xw

What went wrong ? is it fixable ? should I reinstall everything ?
Back to top
View user's profile Send private message
ilnanny
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2017
Posts: 98
Location: Italy/Taranto

PostPosted: Sun Apr 28, 2019 7:27 am    Post subject: Reply with quote

You probably don't have the emmc driver enabled in your kernel. Unfortunately there's a bunch of esoteric options that need to be set which I can't roll off the top of my head at the moment as I have dealt with so few of these machines as of yet.

You should start with the funtoo or whichever other working kernel .config and use that as your base. I don't know if genkernel "supports" emmc boot as it's not the typical SATA connection and thus likely won't work.

try to look good at your kernel 'config' that you installed on ubuntu
_________________
== Lila-HD-icon-theme ==
https://github.com/ilnanny/Lila-HD-icon-theme
Back to top
View user's profile Send private message
ilnanny
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jul 2017
Posts: 98
Location: Italy/Taranto

PostPosted: Sun Apr 28, 2019 7:35 am    Post subject: Reply with quote

Type
Code:

zcat /proc/config.gz | grep -i mmc

and look at the relevant parameters, there are some parameters intended for certain EMMCs.
____
because you have to reinstall when you can fix it
_________________
== Lila-HD-icon-theme ==
https://github.com/ilnanny/Lila-HD-icon-theme
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43200
Location: 56N 3W

PostPosted: Sun Apr 28, 2019 10:16 am    Post subject: Reply with quote

LegionOfHell,

In your first image,
Code:
unknown-block(0,0)
tells that your kernel cannot see any block devices at all.
Also the "mmcblk0p3" is wrong. It should be "/dev/mmcblk0p3", so the root= entry in your boot loader is incorrect.
That's two things to fix.

The second image does not add anything useful about the error but it does say
Code:
HP HP Stream 11 Pro G3 Notebook PC/82A9
which just might help identify the kernel options you need.

Yes, its fixable. Rebuild your kernel with the correct options for your hardware.

The hard bit is determining the correct options. To that end, post the output of
Code:
lspci
and
Code:
lsusb
.
One of those should show your eMMC hardware.

Put your Gentoo kernel .config file onto a pastebin site (wgetpaste) and post the link. Its too big for a post.

Tell us how you build your kernel.

-- edit --
There is more. Your first image says
Code:
Please append a correct "root=" boot option; here are the available partitions:

What is not obvious from the image, is that the list of available partitions is empty.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LegionOfHell
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2019
Posts: 86
Location: Toronto, Canada

PostPosted: Mon Apr 29, 2019 12:05 am    Post subject: Reply with quote

Quote:
tells that your kernel cannot see any block devices at all.
Also the "mmcblk0p3" is wrong. It should be "/dev/mmcblk0p3", so the root= entry in your boot loader is incorrect.
That's two things to fix.


I installed the bootloader according to the handbook's instructions..please tell me what to do in a more specific way...excuse my ignorance...

I have decided to re-install Gentoo again...so please guide me in the right direction:

Here are the outputs of "lspci" and "lsusb" ran from Ubuntu 19.04 live which detects my eMMC drive:

https://ibb.co/b6gjyHb
https://ibb.co/31ygjZS

here is the kernel items I check:

https://docdro.id/4XPLn0l


here is the kernel .config file located at /usr/src/linux/.config :

http://paste.ubuntu.com/p/JMmxszw59D/


Please tell me exactly what I have to do...because I am a n00b at Gentoo..
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3081
Location: Illinois, USA

PostPosted: Mon Apr 29, 2019 2:00 am    Post subject: Reply with quote

Don't reinstall. Fix your install. The first will only lead to frustration. The second will lead to learning.
You have a master (Neddyseagoon) guiding you. He has aided possibly hundreds of newbies. At least two a week for years.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43200
Location: 56N 3W

PostPosted: Mon Apr 29, 2019 10:15 am    Post subject: Reply with quote

LegionOfHell,

Gentoo - Lesson 1.
Never reinstall. It won't fix anything and you may make a different mistake.
That way lies madness.

Gentoo - Lesson 2.
Help others to help you.
Don't post images if you can post text. Images are hard to quote.
Learn to use wgetpaste.

From your kernel, you have
Code:
# CONFIG_MMC is not set
which is a menu item.
The drivers for your eMMC card are in there.

As you have a SoC, you almost certainly want some items in the
Code:
# CONFIG_PINCTRL is not set
menu too.

The rest of your Gentoo will be good, your problem is the kernel. Reinstalling everything won't change that.
See Lesson 1.

Your eMMC might be the Realtek device listed in lspci or that might be an external slot.
eMMC devices also appear on SPI
Code:
# CONFIG_SPI is not set
or or I2C
Code:
CONFIG_I2C_I801=y
too.

I have not identified the menu items you need to turn on in those two menus, so on its own, this is a pointer in the right direction, not a follow these steps and it will fix it post.
There is still some guesswork to go.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LegionOfHell
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2019
Posts: 86
Location: Toronto, Canada

PostPosted: Mon Apr 29, 2019 4:01 pm    Post subject: Reply with quote

one small question: Can I uncomment items in /usr/src/linux/.config instead of using menuconfig ?

Also, to rebuild the kernel I have to uncomment items in .config and follow this guide: https://wiki.gentoo.org/wiki/Kernel/Rebuild ... right ?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7092
Location: Saint Amant, Acadiana

PostPosted: Mon Apr 29, 2019 4:55 pm    Post subject: Reply with quote

Never edit .config manually, there are complicated internal dependencies which will break.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43200
Location: 56N 3W

PostPosted: Mon Apr 29, 2019 5:16 pm    Post subject: Reply with quote

LegionOfHell,

What Jaglover said.
The kernel configuration tools can change lots of entries in the .config file when you change a setting in the config tool of your choice.

The configuration tool uses two constructs to make you life easier.
Depends on: This is a boolean expression that must evaluate to true or the option is hidden in the menu.
Selects: If you turn this option on, all these options will be forced on too.

When you use $EDITOR on .config, you usually get an illegal .config that produces a broken kernel, if it builds an all.
If you have already used $EDITOR on .config, throw it away and start over. Its not recoverable.

All of the config tools have a search. In menuconfig, press / and enter a symbol fragment. the CONFIG_ is never required.
The possible matches are numbered. Press the digit to the left of the option you want to go there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LegionOfHell
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2019
Posts: 86
Location: Toronto, Canada

PostPosted: Tue Apr 30, 2019 12:18 am    Post subject: Reply with quote

I checked the kernel items you mentioned and added "GRUB_DEVICE=/dev/mmcblk0p3" to /etc/default/grub and ran "grub-mkconfig -o /boot/grub/grub.cfg"

I am still getting the kernel panic as shown in the first post: https://ibb.co/9tBr63s however the line with "4.19.27-gentoo-r1 #1" is now "4.19.27-gentoo-r1 #2" and that's because I rebuilt the kernel I guess ?


I checked CONFIG_MMC with the default driver enabled under it.

I checked CONFIG_PINCTRL with Intel Cherryview/Brasswell pinctrl and GPIO driver (NEW) because my processor is Intel Celeron N3060.

I checked CONFIG_SPI with nothing under it since I don't know the manufacturer of my eMMC.

and CONFIG_I2C_I801=y is already set in the .config file i posted ...

what shall I do now ?

This case seems to be similar to mine...he has the same laptop... : https://forums.gentoo.org/viewtopic-t-1085042-start-0.html

should I enable CONFIG_X86_INTEL_LPSS ?

Also, I used this guide to rebuild the kernel : https://wiki.gentoo.org/wiki/Kernel/Rebuild
Is that the correct procedure ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43200
Location: 56N 3W

PostPosted: Tue Apr 30, 2019 8:20 am    Post subject: Reply with quote

LegionOfHell,

Quote:
"4.19.27-gentoo-r1 #1" is now "4.19.27-gentoo-r1 #2"
shows that the build count has been incremented. That's a good thing.
The date and time, if you get to see it is the build date/time of the running kernel.

From the kernel Driver Database INTEL_LPSS_PCI appears to do something for your hardware.
See the vendor: 8086 ("Intel Corporation"), device: 5aac ("Celeron N3350/Pentium N4200/Atom E3900 Series I2C Controller #1") entries on the page.

I didn't ask for your
Code:
lspci -nn
so don't have your Vendor and Device IDs. Well, Intel is vendor 8086.
Try it.

If it doesn't work, pastebin your entire kernel config again and a new photo of the panic message.
Even if it still panics, a change in the message will tell that one thing has been fixed and there is something else.

Its about working with a self consistent data set too. This exact panic was produced by this exact kernel .config.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LegionOfHell
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2019
Posts: 86
Location: Toronto, Canada

PostPosted: Thu May 02, 2019 1:19 am    Post subject: Reply with quote

I am still getting a kernel panic even after enabling CONFIG_X86_INTEL_LPSS : https://ibb.co/FqXxBqx


here is the kernel .config file: http://paste.ubuntu.com/p/cBWRPnBymt/
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7092
Location: Saint Amant, Acadiana

PostPosted: Thu May 02, 2019 1:43 am    Post subject: Reply with quote

lsmod from Ubuntu might help.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
LegionOfHell
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2019
Posts: 86
Location: Toronto, Canada

PostPosted: Thu May 02, 2019 2:11 am    Post subject: Reply with quote

output of lsmod: http://paste.ubuntu.com/p/P5TcQwM4mW/

After recompiling the kernel, when I rebooted I got a kernel panic like : https://ibb.co/1LHg8Xw

all subsequent panics after that were like : https://ibb.co/FqXxBqx
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7092
Location: Saint Amant, Acadiana

PostPosted: Thu May 02, 2019 3:15 am    Post subject: Reply with quote

You could use modinfo to learn more about these loaded modules, also lspci -k will show what driver is in use.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
LegionOfHell
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2019
Posts: 86
Location: Toronto, Canada

PostPosted: Fri May 03, 2019 1:51 am    Post subject: Reply with quote

Still getting the panic after installing all CONFIG_MMC_*'s + CONFIG_X86_INTEL_LPSS

I installed all CONFIG_MMC_* as modules ... should I install them as modules or not ? I dont't have initramfs ...

My next move is to enable ALL CONFIG_SPI_* and CONFIG_PINCTRL_*



please if you have any other advise, give it...



Many Thanks
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7092
Location: Saint Amant, Acadiana

PostPosted: Fri May 03, 2019 2:16 am    Post subject: Reply with quote

Put your thinking cap on. The driver built as module resides in root filesystem. To mount root filesystem and load the driver you need ... ever left the keys inside and slammed the door?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
LegionOfHell
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2019
Posts: 86
Location: Toronto, Canada

PostPosted: Fri May 03, 2019 4:58 am    Post subject: Reply with quote

one more question before recompiling:

I chroot from ubuntu 19.04 live and these are the steps I do before chrooting:

Code:
mount -o bind /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
mount --rbind /run/shm /mnt/gentoo/run/shm
chroot /mnt/gentoo /bin/env -i TERM=$TERM /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"

Are these correct ?

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43200
Location: 56N 3W

PostPosted: Fri May 03, 2019 5:27 pm    Post subject: Reply with quote

LegionOfHell,

You turned on
Code:
CONFIG_MMC=y
as I said but its a menu.
You need to choose one or more items from the menu too.

Code:
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_MINORS=8
is good. That's the block driver and its set to allow 7 partitions on an MMC card.

You need the right hardware driver from
Code:
# CONFIG_MMC_SDHCI is not set
# CONFIG_MMC_WBSD is not set
# CONFIG_MMC_TIFM_SD is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_SDRICOH_CS is not set
# CONFIG_MMC_CB710 is not set
# CONFIG_MMC_VIA_SDMMC is not set
# CONFIG_MMC_VUB300 is not set
# CONFIG_MMC_USHC is not set
# CONFIG_MMC_USDHI6ROL0 is not set
# CONFIG_MMC_CQHCI is not set
# CONFIG_MMC_TOSHIBA_PCI is not set
# CONFIG_MMC_MTK is not set
# CONFIG_MEMSTICK is not set
too and they are all off. REad the context sensitive help in make menuconfig for hints.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LegionOfHell
Tux's lil' helper
Tux's lil' helper


Joined: 16 Mar 2019
Posts: 86
Location: Toronto, Canada

PostPosted: Fri May 03, 2019 8:26 pm    Post subject: Reply with quote

OK it boots fine now...However there are some lines with a red "ERROR" in the beginning during boot...how can i capture them ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43200
Location: 56N 3W

PostPosted: Fri May 03, 2019 9:16 pm    Post subject: Reply with quote

LegionOfHell,

You can single step the boot process.

Edit /etc/rc.conf
Uncomment
Code:
#rc_interactive="YES"


At boot, You will get a "Press I for Interactive boot" message.
This lets you single step services being started and see the results.

You may also find error messages in dmesg.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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
Page 1 of 1

 
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