String descriptor 0 read error 71

Самописный модуль вызывает ошибку в ядре. Здравствуйте! При подключении USB устройства обрабатывающегося самописным драйвером, происходит ошибка в ядре. Она появилась, после добавления в модуль работы с urbs. P.S. Если я правильно понимаю, то основная ошибка это Основная? Это там единственная ошибка, только это как бы не ошибка, а следствие ошибки в коде. Ядро не […]

Самописный модуль вызывает ошибку в ядре.

Здравствуйте! При подключении USB устройства обрабатывающегося самописным драйвером, происходит ошибка в ядре. Она появилась, после добавления в модуль работы с urbs.

P.S. Если я правильно понимаю, то основная ошибка это

Основная? Это там единственная ошибка, только это как бы не ошибка, а следствие ошибки в коде. Ядро не должно обращаться по нулевому указателю. Либо код портит стек, либо что-то не проинициализировано.

Исходя из того, что ошибка появилась при добавлении кода, работающего с urbs. Получаеьтся, что ошибка в заполнении urb в функции usb_fill_int_urb.

Но я ничего пока не нашёл.

по-ходу у тебя стек едет
таких варнингов быть не должно:

ну и без жестких приведений типов, все должно быть по-честному

а на будующее, учись писать без варнингов — есть такие, которые обращаются в сегфолты

Warning нет, но ошибка не ушла.

могу предложить «дебаг пинтфами»

раскидай несколько printk в куске кода, который падает. в частности перед usb_fill_int_urb выведи все переменные, которые ей передаешь — посмотри, может что забыл инициализировать.

мне проверит не на чем, могу только теоретически помочь %)
«usb_rcvintpipe(to_usb_device(&intf->dev), PKK_BL_OUT_ENDPOINT)» наверное следует заменить на «usb_rcvintpipe(udev, PKK_BL_OUT_ENDPOINT)».

проверяйте код возврата dev_set_drvdata(), ну и неплохобы делать этот вызов когда та самая data готова к использованию 😉

Эта ошибка явно не связана с data, т.к. всё работало до того, как я ввёл работу с urbs.

Это я уже изменил, не помогло.

Плюсую «дебаг пинтфами». И лучше, чтобы все printk содержали перевод строки, а то, вроде как ядро может их буферезировать. Потому что сейчас даже не понятно, выводится ли сообщение «Backlight device initialized.» .

Не уверен, что ошибка из-за usb_fill_int_urb(), там кода то в этой функции и нет, просто заполнение полей структуры urb.

инициализируется позже вызова цепочки pkk_bl_init_backlight->pkk_bl_set_brightness в которой пишется в буфер

Соответственно и urb к тому моменту тоже еще не инициализированно. Так что проще всего вызов pkk_bl_set_brightness вынести в конец pkk_bl_probe

тут есть некоторые поправки из топика, кроме двух последних постов
но из твоего dmesga, скорее всего валится в функции pkk_bl_init_backlight

у меня тоже валится там, на вызове dev_name(dev), но у меня и девайса такого нет. или ты неправильно инициализируешь

вобщем, покажи выхло dmesg’a этой фигни 🙂

ну вот. тут data->intf == 0, соответстевенно и упс вылазит

Извини, может я слепой в какой строке ты это видишь?

ты вызывал pkk_bl_init_backlight(data) с обнуленным data->intf

так получилось пройти чуток дальше, но у меня все еще падает. нужно привести в соответствие с комментариями анонимуса.

покажи, что у тебя вышло 🙂

«[ 2820.219549] USB PKK-BL Driver: no such interface»
эта строчка будет только при data->intf == NULL

строчка 100 и 59, это ИМХО из 59

это как раз то, о чем говорил анонимус

у меня уже все ок, только с раскручиванием выхода из _probe() я не делал пока ничего ничего
ща все будет! =)

[ 2475.835597] USB PKK-BL Driver: Hardware probe.
[ 2475.835603] pkk_bl_probe: intf = ffff8800ce202000
[ 2475.835604] pkk_bl_probe: &intf->dev = ffff8800ce202030
[ 2475.835606] USB PKK-BL Driver: Backlight device initialization.
[ 2475.835607] pkk_bl_init_backlight(): data->intf = ffff8800ce202000
[ 2475.835607] dev = ffff8800ce202030
[ 2475.835607] data = ffff8800d23d21c0
[ 2475.835610] pkk_bl_init_backlight(): dev_name(dev) = 5-2:1.0
[ 2475.835610] dev = ffff8800ce202030
[ 2475.835610] data = ffff8800d23d21c0
[ 2475.835646] USB PKK-BL Driver: pkk_bl_init_backlight():74pkk_bl_set_brightness(): data->transfer_buffer_out = ffff88003551e968
[ 2475.835648] USB PKK-BL Driver: Brightness set function called. New brightness: 255.
[ 2475.835650] USB PKK-BL Driver: Urb submit failled. Urb status: 0. Usb_submit_urb returned:-22.
[ 2475.835666] USB PKK-BL Driver: Backlight device initialized.
[ 2475.835667] USB PKK-BL Driver: Device activated and initialized.
[ 2475.835690] usbcore: registered new interface driver usb_pkk_backlight

открой vim’ом, посмотри там кучи ‘^M’ нету?
если есть, то в vim’e командочку: «:%s/r//g»

последняя ссылка как раз и лечила такую ошибку, может ты чего напутал?
давай переделаю: http://pastebin.com/scagMe6n
у меня-то дмесг чистый, правда и девайса такого нет

а у тебя разве не «PicoLCD 20×4»?

idVendor=04d8 — это Microchip Technology.
но у того PicoLCD idProduct=0xc001

#define USB_VENDOR_ID_PKK_BL 0x04d8 #define USB_DEVICE_ID_PKK_BL 0xc002

PicoLCD — частный случай устройства имеющего необходимую функциональность. После написания драйвера, будет запрограммированна апаратная часть.

А почему не через libusb драйвер, а в режиме ядра? Я как-то привык что уже почти все через нее работает

Нужен именно драйвер, это устройство должно будет функционировать в составе автономной машины.

а покажи вывод штуки из этого, а-то в последнем твоем dmesg’e ничего нет

Источник

String descriptor 0 read error 71

TP-Link TL-MR3020 — Обсуждение

MR-3020 – маленький портативный роутер, питающийся от miniUSB 5В. На практике достаточно 3,3В для работы встроенного железа. Естественно на USB порту будет тоже низкое напряжение.
На самом деле это не роутер. Это классное готовое железо для разработки прикладных решений.

В настоящее время имеются две модификации версии 1 (v1.x) и версии 3 (v3.x)
Если задаёте вопрос по прошивке, указывайте название прошивки и номер версии.
Почти все альтернативные прошивки созданы на базе OpenWRT, но также есть прошивки из исходников Padavan портированные Linaro для платформы TP-Link на чипах MT7628 (v3).

Нужно посмотреть на наклейку снизу роутера
Версия 1:

Версия 3:

  • процессор 300МГц
  • 32 МБ оперативной памяти
  • флэш чип на 4МБ
  • USB порт 2.0
  • RJ-45 порт с полным дуплексом на 100 Мб
  • GPIO выводы как свободные, так и со светодиодами
  • Кнопка и переключатель на GPIO выводах.
  • процессор Mediatek MT7628N 580МГц
  • 64 МБ оперативной памяти
  • флэш чип на 8МБ
  • USB порт 2.0
  • RJ-45 порт с полным дуплексом на 100 Мб
  • GPIO выводы как свободные, так и со светодиодами
  • Кнопка и переключатель на GPIO выводах.

Отличия от первой версии: вход питания microusb и нет блока питания в комплекте поставки.
microusb только на версии 3.2 (самой последней). На 3.0 — обычный мини-USB

В теме нет куратора. По вопросам наполнения шапки обращайтесь к модераторам раздела через кнопку «Жалоба» под сообщениями, на которые необходимо добавить ссылки, или через QMS.

Сообщение отредактировал solalex1 — 16.10.22, 17:19

Мой старый друг TPLink tl-mr 3020 отказался работать с новым модемом Huawei ec306 — аж в ребут уходил. Поставил на него OpenWRT — не осилил запуск 3g модема, решил вернуть официальную обновленную прошивку — и убил роутер. При включении мигает всеми лампочками и кнопкой, сеть появляется и исчезает примерно раз в секунду. При включении нажатие кнопки не приводит его в safe mode
Как его вылечить?

  • процессор 300МГц
  • 32 МБ оперативной памяти
  • флэш чип на 4МБ
  • USB порт 2.0
  • RJ-45 порт с полным дуплексом на 100 Мб
  • GPIO выводы как свободные, так и со светодиодами
  • Кнопка и переключатель на GPIO выводах.

Сборка 16.04.2014
40512
Особенности:
Скомпилирова на базе OpenWRT.

  • Поддержка разным usb модемов (лично опробовал на E392 и E1550)
  • Поддержка режима модема Android и ios
  • Оптимизирован код luci
  • Поддержка протоколов pptp, l2tp, pppoe, ppp
  • QoS
  • Multiwan
  • DDns
  • Поддержка ussd запросов из вэб-интерфейса
  • Приём/отправка смс из вэб-интерфейса (в т.ч. поддержка кирилицы)(Удаление с сим-карты через вэб-интерфейс пока не реализовано)
  • vnstsat (настройки по умолчанию)
  • Показывает уровень сигнала и доп. информацию в вэб-интерфейсе
  • Поддержка qmi средствами uqmi и qmihelper на lua.
  • поддержка флэш дисков с Fat/Fat32 для сохранения на них данных (например статистики vnstat; можно использовать microSD из модема)

Несколько картинок

MD5: 71f30987599408dde229a4a5f7d102be
[attachment=»4460538:openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.7z»]
Проверено с модемами:
E1550, E392
M100-3 он же ZTE MF823 — без информации о сети и смс, только режим подключения к сети.

В прошивке ничего нет кроме luci (вэб-интерфейса)
Ядро 3.10.58
Сборка 43052 25.10.2014
В ядро вшиты дрова для usb накопителей и установлены скрипты для монтирования дисков/разделов.
В ядро вшиты поддержка FAT16/32 и EXT2/3/4.
Для FAT страница по умолчанию 866 (вшита в ядро)
Так же по умолчанию вшил UTF-8.
Поддержка только mr3020!
Установка только на mr3020!
Файервола нет. DHCP есть.

[attachment=»5271279:mr3020-clean.7z»]
MD5: d94f3ffe8a32c567ef62268560f151ff
В архиве файл для прошивки и модули ядра/пакеты на всякий случай.

[attachment=»4460852:MR-3020-E392.pdf»] Первоначальная настройка OpenWRT для новичков
[attachment=»6775654:OpenWRT-hilink.pdf»] Настройка соединения с модемами hilink и android устройствами
[attachment=»6775655:OpenWRT-QMI.pdf»] Настройка соединения с модемами по протоколу qmi (подходит для E392, E398 и подобных)
[attachment=»6776481:OpenWRT-NCM.pdf»] Настройка соединения с модемами по протоколу ncm (подходит для E3272, E3276, E3372, E1550 и подобных со stick прошивкой; скорость больше, чем через PPP)
Сброс всех настроек на прошивке OpenWRT
Настройки для работы роутера в беспроводной сети в режиме client (WISP) на прошивке OpenWRT

В теме нет куратора. По вопросам наполнения шапки обращайтесь к модераторам раздела через кнопку «Жалоба» под сообщениями, на которые необходимо добавить ссылки, или через QMS.

Сообщение отредактировал AndrewP_1 — 24.08.18, 11:08

ну да все правильно- остается подсказать что в качестве переходника usb на Пролифике (по сути usb-to-com_3.3v ) пойдет дата кабель от древнего телефона. ну типа сименса m55
а если просто с ком порта нужен (com_std-to-com_3.3v ) преобразователь уровня- то пойдет от сименса более ранних моделей типа S35 например .. на ноклах тоже были какието похожие кабели..

Сообщение отредактировал AleksyENG — 28.01.14, 17:36

я пользовался устройством, похожим на это . Можно переключать уровни 5В и 3,3В. Шнурком тоже можно, конечно, воспользоваться, только надо убедиться что уровни сигналов 3,3В т.к. явно это нигде не написано.
При восстановлении много времени убил на поиски проблемы из-за которой USB переходник не принимал информацию. Дело оказалось в кривом драйвере, который установился после подключения устройства. Долго мудрить не стал с поиском подходящего драйвера, сделал все в Ubuntu, там почему-то драйвер
оказался нормальным

Сообщение отредактировал MNVolkov — 31.01.14, 17:47

Доброго времени суток всем.
Решил тоже поделиться своим опытом реанимации TP-LINK 3020.
История по-моему достаточно полезная. Началось все с того, что от вынужденного безделья решил я поиграться с прошивками и лоханулся по полной программе. Мало того, что я делал это через WiFi, так еще и WiFi раздавался таким же модемом с заводской прошивкой и дефолтными настройками. Видимо айпишники где-то конфликтанули во время перепрошивки, и получил я красивый кирпичик, весело моргающий всеми светодиодами в циклическом ребуте.
Не надо так делать.
Погоревал и полез в Гугл.
Минусы в моем положении были такие: Находился я на работе в дикой глуши, никаких магазинов поблизости, никаких переходников с USB на UART, никаких шнурков от телефонов.
Плюсы: на роутере уже был распаян UART. Распаять его, кстати, две минуты под стандартную гребенку 2.54. И была в наличии плата Freeduino с USB портом. Только вот что-то примеров использования ее в качестве USB-UART моста я в инете не встретил. В основном напирали на платы с несколькими аппаратными UART, а тут один только. Ну и я не такой уж спец большой. Однако время свободное было, модем уже полутруп — терять практически нечего. Был риск убить модем полностью, был вариант подождать возвращения домой (через месяц) и заняться модемом там, поискав нормальный переходник. Но месяц без этого модема означал для меня потерю впустую кучи времени, которое я планировал потратить как раз на потрошение этого модема. Второй мучить было жалко и страшно.
Ну и поехало. Достал фридуину, присобачил к компу. Нашел в интернете хитрый скетч:

void setup() <
pinMode(0, INPUT);
pinMode(1, INPUT);
>
void loop() <
>

И все. Что там инпут, куда инпут — непонятно. Смутно представляя себе предстоящие мучения с софтварным serial или еще с чем, пока непонятным, стал подключать модем. RX-TX, TX-RX. Где-то советовали резистор для согласования напряжений, у меня его не было. Кто-то советовал закоротить RESET на землю, что тоже казалось мне подозрительным. Решил, что полтора вольта разницы пофиг. Модем подрубил к сетевухе и сдуру включил. И увидел повторяющееся в такт мигающим светодиодам каждые две секунды:

U-Boot 1.1.4 (Nov 28 2011 — 09:34:00)
AP121 (ar9330) U-boot
DRAM:32 MB
.
.
..
eth0, eth1
Autobooting in 1 seconds.

И где я это увидел? В окне ардуиновского serial монитора. А вверху окна ненавязчиво маячило поле ввода и кнопка с чисто русским «Послать». Я подумал, посомневался, набрал там «tpl«, выждал появления «Autobooting in 1 seconds» и послал. Без всяких там дополнительных терминалов, Putty и тому подобного. И оно остановилось!
Это просто не могло быть правдой.
Набрал «printenv» — работает!

Я был в шоке. Дальше все как по маслу:

— скачал tftpd32, всунул в его папку прошивку.
— Установил IP сетевухи ноута 192.168.1.100.
— запуск tftpd32, IP — 192.168.1.100, Show Dir — путь к прошивке — Copy.
tftpboot 0x80000000 CyberWrt-v1.4.bin — готово
erase 0x9f020000 +0x3c0000 — готово
cp.b 0x80000000 0x9f020000 0x3c0000 — готово
bootm 0x9f020000 — готово!
— вернул сетевухе получение IP автоматом.
И все это из serial монитора от Ардуино.
И все! В результате — живой модем! Причем что интересно — я даже «землю» забыл соединить между модемом и фридуиной. Заметил это уже после прошивки. Просто модем питание получал от USB того же ноута, что и Freeduino, видимо оно само там где-то соединилось:).
З.Ы: Я эту фридуину паял из комплекта для сборки, до этого ничего мельче провода от утюга не паял. Как-то я крупнее детали себе представлял, когда заказывал. В середине процесса был уже полностью уверен — это не заработает никогда. Заработала зараза.
Так что — глаза боятся, а руки делают. Удачи всем, кто будет повторять.

Сообщение отредактировал ojw — 19.02.14, 03:13

Привет всем.
Прошу помощи имею данный роутер. Суть проблемы в том что я его прошил прошивкой CyberWrt-v1.4. Но хотел бы вернуться на оригинальнуюзаводскую прошивку. Почитав форумы понял что это можно сделать только через переходник USB-to-Serial . Переходника под рукой не нашлось, но попался на глаза кабель от старого тел Nokia c маркировкой MA-8620E. Подключив его к PC он как раз и определился как Prolific USB-to-Serial Comm Port. Суть вопросов:
1.Подойдет ли этот кабель?
2.Если да. Подскажите Какой провод куда подключать?(просто в этом кабеле 7 проводов, а в роутере только 4 пин)
3.После соединения с роутером какая программа понадобиться.Не помешала бы пошаговая инструкция.

З.Ы. Так же мой ПК имеет COM порт. Если этот кабель не подойдет можно ли подключить роутер к COM порту и как?

Источник

Adblock
detector

I have a newly installed version of Ubuntu 18.04 dual booted with Windows 10. Setup went great and I’ve had no issues using Ubuntu. However, when I turn on my computer and boot into Linux, my mouse pointer will not move. I have a mouse that lights up when it is powered on and when it is not working I noticed the lights are off. It seems that it isn’t even getting power when this happens. To fix this, I just turn the computer off and back on again then the mouse has power and everything is fine. When I boot into Windows 10, the mouse always works. It has become a common enough occurrence that I have power cycle again, after turning it on initially, on a daily basis just to get the mouse working.

I have a Razor Naga USB mouse. The keyboard (also USB) doesn’t seem to be effected. The mouse is using the USB in the back of the computer (as opposed to a USB hub or additional port on the keyboard).

Has anyone had this issue? How would I even go about troubleshooting this? I’m not familiar with investigating system level failures (like USB drivers for example) in Linux.

Update: dmesg output:

[    1.792881] [drm] Finished loading DMC firmware i915/skl_dmc_ver1_26.bin (v1.26)
[    1.797053] usb 1-8: New USB device found, idVendor=0d8c, idProduct=0012
[    1.797054] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.797055] usb 1-8: Product: USB Audio Device
[    1.797056] usb 1-8: Manufacturer: C-Media Electronics Inc.
[    1.928008] usb 1-9: new full-speed USB device number 5 using xhci_hcd
[    2.061261] [drm] failed to retrieve link info, disabling eDP
[    2.064752] [drm] Initialized i915 1.6.0 20171023 for 0000:00:02.0 on minor 1
[    2.077201] usb 1-9: unable to read config index 0 descriptor/all
[    2.077203] usb 1-9: can't read configurations, error -71
[    2.204069] usb 1-9: new full-speed USB device number 6 using xhci_hcd
[    2.256394] checking generic (d1000000 300000) vs hw (b0000000 10000000)
[    2.256447] i915 0000:00:02.0: fb1: inteldrmfb frame buffer device
[    2.354338] usb 1-9: string descriptor 0 read error: -71
[    2.354342] usb 1-9: New USB device found, idVendor=1532, idProduct=001f
[    2.354343] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.355456] usb 1-9: can't set config #1, error -71
[    2.480295] usb 1-14: new full-speed USB device number 7 using xhci_hcd
[    2.629969] usb 1-14: New USB device found, idVendor=1532, idProduct=021e
[    2.629984] usb 1-14: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.629985] usb 1-14: Product: Razer Ornata Chroma
[    2.629986] usb 1-14: Manufacturer: Razer

After I disconnect and reconnect the mouse:

[ 1436.941950] usb 1-9: USB disconnect, device number 6
[ 1446.504530] usb 1-9: new full-speed USB device number 8 using xhci_hcd
[ 1446.654938] usb 1-9: New USB device found, idVendor=1532, idProduct=001f
[ 1446.654941] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1446.654944] usb 1-9: Product: Razer Naga Epic
[ 1446.654946] usb 1-9: Manufacturer: Razer
[ 1446.656777] input: Razer Razer Naga Epic as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/0003:1532:001F.0006/input/input28
[ 1446.657065] hid-generic 0003:1532:001F.0006: input,hidraw5: USB HID v1.11 Mouse [Razer Razer Naga Epic] on usb-0000:00:14.0-9/input0
[ 1446.657984] input: Razer Razer Naga Epic as /devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.1/0003:1532:001F.0007/input/input29
[ 1446.716997] hid-generic 0003:1532:001F.0007: input,hidraw6: USB HID v1.11 Keyboard [Razer Razer Naga Epic] on usb-0000:00:14.0-9/input1

Using this command:

strings /usr/src/linux-headers-4.15.0-38-generic/include/uapi/asm-generic/errno.h

I found what error code -71 is: EPROTO 71 /* Protocol error */

But I still don’t know what this really means… and how to fix it.


Comment 1


Greg Kroah-Hartman



2006-02-15 13:36:38 UTC

Ok, I've added everyone who has reported this kind of problem with the
usb stack to this bug.  If you don't want to be on it, please feel free
to remove yourself.

The problem is that the error:
  device not accepting address XX, error -71
is happening for some device in your system, on the latest kernel version.

But unfortunatly, it's not easily reproducable for anyone in the Linux
USB developer group.  None of my devices or systems cause this error.

So, any help in trying to debug this would be greatly appreciated.

I know Alan has a suggested patch that might help people out, if he could
attach it and people could try it out, that would be very helpful.

Also, if people use git, could you try to use 'git bisect' to determine
exactly what change caused this to happen?  I think it was working fine for
2.6.13 or maybe 2.6.14, but 2.6.15 and later has the problem reported for it.


Comment 3


Alan Stern



2006-02-15 14:29:42 UTC

Created attachment 7360 [details]
Increase the reset recovery delay time

Here's the patch Greg mentioned.  It helped one user with an iPod; I'm sure it
won't help everybody.  In that case the problem was in the iPod, but the
general problem appears to lie in the host controller hardware.


Comment 4


Alan Stern



2006-02-15 14:34:54 UTC

A related bug report is #5777.  Len Brown found that the internal hub in his
laptop's docking station wouldn't accept an address until he reloaded ehci-hcd.
 However, he also found that using a different .config fixed it.  Nobody has
tried to duplicate his results or interpolate between the two .configs to see if
the problem can be traced to a single item.


Comment 5


Solomon Peachy



2006-03-09 13:45:41 UTC

I have this problem on a bus-powered High-speed USB drive.  If I plug it into
the onboard OHCI controller, it works.  If I plug it into an add-in ALI
OHCI/EHCI card, I get the -71 error.  I haven't tried unloading the EHCI
component.  

This machine is a Serverworks Dual P3 box and is running the Fedora
2.6.15-1.1833_FC4smp kernel; the USB disk is for backup purposes.

Due to the production nature of the machine I can't take it down for random tests.

'lspci -v' output:

00:02.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) (prog-if 10
[OHCI])
        Subsystem: ALi Corporation USB 1.1 Controller
        Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 201
        Memory at fdaee000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <available only to root>

00:02.3 USB Controller: ALi Corporation USB 2.0 Controller (rev 01) (prog-if 20
[EHCI])
        Subsystem: Unknown device 2020:8888
        Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 209
        Memory at fdaefe00 (32-bit, non-prefetchable) [size=256]
        Capabilities: <available only to root>

'lsusb' output:

Bus 002 Device 004: ID 04b4:6830 Cypress Semiconductor Corp. USB-2.0 IDE Adapter


Comment 6


Solomon Peachy



2006-03-31 08:27:23 UTC

As a FYI, Using Fedora's 2.6.16-1.2069_FC4 kernel (based on 2.6.16.1) I'm still
seeing this.  If I remove ehci_hcd, the device comes up just fine, albeit at
full (ohci) speed.  If I unload/reload ehci_hcd, the device still malfunctions:

ACPI: PCI Interrupt 0000:00:02.3[A] -> GSI 18 (level, low) -> IRQ 21
ehci_hcd 0000:00:02.3: EHCI Host Controller
ehci_hcd 0000:00:02.3: debug port 1
ehci_hcd 0000:00:02.3: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:02.3: irq 21, io mem 0xfdaefe00
ehci_hcd 0000:00:02.3: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
usb 1-1: new high speed USB device using ehci_hcd and address 2
usb 1-1: device not accepting address 2, error -71
usb 1-1: new high speed USB device using ehci_hcd and address 3
usb 1-1: unable to read config index 0 descriptor/start
usb 1-1: can't read configurations, error -71
usb 1-1: new high speed USB device using ehci_hcd and address 4
usb 1-1: device not accepting address 4, error -71
usb 1-1: new high speed USB device using ehci_hcd and address 5
usb 1-1: string descriptor 0 read error: -71
usb 1-1: string descriptor 0 read error: -71
usb 1-1: string descriptor 0 read error: -71
usb 1-1: configuration #1 chosen from 1 choice
usb 1-1: can't set config #1, error -71

At this point it shows up in 'lsusb' but is otherwise dead.

There are a few other load/plug/etc permutations I can try.


Comment 7


Alan Stern



2006-03-31 08:40:30 UTC

Solomon, your problem may simply be caused by a poor USB connection.  That is,
the cable may work okay at full speed but not at high speed.  Check the USB
cable and connections.  It could also be due to a hardware problem in the disk
drive's USB interface.

Sometimes there are just some small incompatibilities between pieces of
hardware.  I've got a USB disk drive and cable that don't work on my home PC. 
Switching any one of the PC, the cable, or the drive is enough to get things
working again.


Comment 8


David Brownell



2006-05-03 15:41:12 UTC

Created attachment 8021 [details]
experimental 2.6.17-rc3 SET_ADDRESS patch

Worth maybe trying this patch.	When SET_ADDRESS fails, the state of the
device is actually indeterminate.  Linux currently assumes the operation
actually succeeded, which is rather optimistic.  This patch makes a more
pessimistic assumption.


Comment 9


David Brownell



2006-06-13 12:42:22 UTC

PING.  Have you actually tried the patch?  It's been sitting 
there for over a month now waiting for you ...  
 


Comment 10


Greg Oliver



2006-07-08 12:58:45 UTC

I have seen this probolem with my Motorola Phone since 2.6.13 I believe.  I just
compiled 2.6.17-rc3 with debug turned on for USB, and here is th eoutput if it
helps.  udev loaded cdc_acm as expected, and the phone charged for ~4 seconds
and then quit.  Better than 2.6.16 was doing.  This was the only time it has
worked at all - even for 4 seconds since it has happened after the fresh reboot.
 removing the modules and reloading them have no affect either.


greg@greg-laptop ~ $ lspci
00:00.0 Host bridge: Intel Corporation 82845 845 (Brookdale) Chipset Host Bridge
(rev 04)
00:01.0 PCI bridge: Intel Corporation 82845 845 (Brookdale) Chipset AGP Bridge
(rev 04)
00:1d.0 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #1) (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #3) (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 42)
00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM AC'97 Audio
Controller (rev 02)
00:1f.6 Modem: Intel Corporation 82801CA/CAM AC'97 Modem Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 Go] (rev b2)
02:00.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
02:01.0 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
02:01.1 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
02:01.2 FireWire (IEEE 1394): Texas Instruments PCI4451 IEEE-1394 Controller

greg@greg-laptop ~ $ lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 1241:1177 Belkin F8E842-DL Mouse
Bus 001 Device 001: ID 0000:0000


--syslog--
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: wakeup_rh (auto-start)
Jul  8 14:50:29 greg-laptop hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0002
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: port 1 portsc 0082,00
Jul  8 14:50:29 greg-laptop hub 2-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: port 1 portsc 0183,00
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: port 1 portsc 01a3,00
Jul  8 14:50:29 greg-laptop hub 2-0:1.0: debounce: port 1: total 125ms stable
100ms status 0x301
Jul  8 14:50:29 greg-laptop usb 2-1: new low speed USB device using uhci_hcd and
address 2
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: uhci_result_control: failed
with status 440000
Jul  8 14:50:29 greg-laptop [dfc2c380] link (1fc2c2c2) element (1fc2b030)
Jul  8 14:50:29 greg-laptop urb_priv [f795d8a8] urb [f7ec93c0] qh [dfc2c380]
Dev=0 EP=0(IN) CTL
Jul  8 14:50:29 greg-laptop 1: [dfc2b030] link (1fc2b060) e0 LS Stalled
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=37817520)
Jul  8 14:50:29 greg-laptop 2: [dfc2b060] link (1fc2b090) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac0)
Jul  8 14:50:29 greg-laptop 3: [dfc2b090] link (1fc2b0c0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac8)
Jul  8 14:50:29 greg-laptop 4: [dfc2b0c0] link (1fc2b0f0) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead0)
Jul  8 14:50:29 greg-laptop 5: [dfc2b0f0] link (1fc2b120) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead8)
Jul  8 14:50:29 greg-laptop 6: [dfc2b120] link (1fc2b150) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae0)
Jul  8 14:50:29 greg-laptop 7: [dfc2b150] link (1fc2b180) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae8)
Jul  8 14:50:29 greg-laptop 8: [dfc2b180] link (1fc2b1b0) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf0)
Jul  8 14:50:29 greg-laptop 9: [dfc2b1b0] link (1fc2b1e0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf8)
Jul  8 14:50:29 greg-laptop 10: [dfc2b1e0] link (1fc2b210) e3 LS IOC Active
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop Dummy TD
Jul  8 14:50:29 greg-laptop [dfc2b210] link (00000000) e0 Length=0 MaxLen=7ff
DT0 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: uhci_result_control: failed
with status 440000
Jul  8 14:50:29 greg-laptop [dfc2c380] link (1fc2c2c2) element (1fc2b210)
Jul  8 14:50:29 greg-laptop urb_priv [f795d8a8] urb [f7ec93c0] qh [dfc2c380]
Dev=0 EP=0(IN) CTL
Jul  8 14:50:29 greg-laptop 1: [dfc2b210] link (1fc2b240) e0 LS Stalled
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=37817520)
Jul  8 14:50:29 greg-laptop 2: [dfc2b240] link (1fc2b270) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac0)
Jul  8 14:50:29 greg-laptop 3: [dfc2b270] link (1fc2b2a0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac8)
Jul  8 14:50:29 greg-laptop 4: [dfc2b2a0] link (1fc2b2d0) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead0)
Jul  8 14:50:29 greg-laptop 5: [dfc2b2d0] link (1fc2b300) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead8)
Jul  8 14:50:29 greg-laptop 6: [dfc2b300] link (1fc2b330) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae0)
Jul  8 14:50:29 greg-laptop 7: [dfc2b330] link (1fc2b360) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae8)
Jul  8 14:50:29 greg-laptop 8: [dfc2b360] link (1fc2b390) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf0)
Jul  8 14:50:29 greg-laptop 9: [dfc2b390] link (1fc2b3c0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf8)
Jul  8 14:50:29 greg-laptop 10: [dfc2b3c0] link (1fc2b3f0) e3 LS IOC Active
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop Dummy TD
Jul  8 14:50:29 greg-laptop [dfc2b3f0] link (00000000) e0 Length=0 MaxLen=7ff
DT0 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: uhci_result_control: failed
with status 440000
Jul  8 14:50:29 greg-laptop [dfc2c380] link (1fc2c2c2) element (1fc2b3f0)
Jul  8 14:50:29 greg-laptop urb_priv [f795d8a8] urb [f7ec93c0] qh [dfc2c380]
Dev=0 EP=0(IN) CTL
Jul  8 14:50:29 greg-laptop 1: [dfc2b3f0] link (1fc2b030) e0 LS Stalled
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=37817520)
Jul  8 14:50:29 greg-laptop 2: [dfc2b030] link (1fc2b060) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac0)
Jul  8 14:50:29 greg-laptop 3: [dfc2b060] link (1fc2b090) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac8)
Jul  8 14:50:29 greg-laptop 4: [dfc2b090] link (1fc2b0c0) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead0)
Jul  8 14:50:29 greg-laptop 5: [dfc2b0c0] link (1fc2b0f0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead8)
Jul  8 14:50:29 greg-laptop 6: [dfc2b0f0] link (1fc2b120) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae0)
Jul  8 14:50:29 greg-laptop 7: [dfc2b120] link (1fc2b150) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae8)
Jul  8 14:50:29 greg-laptop 8: [dfc2b150] link (1fc2b180) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf0)
Jul  8 14:50:29 greg-laptop 9: [dfc2b180] link (1fc2b1b0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf8)
Jul  8 14:50:29 greg-laptop 10: [dfc2b1b0] link (1fc2b1e0) e3 LS IOC Active
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop Dummy TD
Jul  8 14:50:29 greg-laptop [dfc2b1e0] link (1fc2b210) e0 Length=0 MaxLen=7ff
DT0 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop
Jul  8 14:50:29 greg-laptop usb 2-1: device descriptor read/64, error -71
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: uhci_result_control: failed
with status 440000
Jul  8 14:50:29 greg-laptop [dfc2c380] link (1fc2c2c2) element (1fc2b1e0)
Jul  8 14:50:29 greg-laptop urb_priv [f795d8a8] urb [f7ec93c0] qh [dfc2c380]
Dev=0 EP=0(IN) CTL
Jul  8 14:50:29 greg-laptop 1: [dfc2b1e0] link (1fc2b030) e0 LS Stalled
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=3551cac0)
Jul  8 14:50:29 greg-laptop 2: [dfc2b030] link (1fc2b060) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac0)
Jul  8 14:50:29 greg-laptop 3: [dfc2b060] link (1fc2b090) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac8)
Jul  8 14:50:29 greg-laptop 4: [dfc2b090] link (1fc2b0c0) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead0)
Jul  8 14:50:29 greg-laptop 5: [dfc2b0c0] link (1fc2b0f0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead8)
Jul  8 14:50:29 greg-laptop 6: [dfc2b0f0] link (1fc2b120) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae0)
Jul  8 14:50:29 greg-laptop 7: [dfc2b120] link (1fc2b150) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae8)
Jul  8 14:50:29 greg-laptop 8: [dfc2b150] link (1fc2b180) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf0)
Jul  8 14:50:29 greg-laptop 9: [dfc2b180] link (1fc2b1b0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf8)
Jul  8 14:50:29 greg-laptop 10: [dfc2b1b0] link (1fc2b210) e3 LS IOC Active
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop Dummy TD
Jul  8 14:50:29 greg-laptop [dfc2b210] link (1fc2b240) e0 Length=0 MaxLen=7ff
DT0 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: uhci_result_control: failed
with status 440000
Jul  8 14:50:29 greg-laptop [dfc2c380] link (1fc2c2c2) element (1fc2b210)
Jul  8 14:50:29 greg-laptop urb_priv [f795d8a8] urb [f7ec93c0] qh [dfc2c380]
Dev=0 EP=0(IN) CTL
Jul  8 14:50:29 greg-laptop 1: [dfc2b210] link (1fc2b240) e0 LS Stalled
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=3551cac0)
Jul  8 14:50:29 greg-laptop 2: [dfc2b240] link (1fc2b270) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac0)
Jul  8 14:50:29 greg-laptop 3: [dfc2b270] link (1fc2b2a0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac8)
Jul  8 14:50:29 greg-laptop 4: [dfc2b2a0] link (1fc2b2d0) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead0)
Jul  8 14:50:29 greg-laptop 5: [dfc2b2d0] link (1fc2b300) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead8)
Jul  8 14:50:29 greg-laptop 6: [dfc2b300] link (1fc2b330) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae0)
Jul  8 14:50:29 greg-laptop 7: [dfc2b330] link (1fc2b360) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae8)
Jul  8 14:50:29 greg-laptop 8: [dfc2b360] link (1fc2b390) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf0)
Jul  8 14:50:29 greg-laptop 9: [dfc2b390] link (1fc2b3c0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf8)
Jul  8 14:50:29 greg-laptop 10: [dfc2b3c0] link (1fc2b3f0) e3 LS IOC Active
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop Dummy TD
Jul  8 14:50:29 greg-laptop [dfc2b3f0] link (1fc2b030) e0 Length=0 MaxLen=7ff
DT0 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: uhci_result_control: failed
with status 440000
Jul  8 14:50:29 greg-laptop [dfc2c380] link (1fc2c2c2) element (1fc2b3f0)
Jul  8 14:50:29 greg-laptop urb_priv [f795d8a8] urb [f7ec93c0] qh [dfc2c380]
Dev=0 EP=0(IN) CTL
Jul  8 14:50:29 greg-laptop 1: [dfc2b3f0] link (1fc2b030) e0 LS Stalled
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=3551cac0)
Jul  8 14:50:29 greg-laptop 2: [dfc2b030] link (1fc2b060) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac0)
Jul  8 14:50:29 greg-laptop 3: [dfc2b060] link (1fc2b090) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac8)
Jul  8 14:50:29 greg-laptop 4: [dfc2b090] link (1fc2b0c0) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead0)
Jul  8 14:50:29 greg-laptop 5: [dfc2b0c0] link (1fc2b0f0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead8)
Jul  8 14:50:29 greg-laptop 6: [dfc2b0f0] link (1fc2b120) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae0)
Jul  8 14:50:29 greg-laptop 7: [dfc2b120] link (1fc2b150) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae8)
Jul  8 14:50:29 greg-laptop 8: [dfc2b150] link (1fc2b180) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf0)
Jul  8 14:50:29 greg-laptop 9: [dfc2b180] link (1fc2b1b0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf8)
Jul  8 14:50:29 greg-laptop 10: [dfc2b1b0] link (1fc2b1e0) e3 LS IOC Active
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop Dummy TD
Jul  8 14:50:29 greg-laptop [dfc2b1e0] link (1fc2b030) e0 Length=0 MaxLen=7ff
DT0 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop
Jul  8 14:50:29 greg-laptop usb 2-1: device descriptor read/64, error -71
Jul  8 14:50:29 greg-laptop usb 2-1: new low speed USB device using uhci_hcd and
address 3
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: uhci_result_control: failed
with status 440000
Jul  8 14:50:29 greg-laptop [dfc2c380] link (1fc2c2c2) element (1fc2b030)
Jul  8 14:50:29 greg-laptop urb_priv [f795d8a8] urb [f7ec93c0] qh [dfc2c380]
Dev=0 EP=0(IN) CTL
Jul  8 14:50:29 greg-laptop 1: [dfc2b030] link (1fc2b060) e0 LS Stalled
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=3551cac0)
Jul  8 14:50:29 greg-laptop 2: [dfc2b060] link (1fc2b090) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac0)
Jul  8 14:50:29 greg-laptop 3: [dfc2b090] link (1fc2b0c0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac8)
Jul  8 14:50:29 greg-laptop 4: [dfc2b0c0] link (1fc2b0f0) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead0)
Jul  8 14:50:29 greg-laptop 5: [dfc2b0f0] link (1fc2b120) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead8)
Jul  8 14:50:29 greg-laptop 6: [dfc2b120] link (1fc2b150) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae0)
Jul  8 14:50:29 greg-laptop 7: [dfc2b150] link (1fc2b180) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae8)
Jul  8 14:50:29 greg-laptop 8: [dfc2b180] link (1fc2b1b0) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf0)
Jul  8 14:50:29 greg-laptop 9: [dfc2b1b0] link (1fc2b1e0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf8)
Jul  8 14:50:29 greg-laptop 10: [dfc2b1e0] link (1fc2b210) e3 LS IOC Active
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop Dummy TD
Jul  8 14:50:29 greg-laptop [dfc2b210] link (1fc2b240) e0 Length=0 MaxLen=7ff
DT0 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: uhci_result_control: failed
with status 440000
Jul  8 14:50:29 greg-laptop [dfc2c380] link (1fc2c2c2) element (1fc2b210)
Jul  8 14:50:29 greg-laptop urb_priv [f795d8a8] urb [f7ec93c0] qh [dfc2c380]
Dev=0 EP=0(IN) CTL
Jul  8 14:50:29 greg-laptop 1: [dfc2b210] link (1fc2b240) e0 LS Stalled
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=3551cac0)
Jul  8 14:50:29 greg-laptop 2: [dfc2b240] link (1fc2b270) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac0)
Jul  8 14:50:29 greg-laptop 3: [dfc2b270] link (1fc2b2a0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac8)
Jul  8 14:50:29 greg-laptop 4: [dfc2b2a0] link (1fc2b2d0) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead0)
Jul  8 14:50:29 greg-laptop 5: [dfc2b2d0] link (1fc2b300) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead8)
Jul  8 14:50:29 greg-laptop 6: [dfc2b300] link (1fc2b330) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae0)
Jul  8 14:50:29 greg-laptop 7: [dfc2b330] link (1fc2b360) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae8)
Jul  8 14:50:29 greg-laptop 8: [dfc2b360] link (1fc2b390) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf0)
Jul  8 14:50:29 greg-laptop 9: [dfc2b390] link (1fc2b3c0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf8)
Jul  8 14:50:29 greg-laptop 10: [dfc2b3c0] link (1fc2b3f0) e3 LS IOC Active
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop Dummy TD
Jul  8 14:50:29 greg-laptop [dfc2b3f0] link (1fc2b030) e0 Length=0 MaxLen=7ff
DT0 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop
Jul  8 14:50:29 greg-laptop uhci_hcd 0000:00:1d.2: uhci_result_control: failed
with status 440000
Jul  8 14:50:29 greg-laptop [dfc2c380] link (1fc2c2c2) element (1fc2b3f0)
Jul  8 14:50:29 greg-laptop urb_priv [f795d8a8] urb [f7ec93c0] qh [dfc2c380]
Dev=0 EP=0(IN) CTL
Jul  8 14:50:29 greg-laptop 1: [dfc2b3f0] link (1fc2b030) e0 LS Stalled
CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=3551cac0)
Jul  8 14:50:29 greg-laptop 2: [dfc2b030] link (1fc2b060) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac0)
Jul  8 14:50:29 greg-laptop 3: [dfc2b060] link (1fc2b090) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eac8)
Jul  8 14:50:29 greg-laptop 4: [dfc2b090] link (1fc2b0c0) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead0)
Jul  8 14:50:29 greg-laptop 5: [dfc2b0c0] link (1fc2b0f0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7ead8)
Jul  8 14:50:29 greg-laptop 6: [dfc2b0f0] link (1fc2b120) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae0)
Jul  8 14:50:29 greg-laptop 7: [dfc2b120] link (1fc2b150) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eae8)
Jul  8 14:50:29 greg-laptop 8: [dfc2b150] link (1fc2b180) e3 SPD LS Active
Length=0 MaxLen=7 DT1 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf0)
Jul  8 14:50:29 greg-laptop 9: [dfc2b180] link (1fc2b1b0) e3 SPD LS Active
Length=0 MaxLen=7 DT0 EndPt=0 Dev=0, PID=69(IN) (buf=33d7eaf8)
Jul  8 14:50:29 greg-laptop 10: [dfc2b1b0] link (1fc2b1e0) e3 LS IOC Active
Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop Dummy TD
Jul  8 14:50:29 greg-laptop [dfc2b1e0] link (1fc2b210) e0 Length=0 MaxLen=7ff
DT0 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jul  8 14:50:29 greg-laptop
Jul  8 14:50:30 greg-laptop hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0002
Jul  8 14:50:30 greg-laptop hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0002
Jul  8 14:50:30 greg-laptop uhci_hcd 0000:00:1d.2: port 1 portsc 0093,00
Jul  8 14:50:30 greg-laptop hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
Jul  8 14:50:30 greg-laptop hub 2-0:1.0: debounce: port 1: total 100ms stable
100ms status 0x101
Jul  8 14:50:30 greg-laptop usb 2-1: new full speed USB device using uhci_hcd
and address 4
Jul  8 14:50:30 greg-laptop usb 2-1: ep0 maxpacket = 8
Jul  8 14:50:30 greg-laptop usb 2-1: skipped 4 descriptors after interface
Jul  8 14:50:30 greg-laptop usb 2-1: skipped 4 descriptors after interface
Jul  8 14:50:30 greg-laptop usb 2-1: default language 0x0409
Jul  8 14:50:30 greg-laptop usb 2-1: new device strings: Mfr=1, Product=2,
SerialNumber=0
Jul  8 14:50:30 greg-laptop usb 2-1: Product: Motorola Phone (V3)
Jul  8 14:50:30 greg-laptop usb 2-1: Manufacturer: Motorola Inc.
Jul  8 14:50:30 greg-laptop usb 2-1: uevent
Jul  8 14:50:30 greg-laptop usb 2-1: configuration #1 chosen from 2 choices
Jul  8 14:50:30 greg-laptop usb 2-1: adding 2-1:1.0 (config #1, interface 0)
Jul  8 14:50:30 greg-laptop usb 2-1:1.0: uevent
Jul  8 14:50:30 greg-laptop usb 2-1: adding 2-1:1.1 (config #1, interface 1)
Jul  8 14:50:30 greg-laptop usb 2-1:1.1: uevent
Jul  8 14:50:30 greg-laptop drivers/usb/core/inode.c: creating file '004'
Jul  8 14:50:30 greg-laptop hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0002
Jul  8 14:50:30 greg-laptop usb.agent[10281]: Keeping default configuration with
/sys//devices/pci0000:00/0000:00:1d.2/usb2/2-1
Jul  8 14:50:32 greg-laptop cdc_acm 2-1:1.0: usb_probe_interface
Jul  8 14:50:32 greg-laptop cdc_acm 2-1:1.0: usb_probe_interface - got id
Jul  8 14:50:32 greg-laptop cdc_acm 2-1:1.0: ttyACM0: USB ACM device
Jul  8 14:50:32 greg-laptop usbcore: registered new driver cdc_acm
Jul  8 14:50:32 greg-laptop drivers/usb/class/cdc-acm.c: v0.25:USB Abstract
Control Model driver for USB modems and ISDN adapters
Jul  8 14:50:36 greg-laptop hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0002
Jul  8 14:50:36 greg-laptop uhci_hcd 0000:00:1d.2: port 1 portsc 00b9,00
Jul  8 14:50:36 greg-laptop hub 2-0:1.0: port 1 enable change, status 00000101
Jul  8 14:50:36 greg-laptop hub 2-0:1.0: port 1 disabled by hub (EMI?),
re-enabling...
Jul  8 14:50:36 greg-laptop hub 2-0:1.0: port 1, status 0101, change 0002, 12 Mb/s
Jul  8 14:50:36 greg-laptop usb 2-1: USB disconnect, address 4
Jul  8 14:50:36 greg-laptop usb 2-1: usb_disable_device nuking all URBs
Jul  8 14:50:36 greg-laptop usb 2-1: unregistering interface 2-1:1.0
Jul  8 14:50:36 greg-laptop usb 2-1:1.0: uevent
Jul  8 14:50:36 greg-laptop usb 2-1: unregistering interface 2-1:1.1
Jul  8 14:50:36 greg-laptop usb 2-1:1.1: uevent
Jul  8 14:50:36 greg-laptop usb 2-1: unregistering device
Jul  8 14:50:36 greg-laptop usb 2-1: uevent
Jul  8 14:50:37 greg-laptop uhci_hcd 0000:00:1d.2: suspend_rh (auto-stop)
Jul  8 14:51:06 greg-laptop uhci_hcd 0000:00:1d.2: wakeup_rh (auto-start)
Jul  8 14:51:06 greg-laptop hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0002
Jul  8 14:51:06 greg-laptop uhci_hcd 0000:00:1d.2: port 1 portsc 01a3,00
Jul  8 14:51:06 greg-laptop hub 2-0:1.0: port 1, status 0301, change 0001, 1.5 Mb/s
Jul  8 14:51:06 greg-laptop uhci_hcd 0000:00:1d.2: port 1 portsc 0082,00
Jul  8 14:51:06 greg-laptop hub 2-0:1.0: debounce: port 1: total 125ms stable
100ms status 0x100
Jul  8 14:51:07 greg-laptop uhci_hcd 0000:00:1d.2: suspend_rh (auto-stop)


Comment 11


Greg Kroah-Hartman



2006-08-30 00:47:09 UTC

Am closing due to lack of response.  If this still happens, with the proposed
patch on the latest kernel version, please reopen the bug with and post
the error logs.


Comment 12


Matt Mackall



2007-07-26 09:02:58 UTC

I'm seeing this with 2.6.22.1 while trying to talk to a gumstix.

[93972.822392] usb 3-2: new full speed USB device using uhci_hcd and address 3
[93972.946234] usb 3-2: device descriptor read/64, error -71
[93973.172169] usb 3-2: device descriptor read/64, error -71
[93973.389696] usb 3-2: new full speed USB device using uhci_hcd and address 4
[93973.511733] usb 3-2: device descriptor read/64, error -71
[93973.735449] usb 3-2: device descriptor read/64, error -71
[93973.951180] usb 3-2: new full speed USB device using uhci_hcd and address 5
[93974.360529] usb 3-2: device not accepting address 5, error -71
[93974.470526] usb 3-2: new full speed USB device using uhci_hcd and address 6
[93974.877998] usb 3-2: device not accepting address 6, error -71
[93979.977061] usb 3-2: new full speed USB device using uhci_hcd and address 7
[93980.099643] usb 3-2: device descriptor read/64, error -71
[93980.327365] usb 3-2: device descriptor read/64, error -71
[93980.540353] usb 3-2: new full speed USB device using uhci_hcd and address 8
[93980.660196] usb 3-2: device descriptor read/64, error -71
[93980.887913] usb 3-2: device descriptor read/64, error -71
[93981.106438] usb 3-2: new full speed USB device using uhci_hcd and address 9
[93981.513937] usb 3-2: device not accepting address 9, error -71
[93981.622985] usb 3-2: new full speed USB device using uhci_hcd and address 10
[93982.033305] usb 3-2: device not accepting address 10, error -71

Same behavior with two different machines.


Comment 13


Alan Stern



2007-07-26 09:35:13 UTC

Sounds like it could be a wiring problem on the gumstix, or something of that sort.


Comment 14


Phil Lello



2007-10-15 08:16:20 UTC

I'm seeing this problem with my Scanjet 5300C on Ubuntu 7.04 with 2.6.20-16.

I'll try the patch from David Brownell, and let people know if this is works.

This may take a while, as I've never built a kernel under Ubuntu before :)


Comment 15


Phil Lello



2007-10-16 05:06:29 UTC

Nope, the David's patch doesn't fix my issue.

There's nothing new in the logs that I can find, but if i boot in Ubuntu's 'recovery mode', I get extra "device not accepting address X, error -71" messages echo'd to console.

lsusb doesn't show the scanner, but is frequently slow... I guess this is because it has to wait for the bus reset to finish.

e.g. :
phil@Ubuntu:~/kernel$ /usr/bin/time --format="%E" lsusb
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 002: ID 046d:08f6 Logitech, Inc. 
Bus 001 Device 001: ID 0000:0000  
0:10.51
phil@Ubuntu:~/kernel$ /usr/bin/time --format="%E" lsusb
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 002: ID 046d:08f6 Logitech, Inc. 
Bus 001 Device 001: ID 0000:0000  
0:10.53
phil@Ubuntu:~/kernel$ /usr/bin/time --format="%E" lsusb
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 011: ID 03f0:0701 Hewlett-Packard ScanJet 5300c/5370c
Bus 001 Device 002: ID 046d:08f6 Logitech, Inc. 
Bus 001 Device 001: ID 0000:0000  
0:00.11
phil@Ubuntu:~/kernel$ /usr/bin/time --format="%E" lsusb
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 002: ID 046d:08f6 Logitech, Inc. 
Bus 001 Device 001: ID 0000:0000  
0:10.54

I've not done any kernel debugging before, so please provide hints on anything else useful I can do.


Comment 16


Phil Lello



2007-10-17 06:16:00 UTC

Hmm... just read my own last update and spotted that the scanner actually got picked up once, then disappeared.

I've downloaded some USB docs, and will go through this... as a pure, ill-educated guess, it could be that the SET_ADDRESS is being timed out by the stack, then takes effect on the device, and then getting clobbered by the hub reset.


Comment 17


Phil Lello



2007-10-18 17:23:36 UTC

The SET_ADDRESS problem is fixed in the 2.6.22 kernel.

I can get a preview scan in sane fine, but for some reason it a full scan fails.

This may well be a problem in either sane or libusb, and even if its a usb-kernel bug, it is unlikely to be related to the SET_ADDRESS problem.

@stefaandesmet2003

I’m having the following strange but 100% reproducible issue with device enumeration. When a tiny delay is introduced between usbd_poll calls, the device enumeration fails entirely.
Take any of the libopencm3 examples and add the nop loop as below
Tested on STM32F103 (bluepill), HSE=8MHz & sysclk=72MHz (default config in most usb examples)

  while (1) {
    usbd_poll(usbd_dev);
    for (i = 0; i < 0x2000; i++)
      __asm__("nop");
  }

Attached logic analyzer capture shows what happens. The target replies correctly to SET ADDRESS and GET DEVICE DESCRIPTOR control requests. While the for-loop is busy chewing nops, the usb peripheral NAKs correctly to keep the host waiting. But after the GET DEVICE DESCRIPTOR control transfer, the target replies nothing anymore, not ACK, not NAK, not STALL. Host retries GET DEVICE QUALIFIER DESCRIPTOR and GET CONFIGURATION a few times, before issuing a usb reset and starting all over again.
After each usb reset (there are a few in the attached capture file), same result, the ep0 works correctly until after the GET DEVICE DESCRIPTOR.

Now, when the same code is run without the for-loop, the enumeration goes well (see usb_enum_ok.sal/zip capture). The GET DEVICE QUALIFIER DESCRIPTOR is stalled, but that’s normal behavior for FS device.

The error is 100% reproducible, but depending on the host & target the number of nops might need to be higher to trigger the error. With lower values (shorter delays between usbd polls) the host occasionally manages to read a few decriptors, or even complete the enumeration. With higher values the error occurs always.

Could this be related to discussion in #873 and #1323 ?

attached files are from Saleae Logic analyzer capture. Is zip-format, but Saleae uses .sal extension to import
usb_enum_ok.zip
usb_enum_fail.zip

@karlp

@stefaandesmet2003

yes. But if I replace the delay_us(100) with a nop-loop, enumeration fails as well.

@stefaandesmet2003

for some reason TIM6 seems not to be running, so the delay_us() introduces no delay on my board. I replaced with TIM4 in delay.c and updated prescaler so the delay is correct.
timer_set_prescaler(TIM6, rcc_apb1_frequency / 500000 - 1); // PPRE=4->timers run at 2x APB1 = 48MHz here

now with delay_us(1000) enumeration fails as well :

[34643.674592] usb 1-2: new full-speed USB device number 52 using xhci_hcd
[34643.832348] usb 1-2: unable to read config index 0 descriptor/all
[34643.832392] usb 1-2: can't read configurations, error -71
[34643.962763] usb 1-2: new full-speed USB device number 53 using xhci_hcd
[34644.120231] usb 1-2: unable to read config index 0 descriptor/all
[34644.120264] usb 1-2: can't read configurations, error -71
[34644.120395] usb usb1-port2: attempt power cycle
[34644.774628] usb 1-2: new full-speed USB device number 54 using xhci_hcd
[34644.797345] usb 1-2: device descriptor read/all, error -71
[34644.922631] usb 1-2: new full-speed USB device number 55 using xhci_hcd
[34644.945698] usb 1-2: device descriptor read/all, error -71
[34644.945829] usb usb1-port2: unable to enumerate USB device

with delay_us(100) all good:

[34682.854392] usb 1-2: new full-speed USB device number 56 using xhci_hcd
[34683.011304] usb 1-2: New USB device found, idVendor=cafe, idProduct=cafe, bcdDevice= 0.01
[34683.011326] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[34683.011336] usb 1-2: Product: Gadget-Zero
[34683.011343] usb 1-2: Manufacturer: libopencm3
[34683.011350] usb 1-2: SerialNumber: stm32f103-generic

with delay_us(500):

[34712.042411] usb 1-2: new full-speed USB device number 57 using xhci_hcd
[34712.194340] usb 1-2: unable to read config index 0 descriptor/all
[34712.194385] usb 1-2: can't read configurations, error -71
[34712.322228] usb 1-2: new full-speed USB device number 58 using xhci_hcd
[34712.477764] usb 1-2: string descriptor 0 read error: -71
[34712.477794] usb 1-2: New USB device found, idVendor=cafe, idProduct=cafe, bcdDevice= 0.01
[34712.477808] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[34713.468198] usb 1-2: USB disconnect, device number 58
[34716.350308] usb 1-2: new full-speed USB device number 59 using xhci_hcd
[34716.505172] usb 1-2: unable to read config index 0 descriptor/all
[34716.505203] usb 1-2: can't read configurations, error -71
[34716.630387] usb 1-2: new full-speed USB device number 60 using xhci_hcd
[34716.785490] usb 1-2: unable to read config index 0 descriptor/all
[34716.785525] usb 1-2: can't read configurations, error -71
[34716.785643] usb usb1-port2: attempt power cycle
[34717.438201] usb 1-2: new full-speed USB device number 61 using xhci_hcd
[34717.467126] usb 1-2: unable to read config index 1 descriptor/all
[34717.467150] usb 1-2: can't read configurations, error -71
[34717.594288] usb 1-2: new full-speed USB device number 62 using xhci_hcd
[34717.634518] usb 1-2: string descriptor 0 read error: -71
[34717.634547] usb 1-2: New USB device found, idVendor=cafe, idProduct=cafe, bcdDevice= 0.01
[34717.634566] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3

hope this helps

@stefaandesmet2003

checked STM32F103C8 (bluepill) datasheet, there is no TIM6 on this device. Pity it wasn’t caught at compile time

@karlp

yeah, the blue pill is just a shitty board. The f103-generic I used originally for that work has a 103RB on it, which does have tim6 :|

Catching things like peripheral availability by memory density has never been something we’ve even tried to to do, it’s complicated and would require a lot more work and checking unfortunately, we’ve always gone for the «non-conflicting superset» that lets you do everything, but does let you shoot yourself in the foot too :(

@stefaandesmet2003

I don’t believe this issue is linked to my shitty board, and is at least reproducible on any stm32 with the same usb peripheral.
I hope this can be investigated in more detail.

@karlp

No no, the issue isn’t caused by the blue pill, sorry if that was how you read it, just that the blue pill is about the only stm32 in the entire ecosystem that doesn’t have tim6, that’s all. Even the F100 value line parts, with only 16k flash have tim6. that’s all I meant.

  • Index
  • » Newbie Corner
  • » USB error while booting

#1 2012-06-25 20:41:31

quiro91
Member
Registered: 2012-06-13
Posts: 29

USB error while booting

I’m getting this error while booting:

Waiting for UDev uevents to be processed
[             3.631701] usb 1-1.1: unable to read config index 0 descriptor/all
[             3.631811] usb 1-1.1: can't read configurations, error -32
[             3.643141] hub 1-1:1.0: unable to enumerate USB device on port 1

I saw other thread in this forum but i can’t find any solutions because I have no USB plugged in. Any suggestions?

Last edited by quiro91 (2012-06-26 09:17:08)

#2 2012-06-26 06:22:17

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: USB error while booting

First, use [ code ] [ / code ] tags when posting.

Second, not even a USB mouse or keyboard? Says there hub. Like a front panel, perhaps?


«How to Succeed with Linux»

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

#3 2012-06-26 09:57:21

quiro91
Member
Registered: 2012-06-13
Posts: 29

Re: USB error while booting

No usb plugged in, i’ve got a laptop and i don’t use it. But I think when i upgrade my kernel (I use linux-ck now) a USB pendrive was plugged in. Can that be the problem?

DSpider wrote:

First, use [ code ] [ / code ] tags when posting.

Second, not even a USB mouse or keyboard? Says there hub. Like a front panel, perhaps?

#4 2012-06-26 11:39:30

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: USB error while booting

Post these files (preferably using pastebin.com):

/etc/rc.conf
/etc/mkinitcpio.conf

«udev» should be after «base». For example:

HOOKS="base udev autodetect pata scsi sata usbinput filesystems fsck"

Then regenerate your initramfs:

# mkinitcpio -p [your linux preset, since you're using linux-ck... I don't know]

For the kernel from the [core] repo, it's:
# mkinitcpio -p linux

Speaking of kernels, does it happen with linux-lts too?


«How to Succeed with Linux»

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

#5 2012-06-26 15:44:25

quiro91
Member
Registered: 2012-06-13
Posts: 29

Re: USB error while booting

rc.conf -> http://pastebin.com/eJTXVt1L
mkinitcpio.conf -> http://pastebin.com/u90UQ8kt
udev is actually after base. I’m going to try linux-lts now, I’ll let you know, and obviously thanks for your help
EDIT: using lts kernel, I rebooted 5 times and everything works fine, no error message at all

DSpider wrote:

Post these files (preferably using pastebin.com):

/etc/rc.conf
/etc/mkinitcpio.conf

«udev» should be after «base». For example:

HOOKS="base udev autodetect pata scsi sata usbinput filesystems fsck"

Then regenerate your initramfs:

# mkinitcpio -p [your linux preset, since you're using linux-ck... I don't know]

For the kernel from the [core] repo, it's:
# mkinitcpio -p linux

Speaking of kernels, does it happen with linux-lts too?

Last edited by quiro91 (2012-06-26 15:52:15)

#6 2014-07-15 19:19:52

td4d
Member
Registered: 2014-07-15
Posts: 1

Re: USB error while booting

Newbie alert. After spending hours trying to get a Lenovo Yoga 2 to boot Ubuntu 12.04 (not Arch — sorry) I stumbled upon this thread. I’m hoping there’s equivalent Ubuntu functionality I can experiment with to HOOKS=»base udev autodetect pata scsi sata usbinput filesystems fsck» referenced above.

Ubuntu is being booted from a USB thumb drive in the Yoga’s USB 2.0 port. No other USB device plugged in:
  usb 2-7: unable to read config index 0 description/start: -71
  usb 2-7: chopping to 0 config(s)
  usb 2-7: string descriptor 0 read error: -71
  hda_intel: azx_get_response timeout, switching to single_cmd

Any insight appreciated …

Понравилась статья? Поделить с друзьями:
  • Strict nat destiny 2 как исправить pc
  • Stopped upon error after linx
  • Stress web fatal error in unknown on line 0
  • Stress fpu aida64 ошибка
  • Stress cache aida64 что это как исправить