This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

To load usb0 host controller as loadable module

Dear Ti E2E community,

As am doing boot time optimization, I see in the boot time the time take to load the usb0 controller module is being some 3 to 4 sec during bootup, could you please let me know this can be made it as loadable module

[ 6.828146] davinci_evm sound.10: hdmi-hifi <-> 48038000.mcasp mapping ok
[ 7.539491] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[ 7.742277] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[ 7.875959] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 7.883166] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 7.890731] usb usb1: Product: MUSB HDRC host driver
[ 7.895959] usb usb1: Manufacturer: Linux 3.14.26-g2489c02 musb-hcd
[ 7.902533] usb usb1: SerialNumber: musb-hdrc.0.auto
[ 7.992621] hub 1-0:1.0: USB hub found
[ 8.000773] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 8.050173] hub 1-0:1.0: 1 port detected

Kindly do the needful as early as possible

Many Thanks in advance

  • To disable autoloading usb modules for am335x, run the following command *once* on the board.

    # echo 'blacklist musb_am335x' >> /etc/modprobe.d/blacklist.conf

  • Dear Bin,



    Thanks a lot for your quick responses,

    Sorry for my understanding, I hope this is related to USB0 platform driver, And Could you please let me know are those messages related to USB0 controller?? , Could you please let me know I want to disable/ stop loading this driver module during bootup as this is consuming of 4 sec in boot time

    Could you please let me know is there any way that this can made as dynamic loadable module by changing in the kernel menuconfig using <M>, if this is possible could you please let me know which driver module needs to be made as <M> & later that this .ko can be loaded using modprobe



    Kindly do the needful as early as possible

    Many Thanks in advance
  • Sri S said:
    And Could you please let me know are those messages related to USB0 controller??

    Yes, those log messages are related to USB0.

    Sri S said:
    Could you please let me know is there any way that this can made as dynamic loadable module by changing in the kernel menuconfig using <M>, if this is possible could you please let me know which driver module needs to be made as <M> & later that this .ko can be loaded using modprobe

    Please refer to wiki http://processors.wiki.ti.com/index.php/MUSB_Linux_Driver_Configuration for MUSB kernel configurations. Then use the blacklist config I post previously to prevent auto-load those .ko modules at boot time. You can load MUSB driver modules later using command:

    # modprobe musb_am335x

  • Dear Bin,

    Thanks a lot for your quick responses

    Is there any chances that I can prevent this in initial kernel bootup only, rather than using echo 'blacklist musb_am335x' >> /etc/modprobe.d/blacklist.conf,

    Because first starting boot time is measured mainly instead doing once bootup with these & again changing using echo command ie., echo 'blacklist musb_am335x' >> /etc/modprobe.d/blacklist.conf

    & moreover am using ti sdk 8 & am unable find this entry in the /etc/modprobe.d/blacklist.conf

    Kindly do the needful,
    Many Thanks in advance
  • Sri,

    Let me try to explain the solution differently.

    When you prepare the TI SDK root filesystem on PC for your board, please create a new file called /etc/modprobe.d/blacklist.conf if it does not exist, then add the line 'blacklist musb_am335x' in blacklist.conf.