LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
LinkBack Search this Thread
Old 05-11-2006, 06:08 PM   #1
Chris08
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
Now installed the 2.6 Kernel but still cant get a few things to work!


Hi all,
I managed to install Slackware now, I chooced to copy the 2.6 kernel from the first CD when the installer asked me which kernel to chooce. However, when I rebooted the machine I have no network and I have no sound in the PC speaker either. But it looks like I can login to the system as root. Any ideas? Many thanks for your help!
 
Old 05-11-2006, 09:26 PM   #2
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
hi there Chris08,



If you opt for the test26.s kernel during the install, you won't get the Linux 2.6.13 kernel modules. Because they are in a testing directory, they won't even be available to select during the installation. You will have to install the packages using pkgtool immediately after the installation completes, or immediately after you get the system up.

If you don't have a USB keyboard, it should be fine to do so afterwards, because everything really critical is built in that fat assed test26.s kernel image. However, immediately after the install completes, after exiting the Setup menu, before rebooting, you could use pkgtool. At this stage, your slackware partition(s) should still be mounted under /mnt. Type the pkgtool command.

If you've booted again with the Slackware CD and they aren't mounted, typing pkgtool will dump some instructions and examples to console so that you can mount your partitions under /mnt. You would have to mount your cdrom at /cdrom in this case. (not /mnt/cdrom)

If you have elected to put other parts of the slackware system on separate partitions, for example /usr, /var or whatever, you must mount them all under /mnt after mounting the root filesystem there. Your root filesystem will already have the existing mount point directories for your other partitions. This is where the examples come in handy, if you type pkgtool.

For a simple example, assume the root partition is /dev/hda1, and the cdrom drive is /dev/hdc (/dev/cdrom won't work here while booted with the slackware CD). If you are booting from SATA, your hard disk device could be /dev/sda1 (It's treated as a SCSI device).

If you need to mount your filesystem, at the root prompt:

Remove whatever CD is in the drive, and insert Disk 2.

Code:
mount /dev/hda1 /mnt
mount /dev/hdc /cdrom
cd /cdrom/linux-2.6.13
pkgtool
Otherwise, just type pkgtool



Because we did 'cd /cdrom/linux-2.6.13' before typing pkgtool, we can choose to install packages from the current directory. Otherwise, choose Other and you can type the path to where the 2.6.13 kernel module packages are.



Say Yes to the following two packages, and No to the rest (unless you want to install the kernel-source). Say No to kernel-headers.


alsa-driver-1.0.9b_2.6.13-i486-1
kernel-modules-2.6.13-i486-1


You may have to do it that way, if you have only a USB keyboard to use. (usb support is modular)

It's just as easy to install the kernel modules packages after the system is up.

If you have the Slackware CD set, they are on Disk 2 in the linux-2.6.13 directory. If you don't have the CD, you will need to make sure you have them available. See further below, they can be downloaded. You need the kernel modules and alsa drivers.

When you boot into your installed Slackware system for the first time, log on as root and with Disk 2 in the drive:

Code:
mount /dev/cdrom
cd /mnt/cdrom/linux-2.6.13
installpkg kernel-modules-2.6.13-i486-1.tgz
installpkg alsa-driver-1.0.9b_2.6.13-i486-1.tgz
Reboot after installing these packages (or manually load the desired modules)

Otherwise, if you don't need SATA support, play it safe and use one of the 2.4.31 kernels and install Linux 2.6.13 afterwards.


To install the Linux 2.6 kernel afterwards on Slackware 10.2, go to the linux-2.6.13 directory on the second CD in the Slackware 10.2 set, or download it from one of the slackware ftp mirrors at /pub/slackware/slackware-10.2/testing/packages/linux-2.6.13

The packages you need to install, are:


kernel-generic-2.6.13-i486-1.tgz
kernel-modules-2.6.13-i486-1.tgz
alsa-driver-1.0.9b_2.6.13-i486-1.tgz


Do not install kernel-headers-2.6.13-i386-1.tgz unless you know what you are doing. They are more for compiling glibc. Read the WARNING file in the directory.

To install these packages, do:

Code:
installpkg kernel-generic-2.6.13-i486-1.tgz
installpkg kernel-modules-2.6.13-i486-1.tgz
installpkg alsa-driver-1.0.9b_2.6.13-i486-1.tgz
Note! Installing these packages will change the /boot/vmlinuz symbolic link to point to the new kernel image. If you still want to be able to boot the old kernel, you're going to have to fix that, or edit lilo.conf accordingly.

You may want to install the kernel-source-2.6.13 package if, for example, you need to compile third party drivers (kernel modules)

Now, if you are just using ordinary IDE disk controllers, and the ext2 filesystem this generic kernel should be good to go and you just add a stanza to /etc/lilo.conf as usual. However, if you need to support other storage hardware or other filesystems (such as reiserfs) then you will need to create an initrd image (initial ramdrive) and load it in your lilo.conf kernel stanza. This is a way to support critical drivers as modules, that are needed to boot the system. Mainly disk controllers and filesystems.

To create the initrd, you're first going to have to know what modules you are going to need. Separate them in the command, with colons between them.

For example, if you need to build an initrd to support the ext3 filesystem, you're going to need the jbd module, and the ext3 module. The command to create the initrd is as follows:

Code:
mkinitrd -c -k 2.6.13 -m jbd:ext3
Or, for reiserfs:

Code:
mkinitrd -c -k 2.6.13 -m reiserfs
In your /boot directory, there's a README.initrd file for a bit more info on this. Also, read the man page for mkinitrd on your system. Most every distro does mkinitrd a bit differently, and I like the way this one is implemented.

Once you have your kernel packages installed, and (if necessary) your initrd created, you must add a stanza to /etc/lilo.conf. Put it as the first stanza, below the VGA comments, if you want it to be the default boot choice. (alternatively specify default=2.6.13 or your chosen "label" in the global section of the file)



Note how I've changed the old kernel image to the real filename vmlinuz-ide-2.4.31 because the vmlinuz symbolic link had been changed. I do not believe in using symbolic links for kernel images.

After you make changes to lilo.conf, don't forget to run the lilo command:

Code:
/sbin/lilo
That should be it. If you've done everything correctly your system should boot to the generic 2.6.13 kernel you installed. If it doesn't, then simply boot your old kernel. You probably need to correct the module loading parameters in your initrd. You can simply run the command again to make another and re-run the lilo command.





All of this you can get here as well:

http://www.bitbenderforums.com/vb22/...?postid=311808


Good Luck Chris08!
 
  


Reply

Tags
guide, slackware


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded kernel to 2.6.10 but several things do not work now! parv Fedora 2 02-28-2005 10:22 AM
Installed new kernel 2.6.2: Keyboard only works on USB port and scroll doesn't work objorkum Linux - General 2 02-11-2004 09:59 AM
Just installed Slack need help with a few simple things ChopSueyX Slackware 5 11-25-2003 06:38 PM
Just installed 9.1, need help with some things... Justin33 Slackware 2 10-30-2003 10:15 PM
After kernel update some things dont work Vencalator Linux - Newbie 9 09-18-2003 04:10 AM


All times are GMT -5. The time now is 01:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration