LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Problem on recompiling kernel (http://www.linuxquestions.org/questions/linux-from-scratch-13/problem-on-recompiling-kernel-375688/)

satimis 10-22-2005 05:51 AM

Problem on recompiling kernel
 
Hi folks,

Building LiveCD on BLFS 6.1

Preliminary steps;
Formating /dev/hda7 (a spare partition for building LiveCD) and duplicating /dev/hda6 (BLFS 6.1) on it. Rebooted to LiveCD making sure it working the same way as /dev/hda6 (BLFS 6.1). Rebooted again and started FC3. Following;

Beginners Guide To Creating A Live CD With LFS 6.0
http://www.linuxfromscratch.org/hint...-udev-nptl.txt
to build LiveCD

After recompiling kernel rebooted FC3 and started LiveCD to continue building LiveCD.

Now the problem came. "loop" and "sound" seemingly can't co-exist as "module". I almost spent half day to recompile kernel meeting certain difficulty

Steps performed

# make clean/distclean (tried both)
# make mrproper
# make menuconfig
# make
# make modules_install

The .config file seemed not storing data saved.

$ ls -al /usr/src/linux-2.6.11.12/ | grep config
Code:

-rw-r--r--  1 root root  29707 Oct 22 16:40 .config
-rw-r--r--  1 root root    5146 Oct 22 16:40 .config.cmd
-rw-r--r--  1 root root  29707 Oct 22 16:40 .config.old
-rw-------  1 root root  29322 Oct 22 15:50 .config.save.1

Each time on running "make menuconfig" I have to select all follwing items again.

1)
File systems --> Miscellaneous filesystems -->
<*> SquashFS 2.2 - Squashed file system support(NEW)

2)
Device drivers --> Block devices -->
<*> RAM disk support[*] Initial RAM disk (initrd) support

3)
Device drivers --> Block devices -->
<M> Loopback device support
(not <*> as suggested)
(Remark: it must be enabled as Module. <*> did not work)

4)
To enable PPP support
Device Drivers ---> Networking support --->
<*> PPP (point-to-point protocol) support

5)
Sound
Device Drivers --> Sound --> Adcance Linux Sound Architecture
(On selecting "Adcanced Linux Sound Architecture as <M> all following <M> prompted

<M> Advanced Linux Sound Architecture
<M> Sequencer support
< > Sequencer dummy client
<M> OSS Mixer API
<M> OSS PCM (digital audio) API[*] OSS Sequencer API

6)
Device Drivers --> Sound --> Adcance Linux Sound Architecture --->
PCI ---> <M> VIA 82C686A/B, 8233/8235 AC97 Controller

7)
Processor type and features ---> Processor family (Athlon/Duron/K7)
--->
---> (X) Athlon/Duron/K7
(Remark: it is only allowed to select one item here)[*] Generic x86 support

On running;
# make modules_install
Code:

  INSTALL drivers/acpi/ibm_acpi.ko
  INSTALL drivers/acpi/video.ko
  INSTALL drivers/base/firmware_class.ko
  INSTALL drivers/block/loop.ko
  INSTALL drivers/char/agp/intel-mch-agp.ko
  INSTALL drivers/net/dummy.ko
  INSTALL drivers/net/s2io.ko
  INSTALL drivers/scsi/dpt_i2o.ko
  INSTALL drivers/scsi/ipr.ko
  INSTALL drivers/scsi/sata_sis.ko
  INSTALL drivers/scsi/sata_sx4.ko
  INSTALL drivers/usb/input/touchkitusb.ko
  INSTALL drivers/usb/misc/cytherm.ko
  INSTALL drivers/usb/misc/phidgetservo.ko
  INSTALL lib/libcrc32c.ko
  INSTALL net/ipv4/netfilter/ipt_NOTRACK.ko
  INSTALL net/ipv4/netfilter/iptable_raw.ko
  INSTALL sound/core/oss/snd-mixer-oss.ko
  INSTALL sound/core/oss/snd-pcm-oss.ko
  INSTALL sound/core/seq/oss/snd-seq-oss.ko
  INSTALL sound/core/seq/snd-seq-device.ko
  INSTALL sound/core/seq/snd-seq-midi-event.ko
  INSTALL sound/core/seq/snd-seq-midi.ko
  INSTALL sound/core/seq/snd-seq.ko
  INSTALL sound/core/snd-page-alloc.ko
  INSTALL sound/core/snd-pcm.ko
  INSTALL sound/core/snd-rawmidi.ko
  INSTALL sound/core/snd-timer.ko
  INSTALL sound/core/snd.ko
  INSTALL sound/drivers/mpu401/snd-mpu401-uart.ko
  INSTALL sound/pci/ac97/snd-ac97-codec.ko
  INSTALL sound/pci/snd-intel8x0.ko
  INSTALL sound/pci/snd-via82xx.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.6.11.12-sound; fi

