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 09-05-2020, 03:34 PM   #1
drigohighlander
LQ Newbie
 
Registered: Mar 2012
Posts: 28

Rep: Reputation: Disabled
Slackware current no sd card module found


Hi I'm long date Slackware user
I'm trying to install it in my new netbook which have a microSD card reader.
Ubuntu detects it well in mmcblk3...but Slackware doens't.
I think that its because Slackware installation doenst have the module rtsx_usb_ms (which ubuntu has).
How can I fix that in the installer?
 
Old 09-05-2020, 05:23 PM   #2
ul7
Member
 
Registered: Jan 2020
Posts: 115

Rep: Reputation: 30
Quote:
Originally Posted by drigohighlander View Post
Hi I'm long date Slackware user
I'm trying to install it in my new netbook which have a microSD card reader.
Ubuntu detects it well in mmcblk3...but Slackware doens't.
I think that its because Slackware installation doenst have the module rtsx_usb_ms (which ubuntu has).
How can I fix that in the installer?
Here

The thing is, I have no clue how you will manage kernel modifications. That is way above my tiny Linux brain atm. Also, I don't know if that is what you are talking about. If you parse "rtsx_usb_ms" in that link, you will see a match. Let me know if this helps or more importantly doesn't help. I don't want to send you in a direction that I can't manage myself. Although I just kind of did...
 
Old 09-05-2020, 05:26 PM   #3
drigohighlander
LQ Newbie
 
Registered: Mar 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Didn't help I talking about slackware current, seems it didnt have this module compiled.

But more important it is not included in Slackware Current Setup. What seems a fault.

Last edited by drigohighlander; 09-05-2020 at 05:27 PM.
 
Old 09-05-2020, 05:35 PM   #4
ul7
Member
 
Registered: Jan 2020
Posts: 115

Rep: Reputation: 30
Quote:
Originally Posted by drigohighlander View Post
Didn't help I talking about slackware current, seems it didnt have this module compiled.

But more important it is not included in Slackware Current Setup. What seems a fault.
I think the sd devices in --current are labeled "sda and sda1." I could be wrong. Not sure what those are. Well sorry I couldn't be much help. I'll keep looking into that.

Last edited by ul7; 09-05-2020 at 05:36 PM.
 
Old 09-05-2020, 05:47 PM   #5
drigohighlander
LQ Newbie
 
Registered: Mar 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Yeah but its a netbook which have an internal SSD that directs to mmcblk1 and an embedded card reader that directs to mmcblk3 (Ubuntu 20.04.1) the module I think is responsible for that is rtsx_usb_ms and it seems Slackware current doesnt have it included
 
Old 09-06-2020, 12:56 PM   #6
ul7
Member
 
Registered: Jan 2020
Posts: 115

Rep: Reputation: 30
Quote:
Originally Posted by drigohighlander View Post
Yeah but its a netbook which have an internal SSD that directs to mmcblk1 and an embedded card reader that directs to mmcblk3 (Ubuntu 20.04.1) the module I think is responsible for that is rtsx_usb_ms and it seems Slackware current doesnt have it included
Why don't you try installing 14.2 stable? Is there any real reason why you need current? From what I have learned in the short time here, stable is rock solid. I am on 14.2 right now cruising. Zero issues, except myself and my ignorance. You seem to know a lot more than I do. I would give 14.2 a shot. I'm sure others may agree.
 
Old 09-08-2020, 10:41 PM   #7
drigohighlander
LQ Newbie
 
Registered: Mar 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Solved

Hi, finally (after a few days) I made it. thanks for the feedback, and trying to help.
My english is little bad but we can go through it, I guess..

Just a note, Slackware 14.2 didn't boot up, I just got a black screen, I didn't spend time on it because I wanted Slackware current which had elogind and droplineGnome

Ok first, a little of background knowledge.
I'm using something like an ezbook x3 pro I don't know (in Brazil they sale it with a different brand) but I think its the same.
This notebook has a eMMC "hd" in the main board which makes Linux see this as /dev/mmcblk0 (not /dev/sd*) ok, that's not a problem.
It has a microSD reader, and my notebook came with a 32GB microsd card, and I wanted to install Slackware on it, because in the eMMC already had Windows10

The problem is, this microSD reader is not part of mainboard, but a hub connected to it, a realtek hub, and Slackware didn't see it.
and I mainly created this thread because Slackware Current Setup didn't see this microSD reader, and the modules needed was not available in setup.
I am a long date Slackware (patreon) user and I really want to see it out of the box with those things, but ok, its Slackware, isn't?

So I installed Slackware in the microSD card with a usb card reader, and it worked because the setup saw this as /dev/sdb (/dev/sda was the usb Slackware installer stick).
But when I put the microsd on the notebook card reader it didn't boot up because huge.s kernel didn't see the microsd in the notebook (without the external card reader).
So here the steps:

First you need Grub...actually I don't know if you can achieve with elilo, but lets do with grub.
But before it, you need an EFI partition in the eMMC "hd", this partition need to have enough space to hold the kernel and the initrd
(Windows 10 creates this partition with 100MB which is not enough, 200MB you can go well...).
Ok with an EFI partition set up, you need to install Grub in the eMMC
(you can do all this with a live distribution or a chroot Slackware in the external usb microsd reader)

grub-install /dev/mmcblk0
This command will create an entry in the UEFI menu, and a folder in your EFI partition (Slackware will create a Slackware folder, Ubuntu will create an ubuntu folder, it depends on the distribution)
in this folder you will put the grub.cfg because the system will be in the mmcblk1 (the microsd) but Grub didn't see it too. (I didn't have time to fix that)
the grub.cfg generated by ubuntu, tells grub to get grub.cfg from the mmcblk1 but grub didn't see this "hd" so you need to put your grub.cfg (with all the entries) inside this folder, or you got a black screen with a grub command line but you still can load a grub.cfg with the configfile command.
(Actually grub is very simple and fun to work with)
in the same folder you will put the Slackware kernel (huge.s) and configure grub to get the kernel from this folder. You can do it with UUID, /dev/(***) or (hd0,gpt1) (if your EFI is the first partition), you just need to tell where is your EFI partition and the folder where the kernel is.
now you have to create the initrd for Slackware, if you in a live distribution you will need to chroot in your Slackware installation
don't forget to bind the necessary system files before chroot (I bind dev proc and sys, don't now which one is really important)
You will create the initrd with this command

mkinitrd -c -k 5.4.63 -f ext4 -r /dev/mmcblk1p2 -m \
usb-storage:ehci-hcd:ehci-pci:xhci-pcihci-pci:xhci-hcd:uhci-hcd:\
rtsx_usb_ms:usbnet:memstick:mac_hid:r8152:mii:hid_multitouch:mac_hid:usbhid:rtsx_usb_sdmmc:rtsx_usb: hid_generic:mmc_block:ahci:sdhci_pci:cqhci:i2c_i801:sdhci:i2c_hid:libahci:hid:jb2:mbcache:\
ext4 -u -o /boot/initrd.gz

Just copy and paste in your console or create a shell script.

The order of the modules is very important (I didn't know that), so don't change that, the important module is the rtsx one
This will create an initrd which will load the realtek card reader in the right order.
(That was a fight because with the wrong order, sometimes Slackware boot didn't see the microsd, sometimes it loads the microsd as mmcblk0 and the eMMC as mmcblk1
sometimes it unload the eMMC so mmcblk0 didn't exist anymore...I studied which modules Ubuntu loaded and in which order, and I make the initrd, and it worked!)
Now the microSD is set in /dev/mmcblk1 (your Slackware partition will be something like /dev/mmcblk1p1)
After that, you just copy the initrd.gz generated to your Slackware folder in the EFI partition
Configure grub.cfg to load the initrd.gz
Put rootwait in the kernel parameter.

Done.

It was a pleasant linux travel, I learn a lot (in this four days) about Grub, UEFI, efibootmgr, mkinitrd, and kernel modules.
Thanks you all and hope it will help someone.
(Brazil).

Here is my relevant Grub configuration
linux (hd0,gpt1)/efi/Slackware/vmlinuz root=UUID=a5d1f242-b47f-4b59-851b-6e0f32da9d46 ro rootwait rootdealy=5
initrd (hd0,gpt1)/efi/Slackware/initrd.gz

Here is my relevant Slackware fstab
/dev/mmcblk1p2 / ext4 defaults 1 1

Just a footnote if you install grub from another distribution instead Slackware sometimes grubx64.efi had the grub.cfg location hardcoded in the binary
For example: Ubuntu creates a folder ubuntu in the EFI partition, and its grubx64.efi will always look on this folder no matter which folder you choose.
Just a note in case you got a grub black screen...

Last edited by drigohighlander; 09-08-2020 at 10:57 PM.
 
  


Reply

Tags
modules, rtsx, setup, slackware -current



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] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
modprobe: Module ext4 not found. no dependencies for kernel module 'ext4' found Aquarius_Girl Linux - Newbie 6 01-25-2012 05:07 AM
[SOLVED] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM
Slackware64 -current vs Slackware -current or Slackware onebuck Slackware 16 06-23-2009 01:19 PM

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

All times are GMT -5. The time now is 12:57 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
Open Source Consulting | Domain Registration