Adding support for VRX518 (and maybe VRX320)

I think you can press any. Did you press at the right time? When the green LED starts to blink fast, press the key and hold it a bit until the red info LED lights up.

I bricked my 7530 at one point in messing around and the windows recovery tool just wouldn't work but luckily I found a thread here: Fritzbox 4040 flash: FTP connection refused - #4 by JevermeisteR and got it to work and then after that I flashed back to a working openwrt firmware though the exact details of what I did are hazy

Seriously?

Please take a look over here:

Especially this one:
3. Uncheck/clear the “Keep settings” checkbox especially for major version upgrades, so that new defaults will get applied. Keeping settings may be possible for minor upgrades, but there is always a risk of incompatible settings. (more info regarding the "Keep settings" checkbox and its use cases).

1 Like

@andyboeh , nothing happens if I press a button during the blinking light. The power light just switches to an "always on" state thereafter.

@elder_tinkerer , I do not upgrade anything using Luci. I only install firmware using the offical steps from https://openwrt.org/toh/avm/avm_fritz_box_7530 after recovering the router with AVM Recovery and then install the new firmware through own building of the firmware or via https://firmware-selector.openwrt.org/ .

@breezyy
So this means, you're doing this via ssh and cli?
Like this: sysupgrade -n /tmp/avm_fritzbox-7530-squashfs-sysupgrade.bin?
Then you're not keeping the settings...that's what the '-n' options does.
And if you're using the firmware from the firmware selector, make sure to select 'Snapshot' and don't forget to include all necessary packets like luci and whatever else you might need.
This works really fine...i've done this several times for my FB7520 (just to get the hang of it) and i never encountered any problem.

So there must a be a problem on your side that all others didn't had...
To find out what the cause of this problem is, now that's a task you have to do where we might or might not be helpful.

I just pushed my local copy of the old vr11 branch: https://github.com/andyboeh/openwrt/tree/vr11

1 Like

I have now this firmware snapshot from dhewg.
I connectet my ADSL 16 but how i can see if there is anything happen with the DSL connection?

ubus call dsl metrics

is not working
also i tryed to install

opkg install xdslctl

but this packet are not able to found

under the WebGUI i see only in the Interface rubric the DSL and DSLv6

You appear to be the first user here with an ADSL connection, so it is possible that there is an issue related to that (or more specifically ATM which is usually used with ADSL). However, even then it is surprising that ubus call dsl metrics doesn't work. Is there any error message?

The package xdslctl that you tried to install does not exist. A command with that name is usually used for diagnostic information with Broadcom modems, but those aren't supported in OpenWrt. The equivalent command for this Lantiq modem on OpenWrt would be dsl_cpe_pipe.sh. If the dsl_control daemon is running, then at least dsl_cpe_pipe.sh vig should work and show version numbers.

You could also try to check the kernel log to see if there are any messages about the modem.

Hi Jan, has this patch been merged to the master branch already?

Thanks!

Amazing work, @janh - I'm building your tree right now since my "new" 7520 is also stuck transmitting. I'm very excited to see if this works :slight_smile:

works great!

Hi,

I tried the same same with the most recent snapshot and I do get the DSL Menu and it tells me it is able to sync and able to establish a connection. But it seems that I am not able to login with my account data, so there is not internet connection established. I am using the same configuration as on my FB 7362SL (which already has DSL modem support) for a German Telekom VDSL connection. What could I do to debug the problem? I also think @andyboeh made a small mistake in the wiki. He instructs to use the command:

ln -s xcpe_8D1507_8D0901.bin /lib/firmware/vdsl.bin

But I think it should be:

ln -s /lib/firmware/xcpe_8D1507_8D0901.bin /lib/firmware/vdsl.bin

Since he does not state to change to the lib/firmware folder after the login.

This doesn't make much sense, if it is able to establish a connection (and I assume a PPPoE connection), then the account credentials are OK.

It would help to post your configuration (be sure to redact sensitive information) and to check if there are any error message in the log. Also, a log from when it tries to establish the connection would be helpful.

Nope, the instructions are fine. This creates a relative symlink to xcpe_8D1507_8D0901.bin, residing in the same folder as vdsl.bin. And vdsl.bin is given as an absolute path. When creating the symlink, you don't need access to the file, i.e. it doesn't matter which folder you are in.

As an alternative, you can also set the path to the firmware file in /etc/config/network. This is what I use on my 7520 boxes:

config dsl 'dsl'
	option annex 'b'
	option tone 'b'
	option ds_snr_offset '0'
	option firmware '/lib/firmware/xcpe_8.D.1.C.1.7_8.D.0.E.1.2.bin'

Does the message dc_ep_clk_on failed appear in the kernel log on your device? If yes, then you need an additional patch.

1 Like

Hi, thx for the quick reply. I did not spot the dc_ep_clk_on failed message in my kernel log. Here are a few pictures how it looks in LUCI:


Here is my network config for the dsl

config atm-bridge 'atm'
        option vpi '1'
        option vci '32'
        option encaps 'llc'
        option payload 'bridged'
        option nameprefix 'dsl'


config dsl 'dsl'
        option ds_snr_offset '0'
        option annex 'b'
        option xfer_mode 'ptm'
        option line_mode 'vdsl'
        option tone 'bv'
        option firmware '/lib/firmware/vdsl.bin'

config device 'wan_dsl0_dev'
        option name 'dsl0'
        option macaddr 'DC:39:6F:EA:23:88'


config interface 'wan'
        option device 'dsl0'
        option proto 'pppoe'
        option username '[redacted]@t-online.de'
        option password '[redacted]'
        option ipv6 'auto'
        option keepalive '9 6'
        option dns_metric '6'

For completes here is also the kernel log

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.102 (builder@buildhost) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.2.0 r22325-00b40ef00d) 12.2.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Mon Mar 20 02:10:43 2023
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: AVM FRITZ!Box 7530
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x0000000087dfffff]
[    0.000000]   node   0: [mem 0x0000000087e00000-0x0000000087ffffff]
[    0.000000]   node   0: [mem 0x0000000088000000-0x000000008fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000008fffffff]
[    0.000000] percpu: Embedded 12 pages/cpu s16588 r8192 d24372 u49152
[    0.000000] pcpu-alloc: s16588 r8192 d24372 u49152 alloc=12*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line:  coherent_pool=4M
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 246184K/262144K available (6823K kernel code, 610K rwdata, 1708K rodata, 1024K init, 247K bss, 15960K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 48.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
[    0.000002] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[    0.000025] Switching to timer-based delay loop, resolution 20ns
[    0.000319] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[    0.000349] pid_max: default: 32768 minimum: 301
[    0.000580] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000608] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001622] CPU: Testing write buffer coherency: ok
[    0.002000] qcom_scm: convention: smc legacy
[    0.003113] Setting up static identity map for 0x80300000 - 0x8030003c
[    0.003286] rcu: Hierarchical SRCU implementation.
[    0.003538] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.003870] smp: Bringing up secondary CPUs ...
[    0.007189] smp: Brought up 1 node, 4 CPUs
[    0.007226] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[    0.007241] CPU: All CPU(s) started in SVC mode.
[    0.012043] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.012211] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.012245] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.012500] pinctrl core: initialized pinctrl subsystem
[    0.014143] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.017128] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.018252] thermal_sys: Registered thermal governor 'step_wise'
[    0.018674] cpuidle: using governor ladder
[    0.018735] cpuidle: using governor menu
[    0.026434] gpio-461 (enable USB3 power): hogged as output/high
[    0.044531] cryptd: max_cpu_qlen set to 1000
[    0.048719] usbcore: registered new interface driver usbfs
[    0.048794] usbcore: registered new interface driver hub
[    0.048853] usbcore: registered new device driver usb
[    0.048907] pps_core: LinuxPPS API ver. 1 registered
[    0.048920] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.048949] PTP clock support registered
[    0.050982] clocksource: Switched to clocksource arch_sys_counter
[    0.051933] NET: Registered PF_INET protocol family
[    0.052154] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.052953] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.053008] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.053030] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.053074] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.053129] TCP: Hash tables configured (established 2048 bind 2048)
[    0.053248] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.053294] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.053576] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.053631] PCI: CLS 0 bytes, default 64
[    0.055940] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.060752] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.060793] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.190646] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.193127] qcom-pcie 40000000.pci: host bridge /soc/pci@40000000 ranges:
[    0.193200] qcom-pcie 40000000.pci:       IO 0x0040200000..0x00402fffff -> 0x0040200000
[    0.193238] qcom-pcie 40000000.pci:      MEM 0x0040300000..0x0040ffffff -> 0x0040300000
[    0.372561] qcom-pcie 40000000.pci: iATU unroll: disabled
[    0.372593] qcom-pcie 40000000.pci: Detected iATU regions: 32 outbound, 8 inbound
[    0.472691] qcom-pcie 40000000.pci: Link up
[    0.472890] qcom-pcie 40000000.pci: PCI host bridge to bus 0000:00
[    0.472914] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.472938] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0x40200000-0x402fffff])
[    0.472957] pci_bus 0000:00: root bus resource [mem 0x40300000-0x40ffffff]
[    0.473016] pci 0000:00:00.0: [17cb:1001] type 01 class 0x060400
[    0.473051] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
[    0.473122] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.474624] PCI: bus0: Fast back to back transfers disabled
[    0.474846] pci 0000:01:00.0: [8086:09a9] type 00 class 0x028000
[    0.474934] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x007fffff]
[    0.475337] pci 0000:01:00.0: supports D1 D2
[    0.475352] pci 0000:01:00.0: PME# supported from D0 D1 D3hot D3cold
[    0.476923] PCI: bus1: Fast back to back transfers disabled
[    0.476972] pci 0000:00:00.0: BAR 8: assigned [mem 0x40800000-0x40ffffff]
[    0.476995] pci 0000:00:00.0: BAR 0: assigned [mem 0x40300000-0x40300fff]
[    0.477020] pci 0000:01:00.0: BAR 0: assigned [mem 0x40800000-0x40ffffff]
[    0.477053] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.477074] pci 0000:00:00.0:   bridge window [mem 0x40800000-0x40ffffff]
[    0.479890] pcieport 0000:00:00.0: AER: enabled with IRQ 102

