Modify

Opened 2 years ago

Last modified 23 months ago

#21905 reopened defect

lantiq: /etc/init.d/dsl_control lucistat not working

Reported by: DocMAX Owned by: hauke
Priority: normal Milestone: Designated Driver (Trunk)
Component: packages Version: Trunk
Keywords: Cc:

Description

hi,

i noticed a "collecting data..." with latest trunk.
so i did a /etc/init.d/dsl_control lucistat

local dsl={} is all i get. so there must be (still) a problem with lantiq_dsl.sh.

can you please fix this?

kr,
docmax

Attachments (0)

Change History (9)

comment:1 Changed 2 years ago by DocMAX

this is what i get on chaos calmer:

root@router:~# /etc/init.d/dsl_control lucistat
local dsl={}
dsl.chipset="Ifx-AR9 1.2"
dsl.line_state_num=0x801
dsl.line_state_detail="showtime_tc_sync"
dsl.line_state="UP"
dsl.data_rate_down=11634215
dsl.data_rate_up=1142857
dsl.data_rate_down_s="11.634 Mb"
dsl.data_rate_up_s="1.142 Mb"
dsl.line_attenuation_down=21.7
dsl.line_attenuation_up=9.3
dsl.noise_margin_down=9.1
dsl.noise_margin_up=9.3
dsl.line_uptime=30
return dsl

comment:2 Changed 2 years ago by jow

  • Owner changed from developers to hauke
  • Status changed from new to assigned

comment:3 Changed 2 years ago by audun@…

Works for me on r48700
Luci reports everything just fine

This is what i get on command line:
root@OpenWrt:~# /etc/init.d/dsl_control lucistat
local dsl={}
dsl.atuc_vendor_id="Broadcom 164.141"
dsl.atuc_system_vendor_id="Broadcom"
dsl.chipset="Lantiq-VRX200 Unknown"
dsl.firmware_version="5.7.3.3.0.6"
dsl.api_version="4.16.6.3"
dsl.xtse1=0x0
dsl.xtse2=0x0
dsl.xtse3=0x0
dsl.xtse4=0x0
dsl.xtse5=0x0
dsl.xtse6=0x0
dsl.xtse7=0x0
dsl.xtse8=0x2
dsl.xtse_s="0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2"
dsl.annex_s="B"
dsl.line_mode_s="G.993.2 (VDSL2)"
dsl.profile=6
dsl.line_state_num=0x801
dsl.line_state_detail="showtime_tc_sync"
dsl.line_state="UP"
dsl.errors_fec_near=4294779182
dsl.errors_fec_far=0
dsl.errors_es_near=2102
dsl.errors_es_far=28
dsl.errors_ses_near=0
dsl.errors_ses_far=1
dsl.errors_loss_near=0
dsl.errors_loss_far=1
dsl.errors_uas_near=332
dsl.errors_uas_far=332
dsl.errors_hec_near=0
dsl.errors_hec_far=0
dsl.errors_crc_p_near=181
dsl.errors_crc_p_far=0
dsl.errors_crcp_p_near=0
dsl.errors_crcp_p_far=0
dsl.power_mode_num=0
dsl.power_mode_s="L0 - Synchronized"
dsl.latency_num_down="0.0 ms"
dsl.latency_num_up="0.0 ms"
dsl.latency_s_down="Fast"
dsl.latency_s_up="Fast"
dsl.data_rate_down=27001000
dsl.data_rate_up=5536000
dsl.data_rate_down_s="27.001 Mb"
dsl.data_rate_up_s="5.536 Mb"
dsl.line_attenuation_down=27.3
dsl.line_attenuation_up=27.9
dsl.noise_margin_down=14.8
dsl.noise_margin_up=15.8
dsl.signal_attenuation_down=24.0
dsl.signal_attenuation_up=28.2
dsl.actatp_down=6.0
dsl.actatp_up=14.2
dsl.max_data_rate_down=39903184
dsl.max_data_rate_up=8099000
dsl.max_data_rate_down_s="39.903 Mb"
dsl.max_data_rate_up_s="8.099 Mb"
dsl.line_uptime=101838
dsl.line_uptime_s="1d 4h 17m 18s"
return dsl

comment:4 Changed 2 years ago by hauke

