Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[FIXED] USB issue on new machine (UEFI, USB)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
shimitar
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 274
Location: Italy, Torino

PostPosted: Sat May 23, 2015 7:26 pm    Post subject: [FIXED] USB issue on new machine (UEFI, USB) Reply with quote

I have a small PC (OnePc, it's a small cube with one big slow silent fan). It's quite new, UEFI, SSD, 4GB, a quite powerfull Celeron 64bit, USB 3.0, 7 USB ports.

In the "BIOS", legacy boot is enabled, USB is enabled and legacy USB is enabled.

It has CentOS 6.6 with a 2.6.32 kernel installed on the SSD, which works great, but i want to replace it with Gentoo, of course. With Grub 0.97

PROBLEM: whenever i boot a Gentoo kernel, i lose all the USB.

I had to give up on booting with a gentoo live usb stick because it would not find the usb key to mount and i cannot type anything from the USB keyboard.

So i plugged in a USB key in CentOS and built a gentoo system on it (the SSD does not have free partitions)... i built kernel 3.18.12 with genkernel, but still unable to boot (also grub 0.97 on the stick, i never got around grub2) because USB root cannot be found.

So i tried a manual kernel configuration, carefully selecting each option and no initrd, but stil the same, cannot boot because cannot find the USB drive.

in the grub menu i can use the keyboard and i can see the USB drive... only after the kernel boot i lose USB.

Any hints or ideas? What's strange is the 2.6 kernel in CentOS works great. No, there is no kernel configuration parameters for the kernel in CentOS (or i cannot find it).

lspci

Code:

00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation C220 Series Chipset Family H81 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)




lsmod (on CentOS)
Code:

Module                  Size  Used by
nls_utf8                1455  1
autofs4                26609  3
8021q                  25527  0
garp                    7152  1 8021q
stp                     2218  1 garp
llc                     5578  2 garp,stp
cpufreq_ondemand       10544  2
acpi_cpufreq            7763  0
freq_table              4936  2 cpufreq_ondemand,acpi_cpufreq
mperf                   1557  1 acpi_cpufreq
usb_storage            49100  0
ipt_REJECT              2351  2
nf_conntrack_ipv4       9506  2
nf_defrag_ipv4          1483  1 nf_conntrack_ipv4
iptable_filter          2793  1
ip_tables              17831  1 iptable_filter
ip6t_REJECT             4628  2
nf_conntrack_ipv6       8337  3
nf_defrag_ipv6         27236  1 nf_conntrack_ipv6
xt_state                1492  5
nf_conntrack           80390  3 nf_conntrack_ipv4,nf_conntrack_ipv6,xt_state
ip6table_filter         2889  1
ip6_tables             18732  1 ip6table_filter
ipv6                  334932  33 ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6
uinput                  8120  0
iTCO_wdt                7115  0
iTCO_vendor_support     3056  1 iTCO_wdt
microcode             112653  0
serio_raw               4626  0
sg                     29318  0
r8169                  58564  0
mii                     5376  1 r8169
i2c_i801               10783  0
lpc_ich                12995  0
mfd_core                1895  1 lpc_ich
shpchp                 29130  0
snd_hda_codec_realtek    43811  1
snd_hda_codec_hdmi     28922  1
snd_hda_intel          40530  3
snd_hda_codec         179208  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               6780  1 snd_hda_codec
snd_seq                55727  0
snd_seq_device          6500  1 snd_seq
snd_pcm                87790  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer              22443  2 snd_seq,snd_pcm
snd                    70953  15 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore               7958  1 snd
snd_page_alloc          8856  2 snd_hda_intel,snd_pcm
ext4                  378476  3
jbd2                   93427  1 ext4
mbcache                 8193  1 ext4
sd_mod                 36998  3
crc_t10dif              1305  1 sd_mod
ahci                   41208  2
wmi                     6287  0
xhci_hcd              194854  0
i915                  820936  2
drm_kms_helper         82994  1 i915
drm                   291252  3 i915,drm_kms_helper
i2c_algo_bit            5711  1 i915
i2c_core               29964  5 i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video                  20610  1 i915
output                  2409  1 video
dm_mirror              14384  0
dm_region_hash         12085  1 dm_mirror
dm_log                  9930  2 dm_mirror,dm_region_hash
dm_mod                 95622  11 dm_mirror,dm_log


Any one has any ideas?



==============================

Solution was to enable built-in USB OTG. It makes no sense specially because this is a PC and not a mobile device. Anyway... it fixed it.
_________________
Willy Gardiol
willy@gardiol.org


Last edited by shimitar on Tue May 26, 2015 5:49 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Mon May 25, 2015 10:38 pm    Post subject: Reply with quote

does the grub.conf kernel line contain an entry like rootdelay=30 ? Wait 30 seconds before trying to mount the root filesystem. This can be useful if the root filesystem is on a USB device, as usb disk devices may take a bit longer to be discovered by the kernel.
is xhci_hcd a builtin in your gentoo kernel?
It would be useful if you posted a picture or quoted detail of the kernel panic screen.
boot the install media (centos?), mount the gentoo partitions, if the install media has wgetpaste (or if you can install it) wgetpaste -t /mnt/gentoo/usr/src/linux/.config; wgetpaste -t /mnt/gentoo/var/log/dmesg and post the url's returned. If necessary enter the chroot and emerge wgetpaste then wgetpaste -t /usr/src/linux/.config; wgetpaste -t /var/log/dmesg .
dmesg may not have been logged.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
shimitar
Apprentice
Apprentice


Joined: 23 Nov 2003
Posts: 274
Location: Italy, Torino

PostPosted: Tue May 26, 2015 5:49 am    Post subject: Reply with quote

The rootdelay option was useless, it owuld just wait and then crash. I fixed it by compiling in the kernel the USB OTG support, as absurd as it might seem....
Now i managed to boot the USB media and install correctly...

Very strange.
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Tue May 26, 2015 2:30 pm    Post subject: Reply with quote

USB_OTG is a new feature to me.
The help paragraph of http://cateee.net/lkddb/web-lkddb/USB_OTG.html may help explain the behavior you saw without it.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum