yes peter...you are right..Thanks for reply..i already know this way..cause kernel will search the module in 'uname -r'...but when we rename that it wont get a path..so that the USB port will not work....but i dont want to cheat kernel....i want to do technically...Thats why i asked peter....i want to know the Kernel USB devolopment part....Can you help me...cause i am novice...
--- On Fri, 2/1/09, Peter Teoh <[email protected]> wrote: From: Peter Teoh <[email protected]> Subject: Re: symbol table.... To: [email protected] Date: Friday, 2 January, 2009, 9:25 AM actually the purpose of me asking the question, is because i was think u have some complex requirements/scenario/background....but from your answer below.....there seems none. and the answer is already as i have said...indirectly.....u just have to manually named and renamed the kernel module before modprobing it. everything will come back again (from not able to access usb port to reenabling it).....all done manually...???? On 1/1/09, niamathullah sharief <[email protected]> wrote: cause am engineering student....doing final final year project in this concept...making my USB port work with my USB driver...Thats a reason peter.....can you help me... --- On Thu, 1/1/09, Peter Teoh <[email protected]> wrote: From: Peter Teoh <[email protected]> Subject: Re: symbol table.... To: [email protected] Date: Thursday, 1 January, 2009, 6:11 PM On Thu, Jan 1, 2009 at 7:02 PM, niamathullah sharief <[email protected]> wrote: > ya Thanks for your reply peter...you told that... > > The usb_storage.ko will be automatically be reloaded by usbcore (which > is built into the kernel, not a module at all - check > drivers/usb/core/driver.c:usb_register() for example, which will > automatically reload the usb_storage.ko. this part of usb logic is > built into the kernel, not as any module, if u observe the > CONFIG_XXXXX available inside this file). > > But after I rename the subdirectory, usb_storage.ko remain permanently > not loaded. Your aim partially achieved......at least now the > thumbdrive cannot be used for storage anymore. > > you are right peter...after renaming the subdirectory..it will not load the > driver...cause it searches only in /lib/modules/'uname-r'......but i dont > want to do that.... > > my main thing is to make my usb port to work manually...by loading the > driver for usb port...what to do? yes....it can be done....but u want to tell me why u need to do this way? > > --- On Thu, 1/1/09, Peter Teoh <[email protected]> wrote: > > From: Peter Teoh <[email protected]> > Subject: Re: symbol table.... > To: [email protected] > Cc: "Mark Brown" <[email protected]>, "Kernel newbies" > <[email protected]> > Date: Thursday, 1 January, 2009, 3:08 PM > > u have an interesting problem....let me try... > > On Thu, Jan 1, 2009 at 11:15 AM, niamathullah sharief > <[email protected]> wrote: >> ok mark...sorry..i will explain you simple...i have two questions.... >> >> 1)just my USB port should not work...when i insert any USB device...USB > port >> should not detect that device.... > > ok.....first I remove my usb_storage (from memory, this is possible > only if all existing USB devices used as storage have been removed): > > rmmod usb_storage > > (check with lsmod--> successfully removed). > > Then I renamed the directory containing all the modules: > > /lib/modules/`uname -r` to /lib/modules/bobobo > > Next I plug in a USB thumbdrive --> without the last step of renaming > the modules subdirectory: > > [ 9016.586625] usb 6-1: USB disconnect, address 2 > [ 9017.750008] usb 6-1: new high speed USB device using ehci_hcd and address > 3 > [ 9017.883094] usb 6-1: configuration #1 chosen from 1 choice > [ 9018.273772] Initializing USB Mass Storage driver... > [ 9018.357303] scsi7 : SCSI emulation for USB Mass Storage devices > [ 9018.387822] usbcore: registered new interface driver usb-storage > [ 9018.387828] USB Mass Storage support registered. > > The usb_storage.ko will be automatically be reloaded by usbcore (which > is built into the kernel, not a module at all - check > drivers/usb/core/driver.c:usb_register() for example, which will > automatically reload the usb_storage.ko. this part of usb logic is > built into the kernel, not as any module, if u observe the > CONFIG_XXXXX available inside this file). > > But after I rename the subdirectory, usb_storage.ko remain permanently > not loaded. Your aim partially achieved......at least now the > thumbdrive cannot be used for storage anymore. > >> >> 2)After that i have to make that port work through " USB > modules" >> installation by myself...it should work after i installed that USB >> modules...i dont want to recompile the kernel and make the USB support >> enable...just i want to do by modules installation... > > anytime u want to reenable it....just rename the subdirectory. > >> >> 3)whether "usbcore and ehci-hcd" modules are enough to make USB > port to >> work....and whether it is possible when the USB support is disabled in the >> kernel?if not what to do for that? >> > > I think usbcore is not a module. not sure about the intend of your > question. are u asking for dependencies among usb components? > > read into drivers/usb/Kconfig file, all the dependencies are described > there. > >> what to do for that...please explain me....sorry to disturb you.... >> >> --- On Thu, 1/1/09, Mark Brown <[email protected]> wrote: >> >> From: Mark Brown <[email protected]> >> Subject: Re: symbol table.... >> To: [email protected] >> Cc: "Kernel newbies" <[email protected]> >> Date: Thursday, 1 January, 2009, 4:14 AM >> >> Sorry I am really confused about what you want to do. :-( You should take >> the time to read the USB kernel documentation in linux/Documentation/usb. >> Regards, >> -- Mark >> On Dec 31, 2008, at 6:28 AM, niamathullah sharief wrote: >> >> ok katiyar and mark...i am ready to enable that usb support in >> kernel...when i enable it will work...but my project is it should not >> work...i have to make the USB port work...so what to do for that...the USB >> port should not work when i insert any type of USB devices...even it > should >> not dtect that device....after that i have to make that USB port to >> work...so what to do for that?sorry if i confussed you people...kindly > help >> me...cause i novice.... >> >> --- On Wed, 31/12/08, Manish Katiyar <[email protected]> wrote: >> >> From: Manish Katiyar <[email protected]> >> Subject: Re: symbol table.... >> To: "Mark Brown" <[email protected]> >> Cc: [email protected], "Kernel newbies" > <[email protected]> >> Date: Wednesday, 31 December, 2008, 10:01 AM >> >> On Wed, Dec 31, 2008 at 9:29 AM, Mark Brown > <[email protected]> >> wrote: >>> Hi, >>> I think you are missing the point that you need to build USB support > in >>> order to use USB drivers. Please enable USB Support in your kernel and >> then >>> you should be able to load USB driver modules. >>> Regards, >>> -- Mark >>> On Dec 30, 2008, at 9:59 PM, niamathullah sharief wrote: >>> >>> Thanks for your reply....yes denis..i know to reconfigure the kernel > with >>> USB support...but i dont want to do that...i want to do it manually... >> >> I think you are confused between "building in kernel" and >> "building it >> as module". You anyway have to enable the support in kernel if you >> have to use it. >> >> thanks - >> Manish >> >> .so >>> that i am asking.... >>> >>> --- On Wed, 31/12/08, Denis Borisevich <[email protected]> > wrote: >>> >>> From: Denis Borisevich <[email protected]> >>> Subject: Re: symbol table.... >>> To: [email protected] >>> Cc: "Mark Brown" <[email protected]>, >> "Kernel newbies" >>> <[email protected]> >>> Date: Wednesday, 31 December, 2008, 12:21 AM >>> >>> 2008/12/30 niamathullah sharief <[email protected]>: >>>> >>>> yes mark...i know that...actually i disabled that....cause i have > to >>> enable >>>> manually by disabling that...thats what i am asking...what to > do...how >> to >>>> resolve that problem.....how to insert that >> "ehci-hcd.ko,uhci-hcd.ko >>> or >>>> ohci-hcd.ko modules"...please kindly help me what to do.... >>> >>> You need to reconfigure (Enable USB support) and then recompile your >> kernel. >>> >>> -- >>> Denis >>> >>> -- >>> To unsubscribe from this list: send an email with >>> "unsubscribe kernelnewbies" to [email protected] >>> Please read the FAQ at http://kernelnewbies.org/FAQ >>> >>> >>> ________________________________ >>> Get perfect Email ID for your Resume. Get before others grab. >>> >> >> ________________________________ >> Get perfect Email ID for your Resume. Get before others grab. >> >> ________________________________ >> Add more friends to your messenger and enjoy! Invite them now. > > > > -- > Regards, > Peter Teoh > > Ernest Hemingway - "Never mistake motion for action." > > ________________________________ > Get perfect Email ID for your Resume. Get before others grab. -- Regards, Peter Teoh Ernest Hemingway - "Never mistake motion for action." Get rid of Add-Ons in your email ID. Get [email protected]. Sign up now! -- Regards, Peter Teoh Ernest Hemingway - "Never mistake motion for action." Get perfect Email ID for your Resume. Grab now http://in.promos.yahoo.com/address
