Unix Technical Forum

Slackware and Kernel 2.6.20

This is a discussion on Slackware and Kernel 2.6.20 within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I compiled bzImage and modules using a make menuconfig of my previous homemade and working 2.6.18.5 kernel. Everything works ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 08:58 PM
Hufnus
 
Posts: n/a
Default Slackware and Kernel 2.6.20

I compiled bzImage and modules using a make menuconfig of
my previous homemade and working 2.6.18.5 kernel. Everything
works fine except insmod/modprobe. It will not find any of the
modules in /lib/modules/2.6.20, it just doesnt seem to know
where to look because I can insmod fine if I provide a full
path to the .ko and I look out for the module dependencies.

Upgraded to the latest module-init-tools-3.2.2 and no effect.

The module mapping files in /lib/modules/x.x.xx.xx/ look
consistent in size with the 2.6.18.5 ones.

Kernel 2.6.18.5 was made with gcc 3.4.5 and the new one with
gcc 3.4.6.

Where should I look or what can I test to get hints to what is
going here...

thxs
TonyB


There are 10 types of people in this world, those that read
binary and those who don't!

--
__ __ _ I N C. http://www.sysdev.org
/ __|\\// __|| \ __ __ / tonyb@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities
|___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 08:58 PM
Peter
 
Posts: n/a
Default Re: Slackware and Kernel 2.6.20

On Sun, 11 Feb 2007 02:31:19 -0800, Hufnus wrote:

> I compiled bzImage and modules using a make menuconfig of
> my previous homemade and working 2.6.18.5 kernel. Everything
> works fine except insmod/modprobe. It will not find any of the
> modules in /lib/modules/2.6.20, it just doesnt seem to know
> where to look because I can insmod fine if I provide a full
> path to the .ko and I look out for the module dependencies.
>
> Upgraded to the latest module-init-tools-3.2.2 and no effect.
>
> The module mapping files in /lib/modules/x.x.xx.xx/ look
> consistent in size with the 2.6.18.5 ones.
>
> Kernel 2.6.18.5 was made with gcc 3.4.5 and the new one with
> gcc 3.4.6.
>
> Where should I look or what can I test to get hints to what is
> going here...
>
> thxs
> TonyB
>
>
> There are 10 types of people in this world, those that read
> binary and those who don't!
>


sounds like you forgot to boot off the new kernel.

--
Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 08:58 PM
John K. Herreshoff
 
Posts: n/a
Default Re: Slackware and Kernel 2.6.20

Peter wrote:

> On Sun, 11 Feb 2007 02:31:19 -0800, Hufnus wrote:
>
>> I compiled bzImage and modules using a make menuconfig of
>> my previous homemade and working 2.6.18.5 kernel. Everything
>> works fine except insmod/modprobe. It will not find any of the
>> modules in /lib/modules/2.6.20, it just doesnt seem to know
>> where to look because I can insmod fine if I provide a full
>> path to the .ko and I look out for the module dependencies.
>>
>> Upgraded to the latest module-init-tools-3.2.2 and no effect.
>>
>> The module mapping files in /lib/modules/x.x.xx.xx/ look
>> consistent in size with the 2.6.18.5 ones.
>>
>> Kernel 2.6.18.5 was made with gcc 3.4.5 and the new one with
>> gcc 3.4.6.
>>
>> Where should I look or what can I test to get hints to what is
>> going here...
>>
>> thxs
>> TonyB
>>
>>
>> There are 10 types of people in this world, those that read
>> binary and those who don't!
>>

>
> sounds like you forgot to boot off the new kernel.
>


Maybe. Kernel.org reminds us to start with a new config file each time we
upgrade the kernel. It's a pain, but may solve your problem, if you are
booting the new one. I'd make sure you had the new kernel running:
uname -r will reveal what you are running kernel wise.

If you have the new kernel running...

John.

--
jkherr at power - net dot net (wipe the spaces)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 08:58 PM
Hufnus
 
Posts: n/a
Default Re: Slackware and Kernel 2.6.20

On Sun, 11 Feb 2007 11:14:13 -0500
"John K. Herreshoff" <nope@not.here> wrote:

> Peter wrote:
>
> > On Sun, 11 Feb 2007 02:31:19 -0800, Hufnus wrote:
> >
> >> I compiled bzImage and modules using a make menuconfig of
> >> my previous homemade and working 2.6.18.5 kernel.

> >Everything > works fine except insmod/modprobe. It will not
> >find any of the > modules in /lib/modules/2.6.20, it just
> >doesnt seem to know > where to look because I can insmod fine
> >if I provide a full > path to the .ko and I look out for the
> >module dependencies. >
> >> Upgraded to the latest module-init-tools-3.2.2 and no

> >effect. >
> >> The module mapping files in /lib/modules/x.x.xx.xx/ look
> >> consistent in size with the 2.6.18.5 ones.
> >>
> >> Kernel 2.6.18.5 was made with gcc 3.4.5 and the new one

> >with > gcc 3.4.6.
> >>
> >> Where should I look or what can I test to get hints to what

> >is > going here...
> >>
> >> thxs
> >> TonyB
> >>
> >>
> >> There are 10 types of people in this world, those that read
> >> binary and those who don't!
> >>

> >
> > sounds like you forgot to boot off the new kernel.
> >

>
> Maybe. Kernel.org reminds us to start with a new config file
> each time we upgrade the kernel. It's a pain, but may solve
> your problem, if you are booting the new one. I'd make sure
> you had the new kernel running: uname -r will reveal what
> you are running kernel wise.
>
> If you have the new kernel running...
>
> John.
>
> --
> jkherr at power - net dot net (wipe the spaces)
>


I did not upgrade a machine I built modules and kernel on
machine 1, the development machine and moved it to a new HD,
chroot to it and lilo'd the device. That means:

copy the modules to /lib/modules/2.6.20
copy System.map to /boot
copy vmlinuz to /
copy lilo.conf to /etc
and form the chroot jail execute lilo.

Done it a million times, since that is my
job. This time, insmod cant find the modules.
I do the procedure with 2.6.18.5 and it works
fine on the same target HD.

TonyB



There are 10 types of people in this world, those that read
binary and those who don't!

--
__ __ _ I N C. http://www.sysdev.org
/ __|\\// __|| \ __ __ / tonyb@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities
|___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 08:58 PM
Hufnus
 
Posts: n/a
Default Re: Slackware and Kernel 2.6.20

On Sun, 11 Feb 2007 11:14:13 -0500
"John K. Herreshoff" <nope@not.here> wrote:

> Peter wrote:
>
> > On Sun, 11 Feb 2007 02:31:19 -0800, Hufnus wrote:
> >
> >> I compiled bzImage and modules using a make menuconfig of
> >> my previous homemade and working 2.6.18.5 kernel.

> >Everything > works fine except insmod/modprobe. It will not
> >find any of the > modules in /lib/modules/2.6.20, it just
> >doesnt seem to know > where to look because I can insmod fine
> >if I provide a full > path to the .ko and I look out for the
> >module dependencies. >
> >> Upgraded to the latest module-init-tools-3.2.2 and no

> >effect. >
> >> The module mapping files in /lib/modules/x.x.xx.xx/ look
> >> consistent in size with the 2.6.18.5 ones.
> >>
> >> Kernel 2.6.18.5 was made with gcc 3.4.5 and the new one

> >with > gcc 3.4.6.
> >>
> >> Where should I look or what can I test to get hints to what

> >is > going here...
> >>
> >> thxs
> >> TonyB
> >>
> >>
> >> There are 10 types of people in this world, those that read
> >> binary and those who don't!
> >>

> >
> > sounds like you forgot to boot off the new kernel.
> >

>
> Maybe. Kernel.org reminds us to start with a new config file
> each time we upgrade the kernel. It's a pain, but may solve
> your problem, if you are booting the new one. I'd make sure
> you had the new kernel running: uname -r will reveal what
> you are running kernel wise.
>
> If you have the new kernel running...
>
> John.
>
> --
> jkherr at power - net dot net (wipe the spaces)
>



What I suspect is that somewhere in the build's .config file,
when you run make menuconfig, the kernel must be told where
to look for the modules: normally, "/lib/modules/$VER".

That I must have been screwed up somehow...

TonyB


There are 10 types of people in this world, those that read
binary and those who don't!

--
__ __ _ I N C. http://www.sysdev.org
/ __|\\// __|| \ __ __ / tonyb@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities
|___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 08:58 PM
~kurt
 
Posts: n/a
Default Re: Slackware and Kernel 2.6.20

John K. Herreshoff <nope@not.here> wrote:
>
> Maybe. Kernel.org reminds us to start with a new config file each time we
> upgrade the kernel. It's a pain, but may solve your problem, if you are


It does? I've only read not to use the same .config for a major version
jump, such as from 2.4.x to 2.6.x. Of course, the user must run
"make config/oldconfig/menuconfig/xconfig" to set things up.

- Kurt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 08:58 PM
Dan C
 
Posts: n/a
Default Re: Slackware and Kernel 2.6.20

On Sun, 11 Feb 2007 11:14:13 -0500, John K. Herreshoff wrote:

> Maybe. Kernel.org reminds us to start with a new config file each time we
> upgrade the kernel. It's a pain, but may solve your problem, if you are


Where is that recommended by Kernel.org? My normal method is to copy the
previous kernel's config over to the new source tree, and then "make
oldconfig". After answering those questions, it's the usual process:
make bzImage
make modules
make modules_install

and then copy some things around and reboot. Been working fine for years
that way, here.

--
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 08:58 PM
loki harfagr
 
Posts: n/a
Default Re: Slackware and Kernel 2.6.20

On Sun, 11 Feb 2007 15:25:54 -0600, Dan C wrote:

> On Sun, 11 Feb 2007 11:14:13 -0500, John K. Herreshoff wrote:
>
>> Maybe. Kernel.org reminds us to start with a new config file each time we
>> upgrade the kernel. It's a pain, but may solve your problem, if you are

>
> Where is that recommended by Kernel.org? My normal method is to copy the
> previous kernel's config over to the new source tree, and then "make
> oldconfig". After answering those questions, it's the usual process:



I'll just add a few remarks/complements

That part was simplified this way for 2.6.* :

> make bzImage
> make modules


make

> make modules_install


That part's the same, though I'd recommend to use a normal account :
-------
su danc
cd .../pathtonewkernel
cp /boot/previouskernel-config .config
make oldconfig
[ maxe [menu|x]]config ]
make
su
make modules_install
-------

>
> and then copy some things around and reboot.


Mmm, copy some :
cp arch/yourach/boot/bzimage /boot/newkernintown
cp .config /boot/newkernintown-config
[ cp System.map /boot/newkernintown-System.map ]

remember to build your estranged modules, like, for me,
NVIDIA, loop-aes and ALSA, don't forget to build the initrd if you're
using it and ***Don't forget to include your new kernel in the /etc/lilo.conf ***
I'll suppose you now won't forget to run 'lilo [-v[2]]' ;D)

> Been working fine for years
> that way, here.


Same here, but for a few "saturday night specials" when the lkml went
red hot but nothing to compare with the permanent stress of installing
any Win** for someone who had to *really* use it :-)

(...
besides, the latest QEmu (0.9.0) really worths a try, as far as my
tests seem to show, the new image model .qcow2 allows to store
snapshots of a running system which for my (licensed) winXP means
it'll boot in less than 10 seconds while I'm here typing this
meanwhile listening to some music on the net while waiting my
DVD backup tell me to go to bed ;D)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 08:58 PM
Hufnus
 
Posts: n/a
Default Re: Slackware and Kernel 2.6.20

On Sun, 11 Feb 2007 02:31:19 -0800
Hufnus <tonyb@sysdev.org> wrote:

> I compiled bzImage and modules using a make menuconfig of
> my previous homemade and working 2.6.18.5 kernel. Everything
> works fine except insmod/modprobe. It will not find any of
> the modules in /lib/modules/2.6.20, it just doesnt seem to
> know where to look because I can insmod fine if I provide a
> full path to the .ko and I look out for the module
> dependencies.
>
> Upgraded to the latest module-init-tools-3.2.2 and no effect.
>
> The module mapping files in /lib/modules/x.x.xx.xx/ look
> consistent in size with the 2.6.18.5 ones.
>
> Kernel 2.6.18.5 was made with gcc 3.4.5 and the new one with
> gcc 3.4.6.
>
> Where should I look or what can I test to get hints to what is
> going here...


Thanks to all who contributed and tried to help me with my
Linux 2.6.20 Slackware modules problem.

I produce a free embedded slackware distro. It runs on any
compact flash! You can pick it up at my site below, but wait
until v1.3.5 and my 14th release is fully tested ...

The problem was that Linux-2.6.20 was a BIGGG change from
2.6.18 & 2.6.19. The in memory footprint increased and many
new ways of doing things. First, some of the problems with
the modules was tight memory on my Advantech i486 breadboard.
The second, some of my kernel patches had to be adjusted and
I hadnt caught all.

It was a tedious week, but the feeling of getting it all
working in my own embedded i486/pxa255 Slackware distro makes
it all worth it!

Again thanks for your suggestions,
TonyB



--
__ __ _ I N C. http://www.sysdev.org
/ __|\\// __|| \ __ __ / tonyb@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities
|___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 08:59 PM
alisonken1
 
Posts: n/a
Default Re: Slackware and Kernel 2.6.20

On Feb 11, 9:51 am, Hufnus <t...@sysdev.org> wrote:
> On Sun, 11 Feb 2007 11:14:13 -0500
> "John K. Herreshoff" <n...@not.here> wrote:


<snip>

> I did not upgrade a machine I built modules and kernel on
> machine 1, the development machine and moved it to a new HD,
> chroot to it and lilo'd the device. That means:
>
> copy the modules to /lib/modules/2.6.20
> copy System.map to /boot
> copy vmlinuz to /
> copy lilo.conf to /etc
> and form the chroot jail execute lilo.
>


If I remember correctly, an easier way of accomplishing this is to
specify an alternate directory to install the new files to:

make ROOT=</path-to-new-base-directory> install
make ROOT=</path-to-new-base-directory> modules_install
cp /etc/lilo </path-to-new-base-directory>
lilo -C </path-to-new-base-directory>/etc/lilo.conf -b /dev/<new-boot-
disk>


<snip>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com