Then
# cp arch/i386/boot/bzImage /boot/lfscdkernel && cp System.map /boot/
# depmod -a
# modprobe loop
Code:

FATAL: Error inserting loop (/lib/modules/2.6.11.12-sound/kernel/drivers/block/loop.ko): Invalid module format
# modprobe snd-pcm-oss
Code:

WARNING: Error inserting snd (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd.ko): Invalid module format
WARNING: Error inserting snd_mixer_oss (/lib/modules/2.6.11.12-sound/kernel/sound/core/oss/snd-mixer-oss.ko): Invalid module format
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd-pcm.ko): Invalid module format
FATAL: Error inserting snd_pcm_oss (/lib/modules/2.6.11.12-sound/kernel/sound/core/oss/snd-pcm-oss.ko): Invalid module format

# modprobe snd-seq-oss
Code:

WARNING: Error inserting snd (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd.ko): Invalid module format
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.11.12-sound/kernel/sound/core/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_seq (/lib/modules/2.6.11.12-sound/kernel/sound/core/seq/snd-seq.ko): Invalid module format
WARNING: Error inserting snd_seq_midi_event (/lib/modules/2.6.11.12-sound/kernel/sound/core/seq/snd-seq-midi-event.ko): Invalid module format
FATAL: Error inserting snd_seq_oss (/lib/modules/2.6.11.12-sound/kernel/sound/core/seq/oss/snd-seq-oss.ko): Invalid module format

I tried to discover the cause of unabling saving .config without reult.

Any suggestion? TIA

(Remark: "squashfs2.2-r2" has been installed and patched to the kernel. Would it be the cause?)

BR
satimis

mr_demilord 10-22-2005 06:53 AM

Quote:

# make clean/distclean (tried both)
# make mrproper
# make menuconfig
# make
# make modules_install
Should be
# make clean && make mrproper
# make menuconfig
# make bzImage or make <------- compiles the kernel
# make modules <--------------- you forgot this! This option compiles the modules
# make modules_install < this installs/copies the modules to the proper location.

You get the error because the modules aren't compiled


Quote:

depmod -a
depmod is depraced and is not needed in the 2.6 branch of the kernel.

satimis 10-22-2005 08:28 AM

Hi mr_demilord,

Tks for your advice.

Problem still remained. Step performed as follows;

# make clean && make mrproper
# make menuconfig

Here I can't resolve why the items previously selected either as modules OR enabled disappeared. All became unselected < > / [ ]. It seems they can't be saved before existing menuconfig.

# make modules
Code:

  CHK    include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  Building modules, stage 2.
  MODPOST

