LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-02-2004, 08:42 AM   #301
ivoletra
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0

Thanks Thetargos,

but donīt i have to do nothing about the bzImage?
Or doing "make [clean] bzImage dep modules modules_install" and "updatebd" will do it?
Can you tell me the exact steps that i should do after installing the new kernel.
I thought that we needed to do more commands between the "make [clean] bzImage dep modules modules_install" command and the "GRUB" file.

Once again, thanks
Ivo Letra
 
Old 05-02-2004, 05:25 PM   #302
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by ivoletra
Thanks Thetargos,

but donīt i have to do nothing about the bzImage?
Or doing "make [clean] bzImage dep modules modules_install" and "updatebd" will do it?
Can you tell me the exact steps that i should do after installing the new kernel.
I thought that we needed to do more commands between the "make [clean] bzImage dep modules modules_install" command and the "GRUB" file.

Once again, thanks
Ivo Letra
In my personal experience, there are no additional setps needed, since issuing make install after bulding and installing the modules, will do that for you. That's why the sequence I most often use is:
Code:
# make [clan] {dep} modules modules_install install
(here {dep} refers to the needed extra step for 2.4 kernels, since it's deprecated in 2.6)
 
Old 05-05-2004, 08:42 PM   #303
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Rep: Reputation: 30
Question Problems after installation

Dear members
I still have various problems with this new kernel, my CD-Writer is the most important one:

1) CRWRITER:
When I use Gnome Toaster, and hit the 'Scan Bus' button, it detects the following device: Memorex, CD-RW 8220s at: /dev/scd0
However, if I try to mount that device 'mount -tiso9600 /dev/scd0 /cdr' I get the following error:
mount: /dev/scd0 is not a valid block device

2) MODULES NOT LOADING AUTOMATICALLY
when I run the following script /sbin/generate-modprobe.conf I receive the following error:
'modprobe: QM_MODULES: Function not implemented

Warning: not translating path[toplevel]=/lib/modules/2.6
alias binfmt-204 binfmt_aout
alias binfmt-263 binfmt_aout
(bunch of other modules after those)

The /etc/modprobe.conf file isn't created by that command). What I have to do is copy the '/etc/modules.conf/ file and save it as '/etc/modprobe.conf'

However the modules won't load automatically. As a matter of fact my box runs this shell script every time it boots in order to load the modules that I want:

#!/bin/sh
modprobe -v nvidia
modprobe -v snd
modprobe -v snd-cmipci
modprobe -v snd-via82xx
modprobe -v soundcore
modprobe -v snd-pcm-oss
modprobe -v snd-mixer-oss
modprobe -v snd-seq-oss
lsmod
startx
(Again here I have a problem since it starts in Gnome always and I prefer KDE. It doesn't goes to the login screen)


MISC PROBLEMS
1) Which of these should I add to my /etc/ld.so.conf
a) /home/programs/drivers/sound/alsa/lib
b) /home/programs/drivers/sound/alsa
If my sound is working ok, why should I add those lines?
I created symbolic links at the default installation folders to the
/home/programs/drivers/sound/alsa files
 
Old 05-05-2004, 08:54 PM   #304
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Rep: Reputation: 30
Soluions:

The CD-R was successfully mounted using these commands:

modprobe -v sr_mod
My new /etc/modprobe.conf file (head) looks as follows:

alias eth0 8139too
alias scsi_hostadapter sr_mod
alias scsi_hostadapter aic7xxx
alias usb-controller ehci-hcd
alias char-major-195 nvidia

Is the 'alias scsi_hostadapter sr_mod' line correct?

Another question.

APM: Seems to work ok but with a few problems:

1) I can suspend my machine but: when I return my box from 'Lock and Suspend', I have to switch from the 'Arts' to 'Esound' or 'Oss' plugins in XMMS in order to continue listening to music
2) When I enter this command 'poweroff -n' (which works for my kernel 2.4.20) the computer does a nice procedure, however in the end it only displays a 'Power Down' message, and I have to manually power it down. The module is loading and working since I am able to suspend the machine.

user@localhost linux-2.6.5]# lsmod | grep apm
apm 17648 2


Regards

Xavier
 
Old 05-05-2004, 08:55 PM   #305
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
The CDWRITER problem:
Why do you mount it as /dev/scd0/cdr instead of plain /dev/scd0? (i.e. does the symlink of cdrom points to that device?)


Modprobe (and modules) problem:
How exaclty are you running the /sbin/generate-modprobe.conf command? (should be from within /etc/ and you must give a file from which take the required fields, in this case modules.conf; as well as the output file, modprobe.conf)

