LinuxQuestions.org
Review your favorite Linux distribution.
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-05-2020, 03:15 AM   #196
Petri Kaukasoina
Member
 
Registered: Mar 2007
Posts: 532

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334

It is not very useful to add more and more packages to the root file system, while the photograph shows that the problem is that the kernel can't mount the root file system in the first place. Some needed modules are now still missing from the initrd.
 
Old 07-05-2020, 04:03 AM   #197
Petri Kaukasoina
Member
 
Registered: Mar 2007
Posts: 532

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
Just for fun, try this. Do the chroot thing to get to the Slackware root, and then give these commands:
Code:
cp -rp /lib/modules/5.4.49-smp/kernel /boot/initrd-tree/lib/modules/5.4.49-smp
mkinitrd -k 5.4.49-smp -f ext2 -r /dev/mmcblk0p2 -w 15 -m mmc_core:mmc_block:sdhci:sdhci_acpi:sdhci_pci:usb_storage:xhci_hcd:uas:xhci_pci:ext2 -u -o /boot/initrd.gz
Now your /etc/initrd.gz contains ALL drivers! (Note: do NOT add -c to the mkinitrd command now, so that it will not wipe the modules you just copied in.) Then try to boot the generic-smp kernel with this. If it does not work, try the huge-smp kernel with this.
I hope udevd in the initrd loads any needed modules now in addition to those listed in the mkinitrd -m list.

Last edited by Petri Kaukasoina; 07-05-2020 at 06:21 AM.
 
Old 07-05-2020, 06:15 AM   #198
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,363

Original Poster
Rep: Reputation: 71
Quote:
Originally Posted by colorpurple21859 View Post
It will have to be a wired connection using eth0
Good morning. Yes, I already saw that but unfortunately I only have wi-fi.
 
Old 07-05-2020, 06:31 AM   #199
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,363

Original Poster
Rep: Reputation: 71
Quote:
Originally Posted by Petri Kaukasoina View Post
Just for fun, try this. Do the chroot thing to get to the Slackware root, and then give these commands:
Code:
cp -rp /lib/modules/5.4.49-smp/kernel /boot/initrd-tree/lib/modules/5.4.49-smp
mkinitrd -k 5.4.49-smp -f ext2 -r /dev/mmcblk0p2 -w 15 -m mmc_core:mmc_block:sdhci:sdhci_acpi:sdhci_pci:usb_storage:xhci_hcd:uas:xhci_pci:ext2 -u -o /boot/initrd.gz
Now your /etc/initrd.gz contains ALL drivers! (Note: do NOT add -c to the mkinitrd command now, so that it will not wipe the modules you just copied in.) Then try to boot the generic-smp kernel with this. If it does not work, try the huge-smp kernel with this.
I hope udevd in the initrd loads any needed modules now in addition to those listed in the mkinitrd -m list.
"Now your /etc/initrd.gz contains ALL drivers!": isn't it /boot/initrd.gz?
 
Old 07-05-2020, 06:57 AM   #200
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,363

