LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 01-12-2018, 03:05 AM   #1
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 30

Rep: Reputation: Disabled
Installing Slackware64 14.2 on a Asus E200HA: Kernel panic


Hello,

I would like to install Slackware64 14.2 on an ASUS E200HA.
So, this is what I do:
  • I boot on the Slackware64 14.2 DVD
  • I partition my disk (cgdisk /dev/mmcblk0)
    /dev/mmcblk0p1 100MB EFI System
    /dev/mmcblk0p2 020GB Linux filesystem
    /dev/mmcblk0p3 009GB Microsoft basic data
  • I run the installer (setup)
    /dev/mmcblk0p2 / ext4 defaults 1 1 is added to /etc/fstab
  • I reboot

At reboot, I see that no Slackware boot menu entry has been installed.
It means that something wrong happened during the installation with ELILO.
So, I boot again on the Slackware64 14.2 DVD then I do:
Code:
mkdir mmcblk0p2
mount /dev/mmcblk0p2 mmcblk0p2
chroot mmcblk0p2
eliloconfig
Now I have: "System is not running under UEFI".
By using "grep" on "eliloconfig" I understand that the problem is the missing "/sys/firmware/efi" directory.
So I do:
Code:
mount -t sysfs sys /sys
eliloconfig
Now I have: "NO EFI System Partition mounted on /boot/efi".
So I do:
Code:
mknod /dev/mmcblk0p1 b 179 1
mount /dev/mmcblk0p1 /boot/efi
eliloconfig
Now I have: "Could not open disk /dev/mmc: No such file or directory".
It seems to be a problem in the eliloconfig script.
Hopefully, eliloconfig has been patched to support MMC so I need to use a recent version.
More precisely, I upgraded my elilo-3.16-x86_64-2.txz package with elilo-3.16-x86_64-5.txz.
So I do:
Code:
upgradepkg elilo-3.16-x86_64-5.txz
eliloconfig
Now I have: "Could not open disk /dev/mmcblk0: No such file or directory".
So I do:
Code:
mknod /dev/mmcblk0 b 179 0
eliloconfig
umount /boot/efi
exit
umount mmcblk0p2
Now I have: "/mmcblk0p2: target is busy".
That's weird but well...
So I do:
Code:
reboot
At reboot, I see "Cannot open root device "sys" or unknown-block(0,0): error -6".
It means that "sys" is tried to be mounted as root device whereas it is not the correct one (it should be /dev/mmcblk0p2).
So, I boot again on the Slackware64 14.2 DVD then I do:
Code:
mkdir mmcblk0p2
mount /dev/mmcblk0p2 mmcblk0p2
chroot mmcblk0p2
mount /dev/mmcblk0p1 /boot/efi
cat /boot/efi/EFI/Slackware/elilo.conf
Here, I see the problem: "root=sys" instead of "root=/dev/mmcblk0p2".
So I edit the file and I save.
Then I do:
Code:
mount -t sysfs sys /sys
eliloconfig
cat /boot/efi/EFI/Slackware/elilo.conf
But again, I see "root=sys" instead of "root=/dev/mmcblk0p2".
So I edit the eliloconfig script to set the variable "ROOT_DEVICE" to the correct value.
Then I do:
Code:
eliloconfig
cat /boot/efi/EFI/Slackware/elilo.conf
OK now it's fine.
Let's reboot again:
Code:
umount /boot/efi
exit
umount mmcblk0p2
reboot
At reboot, I see "Cannot open root device "mmcblk0p2" or unknown-block(0,0): error -6".
It means that "mmcblk0p2" cannot be mounted... Maybe because the device node is missing in /dev.
So, I boot again on the Slackware64 14.2 DVD then I do:
Code:
mkdir mmcblk0p2
mount /dev/mmcblk0p2 mmcblk0p2
chroot mmcblk0p2
mknod /dev/mmcblk0p2 b 179 2
exit
umount mmcblk0p2
reboot
At reboot, I see "Kernel panic - not syncing: VFS: Unable to mount root fs or unknown-block(0,0): error -6".
Well... I don't know what to do now.

Any idea?

Thank you.
Best regards.

---
Edit:

My elilo.conf file:
Code:
chooser=simple
delay=1
timeout=1
#
image=vmlinuz
        label=vmlinuz
        read-only
        append="root=/dev/mmcblk0p2 vga=normal ro"
