LinuxQuestions.org
Visit Jeremy's Blog.
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 02-17-2018, 11:17 PM   #31
sungjin
Member
 
Registered: Jul 2017
Location: Seoul
Distribution: Slackware
Posts: 47

Rep: Reputation: Disabled

Quote:
Originally Posted by volkerdi View Post
It's always been traditional to build into the huge kernel any modules for storage controllers that might be found in common computer systems, especially laptops. What modules do you find loaded from the installer? Unless doing so creates conflicts elsewhere, these could be candidates for changing from =m to =y on the huge kernel.
First of all, sorry to bring this old thread back today.

Recently, I bought a small laptop from lenovo.

https://www3.lenovo.com/us/en/laptop.../p/88IP10S0803

I wanted a lightweight machine with long battery life, and I'm quite satified with this machine.

However, as you can expect, this machine also came with eMMC disk, and this is the reason I revive this post :-)



As mentioned already, the huge kernel of 14.2 can not boot from eMMC, because it lacks mmc modules. I was able to boot the machine with the combination of EFI, elilo, generic kernel and initrd. However, I think it would be much better if the huge kernel directly boot the machine, thus making slackware more user-friendly.

What lacks in the huge kernel is that CONFIG_MMC_BLOCK. Currently it is set as =m, not =y. I'm not saying that this is only module need to boot from eMMC. I'm just saying that the huge kernel needs some modification in the configuration. I will investigate exactly which modules are required, if needed.

Surely I know that this thread is somewhat old, so I checked the configuration of recent kernels, but, unfortunately, both kernels - 4.4.115 of 14.2 and 4.14.19 of current - do not include this module as builtin.



I've been using slackware since I was a freshman in the CS dept, and all of my machines run on slackware. Yes, I love it. Thank you very much.

However, at the same time, I think slackware can be loved much more if we polish it just a little bit. (Definitely I do not want to make a debate, but, the ubuntu installer takes care of these eMMC things cleanly. In fact, I tested this new laptop with ubuntu installer if there is an error or not.)

Recap, all I want is that the tradition keeps going. And to do this, I think it would be better to include eMMC support :-)

Quote:
Originally Posted by volkerdi View Post
It's always been traditional to build into the huge kernel any modules for storage controllers that might be found in common computer systems, especially laptops.

Thank you very much.

Best regards,
sungjin.
 
1 members found this post helpful.
Old 02-18-2018, 05:22 AM   #32
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,013

Rep: Reputation: Disabled
@sungjin: I suggest that you create a new thread with a relevant title explicitly mentioning eMMC, so your request gets the attention it deserves.

See also:
https://www.linuxquestions.org/quest...ls-4175622257/
and
https://www.linuxquestions.org/quest...4/#post5782598
 
Old 02-18-2018, 12:27 PM   #33
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 1,757

Rep: Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602Reputation: 5602
Quote:
Originally Posted by sungjin View Post
As mentioned already, the huge kernel of 14.2 can not boot from eMMC, because it lacks mmc modules. I was able to boot the machine with the combination of EFI, elilo, generic kernel and initrd. However, I think it would be much better if the huge kernel directly boot the machine, thus making slackware more user-friendly.

What lacks in the huge kernel is that CONFIG_MMC_BLOCK. Currently it is set as =m, not =y. I'm not saying that this is only module need to boot from eMMC. I'm just saying that the huge kernel needs some modification in the configuration. I will investigate exactly which modules are required, if needed.
If you take a look in modules.dep, you'll see that mmc_block.ko requires mmc_core.ko. In total, there are 38 modules that have a dependency on mmc_core.ko. Because we use the same set of modules with both the generic and the huge kernels, we're not able to set CONFIG_MMC_BLOCK=y for the huge kernel without also building in mmc_core, which will in turn prevent several dozen modules from loading properly in the huge kernel.

There are two proper solutions to this. One would be to add CONFIG_LOCALVERSION="-huge" to the huge config, and package an additional set of modules dedicated to the huge kernel. Might as well list that idea first, since I'm not going to do it.

The other solution is to get rid of the huge kernel and move entirely to using generic+initrd, something I've been wanting to do for years.
 
6 members found this post helpful.
Old 02-19-2018, 01:26 AM   #34
sungjin
Member
 
Registered: Jul 2017
Location: Seoul
Distribution: Slackware
Posts: 47

Rep: Reputation: Disabled
Thank you for your kind word.

In fact, I used second solution, i.e., generic+initrd.

The only inconvenience is that we can not boot into newly installed system directly, need usb installer stick again, and then chroot to the system to run mkinitrd.
 
1 members found this post helpful.
Old 02-19-2018, 10:28 PM   #35
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,204

Rep: Reputation: 3943Reputation: 3943Reputation: 3943Reputation: 3943Reputation: 3943Reputation: 3943Reputation: 3943Reputation: 3943Reputation: 3943Reputation: 3943Reputation: 3943
Quote:
Originally Posted by sungjin View Post
The only inconvenience is that we can not boot into newly installed system directly, need usb installer stick again, and then chroot to the system to run mkinitrd.
You can generate the initrd right after installation before rebooting the system. Your filesystem is mounted under /mnt/, so you should just need to chroot /mnt, generate the initrd (using -k if the kernel version is different), edit your /etc/lilo.conf, write lilo, exit the chroot, and then reboot.
 
Old 02-19-2018, 11:18 PM   #36
sungjin
Member
 
Registered: Jul 2017
Location: Seoul
Distribution: Slackware
Posts: 47

Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
You can generate the initrd right after installation before rebooting the system. Your filesystem is mounted under /mnt/, so you should just need to chroot /mnt, generate the initrd (using -k if the kernel version is different), edit your /etc/lilo.conf, write lilo, exit the chroot, and then reboot.
Thank you for your post.

Yes, it's definitely true that we can chroot "before" rebooting the system. But, in fact, it's only possible if we already expect initrd is needed. And I did not know that CONFIG_MMC_BLOCK is crucial until I rebooted the system. And consequently I had to search linuxquestions as usual :-) (Thanks all of you for the kind word!)

So it's like a chicken and egg game. In moderate desktop with /dev/sda as first disk (sata HDD or SDD), huge kernel usually works, then generic kernel is recommended. However with this eMMC laptop, I found that generic+initrd is not just recommended but required just "after" rebooting the system.

In short, I had to reboot the newly installed system to figure out I need to implant an initrd.gz before rebooting the system :-(

I think it might be my fault, because I still prefer lilo and huge kernel. Maybe it's the time for me to switch to generic kernel to prevent this mess. These days new hardwares like EFI, NVME and eMMC come continuously.

Thank you again for your remark. Have a nice day!


Best regards,
sungjin.

Last edited by sungjin; 02-19-2018 at 11:24 PM.
 
  


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
PCH Sound Card not detected on elementary OS 0.3.2 with HP Spectre x360 CWezo10 Linux - Newbie 7 12-25-2015 04:12 AM
Installing Slackware on HP Pavillion x360 abilolado Slackware - Installation 2 10-13-2015 11:52 AM
setting correct screen resolution - OpenSuse.org and HP Pavilion 13 x360 CharlieBucket Linux - Hardware 6 10-29-2014 02:09 AM
How can i remove (x360) hdd so i can mount it in vmware xp on ubuntu 9.04 host. SysOvErLoAd Linux - Newbie 7 10-13-2009 10:17 AM
Kubuntu Feisty Fawn ICS, X360 gets no DNS, laptop gets no internet drache777 Linux - Networking 0 05-12-2007 07:16 PM

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

All times are GMT -5. The time now is 05:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration