LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Building Kernel using older config - Slack Current (http://www.linuxquestions.org/questions/slackware-14/building-kernel-using-older-config-slack-current-802096/)

dc_eros 04-15-2010 12:34 AM

Building Kernel using older config - Slack Current
 
Hi there,

I've been updating regularly to -current on my laptop. Except for the kernel. The kernel that works for my laptop was:

2.6.29 - huge smp
2.6.33 - huge smp

all the others from dec 2009 until the current, even the rebuild of 2.6.33 does not work. So my question is:

Is is okay to build the current kernel 2.6.33.1 using the config of 2.6.33? I tried a diff and reveals that there are few lines that are changed, more or less 10.

I'm now copying the source and will build them at home. Anyway, I have a test partition to break things :D

TIA...

ponce 04-15-2010 02:26 AM

yes: you have to unpack the kernel tarball, copy the config file in the root of the unpacked sources as .config and then issue a
Code:

make oldconfig
but triple-check the ide/sata driver section to use the new drivers with an additional
Code:

make menuconfig
related to this, remember that if you got ide disks their name won't be /dev/hda, for example, but /dev/sda, so you have to fix /etc/lilo.conf-/etc/fstab accordingly.

dc_eros 04-15-2010 04:25 AM

I will be using the 2.6.33 (first build) config. How was it possible with a slackbuild?

I want to use the slackbuild at source/kernel/. Anyway, I did that slackbuild before (it was 2.6.29) and I read the README on kernel source. Anyway, I will post tomorrow the result if it works.

Yes, I'm aware of the /dev/sd*, /dev/sr* thing since 2.6.33 works for my laptop. What disappoints me was that during the rebuild of 2.6.33 few days after the update in march, the ChangeLog.txt says that it was rebuild for compatibility with other hardwares. But what happened is the opposite for me. :D

business_kid 04-15-2010 05:18 AM

I wish you luck.I went to 2.6.33.2 for the radeon drm stuff. I used make oldconfig, and had the following issues

1. Screen went off during bootup. Eventually sorted this - experimental options that work for all others don't work for me.
2. It did something funny with the swap, and it started taking loads of time loading the swap. Older kernels would not load it at all. I eventually ran 'dd if=/dev/zero of=/dev/swap skip=1024" and then mkswap
3. I lost wifi, or to be precise, wpa_supplicant no longer works it's magic. Haven't sorted this yet despite several rebuilds (See my thread in this forum)
4. It started taking quite a while mounting ext3 partitions

I suggest reading the help carefully, and know your box

dc_eros 04-15-2010 11:19 AM

Thanks for wishing me luck :D

I did it! I'm posting this 11PM Philippine time. Too sleepy now.

I've been carefully studying every kernel updates available in -current and I have tested all of them and I know what worked and what not. This is what I did so far:

The first release of kernel-huge-smp-2.6.33_smp-i686-1.txz worked for me.

I installed the kernel 2.6.33.1. Copied the config of 2.6.33 to /usr/src/2.6.33.1/.config and run

make oldconfig
make bzImage

Go to source/k/kernel-huge-smp and run the slackbuild
Install the 2.6.33.1-smp module package from slackware/a packages.
Run the slackbuild for kernel modules smp

Then install the two. Fix the rc.modules symlink and reboot.
It boots and X works out of the box (same as 2.6.33).

After learning so, I copied to packages to my main slackware and installed them.

Thanks all, marking this solved.

dc_eros 04-15-2010 11:19 AM

Thanks for wishing me luck :D

I did it! I'm posting this 11PM Philippine time. Too sleepy now.

I've been carefully studying every kernel updates available in -current and I have tested all of them and I know what worked and what not. This is what I did so far:

The first release of kernel-huge-smp-2.6.33_smp-i686-1.txz worked for me.

I installed the kernel 2.6.33.1. Copied the config of 2.6.33 to /usr/src/2.6.33.1/.config and run

make oldconfig
make bzImage

Go to source/k/kernel-huge-smp and run the slackbuild
Install the 2.6.33.1-smp module package from slackware/a packages.
Run the slackbuild for kernel modules smp

Then install the two. Fix the rc.modules symlink and reboot.
It boots and X works out of the box (same as 2.6.33).

After learning so, I copied to packages to my main slackware and installed them.

Thanks all, marking this solved.


All times are GMT -5. The time now is 12:45 PM.