# make modules_install
Code:

  INSTALL drivers/acpi/ibm_acpi.ko
  INSTALL drivers/acpi/video.ko
  INSTALL drivers/base/firmware_class.ko
  INSTALL drivers/char/agp/intel-mch-agp.ko
  INSTALL drivers/net/dummy.ko
  INSTALL drivers/net/s2io.ko
  INSTALL drivers/scsi/dpt_i2o.ko
  INSTALL drivers/scsi/ipr.ko
  INSTALL drivers/scsi/sata_sis.ko
  INSTALL drivers/scsi/sata_sx4.ko
  INSTALL drivers/usb/input/touchkitusb.ko
  INSTALL drivers/usb/misc/cytherm.ko
  INSTALL drivers/usb/misc/phidgetservo.ko
  INSTALL lib/libcrc32c.ko
  INSTALL net/ipv4/netfilter/ipt_NOTRACK.ko
  INSTALL net/ipv4/netfilter/iptable_raw.ko
  INSTALL sound/core/oss/snd-mixer-oss.ko
  INSTALL sound/core/oss/snd-pcm-oss.ko
  INSTALL sound/core/seq/oss/snd-seq-oss.ko
  INSTALL sound/core/seq/snd-seq-device.ko
  INSTALL sound/core/seq/snd-seq-midi-event.ko
  INSTALL sound/core/seq/snd-seq-midi.ko
  INSTALL sound/core/seq/snd-seq.ko
  INSTALL sound/core/snd-page-alloc.ko
  INSTALL sound/core/snd-pcm.ko
  INSTALL sound/core/snd-rawmidi.ko
  INSTALL sound/core/snd-timer.ko
  INSTALL sound/core/snd.ko
  INSTALL sound/drivers/mpu401/snd-mpu401-uart.ko
  INSTALL sound/pci/ac97/snd-ac97-codec.ko
  INSTALL sound/pci/snd-intel8x0.ko
  INSTALL sound/pci/snd-via82xx.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map
2.6.11.12-sound; fi

# modprobe loop
Code:

FATAL: Module loop not found.
# modprobe snd-pcm-oss
Code:

