Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an Acer M5641. I had Centos 5.4 running on it and everything worked fine. I am trying to build a new kernel, and tried using the .config file in the boot directory, but that didn't work.
This is a wild try, but does anyone have a similar machine. Basically I can build a kernel and it will boot up, but the USB ports don't work, therefor I can't log in directly, I have to log into the machine remotely.
I have used the machine like this for a while, but have now come to the point I want to log in from the console. Any hints of fixing this?
BTW. when I used the working .config file from CentOS, it would even boot up. Thanks.
you have an acer did it work with the other kernel. because I had an acer desktop and found out there bios only liked to work for M$ devices with M$soft could not get them to recognize half my devices on usb .Well being a hardware person I thought I new a lot about hardware after 30 years. Well acer bios taught me why they have cheap stuff.
After building false nodes and creating device links. I read real close. all the bios and things are built for M$ even the updates only work for M$. so that mother board came out and I put a new one in.
( Of course do not do that if you do not know what your doing) Because the case and power supply and other things are different. They do this just to keep you from going some where else to buy.
But I like the case so I did it. it has that cool blue lights going on.
My problem .
here is the question you should ask. is my device being loaded. what is the name of your usb nic .
open a console and type lsusb and post it. then type dmesg and look for you usb hid devices being loaded and associated with a module driver in the kernel.
how did you test your usb port and what device. plug something in and type dmesg and read the out put.
Let me know before you waist another hour building a kernel. I know I did.
you have an acer did it work with the other kernel. because I had an acer desktop and found out there bios only liked to work for M$ devices with M$soft could not get them to recognize half my devices on usb .Well being a hardware person I thought I new a lot about hardware after 30 years. Well acer bios taught me why they have cheap stuff.
After building false nodes and creating device links. I read real close. all the bios and things are built for M$ even the updates only work for M$. so that mother board came out and I put a new one in.
( Of course do not do that if you do not know what your doing) Because the case and power supply and other things are different. They do this just to keep you from going some where else to buy.
But I like the case so I did it. it has that cool blue lights going on.
My problem .
here is the question you should ask. is my device being loaded. what is the name of your usb nic .
open a console and type lsusb and post it. then type dmesg and look for you usb hid devices being loaded and associated with a module driver in the kernel.
how did you test your usb port and what device. plug something in and type dmesg and read the out put.
Let me know before you waist another hour building a kernel. I know I did.
Everything on my machine works, as far as I know expect USB. I can't use the keyboard or the mouse. Here is the outpout of lspci:
gcr [ ~ ]$ /usr/sbin/lspci |grep USB
00:04.0 USB Controller: nVidia Corporation GeForce 7100/nForce 630i USB (rev a1)
00:04.1 USB Controller: nVidia Corporation MCP73 [nForce 630i] USB 2.0 Controller (EHCI) (rev a1)
gcr [ ~ ]$
did your system boot with an initrd. if so you will have to mkintrid then add the modules to it to load. that would mean the config you used was for an initrid so that is why you are not geting modules to load.
Quote:
/sbin/modprobe uhci_hcd' and that will get your usb working.
coppy this to your /etc/rc.d/rc.local
Quote:
modprobe uhci_hcd
if that works then build the intrid or configure.
just because it is in lspci does not mean a module is loaded to run it.]
when you go to a newer kernel use the old .config but do a make oldconfig. this way you can configure the new modules in the kernel.
Quote:
centos on make install is supposed to create an initrd.img
did your system boot with an initrd. if so you will have to mkintrid then add the modules to it to load. that would mean the config you used was for an initrid so that is why you are not geting modules to load.
coppy this to your /etc/rc.d/rc.local
if that works then build the intrid or configure.
just because it is in lspci does not mean a module is loaded to run it.]
when you go to a newer kernel use the old .config but do a make oldconfig. this way you can configure the new modules in the kernel.
No, my system doesn't include a initrd.
The two previous posting were incomplete. Here is the repost:
I put in a new config it should build everything you need
OK, thank you. How did you determine what to change? I am able to boot up with my current kernel, but as stated before, its the USB that doesn't work. Its using nVidia, which has given me lots of problems.
you are not building enabling the drivers so they where not staged in the modules.
so when you did your make modules_install only the very basic storage driver was being
built into the kernel. this is a must for the firmware on the devices
then get the key board and the other stuff that needs to be built
Quote:
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ADP5588=m
CONFIG_KEYBOARD_ATKBD=y
CONFIG_QT2160=m
# CONFIG_KEYBOARD_LKKBD is not set
CONFIG_KEYBOARD_GPIO=m
CONFIG_KEYBOARD_MATRIX=m
CONFIG_KEYBOARD_LM8323=m
CONFIG_KEYBOARD_MAX7359=m
# CONFIG_KEYBOARD_NEWTON is not set
CONFIG_KEYBOARD_OPENCORES=m
CONFIG_KEYBOARD_STOWAWAY=m
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=m
CONFIG_MOUSE_PS2_ALPS=y
CONFIG_MOUSE_PS2_LOGIPS2PP=y
CONFIG_MOUSE_PS2_SYNAPTICS=y
CONFIG_MOUSE_PS2_LIFEBOOK=y
CONFIG_MOUSE_PS2_TRACKPOINT=y
# CONFIG_MOUSE_PS2_ELANTECH is not set
CONFIG_MOUSE_PS2_SENTELIC=y
CONFIG_MOUSE_PS2_TOUCHKIT=y
CONFIG_MOUSE_SERIAL=m
CONFIG_MOUSE_APPLETOUCH=m
CONFIG_MOUSE_BCM5974=m
CONFIG_MOUSE_VSXXXAA=m
CONFIG_MOUSE_GPIO=m
CONFIG_MOUSE_SYNAPTICS_I2C=m
CONFIG_INPUT_JOYSTICK=y
CONFIG_JOYSTICK_ANALOG=m
CONFIG_JOYSTICK_A3D=m
CONFIG_JOYSTICK_ADI=m
CONFIG_JOYSTICK_COBRA=m
CONFIG_JOYSTICK_GF2K=m
CONFIG_JOYSTICK_GRIP=m
CONFIG_JOYSTICK_GRIP_MP=m
CONFIG_JOYSTICK_GUILLEMOT=m
CONFIG_JOYSTICK_INTERACT=m
CONFIG_JOYSTICK_SIDEWINDER=m
CONFIG_JOYSTICK_TMDC=m
CONFIG_JOYSTICK_IFORCE=m
CONFIG_JOYSTICK_IFORCE_USB=y
CONFIG_JOYSTICK_IFORCE_232=y
CONFIG_JOYSTICK_WARRIOR=m
CONFIG_JOYSTICK_MAGELLAN=m
CONFIG_JOYSTICK_SPACEORB=m
CONFIG_JOYSTICK_SPACEBALL=m
CONFIG_JOYSTICK_STINGER=m
CONFIG_JOYSTICK_TWIDJOY=m
CONFIG_JOYSTICK_ZHENHUA=m
CONFIG_JOYSTICK_DB9=m
CONFIG_JOYSTICK_GAMECON=m
CONFIG_JOYSTICK_TURBOGRAFX=m
CONFIG_JOYSTICK_JOYDUMP=m
CONFIG_JOYSTICK_XPAD=m
CONFIG_JOYSTICK_XPAD_FF=y
CONFIG_JOYSTICK_XPAD_LEDS=y
# CONFIG_JOYSTICK_WALKERA0701 is not set
CONFIG_INPUT_TABLET=y
CONFIG_TABLET_USB_ACECAD=m
CONFIG_TABLET_USB_AIPTEK=m
CONFIG_TABLET_USB_GTCO=m
CONFIG_TABLET_USB_KBTAB=m
CONFIG_TABLET_USB_WACOM=m
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_AD7879_I2C=m
CONFIG_TOUCHSCREEN_AD7879=m
CONFIG_TOUCHSCREEN_EETI=m
CONFIG_TOUCHSCREEN_FUJITSU=m
CONFIG_TOUCHSCREEN_GUNZE=m
CONFIG_TOUCHSCREEN_ELO=m
CONFIG_TOUCHSCREEN_WACOM_W8001=m
CONFIG_TOUCHSCREEN_MCS5000=m
CONFIG_TOUCHSCREEN_MTOUCH=m
CONFIG_TOUCHSCREEN_INEXIO=m
CONFIG_TOUCHSCREEN_MK712=m
CONFIG_TOUCHSCREEN_PENMOUNT=m
CONFIG_TOUCHSCREEN_TOUCHRIGHT=m
CONFIG_TOUCHSCREEN_TOUCHWIN=m
CONFIG_TOUCHSCREEN_UCB1400=m
CONFIG_TOUCHSCREEN_WM97XX=m
CONFIG_TOUCHSCREEN_WM9705=y
CONFIG_TOUCHSCREEN_WM9712=y
CONFIG_TOUCHSCREEN_WM9713=y
CONFIG_TOUCHSCREEN_USB_COMPOSITE=m
CONFIG_TOUCHSCREEN_USB_EGALAX=y
CONFIG_TOUCHSCREEN_USB_PANJIT=y
CONFIG_TOUCHSCREEN_USB_3M=y
CONFIG_TOUCHSCREEN_USB_ITM=y
CONFIG_TOUCHSCREEN_USB_ETURBO=y
CONFIG_TOUCHSCREEN_USB_GUNZE=y
CONFIG_TOUCHSCREEN_USB_DMC_TSC10=y
CONFIG_TOUCHSCREEN_USB_IRTOUCH=y
CONFIG_TOUCHSCREEN_USB_IDEALTEK=y
CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH=y
CONFIG_TOUCHSCREEN_USB_GOTOP=y
CONFIG_TOUCHSCREEN_USB_JASTEC=y
CONFIG_TOUCHSCREEN_USB_E2I=y
CONFIG_TOUCHSCREEN_TOUCHIT213=m
CONFIG_TOUCHSCREEN_TSC2007=m
CONFIG_INPUT_MISC=y
CONFIG_INPUT_PCSPKR=m
CONFIG_INPUT_APANEL=m
CONFIG_INPUT_ATLAS_BTNS=m
CONFIG_INPUT_ATI_REMOTE=m
CONFIG_INPUT_ATI_REMOTE2=m
CONFIG_INPUT_KEYSPAN_REMOTE=m
CONFIG_INPUT_POWERMATE=m
CONFIG_INPUT_YEALINK=m
CONFIG_INPUT_CM109=m
CONFIG_INPUT_UINPUT=m
CONFIG_INPUT_WINBOND_CIR=m
CONFIG_INPUT_PCF50633_PMU=m
CONFIG_INPUT_GPIO_ROTARY_ENCODER=m
CONFIG_INPUT_WM831X_ON=m
since I am building a kernel for multiple systems. I need a bunch of modules.
make modules_install. this should also install the firmware but if not
make firmware_install
you are not building enabling the drivers so they where not staged in the modules.
so when you did your make modules_install only the very basic storage driver was being
built into the kernel. this is a must for the firmware on the devices
and make a bunch work
then get the key board and the other stuff that needs to be built
since I am building a kernel for multiple systems. I need a bunch of modules.
make modules_install. this should also install the firmware but if not
make firmware_install
I didn't do the install firmware, but the new .config yelded the same result. I am not on the system now, but will post the output of sys.log later. Sorry if I gave the impression that it had already worked.
you are not building enabling the drivers so they where not staged in the modules.
so when you did your make modules_install only the very basic storage driver was being
built into the kernel. this is a must for the firmware on the devices
and make a bunch work
then get the key board and the other stuff that needs to be built
since I am building a kernel for multiple systems. I need a bunch of modules.
make modules_install. this should also install the firmware but if not
make firmware_install
The Centos kernel works, but in looking at it, there are dozens of modules enabled:
you are not building enabling the drivers so they where not staged in the modules.
so when you did your make modules_install only the very basic storage driver was being
built into the kernel. this is a must for the firmware on the devices
and make a bunch work
then get the key board and the other stuff that needs to be built
since I am building a kernel for multiple systems. I need a bunch of modules.
make modules_install. this should also install the firmware but if not
make firmware_install
I also posted the sys.log file of the kernel I built from the config you gave me:
if you do not make clean then make mrpropper before every Kernel build the bzImage (vmlinuz)
will not change. and you will keep having the same problem this also is a must in your.
/etc/modprobe.d/usb-controller.conf
Quote:
# Make sure that ehci-hcd is always loaded before uhci-hci
# # or ohci-hcd to prevent a kernel warning:
install uhci-hcd /sbin/modprobe ehci-hcd ; /sbin/modprobe -i uhci-hcd
install ohci-hcd /sbin/modprobe ehci-hcd ; /sbin/modprobe -i ohci-hcd
If you changed something in bios please enable usb 1 and 2.
also while your in there set bios to none OS.
Then go back and read my first post as to why I got rid of the acer motherboard.
I compile the newest kernel out when they make stable. and that board drove me nuts.
if you do not make clean then make mrpropper before every Kernel build the bzImage (vmlinuz)
will not change. and you will keep having the same problem this also is a must in your.
/etc/modprobe.d/usb-controller.conf
If you changed something in bios please enable usb 1 and 2.
also while your in there set bios to none OS.
Then go back and read my first post as to why I got rid of the acer motherboard.
I compile the newest kernel out when they make stable. and that board drove me nuts.
Well, I couldn't afford to replace the board. Its only a year old and I wouldn't want to waste the money I have invested in it.
I have this setup for usb:
root [ /home/gcr ]# more /etc/modprobe.d/usb.conf
# Begin /etc/modprobe.d/usb.conf
I have an Acer M5641. I had Centos 5.4 running on it and everything worked fine. I am trying to build a new kernel, and tried using the .config file in the boot directory, but that didn't work.
I know you're already going 7 different ways at once, but I'm having a hard time accepting this at face value. By definition, the config file in /boot is a working config. Exactly, what command did you use to copy the config over? Was it this or the equivalent?
Code:
cp /boot/config-`uname -r` .config
Also, did you run "make oldconfig" after copying it to .config?
I know you're already going 7 different ways at once, but I'm having a hard time accepting this at face value. By definition, the config file in /boot is a working config. Exactly, what command did you use to copy the config over? Was it this or the equivalent?
Code:
cp /boot/config-`uname -r` .config
Also, did you run "make oldconfig" after copying it to .config?
I have various config files I have tried. What I do is:
make mrproper
make LANG=en_US.UTF-8 LC_ALL= menuconfig
Then use the menu to load the config fcp -v .config /boot/config-2.6.32.8ile I want. Save it to .config
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.