My /etc/fstab file:
Code:
/dev/mmcblk0p2   /                ext4        defaults         1   1
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0

Last edited by YuGiOhJCJ; 01-12-2018 at 03:10 AM.
 
Old 01-12-2018, 09:48 AM   #2
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 130

Rep: Reputation: 69
Well it looks like you ran into every problem associated with installing Slackware 14.2 on eMMC devices and was able resolve all put one. The problems that you have run into where:

1) The installer script SeTEFI does not look for eMMC devices when searching for EFI partitions and as a result your ESP was not mounted nor was it entered into the fstab. You solve this by chroot and manually mounting the partitions and running eliloconfig.

2) The installer supplied eliloconfig script when invoking efibootmgr, was not able to write a menu entry. This was resolved by using the latest eliloconfig script from Slackware-current.

3) The final problem, kernel panic on reboot, is that the huge kernel being booted in the newly installed system does not load the eMMC modules. The installer initrd does load these modules, and hense able to mount and read the devices, but the installed kernel-huge does not have these built in. This post provides some ways to fix it.

Finally I think you could have avoided some of the problems that you ran into when you chroot by following these instructions for changing root: https://docs.slackware.com/howtos:ge...kware_chroot?s

Last edited by laprjns; 01-13-2018 at 06:08 AM.
 
2 members found this post helpful.
Old 01-13-2018, 01:13 AM   #3
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 30

Original Poster
Rep: Reputation: Disabled
Thanks you helped me, now it works.
What I did is:
  • I rebuilt the Linux kernel (version 4.14.13 instead of the old 4.4.14) to support eMMC
  • I installed this new Linux kernel
  • I edited my "elilo.conf" file to add "rootwait"

Here is the difference between the provided Linux kernel configuration and mine:
Code:
diff -u config-huge-4.4.14.x64 config-laptop-4.14.13
--- config-huge-4.4.14.x64	2018-01-13 04:22:57.407267098 +0100
+++ config-laptop-4.14.13	2018-01-13 04:29:26.210251866 +0100
@@ -51,7 +51,7 @@
 CONFIG_INIT_ENV_ARG_LIMIT=32
 CONFIG_CROSS_COMPILE=""
 # CONFIG_COMPILE_TEST is not set
-CONFIG_LOCALVERSION=""
+CONFIG_LOCALVERSION="-laptop"
 # CONFIG_LOCALVERSION_AUTO is not set
 CONFIG_HAVE_KERNEL_GZIP=y
 CONFIG_HAVE_KERNEL_BZIP2=y
@@ -5465,13 +5465,13 @@
 CONFIG_UWB_HWA=m
 CONFIG_UWB_WHCI=m
 CONFIG_UWB_I1480U=m
-CONFIG_MMC=m
+CONFIG_MMC=y
 # CONFIG_MMC_DEBUG is not set
 
 #
 # MMC/SD/SDIO Card Drivers
 #
-CONFIG_MMC_BLOCK=m
+CONFIG_MMC_BLOCK=y
 CONFIG_MMC_BLOCK_MINORS=8
 CONFIG_MMC_BLOCK_BOUNCE=y
 CONFIG_SDIO_UART=m
@@ -5480,10 +5480,10 @@
 #
 # MMC/SD/SDIO Host Controller Drivers
 #
-CONFIG_MMC_SDHCI=m
-CONFIG_MMC_SDHCI_PCI=m
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PCI=y
 CONFIG_MMC_RICOH_MMC=y
-CONFIG_MMC_SDHCI_ACPI=m
+CONFIG_MMC_SDHCI_ACPI=y
 CONFIG_MMC_SDHCI_PLTFM=m
 CONFIG_MMC_WBSD=m
 CONFIG_MMC_TIFM_SD=m
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Windows 8.1 Hyper-V and Slackware64 14.1 - kernel panic Magnana Linux - General 5 05-17-2014 08:55 PM
[SOLVED] Kernel Panic on Slackware64 14.1 Eupator Slackware 15 04-30-2014 09:40 PM
Slackware64 14.1 : kernel panic using RAID kikinovak Slackware 15 02-08-2014 12:26 AM
kernel panic Slackware64-14.1 Jeebizz Slackware 2 11-08-2013 02:50 PM
Kernel panic after upgrading slackware64-current to 2.6.32.x kernel Lenard Spencer Slackware 4 01-22-2010 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration