Modify

Opened 3 years ago

Last modified 3 years ago

#18071 new defect

Boot-loop after enabling wifi on D-Link DIR-615 H1

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: packages Version: Barrier Breaker 14.07
Keywords: boot-loop, wifi Cc:

Description

After enabling wifi on my D-Link DIR-615 H1 the device get into a boot-loop. There is a short time i can connect to it.
There is Barrier Breaker 14.07 r42625 on it.

Attachments (0)

Change History (10)

comment:1 Changed 3 years ago by nbd

After reconnecting, please use try to use the short time to stop wifi and see if there's a /sys/kernel/debug/crashlog file. If so, please post the file here.

comment:2 Changed 3 years ago by anonymous

Unfortunately i am to slow. I do the login over ssh with rsa-key, i paste the command wifi down, but direct after that the device reboots. I don't know a faster method.

comment:3 Changed 3 years ago by nbd

maybe just try 'ssh root@<ip> cat /sys/kernel/debug/crashlog'

comment:4 Changed 3 years ago by bittorf@…

if there is no crashlog, please login and run these commands:

sed -i 's/usage()/set -x\n&/' /sbin/wifi
wifi down

comment:5 Changed 3 years ago by nbd

i don't think that sed stuff helpful. wifi setup/teardown is handled by netifd.

comment:6 Changed 3 years ago by anonymous

I do both:

{{{root@OpenWrt:~# ssh root@192.168.1.1 cat /sys/kernel/debug/crashlog
cat: can't open '/sys/kernel/debug/crashlog': No such file or directory}}}

and

{{{root@OpenWrt:~# sed -i 's/usage()/set -x\n&/' /sbin/wifi
root@OpenWrt:~# wifi down
+ DEVICES=
+ DRIVERS=
+ include /lib/wifi
+ local file
+ ls /lib/wifi/mac80211.sh
+ . /lib/wifi/mac80211.sh
+ append DRIVERS mac80211
+ local var=DRIVERS
+ local value=mac80211
+ local sep=
+ eval export -n -- "DRIVERS=${DRIVERS:+${DRIVERS}${value:+$sep}}$value"
+ export -n -- DRIVERS=mac80211
+ scan_wifi
+ local cfgfile=
+ DEVICES=
+ config_load wireless
+ [ -n ]
+ uci_load wireless
+ local PACKAGE=wireless
+ local DATA
+ local RET
+ local VAR
+ _C=0
+ [ -z ]
+ export -n CONFIG_LIST_STATE=
+ export -n CONFIG_SECTIONS=
+ export -n CONFIG_NUM_SECTIONS=0
+ export -n CONFIG_SECTION=
+ /sbin/uci -P /var/state -S -n export wireless
+ DATA=package wireless

config wifi-device 'radio0'

option type 'mac80211'
option channel '11'
option hwmode '11g'
option path '10180000.wmac'
option htmode 'HT20'
option disabled '1'

config wifi-iface 'cfg033579'

option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'

+ RET=0
+ [ 0 != 0 -o -z package wireless

config wifi-device 'radio0'

option type 'mac80211'
option channel '11'
option hwmode '11g'
option path '10180000.wmac'
option htmode 'HT20'
option disabled '1'

config wifi-iface 'cfg033579'

option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none' ]

+ eval package wireless

config wifi-device 'radio0'

option type 'mac80211'
option channel '11'
option hwmode '11g'
option path '10180000.wmac'
option htmode 'HT20'
option disabled '1'

config wifi-iface 'cfg033579'

option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'

+ package wireless
+ return 0
+ config wifi-device radio0
+ local cfgtype=wifi-device
+ local name=radio0
+ export -n CONFIG_NUM_SECTIONS=1
+ name=radio0
+ append CONFIG_SECTIONS radio0
+ local var=CONFIG_SECTIONS
+ local value=radio0
+ local sep=
+ eval export -n -- "CONFIG_SECTIONS=${CONFIG_SECTIONS:+${CONFIG_SECTIONS}${value:+$sep}}$value"
+ export -n -- CONFIG_SECTIONS=radio0
+ [ -n ]
+ config_cb wifi-device radio0
+ local type=wifi-device
+ local section=radio0
+ append DEVICES radio0
+ local var=DEVICES
+ local value=radio0
+ local sep=
+ eval export -n -- "DEVICES=${DEVICES:+${DEVICES}${value:+$sep}}$value"
+ export -n -- DEVICES=radio0
+ config_set radio0 vifs
+ local section=radio0
+ local option=vifs
+ local value=
+ local old_section=
+ CONFIG_SECTION=radio0
+ option vifs
+ local varname=vifs
+ shift
+ local value=
+ export -n CONFIG_radio0_vifs=
+ [ -n ]
+ option_cb vifs
+ return 0
+ CONFIG_SECTION=
+ config_set radio0 ht_capab
+ local section=radio0
+ local option=ht_capab
+ local value=
+ local old_section=
+ CONFIG_SECTION=radio0
+ option ht_capab
+ local varname=ht_capab
+ shift
+ local value=
+ export -n CONFIG_radio0_ht_capab=
+ [ -n ]
+ option_cb ht_capab
+ return 0
+ CONFIG_SECTION=
+ config_get TYPE TYPE
+ eval export -n -- TYPE=${CONFIGTYPE:-${4}}
+ export -n -- TYPE=
+ export -n CONFIG_SECTION=radio0
+ export -n CONFIG_radio0_TYPE=wifi-device
+ option type mac80211
+ local varname=type
+ shift
+ local value=mac80211
+ export -n CONFIG_radio0_type=mac80211
+ [ -n ]
+ option_cb type mac80211
+ return 0
+ option channel 11
+ local varname=channel
+ shift
+ local value=11
+ export -n CONFIG_radio0_channel=11
+ [ -n ]
+ option_cb channel 11
+ return 0
+ option hwmode 11g
+ local varname=hwmode
+ shift
+ local value=11g
+ export -n CONFIG_radio0_hwmode=11g
+ [ -n ]
+ option_cb hwmode 11g
+ return 0
+ option path 10180000.wmac
+ local varname=path
+ shift
+ local value=10180000.wmac
+ export -n CONFIG_radio0_path=10180000.wmac
+ [ -n ]
+ option_cb path 10180000.wmac
+ return 0
+ option htmode HT20
+ local varname=htmode
+ shift
+ local value=HT20
+ export -n CONFIG_radio0_htmode=HT20
+ [ -n ]
+ option_cb htmode HT20
+ return 0
+ option disabled 1
+ local varname=disabled
+ shift
+ local value=1
+ export -n CONFIG_radio0_disabled=1
+ [ -n ]
+ option_cb disabled 1
+ return 0
+ config wifi-iface cfg033579
+ local cfgtype=wifi-iface
+ local name=cfg033579
+ export -n CONFIG_NUM_SECTIONS=2
+ name=cfg033579
+ append CONFIG_SECTIONS cfg033579
+ local var=CONFIG_SECTIONS
+ local value=cfg033579
+ local sep=
+ eval export -n -- "CONFIG_SECTIONS=${CONFIG_SECTIONS:+${CONFIG_SECTIONS}${value:+$sep}}$value"
+ export -n -- CONFIG_SECTIONS=radio0 cfg033579
+ [ -n ]
+ config_cb wifi-iface cfg033579
+ local type=wifi-iface
+ local section=cfg033579
+ config_get TYPE radio0 TYPE
+ eval export -n -- TYPE=${CONFIG_radio0_TYPE:-${4}}
+ export -n -- TYPE=wifi-device
+ export -n CONFIG_SECTION=cfg033579
+ export -n CONFIG_cfg033579_TYPE=wifi-iface
+ option device radio0
+ local varname=device
+ shift
+ local value=radio0
+ export -n CONFIG_cfg033579_device=radio0
+ [ -n ]
+ option_cb device radio0
+ return 0
+ option network lan
+ local varname=network
+ shift
+ local value=lan
+ export -n CONFIG_cfg033579_network=lan
+ [ -n ]
+ option_cb network lan
+ return 0
+ option mode ap
+ local varname=mode
+ shift
+ local value=ap
+ export -n CONFIG_cfg033579_mode=ap
+ [ -n ]
+ option_cb mode ap
+ return 0
+ option ssid OpenWrt
+ local varname=ssid
+ shift
+ local value=OpenWrt
+ export -n CONFIG_cfg033579_ssid=OpenWrt
+ [ -n ]
+ option_cb ssid OpenWrt
+ return 0
+ option encryption none
+ local varname=encryption
+ shift
+ local value=none
+ export -n CONFIG_cfg033579_encryption=none
+ [ -n ]
+ option_cb encryption none
+ return 0
+ unset DATA
+ config_cb
+ local type=
+ local section=
+ config_get TYPE cfg033579 TYPE
+ eval export -n -- TYPE=${CONFIG_cfg033579_TYPE:-${4}}
+ export -n -- TYPE=wifi-iface
+ config_get device cfg033579 device
+ eval export -n -- device=${CONFIG_cfg033579_device:-${4}}
+ export -n -- device=radio0
+ config_get vifs radio0 vifs
+ eval export -n -- vifs=${CONFIG_radio0_vifs:-${4}}
+ export -n -- vifs=
+ append vifs cfg033579
+ local var=vifs
+ local value=cfg033579
+ local sep=
+ eval export -n -- "vifs=${vifs:+${vifs}${value:+$sep}}$value"
+ export -n -- vifs=cfg033579
+ config_set radio0 vifs cfg033579
+ local section=radio0
+ local option=vifs
+ local value=cfg033579
+ local old_section=cfg033579
+ CONFIG_SECTION=radio0
+ option vifs cfg033579
+ local varname=vifs
+ shift
+ local value=cfg033579
+ export -n CONFIG_radio0_vifs=cfg033579
+ [ -n ]
+ option_cb vifs cfg033579
+ return 0
+ CONFIG_SECTION=cfg033579
+ return 0
+ wifi_updown disable
+ cmd=down
+ [ enable = disable ]
+ ubus_wifi_cmd down
+ local cmd=down
+ local dev=
+ json_init
+ json_cleanup
+ local unset tmp
+ _json_get_var unset JSON_UNSET
+ eval unset="$JSON_UNSET"
+ unset=
+ unset UP_JSON_VAR KEYS_JSON_VAR SEQ_JSON_VAR TYPE_JSON_VAR NAME_JSON_VAR JSON_VAR
+ unset JSON_SEQ JSON_CUR JSON_UNSET
+ export -- JSON_SEQ=0 JSON_CUR=JSON_VAR KEYS_JSON_VAR= TYPE_JSON_VAR=
+ [ -n ]
+ json_dump
+ jshn -w
+ ubus call network.wireless down { }
+ _wifi_updown disable
+ config_get disabled radio0 disabled
+ eval export -n -- disabled=${CONFIG_radio0_disabled:-${4}}
+ export -n -- disabled=1
+ [ 1 == 1 ]
+ echo 'radio0' is disabled
'radio0' is disabled
+ set disable
+ config_get iftype radio0 type
+ eval export -n -- iftype=${CONFIG_radio0_type:-${4}}
+ export -n -- iftype=mac80211
+ eval type disable_mac80211
+ [ ! -f /lib/netifd/wireless/mac80211.sh ]}}}

comment:7 Changed 3 years ago by anonymous

I have also a dir-615 h1 and no problem with wireless.
This is my config

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11g'
	option path '10180000.wmac'
	option channel '3'
	option htmode 'HT40'
	option country '00'
	option txpower '10'

config wifi-iface
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'OpenWrt'
	option hidden '1'
	option encryption 'psk2+ccmp'
	option key 'mypassword'

comment:8 Changed 3 years ago by anonymous

remove option txpower '10' because I need low power

comment:9 Changed 3 years ago by bittorf@…

so please try to replace the powersupply, maybe there is a brown-out during activation of the wifi-module...

comment:10 Changed 3 years ago by anonymous

With the wireless config posted above, I have the same problems. I will test another power supply. I have a selfmade usb adapter i build for the dir-300. I think it will fit in the dir-615 too. Unfortunately I store it by my parents and I don't know when i can get it.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.