LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-02-2020, 08:11 PM   #46
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591

did you try Petri Kaukasoina suggested mkinitrd line:
Code:
mkinitrd -k 4.4.14 -m mmc_core:mmc_block:sdhci:sdhci_acpi:sdhci_pci
and/or add this to the mkinitrd command that was generated.

Last edited by colorpurple21859; 07-02-2020 at 08:12 PM.
 
Old 07-02-2020, 08:13 PM   #47
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I read this thread and it is very easy to see why Pat does not make grub the default boot manager.
Just a Thought
 
Old 07-02-2020, 08:18 PM   #48
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
This link has a section on creating an initrd for an emmc drive that may be of help, ignore the sections about efi. https://ansuz.sooke.bc.ca/entry/340
 
Old 07-03-2020, 12:34 AM   #49
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,817

Rep: Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493
Ok, I guess we tried to use modules for the wrong (non-smp) kernel. Try this:
Code:
mkinitrd -k 4.4.14-smp -m mmc_core:mmc_block:sdhci:sdhci_acpi:sdhci_pci
 
Old 07-03-2020, 06:49 AM   #50
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
In order to paste the output of mkinitrd_command_generator.sh I run the commands of post #27 in a GUI terminal after doing 'su -' and then with the mouse I copy and paste. But I understand 'su -' is not exactly the same as using one of the consoles (dev/ttyN) as root. Is it OK if I use a GUI terminal?

Last edited by stf92; 07-03-2020 at 06:51 AM.
 
Old 07-03-2020, 07:37 AM   #51
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
It will work good enough for this.
 
Old 07-03-2020, 07:50 AM   #52
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
chroot into slackware with a gui terminal post your
Code:
sh /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.4.14
output
 
Old 07-03-2020, 08:24 AM   #53
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
try this one and see if it works, this is assuming slackware filesytem is ext4
Code:
mkinitrd -k 4.4.14 -f ext4 -r /dev/mmcblk0p2 -w 15 -m mmc_core:mmc_block:sdhci:sdhci_acpi:sdhci_pci:usb_storage:xhci_hcd:uas:xhci_pci:ext4 -u -o /boot/initrd.gz
based on your lsmod output

Last edited by colorpurple21859; 07-03-2020 at 08:26 AM.
 
Old 07-03-2020, 08:34 AM   #54
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Code:
# Figure out the device and partition number of the ESP:
DEVLEN=8
PARTLEN=9
if mount | grep vfat | grep -wq /boot/efi ; then
  mount | grep vfat | grep -w /boot/efi | grep -q -e nvme -e mmcblk && DEVLEN=12 && PARTLEN=14
  EFI_DEVICE=$(mount | grep vfat | grep -w /boot/efi | cut -b 1-${DEVLEN})
  EFI_PARTITION=$(mount | grep vfat | grep -w /boot/efi | cut -f 1 -d ' ' | cut -b ${PARTLEN}- | tr -d [a-z])
else
  mount | grep vfat | grep -w $T_PX/boot/efi | grep -q -e nvme -e mmcblk && DEVLEN=12 && PARTLEN=14
  EFI_DEVICE=$(mount | grep vfat | grep -w $T_PX/boot/efi | cut -b 1-${DEVLEN})
  EFI_PARTITION=$(mount | grep vfat | grep -w $T_PX/boot/efi | cut -f 1 -d ' ' | cut -b ${PARTLEN}- | tr -d [a-z])
fi
I don't have the knowledge to fix the problem, but the short code segement from current's eliloconfig seems to indicate that it supports 'mmcblk' devices.
Sorry I can't offer any further assistance
HTH
john
 
Old 07-03-2020, 09:10 AM   #55
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,817

Rep: Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493
Quote:
Originally Posted by stf92 View Post
I looked into the slackware /boot directory and the names of the images include '4.4.14-smp'.
Quote:
Originally Posted by Petri Kaukasoina View Post
Ok, I guess we tried to use modules for the wrong (non-smp) kernel. Try this:
Code:
mkinitrd -k 4.4.14-smp -m mmc_core:mmc_block:sdhci:sdhci_acpi:sdhci_pci
Please notice this. It should be "-k 4.4.14-smp", not "-k 4.4.14".
 
Old 07-03-2020, 09:31 AM   #56
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by Petri Kaukasoina View Post
Please notice this. It should be "-k 4.4.14-smp", not "-k 4.4.14".
Yes, I'm using -k 4.4.14-smp, thanks Petri.
 
Old 07-03-2020, 09:45 AM   #57
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Code:
bash-4.3# sh /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 4.4.14-smp
cat: /proc/mdstat: No such file or directory
#
# mkinitrd_command_generator.sh revision 1.45
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:

mkinitrd -c -k 4.4.14-smp -f ext2 -r /dev/mmcblk0p2 -m mmc_core:sdhci:sdhci-pci:usb-storage:xhci-hcd:xhci-pci:ohci-pci:ehci-pci:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:mbcache:ext2 -u -o /boot/initrd.gz
bash-4.3#
Please notice the 'cat: /proc/mdstat: No such file or directory' line.
 
Old 07-03-2020, 10:26 AM   #58
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
I think the -smp is wrong that just for kernel naming, look in slackware /lib/modules for kernel versions
 
Old 07-03-2020, 11:10 AM   #59
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,817

Rep: Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493
kernel-modules-smp-4.4.14_smp-i686-1.txz extracts modules under /lib/modules/4.4.14-smp
 
Old 07-03-2020, 11:28 AM   #60
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Quote:
Originally Posted by colorpurple21859 View Post
try this one and see if it works, this is assuming slackware filesytem is ext4
Code:
mkinitrd -k 4.4.14 -f ext4 -r /dev/mmcblk0p2 -w 15 -m mmc_core:mmc_block:sdhci:sdhci_acpi:sdhci_pci:usb_storage:xhci_hcd:uas:xhci_pci:ext4 -u -o /boot/initrd.gz
based on your lsmod output
It didn't work.

In /boot/grub/grub.cfg the slackware menu entry has vmlinuz-generic-4.4.14. So I assume in the mkinitrd we have to use is '-k 4.4.14', not '-k 4.4.14-smp'. Am I right?

Quote:
Originally Posted by colorpurple21859 View Post
This link has a section on creating an initrd for an emmc drive that may be of help, ignore the sections about efi. https://ansuz.sooke.bc.ca/entry/340
This guy used elilo succesfully (slackware with eMMC) (He does not state which slackware version). But I am using legacy mode (BIOS), no EFI. So could it be that lilo could do the job?

Last edited by stf92; 07-03-2020 at 11:46 AM.
 
  


Reply



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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Linux boot loader entry in Windows boot loader abhikohokade Linux - Newbie 6 02-22-2013 06:12 AM
I want to remove ubuntu boot loader and use windows boot loader RUshabh55 Linux - Newbie 9 11-29-2009 07:01 PM
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 01:47 PM

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

All times are GMT -5. The time now is 07:17 AM.

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
Open Source Consulting | Domain Registration