Original Poster
Rep: Reputation: 71
This is a link colorpurple21859 gave me. In it the chroot sequence is:
Code:
cp -av /dev/* /mnt/dev/
mount --bind /sys /mnt/sys
mount --bind /proc /mnt/proc
chroot /mnt
mount /dev/mmcblk0p1 /boot/efi
Notice the cp command? One other thing: this is the output of lsmod under Debian 10:
Code:
root@darkstar:~# uname -a
Linux darkstar 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux
root@darkstar:~# lsmod
Module                  Size  Used by
fuse                  122880  5
ctr                    16384  2
ccm                    20480  3
cmac                   16384  1
bnep                   24576  2
sd_mod                 61440  3
sg                     36864  0
arc4                   16384  2
intel_rapl             24576  0
iwlmvm                303104  0
intel_powerclamp       16384  0
coretemp               16384  0
kvm_intel             233472  0
kvm                   749568  1 kvm_intel
mac80211              835584  1 iwlmvm
snd_hda_codec_hdmi     57344  1
irqbypass              16384  1 kvm
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
uas                    28672  0
uvcvideo              118784  0
snd_hda_codec_realtek   122880  1
videobuf2_vmalloc      16384  1 uvcvideo
usb_storage            73728  3 uas
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         28672  1 uvcvideo
ghash_clmulni_intel    16384  0
videobuf2_common       53248  2 videobuf2_v4l2,uvcvideo
intel_cstate           16384  0
iwlwifi               249856  1 iwlmvm
rtsx_usb_ms            20480  0
hci_uart              139264  0
snd_hda_intel          45056  4
scsi_mod              249856  4 sd_mod,usb_storage,uas,sg
videodev              212992  3 videobuf2_v4l2,uvcvideo,videobuf2_common
memstick               16384  1 rtsx_usb_ms
joydev                 24576  0
pcspkr                 16384  0
btqca                  16384  1 hci_uart
serio_raw              16384  0
snd_hda_codec         151552  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
btusb                  53248  0
btrtl                  16384  2 hci_uart,btusb
btbcm                  16384  2 hci_uart,btusb
media                  45056  2 videodev,uvcvideo
btintel                24576  2 hci_uart,btusb
acer_wmi               24576  0
snd_hda_core           94208  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
sparse_keymap          16384  1 acer_wmi
cfg80211              774144  3 iwlmvm,iwlwifi,mac80211
snd_hwdep              16384  1 snd_hda_codec
wmi_bmof               16384  0
snd_pcm               114688  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
bluetooth             647168  28 btrtl,btqca,btintel,hci_uart,btbcm,bnep,btusb
iTCO_wdt               16384  0
snd_timer              36864  1 snd_pcm
iTCO_vendor_support    16384  1 iTCO_wdt
snd                    94208  16 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
soundcore              16384  1 snd
processor_thermal_device    16384  0
intel_soc_dts_iosf     16384  1 processor_thermal_device
drbg                   28672  1
ansi_cprng             16384  0
ac                     16384  0
battery                20480  0
tpm_crb                16384  0
tpm_tis                16384  0
tpm_tis_core           20480  1 tpm_tis
ecdh_generic           24576  2 bluetooth
tpm                    65536  3 tpm_tis,tpm_crb,tpm_tis_core
rfkill                 28672  7 acer_wmi,bluetooth,cfg80211
pwm_lpss_platform      16384  0
pwm_lpss               16384  1 pwm_lpss_platform
rng_core               16384  1 tpm
int3400_thermal        16384  0
pcc_cpufreq            16384  0
int3403_thermal        16384  0
intel_int0002_vgpio    16384  1
evdev                  28672  15
acpi_thermal_rel       16384  1 int3400_thermal
acpi_pad               24576  0
int340x_thermal_zone    16384  2 int3403_thermal,processor_thermal_device
ip_tables              28672  0
x_tables               45056  1 ip_tables
autofs4                49152  2
ext4                  741376  2
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  122880  1 ext4
crc32c_generic         16384  0
fscrypto               32768  1 ext4
ecb                    16384  0
rtsx_usb_sdmmc         28672  0
rtsx_usb               20480  2 rtsx_usb_sdmmc,rtsx_usb_ms
mmc_block              45056  3
crc32c_intel           24576  2
i915                 1736704  6
xhci_pci               16384  0
xhci_hcd              266240  1 xhci_pci
sdhci_pci              45056  0
cqhci                  28672  1 sdhci_pci
i2c_algo_bit           16384  1 i915
usbcore               294912  7 xhci_hcd,rtsx_usb,usb_storage,uvcvideo,btusb,xhci_pci,uas
sdhci                  61440  1 sdhci_pci
aesni_intel           200704  4
drm_kms_helper        208896  1 i915
psmouse               172032  0
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
mmc_core              176128  5 sdhci,rtsx_usb_sdmmc,cqhci,mmc_block,sdhci_pci
glue_helper            16384  1 aesni_intel
drm                   495616  7 drm_kms_helper,i915
i2c_i801               28672  0
lpc_ich                28672  0
mfd_core               16384  2 rtsx_usb,lpc_ich
i2c_designware_pci     16384  0
i2c_designware_core    20480  1 i2c_designware_pci
usb_common             16384  1 usbcore
thermal                20480  0
wmi                    28672  2 acer_wmi,wmi_bmof
video                  45056  2 acer_wmi,i915
i2c_hid                28672  0
hid                   135168  1 i2c_hid
button                 16384  0
root@darkstar:~#
And
Code:
root@darkstar:~# lsmod|grep mmc
rtsx_usb_sdmmc         28672  0
rtsx_usb               20480  2 rtsx_usb_sdmmc,rtsx_usb_ms
mmc_block              45056  3
mmc_core              176128  5 sdhci,rtsx_usb_sdmmc,cqhci,mmc_block,sdhci_pci
root@darkstar:~#
Is this of any help?

Last edited by stf92; 07-05-2020 at 07:10 AM.
 
Old 07-05-2020, 07:37 AM   #201
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,644

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
stf92 the only thing I was pointing you to in that link was the mkinitrd section, the rest of it you was suppose to ignore because it was for an efi system.

Code:
It is not very useful to add more and more packages to the root file system
The op only install the a/ series and was getting errors when trying to bump up to a newer kernel from -current, so recommended at least to have ap, l n, also install

would suggest to add the rtsx_usb_sdmmc rtsx_usb to the
Code:
mkinitrd ..... -m mmc_core:mmc_block:rtsx_usb_sdmmc:rtsx_usb.....

Last edited by colorpurple21859; 07-05-2020 at 07:45 AM.
 
Old 07-05-2020, 07:39 AM   #202
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,363

Original Poster
Rep: Reputation: 71
Arrow

Quote:
Originally Posted by Petri Kaukasoina View Post
Just for fun, try this. Do the chroot thing to get to the Slackware root, and then give these commands:
Code:
cp -rp /lib/modules/5.4.49-smp/kernel /boot/initrd-tree/lib/modules/5.4.49-smp
mkinitrd -k 5.4.49-smp -f ext2 -r /dev/mmcblk0p2 -w 15 -m mmc_core:mmc_block:sdhci:sdhci_acpi:sdhci_pci:usb_storage:xhci_hcd:uas:xhci_pci:ext2 -u -o /boot/initrd.gz
Now your /etc/initrd.gz contains ALL drivers! (Note: do NOT add -c to the mkinitrd command now, so that it will not wipe the modules you just copied in.) Then try to boot the generic-smp kernel with this. If it does not work, try the huge-smp kernel with this.
I hope udevd in the initrd loads any needed modules now in addition to those listed in the mkinitrd -m list.
The cp command gave this:
Code:
 
cp: cannot stat '/lib/modules/5.4.49-smp/kernel': No such file or directory
ERROR: No /lib/modules/5.4.49-smp kernel modules tree found for kernel "5.4.49-smp"
bash-4.3#
There seems to be no 5.5.49 modules in /mnt/lib/modules!
 
Old 07-05-2020, 07:43 AM   #203
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,363

Original Poster
Rep: Reputation: 71
I do have ap and n installed (4.4.14). Only l is missing. But if you like I can install l too.
 
Old 07-05-2020, 07:50 AM   #204
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,644

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
these are the commands you need to run for the chroot
Code:
mount /dev/mmcblk0p2 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount -o bind /run /mnt/run
chroot /mnt
you need to run them everytime you start/reboot your computer

Last edited by colorpurple21859; 07-05-2020 at 07:51 AM.
 
Old 07-05-2020, 08:35 AM   #205
Petri Kaukasoina
Member
 
Registered: Mar 2007
Posts: 532

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
Quote:
Originally Posted by stf92 View Post
"Now your /etc/initrd.gz contains ALL drivers!": isn't it /boot/initrd.gz?
Yes, it was a typo.
 
Old 07-05-2020, 08:39 AM   #206
Petri Kaukasoina
Member
 
Registered: Mar 2007
Posts: 532

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
Quote:
Originally Posted by stf92 View Post
Is this of any help?
Yes, you could try to add modules from that list. For example rtsx_usb:rtsx_usb_sdmmc:rtsx_usb_ms could not harm in the module list of the mkinitrd command.
 
Old 07-05-2020, 08:41 AM   #207
Petri Kaukasoina
Member
 
Registered: Mar 2007
Posts: 532

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
Quote:
Originally Posted by stf92 View Post
The cp command gave this:
Code:
 
cp: cannot stat '/lib/modules/5.4.49-smp/kernel': No such file or directory
ERROR: No /lib/modules/5.4.49-smp kernel modules tree found for kernel "5.4.49-smp"
bash-4.3#
There seems to be no 5.5.49 modules in /mnt/lib/modules!
You should
Code:
installpkg kernel-modules-smp-5.4.49_smp-i686-1.txz
 
Old 07-05-2020, 09:12 AM   #208
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,363

Original Poster
Rep: Reputation: 71
Quote:
Originally Posted by Petri Kaukasoina View Post
You should
Code:
installpkg kernel-modules-smp-5.4.49_smp-i686-1.txz
But I don't have 5.4.49. I only have 14.2 on the stick, which comes with 4.4.19. Ahhh... I lost the two 5.4.49 kernels, the kernel-firmware and the kernel-modules when I installed, yesterday night, 14.2 from scratch. I have to installed them again, which will take quite a lot of time. Plus, I am having trouble with slackpkg. There is something wrong in /etc/slackpkg/mirrors:
Code:
bash-4.3# slackpkg update

			Downloading ftp://mirrors.us.kernel.org/slackware/slackware-14.2/GPG-KEY...
--2020-07-05 11:11:50--  ftp://mirrors.us.kernel.org/slackware/slackware-14.2/GPG-KEY
           => ‘/tmp/slackpkg.ETjI1w/gpgkey’
Resolving mirrors.us.kernel.org (mirrors.us.kernel.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘mirrors.us.kernel.org’
Updating the package lists...
	Downloading...
			Downloading ftp://mirrors.us.kernel.org/slackware/slackware-14.2/ChangeLog.txt...
--2020-07-05 11:11:50--  ftp://mirrors.us.kernel.org/slackware/slackware-14.2/ChangeLog.txt
           => ‘/tmp/slackpkg.ETjI1w/ChangeLog.txt’
Resolving mirrors.us.kernel.org (mirrors.us.kernel.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘mirrors.us.kernel.org’

Error downloading from ftp://mirrors.us.kernel.org/slackware/slackware-14.2/.
Please, check your mirror and try again.

bash-4.3#
How can I fix it?

Last edited by stf92; 07-05-2020 at 09:15 AM.
 
Old 07-05-2020, 09:19 AM   #209
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,644

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
Quote:
when I installed, yesterday night, 14.2 from scratch
Things like this we need to know so we know where your at on this. Did you copy the /etc/resolv.conf from debian to slackware /etc and did you run dhcpcd from within slackware chroot
 
Old 07-05-2020, 09:20 AM   #210
Petri Kaukasoina
Member
 
Registered: Mar 2007
Posts: 532

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
Download the modules package using debian, copy it to the mounted slackware partition, chroot to slackware, installpkg it. You don't need slackpkg for it.
 
  


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
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 11:35 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