Switch to generic kernel - unsuccessful
Hi, everyone! I am sorry in advance for my incompetence but i am stuck. I also know the fact that there are similar threads, for which i apologize one more time but i have project to work on and without solving this problem it will be hard to continue. I am running Slackware 14.1; kernel version 3.10.17. I installed it 2 days before and wanted to switch to the generic kernel but after i tried to do this, my system refused to boot the generic kernel. Running mkinitrd - getting this
Code:
ls: cannot access /sys/module/*_hcd/drivers/*: No such file or directory |
Switching to a generic kernel isn't too difficult, but can be challenging the first time you attempt it.
This first link helped me a lot in figuring it out. http://mirrors.slackware.com/slackwa.../README.initrd Make sure you install the three packages below (the generic kernel is probably already installed, but I installed it again anyway just to be safe). Once these packages are installed you can either follow the instructions in the link above, or the instructions in the link below - about half way down the page. kernel-generic-smp-3.10.17_smp-i686-3.txz kernel-modules-smp-3.10.17_smp-i686-3.txz mkinitrd-1.4.8-i486-1.txz http://docs.slackware.com/slackware:beginners_guide |
Quote:
|
I understand from the other thread that you are using mkinitrd_command_generator.sh, not mkinitrd.
Here are two solutions. (1) If you do not have LVM or LUKS or raid partitions, and you don't boot from a USB device, use mkinitrd - it's not difficult. See the file /boot/README.initrd . or (2) If you do have LVM or LUKS or raid partitions, but you don't boot from a USB device, edit /usr/share/mkinitrd/mkinitrd_command_generator.sh to comment out lines 453-455 Code:
# If we use any USB module, try to determine the Host Controller |
Quote:
Code:
[4.175116][<ffffffff8154fc46>]?rest_init+0x80/0x80 |
What steps are you taking to switch to a generic kernel?
|
Quote:
|
Quote:
Code:
$ ls -1 /sys/module/ Code:
$ lsusb -v There's code in mkinitrd_command_generator.sh that tells me that it should not attempt to find USB controllers unless one of your important boot devices (keyboard or perhaps a disk drive) needs USB to function. You aren't the first one to have had this problem recently. |
2 Attachment(s)
Quote:
|
OK, this is odd.
According to the lsusb output, you have an EHCI host controller on your system. You also don't appear to have a USB keyboard or a USB drive. Your /sys/module listing also shows an ehci_hcd subdirectory. I noticed some odd behavior while running some tests. I'm going to open another thread to ask about it (since it has something to do with what you're seeing). OK, there's something odd in my normal user's profile that changes the way my interactive shell works compared to running the same command within a shell script. A brand new user with no special changes to the account works as expected. Please run the following command while logged in as root: Code:
for i in $(ls -Ld /sys/module/*_hcd/drivers/*); do ls -L ${i}; done Code:
~$ for i in $(ls -Ld /sys/module/*_hcd/drivers/*); do ls -L ${i}; done |
Quote:
Code:
ls: cannot access /sys/module/*_hcd/drivers/*: No such file or directory |
OK, try this:
As root, edit the file /usr/share/mkinitrd/mkinitrd_command_generator.sh and change line 238 from Code:
for i in $(ls -Ld /sys/module/*_hcd/drivers/*); do Code:
for i in $(/bin/ls -Ld /sys/module/*_hcd/drivers/*); do |
Quote:
|
Just maybe the permission bits have been screwed up? (like no read access for anyone, including root)
|
As root, what do you get when you run...
Code:
for i in $(/bin/ls -Ld /sys/module/*_hcd/drivers/*); do /bin/ls -L ${i}; done As root, what does the command... Code:
alias As root, what does the command... Code:
/bin/ls -Ld /sys/module/ehci_hcd/drivers/* I've seen an issue where a user had 'ls' aliased to something stupid, which would break some of the above commands. (That user, by the way, was my normal login user on my main system. I fixed that alias this morning due to this thread.) |
All times are GMT -5. The time now is 10:38 PM. |