Posted: Sun Oct 29, 2017 1:42 Post subject: При запуске отключается питание
Здравствуйте!
Роутер: Linksys EA6400
Прошивка: DD-WRT v3.0-r33215 std (08/25/17)
Linux 4.4.83 #1923 SMP Thu Aug 24 21:09:13 CEST 2017 armv7l
Никак не могу решить проблему с выключением USB-порта при загрузке роутера. Всё, что мне от него нужно - это включенное питание. При запуске роутера питание на USB-порт идёт, но как только DD-WRT загружается, оно пропадает. В настройках Services -> USV параметр Core USB Support включен. Включить питание USB могу только зайдя в это меню и нажав Apply Settings.
Подскажите пожалуйста, как можно решить эту проблему? Возможно ли ограничить доступ прошивки к управлению питанием USB, или-же запускать обновление настроек по крону (если возможно - просьба дать команды для telnet, т.к. я в этом профан).
Posted: Mon Oct 30, 2017 9:09 Post subject: Re: При запуске отключается питан
vasek00 wrote:
Не много не понятна фишка.
Проверьте параметры через телнет следующих переменных :
Code:
root@My:~# nvram show | grep usb
usb_mntpoint=mnt
usb_storage=1
usb_automnt=1
usb_mntopt=
usb_mntjffs=
usb_ses_umount=0
usb_usb2=1
usb_runonmount=
usb_uhci=0
usb_ohci=0
usb_enable=1
usb_printer=0
root@My:~#
если нет то выполните для нужных параметров
Code:
nvram set usb_storage=1
nvram set usb_automnt=1
nvram set usb_enable=1
nvram commit
reboot
Добавил включение параметров usb_storrage и usb_autmnt, usb_enable был активен. Перезагрузился - USB-порт сначала дает питание, потом при окончательной загрузке роутера (когда становится доступной сеть wifi) перестает работать. Также как и было до того.
Posted: Tue Oct 31, 2017 8:25 Post subject: Re: При запуске отключается питан
vasek00 wrote:
1. Вывод dmesg
2. Откат на 2-3 релиза назад.
Code:
root@DD-WRT:~# dmesg | cat
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0x18000400 (irq = 117, base_baud = 6250000) is a 16550
brd: module loaded
loop: module loaded
bcmsflash: found no supported devices
The first offset=200000, 2nd offset=2100000
Boot partition size = 524288(0x80000)
lookup_nflash_rootfs_offset: offset = 0x200000 size = 0x1f00000, 0x20000
found TRX Header on nflash!
nflash: squash filesystem with lzma found at block 29
lookup_nflash_rootfs_offset: offset = 0x2100000 size = 0x1b00000, 0x20000
found TRX Header on nflash!
nflash: squash filesystem with lzma found at block 277
Creating 6 MTD partitions on "nflash":
0x000000000000-0x000000080000 : "boot"
0x000000080000-0x000000180000 : "nvram"
0x000000200000-0x000002100000 : "linux"
0x0000003a0000-0x000002100000 : "rootfs"
0x000002100000-0x000003c00000 : "linux2"
0x0000022a0000-0x000003c00000 : "rootfs2"
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
GACT probability NOT on
Mirror/redirect action on
Simple TC action Loaded
netem: version 1.3
u32 classifier
Performance counters on
input device check on
Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1941 buckets, 7764 max)
nf_conntrack_rtsp v0.7 loading
xt_time: kernel timezone is -0000
ip_set: protocol 6
gre: GRE over IPv4 demultiplexor driver
nf_nat_rtsp v0.7 loading
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 17
bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
Bridge firewalling registered
8021q: 802.1Q VLAN Support v1.8
Registering SWP/SWPB emulation handler
max nvram space = 131072
read 65536 bytes to offset 0
Key type encrypted registered
Northstar brcmnand NAND Flash Controller driver, Version 0.1 (c) Broadcom Inc. 2012
nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
Spare area=64 eccbytes 56, ecc bytes located at:
2 3 4 5 6 7 8 9 10 11 12 13 14 15 18 19 20 21 22 23 24 25 26 27 28 29 30 31 34 35 36 37 38 39 40 41 42 43 44 45 46 47 50 51 52 53 54 55 56 57 58 59 60 61 62 63
Available 7 bytes at (off,len):
(1,1) (16,2) (32,2) (48,2) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0) (0,0)
Scanning device for bad blocks
Options: NO_SUBPAGE_WRITE,
Creating 1 MTD partitions on "brcmnand":
0x000004000000-0x000008000000 : "ddwrt"
VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
Freeing unused kernel memory: 344K
et: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
et_module_init: passivemode set to 0x0
et_module_init: txworkq set to 0x0
et_module_init: et_txq_thresh set to 0x400
et_module_init: et_rxlazy_timeout set to 0x3e8
et_module_init: et_rxlazy_framecnt set to 0x20
et_module_init: et_rxlazy_dyn_thresh set to 0
ET Corerev 4
eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 7.14.89.21 (r524987)
roboswitch: Probing device 'eth0'
roboswitch: trying a 53011! at eth0
detected CPU Port is 5
roboswitch: found a 53011! at eth0
detected CPU Port is 5
wl_module_init: passivemode set to 0x0
wl_module_init: txworkq set to 0x0
PCI: Enabling device 0001:01:00.0 (0140 -> 0142)
eth1: Broadcom BCM43227 802.11 Wireless Controller 7.14.89.21 (r524987)
eth2: Broadcom BCM4360 802.11 Wireless Controller 7.14.89.21 (r524987)
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-pci 0000:00:0a.1: EHCI Host Controller
ehci-pci 0000:00:0a.1: new USB bus registered, assigned bus number 1
ehci-pci 0000:00:0a.1: irq 111, io mem 0x18021000
ehci-pci 0000:00:0a.1: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
ohci-pci 0000:00:0a.0: OHCI PCI host controller
ohci-pci 0000:00:0a.0: new USB bus registered, assigned bus number 2
ohci-pci 0000:00:0a.0: irq 111, io mem 0x18022000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
xhci_hcd 0000:00:0b.0: xHCI Host Controller
xhci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 3
xhci_hcd 0000:00:0b.0: hcc params 0x02501164 hci version 0x100 quirks 0x00000010
hub 3-0:1.0: USB hub found
hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
xhci_hcd 0000:00:0b.0: xHCI Host Controller
xhci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 4
usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
SCSI subsystem initialized
usbcore: registered new interface driver usb-storage
eth0: mixed HW and IP checksum settings.
device br0 entered promiscuous mode
device vlan1 entered promiscuous mode
device eth0 entered promiscuous mode
br0: port 1(vlan1) entered forwarding state
br0: port 1(vlan1) entered forwarding state
device eth1 entered promiscuous mode
br0: port 2(eth1) entered forwarding state
br0: port 2(eth1) entered forwarding state
device eth2 entered promiscuous mode
br0: port 3(eth2) entered forwarding state
br0: port 3(eth2) entered forwarding state
device br0 left promiscuous mode
device br0 entered promiscuous mode
device br0 left promiscuous mode
device vlan2 entered promiscuous mode
random: dnsmasq: uninitialized urandom read (128 bytes read, 65 bits of entropy available)
random: dnsmasq: uninitialized urandom read (48 bytes read, 65 bits of entropy available)
device vlan2 left promiscuous mode
NET: Registered protocol family 10
l2tp_core: L2TP core driver, V2.0
l2tp_netlink: L2TP netlink interface
l2tp_ppp: PPPoL2TP kernel driver, V2.0
random: xl2tpd: uninitialized urandom read (2 bytes read, 77 bits of entropy available)
random: xl2tpd: uninitialized urandom read (2 bytes read, 77 bits of entropy available)
random: nas: uninitialized urandom read (16 bytes read, 82 bits of entropy available)
random: nas: uninitialized urandom read (16 bytes read, 82 bits of entropy available)
random: nas: uninitialized urandom read (16 bytes read, 82 bits of entropy available)
random: nas: uninitialized urandom read (16 bytes read, 82 bits of entropy available)
random: nas: uninitialized urandom read (16 bytes read, 82 bits of entropy available)
random: nas: uninitialized urandom read (16 bytes read, 82 bits of entropy available)
br0: port 1(vlan1) entered forwarding state
br0: port 2(eth1) entered forwarding state
br0: port 3(eth2) entered forwarding state
random: nonblocking pool is initialized
device vlan2 entered promiscuous mode
device vlan2 left promiscuous mode
nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
br0: received packet on eth2 with own address as source address
......
br0: received packet on eth1 with own address as source address
Откат точно не поможет, так как я обновлялся уже с прошивки версии еще 2016 года (не помню, какой именно), но была та же история. USB можно было включить только при входе в интерфейс и нажатии кнопки "Apply changes" в разделе USB.
Posted: Tue Oct 31, 2017 13:08 Post subject: Re: При запуске отключается питан
Сразу скажу broadcom - не щупал.
Для начала у вас
1.
usb_automnt=1
usb_storage=1
usb_mntpoint=mnt
gpio10=usbport2
usb_enable=1
automnt - автомонтирование
mntpoint - по умолчанию куда, точка монтирования
usb_enable - разрешено
2. dmesg не чего не говорит о том что что-то включено в USB порт
Code:
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-pci 0000:00:0a.1: EHCI Host Controller
ehci-pci 0000:00:0a.1: new USB bus registered, assigned bus number 1
ehci-pci 0000:00:0a.1: irq 111, io mem 0x18021000
ehci-pci 0000:00:0a.1: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
ohci-pci 0000:00:0a.0: OHCI PCI host controller
ohci-pci 0000:00:0a.0: new USB bus registered, assigned bus number 2
ohci-pci 0000:00:0a.0: irq 111, io mem 0x18022000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
xhci_hcd 0000:00:0b.0: xHCI Host Controller
xhci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 3
xhci_hcd 0000:00:0b.0: hcc params 0x02501164 hci version 0x100 quirks 0x00000010
hub 3-0:1.0: USB hub found
hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
xhci_hcd 0000:00:0b.0: xHCI Host Controller
xhci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 4
usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
SCSI subsystem initialized
usbcore: registered new interface driver usb-storage
из чего можно предположить, что странный формат или разделы на носителе.
3. вы говорите что USB 3-й версии.
4. смущает, что при "Apply" все якобы монтируется
Проверим еще
1. после перезапуска что-то есть в
Code:
root@My:/proc/bus/usb# cat devices
при включенном носителе в USB порт
2. так же вопрос по "gpio10=usbport2"
пробегала информация про BCM4708A0@800
Code:
gpio enable 9
is the USB 3.0 port
gpio enable 10
is the USB 2.0 port
вы же говорите USB3 используете попробуем на USB3 и опять dmesg, смена переменной через nvram.
3. Можете поднять релиз с вашего
Posted: Sun Nov 26, 2017 14:45 Post subject: Re: При запуске отключается питан
vasek00 wrote:
Сразу скажу broadcom - не щупал.
Для начала у вас
1.
usb_automnt=1
usb_storage=1
usb_mntpoint=mnt
gpio10=usbport2
usb_enable=1
automnt - автомонтирование
mntpoint - по умолчанию куда, точка монтирования
usb_enable - разрешено
2. dmesg не чего не говорит о том что что-то включено в USB порт
Code:
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-pci 0000:00:0a.1: EHCI Host Controller
ehci-pci 0000:00:0a.1: new USB bus registered, assigned bus number 1
ehci-pci 0000:00:0a.1: irq 111, io mem 0x18021000
ehci-pci 0000:00:0a.1: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
ohci-pci 0000:00:0a.0: OHCI PCI host controller
ohci-pci 0000:00:0a.0: new USB bus registered, assigned bus number 2
ohci-pci 0000:00:0a.0: irq 111, io mem 0x18022000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
xhci_hcd 0000:00:0b.0: xHCI Host Controller
xhci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 3
xhci_hcd 0000:00:0b.0: hcc params 0x02501164 hci version 0x100 quirks 0x00000010
hub 3-0:1.0: USB hub found
hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
xhci_hcd 0000:00:0b.0: xHCI Host Controller
xhci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 4
usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
SCSI subsystem initialized
usbcore: registered new interface driver usb-storage
из чего можно предположить, что странный формат или разделы на носителе.
3. вы говорите что USB 3-й версии.
4. смущает, что при "Apply" все якобы монтируется
Проверим еще
1. после перезапуска что-то есть в
Code:
root@My:/proc/bus/usb# cat devices
при включенном носителе в USB порт
2. так же вопрос по "gpio10=usbport2"
пробегала информация про BCM4708A0@800
Code:
gpio enable 9
is the USB 3.0 port
gpio enable 10
is the USB 2.0 port
вы же говорите USB3 используете попробуем на USB3 и опять dmesg, смена переменной через nvram.
3. Можете поднять релиз с вашего
Quote:
Прошивка: DD-WRT v3.0-r33215 std (08/25/17)
хотя бы не ниже 33492
Помогло обновление прошивки до версии DD-WRT v3.0-r33555 std (10/20/17). Более поздние версии до DD-WRT v3.0-r33772 std (11/26/17) включительно пытался ставить, но там не подключалось соединение с интернетом через L2TP.