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 02-05-2015, 05:19 AM   #1
TomToOmUch
LQ Newbie
 
Registered: Apr 2014
Location: Montpellier, France
Distribution: Slackware, Slackware, Slackware, Ubuntu (elementary OS)
Posts: 6

Rep: Reputation: Disabled
Talking Slackware boot problem on Dedibox XC


Hi Slackers and not,

I finished a fresh install of an MLES, following this good HOWTO on a Dedibox XC :

Code:
[root@sd-69721:~] # lspci
00:00.0 Host bridge: Intel Corporation Avoton SSA-Cunit (rev 02)
00:01.0 PCI bridge: Intel Corporation Avoton PCIe Root Port 1 (rev 02)
00:02.0 PCI bridge: Intel Corporation Avoton PCIe Root Port 2 (rev 02)
00:03.0 PCI bridge: Intel Corporation Avoton PCIe Root Port 3 (rev 02)
00:0e.0 Host bridge: Intel Corporation Avoton RAS (rev 02)
00:0f.0 IOMMU: Intel Corporation Avoton RCEC (rev 02)
00:13.0 System peripheral: Intel Corporation Avoton SMBus 2.0 (rev 02)
00:14.0 Ethernet controller: Intel Corporation Avoton GbE x4 SGMII (rev 03)
00:14.1 Ethernet controller: Intel Corporation Avoton GbE x4 SGMII (rev 03)
00:16.0 USB controller: Intel Corporation Avoton USB Enhanced Host Controller (rev 02)
00:18.0 SATA controller: Intel Corporation Avoton AHCI SATA3 Controller (rev 02)
00:1f.0 ISA bridge: Intel Corporation Avoton PCU (rev 02)
00:1f.3 SMBus: Intel Corporation Avoton PCU SMBus (rev 02)
01:00.0 PCI bridge: ASPEED Technology, Inc. AST1150 PCI-to-PCI Bridge (rev 03)
02:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 30)
I then create my initrd.gz with the /etc/mkinitrd.conf file :
Code:
# /etc/mkinitrd.conf
SOURCE_TREE="/boot/initrd-tree"
CLEAR_TREE="1"
OUTPUT_IMAGE="/boot/initrd.gz"
KERNEL_VERSION="$(uname -r)"
KEYMAP="fr"
MODULE_LIST="mbcache:jbd2:ext4" --> using /usr/share/mkinitrd/mkinitrd_command_generator.sh *
ROOTDEV="/dev/sda3"
ROOTFS="ext4"
RESUMEDEV="/dev/sda2"
RAID="0"
LVM="0"
UDEV="1"
MODCONF="0"
WAIT="1"
* when using mkinitrd_command_generator.sh, the system returns an error saying : "ls: impossible d'accéder à /sys/module/*_hcd/drivers/*: Aucun fichier ou dossier de ce type

Everything goes well running mkinitrd -F

I then adapt my /etc/lilo.conf file to run my Slackware system on the Generic Kernel 3.10.17 :
Code:
# /etc/lilo.conf
lba32
append="ipv6.disable=1 vt.default_utf8=1"
boot= /dev/sda
compact
message = /boot/boot_message.txt
change-rules
reset
vga = normal
image = /boot/vmlinuz-generic-3.10.17
  initrd = /boot/initrd.gz
  root = /dev/sda3
  label = MLES-14.1-64bit
  read-only
Running lilo returns me the usual video issue warning, nothing bad though.

I then reboot && exit and my Dedibox doesn't ping up again.
The only solution I found was configuring the bootloader back to use the huge Slackware kernel...I'd like to thin my kernel down to the strict minimum...

Could you please give me hints to how to handle this please ?
 
Old 02-05-2015, 12:33 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Salut et bienvenue à LQ,

I cannot give you a real explanation on what did go wrong but just a hint:

Quote:
Originally Posted by TomToOmUch View Post
when using mkinitrd_command_generator.sh, the system returns an error saying : "ls: impossible d'accéder à /sys/module/*_hcd/drivers/*: Aucun fichier ou dossier de ce type
That's because this function in the script fails:
Code:
# Determine what USB Host Controller is in use
function add_usb_hcd() {
  local USBMOD
  for i in $(ls -Ld /sys/module/*_hcd/drivers/*); do 
    if ls -L $i | grep -q "[0-9a-f]*:" ; then
      USBMOD=$( echo $i | cut -f4 -d/ | tr "_" "-")
      [ -n "$MLIST" ] && MLIST="$MLIST:$USBMOD" \
                      || MLIST="$USBMOD"
    fi
  done
  echo $MLIST
}
The problem is that in recent kernels the layout of /sys has changed as pointed out in this post so the drivers are now exposed in the directories /sys/module/*_pci/drivers/

I'm not sure that your real problem be linked to that though.

Incidentally I don't think that thinning the kernel to the strict minimum provides much practical advantage (been there, done that long ago) but that's only my opinion.

Last edited by Didier Spaier; 02-05-2015 at 02:28 PM. Reason: wording modified
 
Old 02-05-2015, 02:23 PM   #3
TomToOmUch
LQ Newbie
 
Registered: Apr 2014
Location: Montpellier, France
Distribution: Slackware, Slackware, Slackware, Ubuntu (elementary OS)
Posts: 6

Original Poster
Rep: Reputation: Disabled
Salut Didier and thanks a lot for your reply,

in fact, I'll try fixing the initrd problem anyway, at least to be thorough...

However, the server doesn't seem any slower running on the huge kernel !

I'll post further comments on the behavior of the bootloader after fixing the module/driver issue.
It's really weird 'cause in the logs, it seems the server just shutdown and then...nothing...

I'll keep you posted ! Merci encore !
 
Old 02-06-2015, 01:55 AM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by TomToOmUch View Post
Salut Didier and thanks a lot for your reply,

in fact, I'll try fixing the initrd problem anyway, at least to be thorough...

However, the server doesn't seem any slower running on the huge kernel !

I'll post further comments on the behavior of the bootloader after fixing the module/driver issue.
It's really weird 'cause in the logs, it seems the server just shutdown and then...nothing...

I'll keep you posted ! Merci encore !
Hi TomToOmUch,

Looks like you're not far from here. Call me, I'll help you get this sorted out.
 
Old 02-06-2015, 03:22 PM   #5
TomToOmUch
LQ Newbie
 
Registered: Apr 2014
Location: Montpellier, France
Distribution: Slackware, Slackware, Slackware, Ubuntu (elementary OS)
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi,

I solved the initrd issue...Merci Didier !
However it doesn't solve the bootloader issue...so I'll call Master kiki (yeah, you trained me Niki) and keep the thread updated.

'Til next time,
Cheers
Tom
 
  


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
Slackware 12.0: boot problem & sudo / wifi-radar problem War_Ensemble Slackware 7 01-15-2008 09:49 AM
Slackware 10.0 Boot problem. bullium Slackware 8 01-07-2005 03:30 PM

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

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