LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-03-2004, 02:47 PM   #1
behmjose
Member
 
Registered: Dec 2003
Posts: 55

Rep: Reputation: 15
upgrading to linux 2.6.5 with hotplugging and udev


Hi,

I really want to move from a 2.4.x to a 2.6.x kernel. I installed the new module init tools, and also compiled the new kernel with hotplugging enabled. I then installed the hotplugging scripts, and when i boot, and i get to the hotplug startup script, i get an unforseen error.


which: no usbmodules in (/sbin:/bin:/usr/sbin:/usr/bin)
** can't sythesize root hub events
touch: cannot touch '/var/lock/subsys/hotplug': No such file or directory

I was wondering if i need usbmodules to get hotplugging to work, if scrolled off the screen, but i think it said the same for pci modules, so i was wondering if i need those. I was wondering why it needs to touch that file. I looked, and there is nothing under my /var/lock directory. Has anyone else got hotplugging to work with 2.6.x and lfs?

thanx, joe
 
Old 05-03-2004, 03:13 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
http://lfs.crash404.com/hints/downlo...s/2.6-udev.txt and http://lfs.oregonstate.edu/hints/dow...-detection.txt

Last edited by Andrew Benton; 05-03-2004 at 03:17 PM.
 
Old 05-03-2004, 10:33 PM   #3
behmjose
Member
 
Registered: Dec 2003
Posts: 55

Original Poster
Rep: Reputation: 15
Hi, i think i have a problem with usbutils. My output for lspci is

00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333]
00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333 AGP]
00:0a.0 Multimedia audio controller: IC Ensemble Inc ICE1712 [Envy24] (rev 02)
00:0c.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
00:0f.0 RAID bus controller: Promise Technology, Inc. PDC20276 IDE (rev 01)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8233A ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586/B/686A/B PIPC Bus Master IDE (rev 06)
00:11.2 USB Controller: VIA Technologies, Inc. USB (rev 23)
00:11.3 USB Controller: VIA Technologies, Inc. USB (rev 23)
00:13.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:14.0 USB Controller: VIA Technologies, Inc. USB (rev 50)
00:14.1 USB Controller: VIA Technologies, Inc. USB (rev 50)
00:14.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 51)
01:00.0 VGA compatible controller: nVidia Corporation NV20 [GeForce3 Ti200] (rev a3)

and for ls usb

Unknown line at line 1809
Duplicate HUT Usage Spec at line 2650
Bus 001 Device 001: ID 0000:0000 Virtual Hub

so what is wrong, i'm not sure do i need to compile something in the kernel i forgot?

thanx, joe
 
Old 05-04-2004, 04:14 AM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Which USB host controller drivers did you enable on the USB menu? I would suggest that you set
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=y
# CONFIG_USB_OHCI_HCD is not set
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=y

But obviously I'm biased by the hardware I'm used to working with. Really, it's up to you to try different options and see what works. If the EHCI/UHCI combination doesn't make an improvement, try setting them to not set and CONFIG_USB_OHCI_HCD=y. Good luck.
 
Old 05-04-2004, 09:26 PM   #5
behmjose
Member
 
Registered: Dec 2003
Posts: 55

Original Poster
Rep: Reputation: 15
HI,

I found the problem i didn't compile udci into the kernel i did it now it works alright, but i have a new problem. what are the default names of the device nodes udev creates for ide harddrives i can't boot. I used the udev startup script from the udev025 package, because it has one written for lfs. Do i need any static device nodes so it will boot?

thanx joe
 
Old 05-05-2004, 05:14 AM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I'm not an expert on udev, I'm still learning as I go, but from what I've seen so far it is way more trouble than it's worth. It's given me loads of problems which I've only been able to fix with crude hacks to the bootscripts and I've yet to see any benefits to udev. Static device nodes worked with much less trouble. I'm in favour of progress but udev doesn't seem like progress to me as I can't see any benefit. It seems it works by creating nodes to correspond to and support entries the kernel makes in the /sys filesystem. If udev isn't making nodes for your IDE hard drive that suggests to me that the kernel isn't making /sys filesystem entries for your IDE hard drive, perhaps you need to enable something important in your kernel and then recompile? Udev is about hotpluging. It shouldn't be giving you problems with the core of your system.
Next time I rebuild my system it won't be with udev, though I will probably use it eventually. Just my tuppence worth.
 
Old 05-05-2004, 06:22 PM   #7
behmjose
Member
 
Registered: Dec 2003
Posts: 55

Original Poster
Rep: Reputation: 15
Hi,

Well thanx for your help i think i'll just go with a static /dev tree. i used to use devfs, and i liked the very managble tree, but this udev business seems to be crude at best. i guess i'll check back every once and a while and eventually use it. My main objective was to get hotplugging to work so i guess it will work with a static tree.

thanx, joe
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dependecy gaps between udev 0.074 and linux-image 2.6.12 TheOneKEA Debian 3 11-18-2005 05:40 PM
Upgrading to unstable broke udev Ephracis Debian 5 10-17-2005 04:28 AM
Upgrading to 2.6 Kernel, ALSA, Udev Kenji Miyamoto Slackware 8 08-27-2005 05:24 PM
Hotplugging Amol Patki LinuxQuestions.org Member Intro 1 04-06-2005 03:05 PM
Kernel Upgrading, dev, udev, etc... Makaelin Slackware 2 02-11-2005 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

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