LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-02-2021, 04:09 PM   #1
doudootiana
LQ Newbie
 
Registered: May 2021
Posts: 10

Rep: Reputation: Disabled
problem usb mass storage and custom kernel


Hy Everybody

For a Week, i try to configure my custom kernel, to allow the usb mass storage.

I am a newbie and i like to learn, looking for informations and by practicing.
but even if i have found some informations with my friend google , i don't manage to find where is my error.

Here a part of my dmesg, select the line with the word usb ou storage :

Code:
 dmesg | grep 'USB'
[    4.262180] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.268827] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
# dmesg | grep 'usb'
[    3.434106] usbcore: registered new interface driver usbfs
[    3.439816] usbcore: registered new interface driver hub
[    3.445303] usbcore: registered new device driver usb
[    4.275393] usbcore: registered new interface driver usb-storage
# dmesg | grep 'controller''
> ^C
# dmesg | grep 'controller'
[    5.733047] mmc0: SDHCI controller on d00d0000.sdhci [d00d0000.sdhci] using ADMA
[    5.780795] mmc1: SDHCI controller on d00d8000.sdhci [d00d8000.sdhci] using ADMA
# dmesg | grep 'mass'
# dmesg | grep 'storage'
[    4.275393] usbcore: registered new interface driver usb-storage

When i do the line command lsusb, nothing appears.
and no driver usb found in /lib/modules/5.9.0/kernel/drivers

More informations about my project :

My support is a Turris Mox.

I shape my kernel from the kernel net-next 5.9.

I use Buildroot to build a custom Linux,
and i have included exfat fuse and exfat-utils.

thank by advance
 
Old 05-02-2021, 04:55 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Use some pastebin utility (wgetpaste, pastebinit) to paste your kernel .config and give us the link. You may miss CONFIG_USB_PCI in your kernel, just guessing.
 
Old 05-03-2021, 02:08 AM   #3
doudootiana
LQ Newbie
 
Registered: May 2021
Posts: 10

Original Poster
Rep: Reputation: Disabled
hy,
thank you to answer me.

Here, my .config
 
Old 05-03-2021, 04:52 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Code:
# CONFIG_USB_PCI is not set
My guess was correct, fix it.
 
Old 05-03-2021, 06:09 AM   #5
doudootiana
LQ Newbie
 
Registered: May 2021
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hy,
thank again to answer me

i have tried, but same problem.

I even tried to completely recompile
 
Old 05-03-2021, 08:14 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
After you reconfigure your kernel you must recompile and reinstall. And then reboot to start using it.
 
Old 05-03-2021, 08:53 AM   #7
doudootiana
LQ Newbie
 
Registered: May 2021
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hy again .
I have reconfigure, recompile and reinstall the New Kernel.
I have also restarted from zero and copy the
.conf with your advice.
Can it come from the controller?
 
Old 05-03-2021, 09:02 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Verify your running kernel is the one you built and installed. 'uname -a' Is the build date and time what expected?
 
Old 05-03-2021, 09:33 AM   #9
doudootiana
LQ Newbie
 
Registered: May 2021
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hy,
i just verify and it's the good kernel.

Here the new .config

and here, the dmesg
 
Old 05-03-2021, 09:53 AM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Only now I noticed this is not on PC platform, it is some sort of single-board ARM computer. These usually need many options for GPIO and pinctrl enabled, can't help much with these. This is for you to experiment and learn.

Edit: And if you ever start a support thread again please let everybody know what hardware you have. Otherwise it is automatically presumed you have amd64, this is the most common platform.

Last edited by Emerson; 05-03-2021 at 12:29 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'USB Mass storage stalled' error when attempting to install puppy from usb stick on libreboot/Trisquel system Shaggy1 Linux - Laptop and Netbook 1 02-14-2021 04:10 PM
How to disable USB Mass Storage device ( usb drive ) in Linux vijaush Linux - Newbie 4 06-25-2008 09:43 AM
After plug in apacer ht202 usb mass storage into usb port. Nothing appear. tellmeimhong Linux - Hardware 3 02-04-2006 02:32 AM
USB Mass Storage in kernel 2.6.8.1 cb951303 Slackware 2 11-04-2004 05:23 PM
kernel 2.6.7 & USB Mass Storage KMcD Linux - General 2 06-23-2004 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:27 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