LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-10-2007, 10:14 PM   #1
ghutch
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
New Slack Install w/ 2.6 Kernel w/ modules


Any help would be great! This will be a long post!

My goal is to accomplish a fresh Slackware 11 install with the latest stable 2.6 kernel (2.6.21.4) as of this posting. To date I usually do a full install of slackware, then use the default bare.i kernel that is on the cd. Once I get xwin working (xorgconfig) and make sure my serial mouse, nic, cd and sound are working I have a great running machine... Then theres the 2.6 kernel... (imagine jaws theme music here)

I have sucessfully installed the 2.6 kernel by following the instructions below:

(one question before reading the steps I take, at the point of make menuconfig is this where I choose the modules to install? I just go through and turn off all scsi option because I have no scsi devices, all the other stuff is mostly greek to me so i dont mess with any of it)

pico /etc/lilo.conf
Add this to your lilo.conf
image = /boot/vmlinuz.old
root = /dev/hda1
label = slack.old
read-only

Note: Replace /dev/hda1 with the correct location of your root partition.

Now we need to edit the Makefile to make sure your new kernel is copied to the appropriate directory.

Open /usr/src/linux/Makefile in a text editor, scroll to line 74 and
uncomment the the line #export INSTALL_PATH=/boot.

So...cd /usr/src/linux

pico Makefile

scroll to line 74 and
uncomment the the line #export INSTALL_PATH=/boot.

make menuconfig (make your changes here...when done, save your new configuration)
make dep (sets all the kernel dependencies)
make clean (removes un-needed files)
make bzImage (builds the kernel)
make
make install (installs, moves and renames all the needed files and updates lilo)
make modules (builds all the kernel modules)
make modules_install (installs the modules)

Note: The 'make install' command is the one that most don't use but it works fine in slackware as long as you have prepared lilo.conf and edited Makefile according to the instructions above.

Reboot!


Once having done this I can successfully boot 2.6 kernel! YAY!
BUT, nothing works... No mouse, no network card, and I get an AGP error that zooms by when the kernel is booting. There is no telling what else is not working as well (usb?). Apparently I have no modules I am guessing. If my nic and mouse arent working, I presume neither is my cd or sound so I dont even bother trying those. KDE will start, but once again I have no mouse and KDE with no mouse is pretty annoying. Takes me an hour to figure out the right keystrokes to navigate without a mouse. I've tried modprobe in it's various forms to no avail.

What I would really like is a clean full install, that goes as smooth as a 2.4 kernel install, with modules and all. My machine is a normal old Pent4 2.6 with IDE hd's and cd. A Chaintech AGP Nvidia video and a 3com 3c905* nic. Nothing unusal in the hardware dept.

So when doing a clean install, and it asks me for the disk1 that has the 2.4 bare.i kernel, at this point can I put in a disk that has the newly downloaded 2.6 kernel and go from there? How do I make sure it installs the modules for my serial mouse, agp video, nic and sound? Can I burn the 2.6 kernel to a disk with the modules in tgz fashion and do it that way?

It bothers me to do a 2.4 install then a 2.6 install. I'm one of those anal guys that likes only what I want on a machine and when I do it the 2.4 to 2.6 way I know, and it bothers me, that I have 2.4 kernel remnents on my hd...

Please keep any replys simple for this simpleton!

Last edited by ghutch; 06-10-2007 at 10:18 PM.
 
Old 06-11-2007, 04:54 AM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
Quote:
make menuconfig (make your changes here...when done, save your new configuration)
make dep (sets all the kernel dependencies)
make clean (removes un-needed files)
make bzImage (builds the kernel)
make
make install (installs, moves and renames all the needed files and updates lilo)
make modules (builds all the kernel modules)
make modules_install (installs the modules)
this is the old method used with 2.4.xx kernels, i just did what you described (fresh slack-11 install and built a 2.6.21.4 kernel)

run it like this:

make menuconfig (set your system up as desired)

make

make modules_install

just use midnight commander to copy over System.map and bzImage over to boot, if you want make a symlink from /boot/bzImage named vmlinuz (if you like) or just adjust /etc/lilo.conf accordingly...

as far as the mouse & keyboard problem that could be either with /etc/xorg.conf or not enabling those items in the kernel, (just a guess) when running make menuconfig take your time and pay close attention to detail and check for submenus that like to hide...

Last edited by Okie; 06-11-2007 at 04:56 AM.
 
  


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
Kernel 2.6 using rc.modules-2.4 in Slack 11.0? thethinker Slackware 9 05-12-2007 08:14 AM
kernel 2.6.4 slack 9.1 modules error + more zhilla Slackware 9 03-18-2004 05:43 AM
slack kernel modules obfuscation?!?! Sammy2ooo Slackware 3 02-28-2004 01:11 PM
Slack 9.1:kernel not remembering loaded modules. abhay Slackware 3 12-12-2003 09:43 AM
New install of slack 9.1: modprobe can't load any modules. ralpha6 Slackware 21 10-24-2003 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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