About ld.so.conf, since you installed ALSA in a jailed environment (i.e. no other users, but the user to which the /home/$USER directory belongs, will be able to use programs linked to it). Adding the path will result in a system wide search path for the libararies, which will not be found for other users, but the one who owns the forlder. You'd want those lines in ld.so.conf for programs linked to ALSA lib to find it and hence use ALSA features.

Of your problems, the one that certainly intrigues me the most is the one related to modprobe.conf... I find it very odd that this file does not load the modules as you tell it to.
 
Old 05-05-2004, 09:00 PM   #306
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
One correction would be to change the line(s)
Quote:
Originally posted by xbaez

alias scsi_hostadapter sr_mod
alias scsi_hostadapter aic7xxx
to
Code:
alias scsi_hostadapter sr_mod
alias scsi_hostadapter1 aic7xxx
The power off problem I suffered it and solved it by using ACPI instead of APM in my kernel. About the xmms problem, go get the ALSA plugin from shrike.freshrpms.net, installit with rpm -ivh --nodeps (otherwise you'll be forced to download the ALSA-lib package) and use the ALSA out plugin in XMMS, should work OK.
 
Old 05-06-2004, 11:57 AM   #307
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Rep: Reputation: 30
I can't find any help for the /sbin/generate-modprobe.conf command
could you please give me an example?
How to run that file in order to create a new /etc/modprobe.conf file from an existing /etc/modules.conf file?

Regards
 
Old 05-06-2004, 04:01 PM   #308
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by xbaez
I can't find any help for the /sbin/generate-modprobe.conf command
could you please give me an example?
How to run that file in order to create a new /etc/modprobe.conf file from an existing /etc/modules.conf file?

Regards
Sure!
Code:
cd /etc
/sbin/generate-modprobe.conf modules.conf modprobe.conf
Where you first chage to the /etc/ directory to work locally there, then you call the command and you have to provide the input file (modules.conf) and the output file (modprobe.conf).
 
Old 05-07-2004, 09:47 AM   #309
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Rep: Reputation: 30
Dear Thetargos

I still receive the same error:

[root@localhost etc]# /sbin/generate-modprobe.conf modules.conf modprobe.conf
modprobe: QM_MODULES: Function not implemented

Warning: not translating path[toplevel]=/lib/modules/2.6

No /etc/modprobe.conf file is generated

Regards
 
Old 05-07-2004, 02:31 PM   #310
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
And you said that making your own won't get your modules loaded, right?

Here's my whole modprobe.conf file, use it as a guide:
Code:
include /etc/modprobe.conf.dist
alias scsi-hostadapter ppa
alias eth0 sis900
alias usb-controller ohci-hcd
alias usb-controller1 uhci-hcd
alias usb-controller2 ehci-hcd

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-emu10k1
# module options should go here
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
The first line includes another file, here it is:
Code:
# default modutils aliases
alias binfmt-204 binfmt_aout
alias binfmt-263 binfmt_aout
alias binfmt-264 binfmt_aout
alias binfmt-267 binfmt_aout
alias binfmt-387 binfmt_aout
alias binfmt-332 iBCS
alias binfmt--310 binfmt_java
alias block-major-1 rd
alias block-major-2 floppy
alias block-major-3 ide-probe-mod
alias block-major-7 loop
alias block-major-8 sd_mod
alias block-major-9 md
alias block-major-11 sr_mod
alias block-major-13 xd
alias block-major-15 cdu31a
alias block-major-16 gscd
alias block-major-17 optcd
alias block-major-18 sjcd
alias block-major-20 mcdx
alias block-major-22 ide-probe-mod
alias block-major-23 mcd
alias block-major-24 sonycd535
alias block-major-25 sbpcd
alias block-major-26 sbpcd
alias block-major-27 sbpcd
alias block-major-29 aztcd
alias block-major-32 cm206
alias block-major-33 ide-probe-mod
alias block-major-34 ide-probe-mod
alias block-major-37 ide-tape
alias block-major-44 ftl
alias block-major-46 pcd
alias block-major-47 pf
alias block-major-56 ide-probe-mod
alias block-major-57 ide-probe-mod
alias block-major-58 lvm-mod
alias block-major-88 ide-probe-mod
alias block-major-89 ide-probe-mod
alias block-major-90 ide-probe-mod
alias block-major-91 ide-probe-mod
alias block-major-93 nftl
alias block-major-97 pg
alias block-major-113 viocd
alias char-major-4 serial
alias char-major-5 serial
alias char-major-6 lp
alias char-major-9 st
alias char-major-10-0 busmouse
alias char-major-10-2 msbusmouse
alias char-major-10-3 atixlmouse
alias char-major-10-130 wdt
alias char-major-10-131 wdt
alias char-major-10-135 rtc
alias char-major-10-139 openprom
alias char-major-10-144 nvram
alias char-major-10-157 applicom
alias char-major-10-175 agpgart
alias char-major-10-184 microcode
alias char-major-10-200 tun
alias char-major-10-250 hci_vhci
alias char-major-13 input
alias char-major-13-0 joydev
alias char-major-13-32 mousedev
alias char-major-14 soundcore
alias char-major-19 cyclades
alias char-major-20 cyclades
alias char-major-21 sg
alias char-major-22 pcxx
alias char-major-23 pcxx
alias char-major-27 zftape
alias char-major-34 scc
alias char-major-35 tclmidi
alias char-major-36 netlink
alias char-major-37 ide-tape
alias char-major-48 riscom8
alias char-major-49 riscom8
alias char-major-57 esp
alias char-major-58 esp
alias char-major-63 kdebug
alias char-major-90 mtdchar
alias char-major-96 pt
alias char-major-99 ppdev
alias char-major-107 3dfx
alias char-major-108 ppp_generic
alias char-major-109 lvm-mod
alias char-major-161 ircomm-tty
alias char-major-171 raw1394
alias char-major-195 NVdriver
alias char-major-200 vxspec
alias char-major-206 osst
alias char-major-216 rfcomm
alias dos msdos
alias dummy0 dummy
alias dummy1 dummy
alias iso9660 isofs
alias md-personality-1 linear
alias md-personality-2 raid0
alias md-personality-3 raid1
alias md-personality-4 raid5
alias md-personality-7 multipath
alias net-pf-1 unix
alias net-pf-2 ipv4
alias net-pf-4 ipx
alias net-pf-5 appletalk
alias net-pf-15 af_key
alias net-pf-17 af_packet
alias net-pf-31 bluez
alias netalias-2 ip_alias
alias irlan0 irlan
alias irda-dongle-0 tekram
alias irda-dongle-1 esi
alias irda-dongle-2 actisys
alias irda-dongle-3 actisys
alias irda-dongle-4 girbil
alias irda-dongle-5 litelink
alias irda-dongle-6 airport
alias irda-dongle-7 old_belkin
alias bt-proto-0 l2cap
alias bt-proto-2 sco
alias bt-proto-3 rfcomm
alias bt-proto-4 bnep
alias plip0 plip
alias plip1 plip
alias tunl0 ipip
alias cipcb0 cipcb
alias cipcb1 cipcb
alias cipcb2 cipcb
alias cipcb3 cipcb
alias ppp0 ppp
alias ppp1 ppp
alias slip0 slip
alias slip1 slip
alias tty-ldisc-1 slip
alias tty-ldisc-3 ppp_async
alias tty-ldisc-11 irtty
alias tty-ldisc-14 ppp_synctty
alias tty-ldisc-15 hci_uart
alias ppp-compress-18 ppp_mppe
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate
alias parport_lowlevel parport_pc
alias scsi-hostadapter ppa
alias usbdevfs usbcore
alias xfrm-type-2-50 esp4
alias xfrm-type-2-51 ah4
alias xfrm-type-2-108 ipcomp
alias xfrm-type-10-50 esp6
alias xfrm-type-10-51 ah6
alias xfrm-type-10-108 ipcomp6
alias cipher_null crypto_null
alias digest_null crypto_null
alias compress_null crypto_null
alias sha384 sha512
options sb io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330
install binfmt-0000 /bin/true
install binfmt_misc /sbin/modprobe --ignore-install binfmt_misc && { /bin/mount -t binfmt_misc none /proc/sys/fs/binfmt_misc > /dev/null 2>&1 || :; }
install char-major-10 /bin/true
install char-major-10-1 /bin/true
install dummy0 /sbin/modprobe -o dummy0 --ignore-install dummy
install dummy1 /sbin/modprobe -o dummy1 --ignore-install dummy
install eth0 /bin/true
install hid /sbin/modprobe --ignore-install hid && { /sbin/modprobe keybdev; /sbin/modprobe mousedev; /bin/true; }
install net-pf-10 /bin/true
install net-pf-19 /bin/true
install net-pf-3 /bin/true
install net-pf-6 /bin/true
install ov518_decomp { /sbin/modprobe ov511; } ; /sbin/modprobe --ignore-install ov518_decomp
install scsi_hostadapter /bin/true
install usbmouse /sbin/modprobe --ignore-install usbmouse && { /sbin/modprobe hid; /bin/true; }
install wacom /sbin/modprobe --ignore-install wacom && { /sbin/modprobe evdev; /bin/true; }
remove binfmt_misc { /bin/umount /proc/sys/fs/binfmt_misc > /dev/null 2>&1 || :; } ; /sbin/modprobe -r --ignore-remove binfmt_misc
remove hid { /sbin/modprobe -r keybdev; /sbin/modprobe -r mousedev; } ; /sbin/modprobe -r --ignore-remove hid
remove ov518_decomp /sbin/modprobe -r --ignore-remove ov518_decomp && { /sbin/modprobe -r ov511; /bin/true; }
remove usbmouse { /sbin/modprobe -r hid; } ; /sbin/modprobe -r --ignore-remove usbmouse
remove wacom { /sbin/modprobe -r evdev; } ; /sbin/modprobe -r --ignore-remove wacom
Maybe those can help you?
Again, remember this is on a Fedora Core 1 setup.
 
Old 05-21-2004, 02:27 PM   #311
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Rep: Reputation: 30
[root@localhost etc]# /sbin/generate-modprobe.conf /etc/modules.conf /etc/modprobe.conf
modprobe: QM_MODULES: Function not implemented

Warning: not translating path[toplevel]=/lib/modules/2.6
alias binfmt-204 binfmt_aout

When I type the /sbin/generate-modprobe.conf command, the following error appears.

Here's my /etc/modprobe.conf file:

alias eth0 8139too
alias scsi_hostadapter sr_mod
alias scsi_hostadapter1 aic7xxx
alias usb-controller ehci-hcd
alias char-major-195 nvidia
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-cmipci
alias snd-card-1 snd-via82xx
# End ALSA portion
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
#card1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
#card2
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-2-12 snd-pcm-oss


However, if I start the computer, the modules won't load (I think that only the ethernet and usb controllers load)

So what I've been doing now is running S99modules, here's the script:
#!/bin/sh
lsmod
modprobe -v nvidia
modprobe -v sr_mod
modprobe -v snd
modprobe -v snd-cmipci
modprobe -v snd-via82xx
modprobe -v soundcore
modprobe -v snd-pcm-oss
modprobe -v snd-mixer-oss
modprobe -v snd-seq-oss
lsmod

Now the sound works, however
a) When I hear XMMS, and I suspend the machine, I need to change the output (that happened to me before on linux 2.4.2)
b) I can't shutdown the computer