cut for space reasons

[   11.374639] UBIFS (ubi0:4): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.382667] UBIFS (ubi0:4): FS size: 83677184 bytes (79 MiB, 659 LEBs), max 670 LEBs, journal size 4190208 bytes (3 MiB, 33 LEBs)
[   11.392534] UBIFS (ubi0:4): reserved for root: 3952280 bytes (3859 KiB)
[   11.404120] UBIFS (ubi0:4): media format: w5/r0 (latest is w5/r0), UUID F4F2078B-B46D-41E6-B559-5B6FDE6238C1, small LPT model
[   11.421967] mount_root: switching to ubifs overlay
[   11.443115] urandom-seed: Seeding with /etc/urandom.seed
[   11.621596] procd: - early -
[   11.621814] procd: - watchdog -
[   12.234753] procd: - watchdog -
[   12.248220] procd: - ubus -
[   12.329953] procd: - init -
[   13.314679] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.346898] urngd: v1.0.2 started.
[   13.408639] IFXOS, Version 1.7.1 (c) Copyright 2009, Lantiq Deutschland GmbH
[   13.410584] vrx518: Intel(R) SmartPHY DSL(VRX518) PCIe EP/ACA Driver - version 2.1.0-k
[   13.414818] vrx518: Copyright (c) 2016 Intel Corporation.
[   13.422693] vrx518 0000:01:00.0: enabling device (0140 -> 0142)
[   13.431525] NET: Registered PF_ATMPVC protocol family
[   13.433698] NET: Registered PF_ATMSVC protocol family
[   13.446217] vrx518_tc:pcie_ep_probe: Total 1 VRX518 EP detected
[   13.459910] MD5 checksum pass!!!
[   13.459957] Firmware pointer id(0):size(10636), fw addr(d32c2046), off(100)
[   13.462262] Firmware pointer id(1):size(19548), fw addr(fb7b9b1b), off(10736)
[   13.468905] Firmware pointer id(2):size(11504), fw addr(63b5bcbc), off(30284)
[   13.476232] Firmware pointer id(3):size(23076), fw addr(93c969bf), off(41788)
[   13.483332] VRX518 PPE Firmware header info
[   13.490429] 	PTM Version: 3.5.75
[   13.494431] 	PTM Feature: A0000000
[   13.497891] 	ATM Version: 3.6.5
[   13.501113] 	ATM Feature: B0000000
[   13.504141] 	Compability ID: 00000004
[   13.507614] 	Size: 00000010
[   13.511356] 	FW built Date: 3-25-2021
[   13.513952] 	Number of firmware: 4
[   13.517770] 		Firmware[0]: ID[0] size[2659] at[0xd32c2046]
[   13.521082] 		Firmware[1]: ID[1] size[4887] at[0xfb7b9b1b]
[   13.526541] 		Firmware[2]: ID[2] size[2876] at[0x63b5bcbc]
[   13.532021] 		Firmware[3]: ID[3] size[5769] at[0x93c969bf]
[   13.537567] vrx518_tc:tc_drv_init: Intel(R) SmartPHY DSL(VRX518) PCIe TC Driver - version 1.5.12.4
[   13.542969] vrx518_tc:tc_drv_init: Copyright (c) 2018 Intel Corporation.
[   13.563262] Lantiq (VRX) DSL CPE MEI driver, version 1.11.1, (c) 2007-2016 Lantiq Deutschland GmbH
[   13.563519] Found 1 PCI VRX devices, 
[   13.579529] 
[   13.579529] 
[   13.579529] Lantiq CPE API Driver version: DSL CPE API V4.23.1
[   13.579589] 
[   13.579589] 
[   13.579589] Lantiq CPE API Driver - autoloading layout...
[   13.587446] 
[   13.587446] 
[   13.587446] Lantiq CPE API Device layout: 1 devices, 1 lines, 1 channels
[   13.595526] 
[   13.595526] Predefined debug level: 3
[   13.605213] 
[   13.605213] ++++++++++++++++++ MEI_InternalDevOpen ++++++++++++++++++
[   13.605213] 
[   13.610677] 
[   13.610677] ++++++++++++++++++ MEI_InternalDevOpen ++++++++++++++++++
[   13.610677] 
[   13.632669] Loading modules backported from Linux version v6.1-rc8-0-g76dcd734eca2
[   13.632721] Backport generated by backports.git v5.15.81-1-41-g02e352527db5
[   13.722223] PPP generic driver version 2.4.2
[   13.724264] NET: Registered PF_PPPOX protocol family
[   13.744956] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   13.745010] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   14.839298] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[   14.839368] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   14.851255] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[   14.902941] ath10k_ahb a000000.wifi: Loading BDF type 0
[   14.964961] ath10k_ahb a000000.wifi: board_file api 2 bmi_id 0:20 crc32 de0d18b2
[   16.252581] ath10k_ahb a000000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   16.252659] ath10k_ahb a000000.wifi: msdu-desc: 2500  skid: 32
[   16.287189] ath10k_ahb a000000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   16.288190] ath10k_ahb a000000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[   16.433449] ath10k_ahb a000000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   16.615071] ath: EEPROM regdomain: 0x0
[   16.615099] ath: EEPROM indicates default country code should be used
[   16.615106] ath: doing EEPROM country->regdmn map search
[   16.615114] ath: country maps to regdmn code: 0x3a
[   16.615121] ath: Country alpha2 being used: US
[   16.615129] ath: Regpair used: 0x3a
[   17.961089] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[   17.961184] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   17.974465] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[   18.024768] ath10k_ahb a800000.wifi: Loading BDF type 0
[   18.032528] ath10k_ahb a800000.wifi: board_file api 2 bmi_id 0:21 crc32 de0d18b2
[   19.320021] ath10k_ahb a800000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   19.320092] ath10k_ahb a800000.wifi: msdu-desc: 2500  skid: 32
[   19.355763] ath10k_ahb a800000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   19.356775] ath10k_ahb a800000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[   19.481808] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   19.629518] ath: EEPROM regdomain: 0x0
[   19.629546] ath: EEPROM indicates default country code should be used
[   19.629552] ath: doing EEPROM country->regdmn map search
[   19.629560] ath: country maps to regdmn code: 0x3a
[   19.629568] ath: Country alpha2 being used: US
[   19.629575] ath: Regpair used: 0x3a
[   19.639927] kmodloader: done loading kernel modules from /etc/modules.d/*
[   26.920529] ipqess-edma c080000.ethernet eth0: Link is Down
[   26.927419] ipqess-edma c080000.ethernet eth0: configuring for fixed/internal link mode
[   26.927741] ipqess-edma c080000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   26.934970] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   26.945451] qca8k-ipq4019 c000000.switch lan1: configuring for phy/psgmii link mode
[   26.954008] br-lan: port 1(lan1) entered blocking state
[   26.956489] br-lan: port 1(lan1) entered disabled state
[   26.962562] device lan1 entered promiscuous mode
[   26.966897] device eth0 entered promiscuous mode
[   27.001490] qca8k-ipq4019 c000000.switch lan2: configuring for phy/psgmii link mode
[   27.007847] br-lan: port 2(lan2) entered blocking state
[   27.007992] br-lan: port 2(lan2) entered disabled state
[   27.013884] device lan2 entered promiscuous mode
[   27.026395] qca8k-ipq4019 c000000.switch lan3: configuring for phy/psgmii link mode
[   27.029059] br-lan: port 3(lan3) entered blocking state
[   27.033075] br-lan: port 3(lan3) entered disabled state
[   27.038597] device lan3 entered promiscuous mode
[   27.055779] qca8k-ipq4019 c000000.switch lan4: configuring for phy/psgmii link mode
[   27.058331] br-lan: port 4(lan4) entered blocking state
[   27.062384] br-lan: port 4(lan4) entered disabled state
[   27.068290] device lan4 entered promiscuous mode
[   29.694052] ath10k_ahb a000000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   29.694125] ath10k_ahb a000000.wifi: msdu-desc: 2500  skid: 32
[   29.729444] ath10k_ahb a000000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   29.730273] ath10k_ahb a000000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[   30.079294] ath10k_ahb a000000.wifi: rts threshold -1
[   30.081171] ath10k_ahb a000000.wifi: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4
[   30.163823] qca8k-ipq4019 c000000.switch lan4: Link is Up - 1Gbps/Full - flow control rx/tx
[   30.163933] br-lan: port 4(lan4) entered blocking state
[   30.171065] br-lan: port 4(lan4) entered forwarding state
[   30.176710] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   30.565499] ath10k_ahb a000000.wifi: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000
[   31.065920] phy0-sta0: authenticate with e0:28:6d:36:cf:73
[   31.066041] phy0-sta0: 80 MHz not supported, disabling VHT
[   31.280488] phy0-sta0: send auth to e0:28:6d:36:cf:73 (try 1/3)
[   31.284463] phy0-sta0: authenticated
[   31.291111] phy0-sta0: associate with e0:28:6d:36:cf:73 (try 1/3)
[   31.293600] phy0-sta0: RX AssocResp from e0:28:6d:36:cf:73 (capab=0x31 status=0 aid=3)
[   31.297649] ath10k_ahb a000000.wifi: pdev param 0 not supported by firmware
[   31.304168] ath10k_ahb a000000.wifi: failed to enable peer stats info: -95
[   31.311148] phy0-sta0: associated
[   31.323015] ath10k_ahb a000000.wifi: Invalid peer id 0 or peer stats buffer, peer: 00000000  sta: 00000000
[   31.572600] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-sta0: link becomes ready
[ 1179.664395] plat_tc_request: dsl id: 0, mode: 1, tc_mode: 3, tc_idx: -1
[ 1179.665470] vrx518_tc:ptm_tc_hw_fw_init: id(Line)		= 0
[ 1179.667026] vrx518_tc:ptm_set_mac_address: ptm mac address update!
[ 1179.669888] vrx518_tc:ptm_tc_hw_fw_init: irq			= 107
[ 1179.669915] vrx518_tc:ptm_tc_hw_fw_init: membase		= 0xd1600000
[ 1179.675382] vrx518_tc:ptm_open: ptm open
[ 1179.681292] vrx518_tc:ptm_tc_hw_fw_init: phy_membase		= 0x40800000
[ 1179.696057] vrx518_tc:ptm_tc_hw_fw_init: peer_num		= 0
[ 1179.702087] vrx518_tc:ptm_tc_hw_fw_init: tc_mode		= PTM Single Line
[ 1179.727203] vrx518_tc:is_ptm_sl: is_ptm_sl: SINGLE
[ 1179.727262] vrx518_tc:is_ptm_sl: is_ptm_sl: SINGLE
[ 1179.731579] vrx518_tc:is_ptm_sl: is_ptm_sl: SINGLE
[ 1179.735683] ppe_aca_cfg_cnt: priv->ep_id[0] bond[0]
[ 1179.740476] ppe_aca_cfg_cnt: 0 0 0 0
[ 1179.745227] ppe_aca_cfg_cnt: cfg->txin.soc_cnt_phyaddr[0]
[ 1179.749047] ppe_aca_cfg_cnt: cfg->txout.soc_cnt_phyaddr[0]
[ 1179.754361] ppe_aca_cfg_cnt: cfg->rxout.soc_cnt_phyaddr[0]
[ 1179.759752] ppe_aca_cfg_cnt: cfg->rxin.soc_cnt_phyaddr[0]
[ 1179.765198] Loading PTM FW ver: 3.5.75
[ 1179.791876] vrx518_tc:ptm_tc_hw_fw_init: PTM TC init successfully
[ 1179.791915] id: 0, txin(0x82835000: 128, 0x0), txout(0x82834000: 128, 0x0), rxin(0x0: 0, 0x0), rxout(0x825d8000: 1024, 0x0)
[ 1179.796960] vrx518_tc:ptm_aca_init: txin: bswp: 0, hdsz:4, pd: dbase(0x2801c0), dnum(32), sz_indw(2), soc_dbase:0x82835000, soc_dnum:0x80, soc cnt addr: 0x40b21480
[ 1179.807926] vrx518_tc:ptm_aca_init: txout: bswp: 0, hdsz:1, pd: dbase(0x230000), dnum(64), sz_indw(2), soc_dbase:0x82834000, soc_dnum:0x80, soc cnt addr: 0x40b21484
[ 1179.822506] vrx518_tc:ptm_aca_init: rxout: bswp: 0, hdsz:4, pd: dbase(0x230200), dnum(255), sz_indw(2), soc_dbase:0x825d8000, soc_dnum:0x400, soc cnt addr: 0x40b21488
[ 1179.837433] vrx518_tc:ptm_aca_init: rxin: bswp: 0, hdsz:4, pd: dbase(0x2855c0), dnum(255), sz_indw(2), soc_dbase:0x0, soc_dnum:0x0, soc cnt addr: 0x40b2148c
[ 1179.852104] vrx518_tc:ptm_aca_init: txout: (stat:0x40b6b7d0, pd: 0x40b6b7d4, cnt: 0x40b6b7cc)
[ 1179.866247] vrx518_tc:ptm_aca_init: rxout: (stat:0x40b6b7e8, pd: 0x40b6b7ec, cnt: 0x40b6b7e4)
[ 1179.874664] vrx518_tc:ptm_aca_init: rxin: (stat:0x40b6b7dc, pd: 0x40b6b7e0, cnt: 0x40b6b7d8)
[ 1179.885985] vrx518 0000:01:00.0: ACA fw build 0 branch 4 major 0x20 minor 0x0016
[ 1179.891712] vrx518 0000:01:00.0: ACA fw for vrx518 supported SoC type xrx500 
[ 1179.899038] vrx518 0000:01:00.0: Header size 0x0000019c fw size 0x00000904
[ 1179.899051] vrx518 0000:01:00.0: section number 14
[ 1179.899062] vrx518 0000:01:00.0: Section HIF ie_len 1
[ 1179.899074] vrx518 0000:01:00.0: Section GenRisc ie_len 2
[ 1179.899085] vrx518 0000:01:00.0: Section MAC_HT ie_len 3
[ 1179.899096] vrx518 0000:01:00.0: Section TXIN ie_len 1
[ 1179.899107] vrx518 0000:01:00.0: Sec TXIN desc base 0x00100128, des_num: 32
[ 1179.899124] vrx518 0000:01:00.0: Section TXIN_PDRING ie_len 1
[ 1179.899135] vrx518 0000:01:00.0: Sec TXIN_PDRING desc base 0x00100528, des_num: 64
[ 1179.899149] vrx518 0000:01:00.0: Section TXOUT ie_len 1
[ 1179.899161] vrx518 0000:01:00.0: Sec TXOUT desc base 0x00100728, des_num: 32
[ 1179.899175] vrx518 0000:01:00.0: Section TXOUT_PDRING ie_len 1
[ 1179.899186] vrx518 0000:01:00.0: Sec TXOUT_PDRING desc base 0x00100b28, des_num: 32
[ 1179.899199] vrx518 0000:01:00.0: Section RXIN ie_len 1
[ 1179.899210] vrx518 0000:01:00.0: Sec RXIN desc base 0x00100c28, des_num: 32
[ 1179.899224] vrx518 0000:01:00.0: Section RXIN_PDRING ie_len 1
[ 1179.899236] vrx518 0000:01:00.0: Sec RXIN_PDRING desc base 0x00101028, des_num: 32
[ 1179.899249] vrx518 0000:01:00.0: Section RXOUT ie_len 1
[ 1179.899260] vrx518 0000:01:00.0: Sec RXOUT desc base 0x00101128, des_num: 32
[ 1179.899273] vrx518 0000:01:00.0: Section RXOUT_PDRING ie_len 1
[ 1179.899284] vrx518 0000:01:00.0: Sec RXOUT_PDRING desc base 0x00101528, des_num: 256
[ 1179.899298] vrx518 0000:01:00.0: Section DMA ie_len 10
[ 1179.899309] vrx518 0000:01:00.0: dma channel 0 desc base 0x00100000
[ 1179.899321] vrx518 0000:01:00.0: dma channel 1 desc base 0x00100008
[ 1179.899333] vrx518 0000:01:00.0: dma channel 2 desc base 0x00100010
[ 1179.899344] vrx518 0000:01:00.0: dma channel 3 desc base 0x00100018
[ 1179.899394] vrx518 0000:01:00.0: dma channel 4 desc base 0x00100030
[ 1179.899409] vrx518 0000:01:00.0: dma channel 5 desc base 0x00100038
[ 1179.899421] vrx518 0000:01:00.0: dma channel 6 desc base 0x00100020
[ 1179.899433] vrx518 0000:01:00.0: dma channel 7 desc base 0x00100028
[ 1179.899444] vrx518 0000:01:00.0: dma channel 8 desc base 0x00100040
[ 1179.899455] vrx518 0000:01:00.0: dma channel 9 desc base 0x00100048
[ 1179.899467] vrx518 0000:01:00.0: Section FW_INIT ie_len 1
[ 1179.899479] vrx518 0000:01:00.0: init st size: 32, addr: 0x100060
[ 1179.899491] vrx518 0000:01:00.0: Section ACA FW ie_len 5
[ 1179.899503] vrx518 0000:01:00.0: aca txin fw offset 0x0 size 20 loc 0x50800 fw base 9ec2b38c
[ 1179.899523] vrx518 0000:01:00.0: aca txout fw offset 0x14 size 4 loc 0x50900 fw base 4e283617
[ 1179.899539] vrx518 0000:01:00.0: aca rxin fw offset 0x18 size 4 loc 0x50a00 fw base faab45c9
[ 1179.899555] vrx518 0000:01:00.0: aca rxout fw offset 0x1c size 24 loc 0x50b00 fw base d66d2c78
[ 1179.899571] vrx518 0000:01:00.0: aca Genrisc fw offset 0x34 size 2256 loc 0x58000 fw base f762c1aa
[ 1179.899694] vrx518 0000:01:00.0: aca dma init done
[ 1179.899708] vrx518 0000:01:00.0: aca basic config done
[ 1179.900614] vrx518 0000:01:00.0: aca_hif_param_init
[ 1179.900625] vrx518 0000:01:00.0: aca txin init done
[ 1179.900634] vrx518 0000:01:00.0: aca txout init done
[ 1179.900644] vrx518 0000:01:00.0: aca rxout init done
[ 1179.900653] vrx518 0000:01:00.0: aca rxin init done
[ 1179.900662] vrx518 0000:01:00.0: init_addr: 100060
[ 1179.900674] vrx518 0000:01:00.0: aca_hif_param_init_done
[ 1179.900686] vrx518 0000:01:00.0: aca mdm init done
[ 1179.900695] vrx518 0000:01:00.0: aca init done
[ 1179.906068] vrx518_tc:is_ptm_sl: is_ptm_sl: SINGLE
[ 1179.910508] Sent TC multicast message Fail!
[ 1179.915177] vrx518_tc:ptm_tc_load: PTM TC is successfully loaded
[ 1180.170065] vrx518_tc:is_ptm_sl: is_ptm_sl: SINGLE
[ 1180.170429] vrx518_tc:ptm_erb_addr_get: idx: 0, data addr: 0x40a30000,  desc_addr: 0x40b60000
[ 1275.985750] vrx518_tc:ptm_showtime_enter: Line[0]: show time enter!!
[ 1275.986360] vrx518_tc:is_ptm_sl: is_ptm_sl: SINGLE
[ 1275.992495] IPv6: ADDRCONF(NETDEV_CHANGE): dsl0: link becomes ready
[ 1291.564885] vrx518_tc:ptm_stop: ptm stop
[ 1291.568813] vrx518_tc:ptm_set_mac_address: ptm mac address update!
[ 1291.570942] vrx518_tc:ptm_set_mac_address: ptm mac address update!
[ 1291.574151] vrx518_tc:ptm_open: ptm open
[ 1307.063303] vrx518_tc:ptm_stop: ptm stop
[ 1307.067754] vrx518_tc:ptm_set_mac_address: ptm mac address update!
[ 1307.070629] vrx518_tc:ptm_set_mac_address: ptm mac address update!

According to this you need VLAN7. Try replacing option device 'dsl0' by option device 'dsl0.7' in your wan interface section.

1 Like

Try

        option device 'dsl0.7'

Thank you very much. This indeed solved the problem. I will add the link to the wiki, so others do not run into the same problem. Thank you all for this hard work getting everything running :slight_smile:

Has anyone dropped in DSL (VDSL2) sync when upgrading to 8.13.1.5.0.7 as before switching to FRITZ!Box 7530 i have noticed i have lost about 10Mbps in downstream? not so much in upstream?

OpenWrt SNAPSHOT, r22456
root@DSL:~# ubus call dsl metrics
{
"api_version": "4.23.1",
"firmware_version": "8.13.1.5.0.7",
"chipset": "Lantiq-VRX500",
"driver_version": "1.11.1",
"state": "Showtime with TC-Layer sync",
"state_num": 7,
"up": true,
"uptime": 26652,

Line State: Showtime with TC-Layer sync
Line Mode: G.993.2 (VDSL2, Profile 17a)
Line Uptime: 7h 31m 0s
Data Rate: 69.408 Mb/s / 19.715 Mb/s (On my BT Hub is synced about 79.Something?? Mb/s
Noise Margin: 3.0 dB / 5.7 dB

@cybern0id looks like you have the best firmware for your local ECI cabinet however when they switch from Huawei that will be handy to know as is more then likely they switch to either Nokia or ECI (Infineon) - The lucky people who have G.Fast are known to have Nokia pods.

In my case, switching from a BT Homehub5A to an OpenWrt'd Fritzbox 7520 did not change the sync rates noticeably, if at all they slightly increased. But this is on a Broadcom linecard:

root@OpenWrt_FB7520:~# ubus call dsl metrics
{
	"api_version": "4.23.1",
	"firmware_version": "8.13.1.5.0.7",
	"chipset": "Lantiq-VRX500",
	"driver_version": "1.11.1",
	"state": "Showtime with TC-Layer sync",
	"state_num": 7,
	"up": true,
	"uptime": 1056338,
	"atu_c": {
		"vendor_id": [
			181,
			0,
			66,
			68,
			67,
			77,
			194,
			127
		],
		"vendor": "Broadcom 194.127",
		"system_vendor_id": [
			181,
			0,
			66,
			68,
			67,
			77,
			0,
			0
		],
		"system_vendor": "Broadcom",
Connection State
Line State	Showtime with TC-Layer sync
Line Mode	G.993.2 (VDSL2, Profile 17a, with down- and upstream vectoring)
Line Uptime	12d 5h 27m 22s
Annex	B
Power Management Mode	L0 - Synchronized
Inventory
Modem Chipset	Lantiq-VRX500
Modem Firmware	8.13.1.5.0.7
xTU-C Vendor ID	Broadcom 194.127
Line Details
Data Rates
Actual Data Rate	116.790 Mb/s	36.999 Mb/s
Attainable Data Rate (ATTNDR)	141.029 Mb/s	41.987 Mb/s
Minimum Error-Free Throughput (MINEFTR)	108.553 Mb/s	34.285 Mb/s
On-line Reconfiguration
Bitswap	on	on
Rate Adaptation Mode	At initialization	At initialization
Noise Protection
Latency	0.16 ms	0.00 ms
Impulse Noise Protection (INP)	41.0 symbols	45.0 symbols
Retransmission (G.INP)	on	on
Line Parameters
Line Attenuation (LATN)	9.5 dB	7.6 dB
Signal Attenuation (SATN)	9.5 dB	7.4 dB
Noise Margin (SNRM)	12.3 dB	8.4 dB
Aggregate Transmit Power (ACTATP)	14.4 dB	-4.1 dB