It could be that something is stuck at the lock around the /tmp/pipe/* files. Please post the output of ps

comment:5 Changed 2 years ago by DocMAX

strange, works now in r48934.

comment:6 Changed 23 months ago by hauke

  • Resolution set to fixed
  • Status changed from assigned to closed

If you can reproduce the problem again please reopen and post the output of "ps".

comment:7 Changed 23 months ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

there problem is there again. comes and goes.

root@router:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1528 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW<  [kworker/0:0H]
   84 root         0 SW   [kworker/u2:2]
   91 root         0 SW<  [writeback]
   93 root         0 SW<  [crypto]
   94 root         0 SW<  [bioset]
   96 root         0 SW<  [kblockd]
  106 root         0 SW   [kswapd0]
  107 root         0 SW   [kworker/0:1]
  180 root         0 SW   [fsnotify_mark]
  213 root         0 SW<  [bioset]
  218 root         0 SW<  [bioset]
  223 root         0 SW<  [bioset]
  228 root         0 SW<  [bioset]
  233 root         0 SW<  [bioset]
  238 root         0 SW<  [bioset]
  243 root         0 SW<  [bioset]
  248 root         0 SW<  [bioset]
  330 root         0 SW<  [ipv6_addrconf]
  339 root         0 SW<  [deferwq]
  342 root         0 SW<  [kworker/0:1H]
  362 root         0 SW<  [bioset]
  405 root         0 SW   [scsi_eh_0]
  406 root         0 SW<  [scsi_tmf_0]
  408 root         0 SW   [usb-storage]
  439 root         0 SW<  [bioset]
  463 root         0 SW   [jbd2/sda1-8]
  464 root         0 SW<  [ext4-rsv-conver]
  561 root      1168 S    /sbin/ubusd
  572 root       888 S    /sbin/askfirst /bin/ash --login
 1102 root         0 SW<  [cifsiod]
 1268 root         0 SW<  [cfg80211]
 1395 root      1168 S    /sbin/logd -S 16
 1396 root      1328 S    /sbin/logread -f -r 192.168.1.5 514 -p /var/run/logread.2.pid -u
 1405 root      1432 S    /sbin/rpcd
 1444 root      1688 S    /sbin/netifd
 1467 root      1272 S    /usr/sbin/odhcpd
 1490 root       984 S    /usr/sbin/br2684ctl -c 0 -e 0 -p 1 -a 0.1.32 -S /lib/netifd/br2684-up
 1526 root      1052 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
 1535 root       892 S    /usr/bin/hd-idle -a sda -i 600
 1706 root      1544 S    /usr/sbin/uhttpd -f -h /www -r router -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 3 -N 100 -p 0.0.0.0:80 -p [::]:80
 1754 root      2848 S    /usr/sbin/smbd -F
 1755 root      2904 S    /usr/sbin/nmbd -F
 1789 root      1364 S    /usr/lib/ipsec/starter --daemon charon
 1879 root         0 SW<  [btrfs-worker]
 1880 root         0 SW<  [kworker/u3:0]
 1881 root         0 SW<  [btrfs-worker-hi]
 1882 root         0 SW<  [btrfs-delalloc]
 1883 root         0 SW<  [btrfs-flush_del]
 1884 root         0 SW<  [btrfs-cache]
 1885 root         0 SW<  [btrfs-submit]
 1886 root         0 SW<  [btrfs-fixup]
 1887 root         0 SW<  [btrfs-endio]
 1888 root         0 SW<  [btrfs-endio-met]
 1889 root         0 SW<  [btrfs-endio-met]
 1890 root         0 SW<  [btrfs-endio-rai]
 1891 root         0 SW<  [btrfs-endio-rep]
 1892 root         0 SW<  [btrfs-rmw]
 1893 root         0 SW<  [btrfs-endio-wri]
 1895 root         0 SW<  [btrfs-freespace]
 1896 root         0 SW<  [btrfs-delayed-m]
 1897 root         0 SW<  [btrfs-readahead]
 1898 root         0 SW<  [btrfs-qgroup-re]
 1899 root         0 SW<  [btrfs-extent-re]
 1900 root         0 SW   [btrfs-cleaner]
 1901 root         0 SW   [btrfs-transacti]
 2004 root      1904 S    /usr/sbin/hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf
 2021 root      1172 S    {watchcat.sh} /bin/sh /usr/bin/watchcat.sh period 21600 30 8.8.8.8 1080
 2028 root      1168 S    sleep 1080
 2051 root      1172 S    /usr/sbin/ntpd -n -l -S /usr/sbin/ntpd-hotplug -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.pool.ntp.org
 2063 root      1376 S    /sbin/dsl_cpe_control -i10_00_10_00_00_04_00_00 -n /sbin/dsl_notify.sh -f /lib/firmware/adsl.bin
 2067 root         0 SW   [autbtex]
 2068 root         0 SW   [ceocex_ne]
 2069 root         0 SW   [pmex_ne]
 2070 root         0 DW   [pmex_fe]
 2123 root      8336 S    /usr/lib/ipsec/charon --use-syslog
 2193 root      3536 S    /usr/sbin/smbd -F
 2357 root      3536 S    /usr/sbin/smbd -F
 2384 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 2385 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 2413 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 2415 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 2417 root      1168 S    lock /var/lock/dsl_pipe
 2418 root      1168 S    cat /tmp/pipe/dsl_cpe0_ack
 2579 root      1120 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
 2728 root      1188 S    -ash
 3182 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 3184 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3191 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3199 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3200 root      1168 S    lock /var/lock/dsl_pipe
 3469 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 3470 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3472 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3474 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3475 root      1168 S    lock /var/lock/dsl_pipe
 3621 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 3622 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3624 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3627 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3628 root      1168 S    lock /var/lock/dsl_pipe
 3737 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 3738 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3740 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3742 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 3743 root      1168 S    lock /var/lock/dsl_pipe
 4009 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 4010 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 4012 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 4014 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 4015 root      1168 S    lock /var/lock/dsl_pipe
 4239 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 4240 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 4242 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 4244 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 4245 root      1168 S    lock /var/lock/dsl_pipe
 5993 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 5995 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 5998 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 6000 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 6001 root      1168 S    lock /var/lock/dsl_pipe
 6111 root      3720 S    /usr/sbin/smbd -F
 6404 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 6406 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 6412 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 6424 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 6425 root      1168 S    lock /var/lock/dsl_pipe
 6429 root         0 SW<  [kworker/u3:1]
 6430 root         0 SW   [kworker/u2:4]
 6828 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 6829 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 6833 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 6835 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 6836 root      1168 S    lock /var/lock/dsl_pipe
 7278 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 7279 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 7281 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 7283 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 7284 root      1168 S    lock /var/lock/dsl_pipe
 7503 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
 7504 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 7506 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 7508 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
 7509 root      1168 S    lock /var/lock/dsl_pipe
 8182 root      1204 S    /usr/sbin/pppd nodetach ipparam wan ifname pppoe-wan +ipv6 nodefaultroute usepeerdns maxfail 1 user 04216952130 password empty ip-up-script /lib/netifd/ppp-up ipv6-up-script /lib/netifd/ppp-up ip-down-script /lib/netifd/ppp-down ipv6-down-scri
 8293 root       912 S    odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 pppoe-wan
 8566 root      1324 S    {dynamic_dns_upd} /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh noip 0
 8568 root      1324 S    {dynamic_dns_upd} /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh afraid 0
 8772 root      1120 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300
 8954 root      1188 S    -ash
 9502 nobody    1044 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k -x /var/run/dnsmasq/dnsmasq.pid
 9806 root      1168 S    sleep 600
 9818 root      1168 S    sleep 600
10033 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
10034 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
10051 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
10064 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
10065 root      1168 S    lock /var/lock/dsl_pipe
10432 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
10433 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
10435 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
10437 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
10438 root      1168 S    lock /var/lock/dsl_pipe
10797 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
10798 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
10800 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
10802 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
10803 root      1168 S    lock /var/lock/dsl_pipe
11211 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
11215 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
11222 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
11231 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
11232 root      1168 S    lock /var/lock/dsl_pipe
11614 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
11615 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
11617 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
11619 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
11620 root      1168 S    lock /var/lock/dsl_pipe
11975 root      3396 S    {luci} /usr/bin/lua /www/cgi-bin/luci
12009 root      1168 S    sh -c /etc/init.d/dsl_control lucistat
12010 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
12012 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
12014 root      1272 S    {dsl_control} /bin/sh /etc/rc.common /etc/init.d/dsl_control lucistat
12015 root      1168 S    lock /var/lock/dsl_pipe
12097 root      2840 S    {luci} /usr/bin/lua /www/cgi-bin/luci
12146 root      1168 R    ps
12153 root      1168 S    sh -c /usr/lib/ddns/dynamic_dns_lucihelper.sh get_registered_ip docmax.my.to 0 0 0
12154 root      1220 S    {dynamic_dns_luc} /bin/sh /usr/lib/ddns/dynamic_dns_lucihelper.sh get_registered_ip docmax.my.to 0 0 0

comment:8 Changed 23 months ago by DocMAX

anonymous is me

comment:9 Changed 23 months ago by DocMAX

hmm, seems to work after deleting /var/lock/dsl_pipe

Add Comment

Modify Ticket

Action
as reopened .
Author


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

 
Note: See TracTickets for help on using tickets.