LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-05-2020, 12:49 PM   #1
skush
LQ Newbie
 
Registered: Aug 2013
Posts: 26

Rep: Reputation: Disabled
Problems installing on mmc device


Hi,

I'm trying to install Slackware current on a PC using an mmc device as root, but I'm running into multiple problems.

The first is that the installer doesn't find the device because for some reason it is named mmcblk1 (it is mmcblk0 in the 14.2 installer, but 14.2 presents other problems). This one is an easy fix; I simply modify the mmc_find function in /sbin/probe to add +1 to $DRV. I don't know if this is a bug in Slackware, or something specific to my hardware.

The next problem is that the installed system doesn't boot with the mmc_block module, as it doesn't seem to be in the initrd. I can't figure out how to make an initrd from the installer to replace the default. I tried running mkinitrd from the installer, but it seemed to just give an infinite stream of errors.

Is there a way to get a system that can boot up with the mmc_block module? There must be some way I'm missing to make an initrd from the installer.
 
Old 10-05-2020, 01:21 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Sorry to be the bearer of bad news. It's not going to happen, so give up. btw, it's usually mmcblk0 when you mean the entire thing, and mmcblk0p1, mmcblk0p2 etc to refer to partitions.

The BIOS isn't set up to do it off any 'select boot option' You need usb support AND a specific driver for the card reader.
So mark this solved, and get yourself a usb key. Slackware's Alien Bob even does a live usb script for building his slackware-live distro.
 
Old 10-05-2020, 01:24 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
The next problem is that the installed system doesn't boot with the mmc_block module,
I'm not sure how well mmc is supported with the stock 14.2 kernel, Slackware-current may be a better choice. I think you will need to use the generic kernel with an initrd to be able to boot your installation. chroot into the system run
Code:
sh /usr/share/mkinitrd/mkinitrd_command_generator.sh
will ouput an initrd.gz command to run, that you will need to modify to load the modules for the initrd
 
1 members found this post helpful.
Old 10-05-2020, 01:38 PM   #4
skush
LQ Newbie
 
Registered: Aug 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Sorry to be the bearer of bad news. It's not going to happen, so give up.
Update: it did happen. And yes I know how partition names work. There was no mmcblk0; for some reason in the installer it was mmcblk1. After installing, it's back to 0... The BIOS also posed no problem.

Quote:
Originally Posted by colorpurple21859 View Post
chroot into the system run
Code:
sh /usr/share/mkinitrd/mkinitrd_command_generator.sh
will ouput an initrd.gz command to run, that you will need to modify to load the modules for the initrd
Chroot was exactly what I needed. I should have thought of that. Thanks!
 
Old 10-05-2020, 02:58 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
As far as the installer not recognizing the mmc partition, that has been fixed in -current and will work in the upcoming 15.0 release (NVMe support was also added, which was missing from the 14.2 installer as well).
 
Old 10-05-2020, 03:02 PM   #6
skush
LQ Newbie
 
Registered: Aug 2013
Posts: 26

Original Poster
Rep: Reputation: Disabled
Yes, I am on -current. The installer recognised it, but only once I modded probe to skip the non-existent mmcblk0. I think that still counts as a bug. I'm not sure why the device numbering was messed up to begin with though. Perhaps it would be good to change the installer to use the by-partuuid links.
 
Old 10-05-2020, 04:15 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
As an aside, It can happen that a drive name changes during installation (e.g. an USB drive that disconnects then reconnects). In this case in the new Slint installer I will check that when the user chooses the target drive then just before partitionning it the name field of lsblk output remains associated with the same serial field as when probing the drives initially, to avoid partitioning and formatting a wrong drive

PS I have considered but discarded the wwn (world wide name) for that purpose, as e.g. a SD card I own doesn't have one.

Last edited by Didier Spaier; 10-05-2020 at 04:38 PM.
 
  


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
[SOLVED] MMC block device driver option selected gives erase_scan_block error on jffs2 booting SIG_SEGV Linux - Kernel 0 05-15-2013 06:44 AM
Ricoh Sd/mmc Card Reader Won't Read Mmc Cards it-s Linux - Hardware 4 07-02-2011 05:49 AM
What is the relationship between the linux mmc media driver and mmc host driver? archieval Linux - General 0 07-13-2009 12:36 AM
Embedded MMC/SD card driver problems!!base on linux2.6.14.1 SharkCN Linux - Newbie 1 07-30-2008 09:46 PM
Accessing MMC card in Laptop built-in MMC Card Slot with knoppix bröggle Linux - Laptop and Netbook 0 08-18-2004 08:44 AM

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

All times are GMT -5. The time now is 09: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