My question is
a) could anybody help me with the modprobe.conf? (modules.conf worked fine with 2.4.2)
b) Why did APM worked with 2.4.2 and it isn't able to shutdown the computer?

My PC is from the 2000 year, so I doubt it has ACPI.

I think that maybe I need to rebuild the kernel and change some stuff in the "apm" module.

Regards

Xavier
 
Old 05-21-2004, 04:57 PM   #312
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
For the shut down problem, give ACPI a try (I had the same problem with a self compiled kernel on my old Athlon 700 machin e more than 5 years old, and it properly shuts down).

What version of module-init-tools (modutils) do you have installed?
 
Old 05-23-2004, 01:44 PM   #313
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Rep: Reputation: 30
I downloaded and installed the following package:

module-init-tools-3.0-pre10.tar.gz

regards

Xavier
 
Old 05-23-2004, 01:56 PM   #314
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Original Poster
Rep: Reputation: 45
Do you have all the appropriate options in /etc/modprobe.conf?
 
Old 05-23-2004, 02:09 PM   #315
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Rep: Reputation: 30
Yes I do
 
  


Reply

Tags
howto, tutorial


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
Red Hat/Fedora ALSA mini-HowTo. Thetargos Red Hat 182 04-01-2006 01:12 PM
red hat 9 kernel compilation b0nd Linux - Newbie 1 08-11-2005 11:05 AM
Kernel compilation (2.4.25 - Red Hat) on DELL Inspiron 2650 rohitmordani Linux - Laptop and Netbook 7 04-05-2004 06:10 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 07:33 PM
Red Hat Update Agent for kernel updates and custom kernels SparceMatrix Linux - General 5 09-03-2002 05:58 PM


All times are GMT -5. The time now is 03:59 PM.

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
Open Source Consulting | Domain Registration