WARNING: Error inserting snd
(/lib/modules/2.6.11.12-sound/kernel/sound/core/snd.ko
): Invalid module format
WARNING: Error inserting snd_mixer_oss
(/lib/modules/2.6.11.12-sound/kernel/sound/c
ore/oss/snd-mixer-oss.ko): Invalid module format
WARNING: Error inserting snd_page_alloc
(/lib/modules/2.6.11.12-sound/kernel/sound/
core/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer
(/lib/modules/2.6.11.12-sound/kernel/sound/core/
snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm
(/lib/modules/2.6.11.12-sound/kernel/sound/core/sn
d-pcm.ko): Invalid module format
FATAL: Error inserting snd_pcm_oss
(/lib/modules/2.6.11.12-sound/kernel/sound/core/
oss/snd-pcm-oss.ko): Invalid module format

# modprobe snd-seq-oss
Code:

WARNING: Error inserting snd
(/lib/modules/2.6.11.12-sound/kernel/sound/core/snd.ko
): Invalid module format
WARNING: Error inserting snd_seq_device
(/lib/modules/2.6.11.12-sound/kernel/sound/
core/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_timer
(/lib/modules/2.6.11.12-sound/kernel/sound/core/
snd-timer.ko): Invalid module format
WARNING: Error inserting snd_seq
(/lib/modules/2.6.11.12-sound/kernel/sound/core/se
q/snd-seq.ko): Invalid module format
WARNING: Error inserting snd_seq_midi_event
(/lib/modules/2.6.11.12-sound/kernel/so
und/core/seq/snd-seq-midi-event.ko): Invalid module format
FATAL: Error inserting snd_seq_oss
(/lib/modules/2.6.11.12-sound/kernel/sound/core/
seq/oss/snd-seq-oss.ko): Invalid module format

# shutdown -r now

modprobe them again, still the same errors

BR
satimis

freegianghu 10-22-2005 12:39 PM

Try boot your system with new compiled kernel and then modprobe again.

Good luck!

mr_demilord 10-22-2005 12:39 PM

If you recompile the kernel, remember to delete the config file and kernel from the /boot directory and also the lob/modules/version directory.
Also remove the .config file from the kernel source, because if you do make menuconfig, it will look for a previous config file

satimis 10-22-2005 08:23 PM

Hi mr_demilord,

Tks for your advice.

"make mrproper" already deletes ".config". I only know it recently. I need to retain the original .config and enable some additional items only. I don't expect to start from the very beginning.

My recent discovery is I can't enable both "sound" and "loop" as modules simultaneously. I can only enable either of them as module.

B.R.
satimis

mr_demilord 10-23-2005 04:43 AM

Add this to the modprobe.conf in the /etc directory.
Code:

install snd-pcm modprobe -i snd-pcm ; modprobe \
    snd-pcm-oss ; true

Maybe you have to create the file..
This should be in the modprobe.conf

There is also something wrong with the path wich I cannot explain.
The path should be
Code:

/lib/modules/2.6.11.12/kernel/sound/core
But is.
Code:

/lib/modules/2.6.11.12-sound/kernel/sound/core/
:confused: :confused:
That could explain why you cannot load the modules.

I am not sure but can you post the most recent .config file?

satimis 10-23-2005 07:21 AM

Hi mr_demilord,

Tks for your advice.

I'm replying this posting while running FC3, the host.

Quote:

Add this to the modprobe.conf in the /etc directory.
Code:

install snd-pcm modprobe -i snd-pcm ; modprobe \
    snd-pcm-oss ; true


I had this file before.

# cat /mnt/livecd/etc/modprobe.conf
Code:

install snd-pcm modprobe -i snd-pcm ; modprobe snd-pcm-oss ; true
install snd-seq modprobe -i snd-seq ; modprobe snd-seq-oss ; true

Later I removed it. Added following lines to

# cat /mnt/livecd/etc/sysconfig/modules
Code:

snd-pcm-oss
snd-seq-oss

It only works having their modules enabled. So that they can be detected at booting.

Quote:

There is also something wrong with the path wich I cannot explain.
The path should be
Code:

/lib/modules/2.6.11.12/kernel/sound/core
But is.
Code:

/lib/modules/2.6.11.12-sound/kernel/sound/core/
:confused: :confused:

I have both of them;

# ls /mnt/livecd/lib/modules/2.6.11.12/kernel/sound/core/
Code:

seq  snd-hwdep.ko  snd-rawmidi.ko
# ls /mnt/livecd/lib/modules/2.6.11.12-sound/kernel/sound/core/
Code:

oss  seq  snd.ko  snd-page-alloc.ko  snd-pcm.ko  snd-rawmidi.ko  snd-timer.ko
Quote:

That could explain why you cannot load the modules.
My problem is I was only allowed either to enable "snd-pcm-oss" + "snd-seq-oss" as modules OR "loop" as module. Otherwise following problem occured if all enabled as modules;

# modprobe snd-pcm-oss
Code:

WARNING: Error inserting snd (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd.ko): Invalid module format
WARNING: Error inserting snd_mixer_oss (/lib/modules/2.6.11.12-sound/kernel/sound/core/oss/snd-mixer-oss.ko): Invalid module format
WARNING: Error inserting snd_page_alloc (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd-page-alloc.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd-pcm.ko): Invalid module format
FATAL: Error inserting snd_pcm_oss (/lib/modules/2.6.11.12-sound/kernel/sound/core/oss/snd-pcm-oss.ko): Invalid module format

# modprobe snd-seq-oss
Code:

WARNING: Error inserting snd (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd.ko): Invalid module format
WARNING: Error inserting snd_seq_device (/lib/modules/2.6.11.12-sound/kernel/sound/core/seq/snd-seq-device.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/2.6.11.12-sound/kernel/sound/core/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_seq (/lib/modules/2.6.11.12-sound/kernel/sound/core/seq/snd-seq.ko): Invalid module format
WARNING: Error inserting snd_seq_midi_event (/lib/modules/2.6.11.12-sound/kernel/sound/core/seq/snd-seq-midi-event.ko): Invalid module format
FATAL: Error inserting snd_seq_oss (/lib/modules/2.6.11.12-sound/kernel/sound/core/seq/oss/snd-seq-oss.ko): Invalid module format

# modprobe loop
Code:

FATAL: Error inserting loop (/lib/modules/2.6.11.12-sound/kernel/drivers/block/loop.ko): Invalid module format
Quote:

I am not sure but can you post the most recent .config file?
Yes. Here is the .config of LiveCD in respect of "sound" and "loop";
Code:

.....
# General setup
#
CONFIG_LOCALVERSION=""
...
...
CONFIG_CC_ALIGN_LOOPS=0
...
...
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=m
...
...
# Sound
#
CONFIG_SOUND=y

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
...
...
# Generic devices
#
CONFIG_SND_MPU401_UART=m
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
...
...

BR
satimis

mr_demilord 10-23-2005 07:50 AM

# General setup
#
CONFIG_LOCALVERSION="" <=========== strange this doesn't make sence with the /lib/modules/2.6.11.12-sound/

...
...
CONFIG_CC_ALIGN_LOOPS=0
...
...
# Block devices
#
CONFIG_BLK_DEV_FD=y <========== this can be set as module
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=m <=========== is good
...
...
# Sound
#
CONFIG_SOUND=y <=============== this can be set a module

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
...
...
# Generic devices
#
CONFIG_SND_MPU401_UART=m
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
...
...

If you are going to recompile the kernel check to be sure the /boot partition doesn't contain a config file and also be sure to remove the old obsolate .config~ like files in the kernel source directory.
Also delete the directory /lib/modules/2.6.11.12-sound and/or /lib/modules/2.6.11.12

satimis 10-23-2005 08:12 AM

Hi mr_demilord,

<snip>

Quote:

If you are going to recompile the kernel check to be sure the /boot partition doesn't contain a config file
Only one partition, without /boot partition.

Quote:

and also be sure to remove the old obsolate .config~ like files in the kernel source directory.
# ls -al /mnt/livecd/usr/src/linux-2.6.11.12/ | grep .config
Code:

-rw-r--r--  1 root root  29707 Oct 22 22:03 .config
-rw-r--r--  1 root root    5146 Oct 22 22:03 .config.cmd
-rw-r--r--  1 root root  29707 Oct 22 22:02 .config.old
-rw-------  1 root root  29322 Oct 22 15:50 .config.save.1

Quote:

Also delete the directory /lib/modules/2.6.11.12-sound and/or /lib/modules/2.6.11.12
If delete directories "2.6.11.12-sound" and "2.6.11.12", all their subdirectories and files will be deleted as well.

# ls -al /mnt/livecd/lib/modules/2.6.11.12
Code:

total 52
drwxr-xr-x  3 root root 4096 Aug  5 20:24 .
drwxr-xr-x  5 root root 4096 Sep 28 15:16 ..
lrwxrwxrwx  1 root root  24 Oct 20 12:00 build -> /sources/linux-2.6.11.12
drwxr-xr-x  7 root root 4096 Aug  5 20:24 kernel
-rw-r--r--  1 root root 3586 Aug  5 20:24 modules.alias
-rw-r--r--  1 root root  69 Aug  5 20:24 modules.ccwmap
-rw-r--r--  1 root root 3975 Aug  5 20:24 modules.dep
-rw-r--r--  1 root root  73 Aug  5 20:24 modules.ieee1394map
-rw-r--r--  1 root root  132 Aug  5 20:24 modules.inputmap
-rw-r--r--  1 root root  81 Aug  5 20:24 modules.isapnpmap
-rw-r--r--  1 root root 5195 Aug  5 20:24 modules.pcimap
-rw-r--r--  1 root root 3454 Aug  5 20:24 modules.symbols
-rw-r--r--  1 root root 1456 Aug  5 20:24 modules.usbmap
lrwxrwxrwx  1 root root  24 Oct 20 12:00 source -> /sources/linux-2.6.11.12

# ls -al /mnt/livecd/lib/modules/2.6.11.12-sound/
Code:

total 60
drwxr-xr-x  3 root root  4096 Oct 22 22:15 .
drwxr-xr-x  5 root root  4096 Sep 28 15:16 ..
lrwxrwxrwx  1 root root    24 Oct 20 12:00 build -> /usr/src/linux-2.6.11.12
drwxr-xr-x  6 root root  4096 Oct 22 22:15 kernel
-rw-r--r--  1 root root  2911 Oct 22 22:15 modules.alias
-rw-r--r--  1 root root    69 Oct 22 22:15 modules.ccwmap
-rw-r--r--  1 root root  5338 Oct 22 22:15 modules.dep
-rw-r--r--  1 root root    73 Oct 22 22:15 modules.ieee1394map
-rw-r--r--  1 root root  132 Oct 22 22:15 modules.inputmap
-rw-r--r--  1 root root    81 Oct 22 22:15 modules.isapnpmap
-rw-r--r--  1 root root  3648 Oct 22 22:15 modules.pcimap
-rw-r--r--  1 root root 10039 Oct 22 22:15 modules.symbols
-rw-r--r--  1 root root  1456 Oct 22 22:15 modules.usbmap
lrwxrwxrwx  1 root root    24 Oct 22 22:15 source -> /usr/src/linux-2.6.11.12

BR
satimis

mr_demilord 10-23-2005 09:38 AM

You have to recompile the kernel to get it working properly, if you don't delete the /lib/modules/2.6.11.12 and /lib/modules/2.6.11.12-sound you will run into serious troubles, it's also wise to remove older .config files to keep the stuff organised and avoid unneeded problems.

BTW you do compile the kernel in a chroot environment don't you?

satimis 10-23-2005 10:41 AM

Hi mr_demilord,

Quote:

You have to recompile the kernel to get it working properly, if you don't delete the /lib/modules/2.6.11.12 and /lib/modules/2.6.11.12-sound you will run into serious troubles, it's also wise to remove older .config files to keep the stuff organised and avoid unneeded problems.
Sorry I'm not very clear here. Whether you suggest deleting following 2 directories;

1) /lib/modules/2.6.11.12 (that is "2.6.11.12" directory including all subdirectories and files)
and
2) /lib/modules/2.6.11.12-sound (that is "2.6.11.12-sound" directory including all subdirectories and files)

I can move them to another location to test. Then is it necessary to recompile the kernel thereafter. I just recompiled the kernel a while ago checking all necessary items selected.

Quote:

BTW you do compile the kernel in a chroot environment don't you?
First recompiled the kernel on chroot and reboot LiveCD (/dev/hda7). From then onwards I recompiled the kernel at least 8~9 times, all on booting LiveCD not on chroot environment.

Now the problem is not the modules not working but only can't enable all of them as module at the same time, i.e.

snd-pcm-oss (as module)
snd-seq-oss (as module)
CONFIG_BLK_DEV_LOOP=y

Sound worked without problem but loop did not work

OR

snd-pcm-oss=y
snd-seq-oss=y
CONFIG_BLK_DEV_LOOP=m

Then loop worked without problem but NO SOUND.

B.R.
satimis

mr_demilord 10-23-2005 12:03 PM

Try compile them both as modules, in a chroot environment.
It is really recommed to compile in a chroot environment to avoid the host systems influence.

satimis 10-23-2005 08:49 PM

Hi mr_demilord

Quote:

Try compile them both as modules, in a chroot environment.
Now "snd-pcm-oss", "snd-seq-oss" and "loop" all have been successfully compiled as modules. It is only "mobprobe" them having problem as stated on my previous posting dated Yesterday 07:21.

If enable loop=y
modprobe "snd-pcm-oss"/"snd-seq-oss" without problem. Sound worked but loop did not work.

If enable both "snd-pcm-oss" and "snd-seq-oss =y
modprobe loop without problem. Sound did work but loop worked

satimis


All times are GMT -5. The time now is 11:06 AM.