OpenWrt Forum Archive

Topic: P-2812HNU-FX: getting OpenWrt installed

The content of this topic has been archived between 6 Jun 2015 and 5 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Build my own openWRT, R44147 for ZyXEL P-2812HNU-F1.
Based on this tutorial.

http://dgcomsys.noip.me/DGWP01/wp-content/uploads/2015/01/img_54c6531529572.png

Everything can be found here: http://dgcomsys.noip.me/phpbb/viewtopic … 9&t=51

Btw, build this firmware on: Linux Debian Jessie 8.0
Linux version 3.16.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.8.3 (Debian 4.8.3-16) ) #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08)

(Last edited by DGDodo on 26 Jan 2015, 16:32)

ase wrote:

I have a weird bug on my P-2812HNU-F1.

Everything in openwrt works flawlessly but if I bring up my dsl line (/etc/init.d/dsl_control start) the board does not reboot cleanly anymore with reboot -command. Instead I have to cycle the power.

After rebooting it gets stuck in u-boot with some message about failing to load uboot.

I have installed scapi's openwrt-lantiq-p2812hnufx_nandtpl-u-boot.img to flash and it works otherwise quite nicely. Anyone else experiencing something similar?

Try updating procd

PKG_NAME:=procd
PKG_VERSION:=2014-12-15
PKG_SOURCE_VERSION:=61cfe0d093056b85a311f06d44ac149e5dbb4d1a

scapi wrote:

Try updating procd

PKG_NAME:=procd
PKG_VERSION:=2014-12-15
PKG_SOURCE_VERSION:=61cfe0d093056b85a311f06d44ac149e5dbb4d1a

I actually built a new image from trunk but it exhibits the same behavior. I think this may be an issue with u-boot or kernel not initializing the dsl hardware correctly in all situations which would cause bootloader to get stuck.

Tried with the annex a firmware but the line state only goes from silent to idle_state. Is it possible to extract the VDSL firmware from the original firmware of the VGV7519? Because that one works well.


scapi wrote:

I can't seem to find problem with Your config rather than Vectoring is required otherwise line fall backs to ADSL.
But atm I can't figure how to port newer ATM/PTM drivers that supports it.

My stats Annex A line:

root@OpenWrt:~# /etc/init.d/dsl_control status
Chipset: Lantiq-VRx Unknown
Line State: UP [0x801: showtime_tc_sync]
Data Rate: 76.592 Mb/s / 8.468 Mb/s
Line Attenuation: 17.3dB / 0.0dB
Noise Margin: 10.7dB / 12.6dB
Line Uptime: 13h 30m 44s
carmine wrote:

Tried with the annex a firmware but the line state only goes from silent to idle_state. Is it possible to extract the VDSL firmware from the original firmware of the VGV7519? Because that one works well.

today extracted vgv7519 firmware, and i think it is vdsl firmware, dunno if works because i not use adsl/vdsl, u can try it.

https://www.dropbox.com/s/u1aizkge7hs8b … 9.bin?dl=0

Thanks! I tried it and even if I set annex a or b in the config it gets the connection. But it's still at the same speed of 11Mbps. I would guess that my VDSL line uses vectoring then.

scapi: is there a way to gets some info about my line that can help you guys see clearly what's the problem? any news on vectoring? thanks, a lot!

cornelus2009 wrote:
carmine wrote:

Tried with the annex a firmware but the line state only goes from silent to idle_state. Is it possible to extract the VDSL firmware from the original firmware of the VGV7519? Because that one works well.

today extracted vgv7519 firmware, and i think it is vdsl firmware, dunno if works because i not use adsl/vdsl, u can try it.

https://www.dropbox.com/s/u1aizkge7hs8b … 9.bin?dl=0

(Last edited by carmine on 6 Feb 2015, 17:55)

Hey everyone, this is my first post here.

I wanted to share that I got openwrt working just fine on my p2812hnu-f1.
I'm dutch, and a client of the ISP 'Telfort'.
I am getting the full 30mbit/2mbit up connection I get with the ISP supplied modem+firmware.
I used the annex a firmware from scapi's dropbox, and (part of) the configuration user 'carmine' supplied for telfort.

Many thanks to everyone, and I'd love to help where I can.

-snorrepoes

@carmine

Do:

root@OpenWrt:/sbin# vdsl_cpe_control --c

and then:

g997listrg 0

g997listrg 1

To quit from console just type quit.
Paste output here.

(Last edited by scapi on 7 Feb 2015, 11:24)

Who can extract VDSL firmwae from ZyXEL P-2812HNU-F1?

ALways got iddle_state. Can't connect to my ISP(sonera, finland)

Little log from another router.

============================================================================
    VDSL Training Status:   Showtime
            VDSL Profile:   Profile 17a
            Traffic Type:   PTM Mode
             Link Uptime:   0 day: 2 hours: 6 minutes
============================================================================

in  /etc/config/network i have:

#config atm-bridge 'atm' <-----//comment out this section from here//
#       option vpi '0'
#       option vci '33'
#       option encaps 'llc'
#       option payload 'bridged' <-----//comment out this section to here//

config interface 'wan'
        option ifname 'ptm0.1'   <-----//use vpi/vci params here example 'ptm8.32'  means vpi=8 vci=32//
        option proto 'pppoe'
        option macaddr 'XXXXXXXXXXXXX' <-----//taken from U-boot env//

config vdsl 'dsl'
        option annex 'a'  <-----//change annex here//
        option firmware '/lib/firmware/vdsl.bin'
        option tone 'av' <-----//probably if annex B is chosen, needs to be changed to 'bv'//
        option xfer_mode 'ptm'

(Last edited by fedor on 7 Feb 2015, 19:44)

Try ptm0.33 - because VPI = 0 and VCI = 33 for Sonera... 0/100 is for Elisa/Saunalahti, iirc.

I'm getting my router to sync on VDSL now.
But the DSL light stays on for 0,5 seconds after it stops to blink, and starts to retrain.
I know that normally on the router i have from my ISP.
US0
Bitswap
SRA
are enabled, anyone how i can make sure those are enabled here?

Also i know the modulation is VDSL17A, is there someplace in config i should have that?


This is from the router i have from my ISP (also running openwrt):

I guess these will work in the network config file?

config dslsettings 'capabilities'
    option GDmt 'Enabled'
    option ADSL2 'Enabled'
    option ADSL2plus 'Enabled'
    option VDSL2 'Enabled'
    option 12b 'Enabled'
    option 17a 'Enabled'
    option 30a 'Enabled'
    option US0 'on'
    option bitswap 'on'
    option sra 'on'

(Last edited by ZyNTaX on 7 Feb 2015, 20:03)

Aquatica wrote:

Try ptm0.33 - because VPI = 0 and VCI = 33 for Sonera... 0/100 is for Elisa/Saunalahti, iirc.

ptm should be ptm0.1
atm => atm0.33

ZyNTaX wrote:

I'm getting my router to sync on VDSL now.
But the DSL light stays on for 0,5 seconds after it stops to blink, and starts to retrain.

same shit sad

Hmm. Good call on the atm/ptm. However is the proto supposed to be pppoe? Shouldn't this be ipoe for us (I think I have that right now on a working non-openwrt. if that matters).

In any case, I am struggling to get the bootloader uploaded. It's slow, yes, but after it's done there were nothing there? I thought I would have to power cycle the router to get it to boot with new bootloader, yes?
Then why do I still have Z-Boot sad
Also shorting to get CFG 02 is way harder than described, lol. So small space and almost impossible to short R17 without destroying something else.

Took about 6hours to upload the .asc, so it's slow going no matter what. Now I'm doing it from beginning, again.

EDIT:
Now it seems to progress way faster (5% in about 12minutes),  and I even get some output on the terminal showing progress. Last night I did this I only got one "*" on the terminal and flashing screen. Now it gives me a whole lot of "*"'s and aint flashing. Speed is right now 65Bytes/s.

(Last edited by Aquatica on 8 Feb 2015, 10:29)

Aquatica wrote:

Took about 6hours to upload the .asc, so it's slow going no matter what. Now I'm doing it from beginning, again.

EDIT:
Now it seems to progress way faster (5% in about 12minutes),  and I even get some output on the terminal showing progress. Last night I did this I only got one "*" on the terminal and flashing screen. Now it gives me a whole lot of "*"'s and aint flashing. Speed is right now 65Bytes/s.


Wrong baudrate/speed, change to 115200.

scapi wrote:
Aquatica wrote:

Took about 6hours to upload the .asc, so it's slow going no matter what. Now I'm doing it from beginning, again.

EDIT:
Now it seems to progress way faster (5% in about 12minutes),  and I even get some output on the terminal showing progress. Last night I did this I only got one "*" on the terminal and flashing screen. Now it gives me a whole lot of "*"'s and aint flashing. Speed is right now 65Bytes/s.


Wrong baudrate/speed, change to 115200.

115200 it is. Also I use inter-char delay of 1ms/char, exactly as on the wiki pages... Using Teraterm.

Aquatica wrote:
scapi wrote:
Aquatica wrote:

Took about 6hours to upload the .asc, so it's slow going no matter what. Now I'm doing it from beginning, again.

EDIT:
Now it seems to progress way faster (5% in about 12minutes),  and I even get some output on the terminal showing progress. Last night I did this I only got one "*" on the terminal and flashing screen. Now it gives me a whole lot of "*"'s and aint flashing. Speed is right now 65Bytes/s.


Wrong baudrate/speed, change to 115200.

115200 it is. Also I use inter-char delay of 1ms/char, exactly as on the wiki pages... Using Teraterm.


There should be bunch of "****" it means it is uploading it, but speed seems to be wrong(65Bytes/s), and for VDSL firmware:

vrx200 wrote:

You need to manually add the lantiq vdsl driver into the /lib/firmware either at build stage or via scp (Secure Copy)  if openwrt is already installed  on the modem.

Also make sure to  install  the correct vdsl firmware for your providers band plan profiles:

The following shows the band profile and band plan compatibility:
Band Profile List Band Plan List
0 VDSL2 Profile8a 0 Annex A M1_EU32
1 VDSL2 Profile8b 1 Annex A M9_EU64
2 VDSL2 Profile8c 2 Annex A EU128
3 VDSL2 Profile8d 3 Annex B 997-M1c-A-7
4 VDSL2 Profile12a 4 Annex B 997-M2x-A
5 VDSL2 Profile12b 5 Annex B 997-M2x-M
6 VDSL2 Profile17a 6 Annex B 998-M1x-A
7 VDSL2 Profile30a 7 Annex B 998-M1x-B
8 VDSL2 Profile17b 8 Annex B 998-M2x-A
                   9 Annex B 998-M2x-M
                   10 Annex B 998-M2x-B
                   11 Annex B 998-M2x-NUS0
                   12 Annex B 998e17-M2x-NUS0
                   13 Annex B 998ADE17-M2x-A
                   14 Annex B 998ADE30-M2x-JUS0
                   15 Annex C_A
                   16 Annex C_M
                   17 Annex C_8K

In Kronos's first post example  dsl_vr9_firmware  is  _xdsl-05.05.01.07.01.06 <-vdsl part| _ | adsl part ->05.05.03.03.01.02
The last digit in the first number string represents the profile & plan, which in this case  is : 17a  Annex B 998-M1x-A.

https://www.dropbox.com/sh/jzboge2r8jia … Uov6a?dl=0

I need to update dsl init script, most of You have different VDSL profiles and it seems to actual init script simply can't handle it, atm all You can do is to manually change VDSL firmware (one in my image is original firmware from P-2812HNU-F1 (Annex A probably) version.

@Aquatica try reverting back "char delay" I never set it on windows, but it is required on Linux/cutecom. Upload should take max 5min.

99% of ISP uses only these two plans:
6 VDSL2 Profile17a 6 Annex B 998-M1x-A
7 VDSL2 Profile30a 7 Annex B 998-M1x-B

and sometimes:
8 VDSL2 Profile17b 8 Annex B 998-M2x-A

Most of the time 7 firmware will work:

https://www.dropbox.com/s/3pfx4xwx3t0mg … .33.39.png

(Last edited by scapi on 8 Feb 2015, 11:32)

scapi, yes. I know the speed is low. But there have been others who reported the very same issue, so it might be something or then not.
Good to know it's going there now, for a fact. 24% done in 1hours, so it takes only 4 hours total to be uploaded...

About the profile list: how to know which is right? Are those profile name schemes universal or ISP specific? Would ISP tell which profile they are using or do the consider that "secret" in general?

Reason I'm asking is that I am *sure* that at least one ISP in Finland has been using 17 (a or b, no idea) on"problem customers", who have had some very odd issues... But Annex C_8K sounds too weird for me?

So i guess i will be needing VDSL firmware that supports VDSL2 Profile17a - Annex B 998-M1x-A

ZyNTaX - I can't be certain. 0, 1 and 2 are named in such a way that they could be for us. But you could ask your ISP for specifics? Or someone who knows something about these things could give us a little hint...

Simply all of You can try firmware "6" or "7" (in dropbox) and if You get any kind of sync do:


Do:

root@OpenWrt:/sbin# vdsl_cpe_control --c

and then:

g997listrg 0

g997listrg 1

To quit from console just type quit.
Paste output here.

(Last edited by scapi on 8 Feb 2015, 11:59)

Aquatica wrote:

Took about 6hours to upload the .asc, so it's slow going no matter what. Now I'm doing it from beginning, again.

O_o, on my modem it's happening about in 1 minute.

scapi wrote:

Simply all of You can try firmware "6" or "7" (in dropbox) and if You get any kind of sync do:


Do:

root@OpenWrt:/sbin# vdsl_cpe_control --c

and then:

g997listrg 0

g997listrg 1

To quit from console just type quit.
Paste output here.

FW 6(DSL light stays on for 0,5 seconds after it stops to blink, and starts to retrain. +on the overview screen was showing "Connected, Showtime...... and speed 76Mb/s"):

 
DSL_CPE#>g997listrg 0
nReturn=0 nDirection=0 G994VendorID=IFTNS0 SystemVendorID=IFTN VersionNumber=0123456789012345 SerialNumber=01234567890123456789012345678901 SelfTestResult=0 XTSECapabilities=(05,00,04,00,4C,01,04,00)

DSL_CPE#>g997listrg 1
nReturn=-20

DSL CPE API Control Application termination started...
EventHandler: exit(0)
IFXOS ERROR - User Thread Shutdown <tPipe_0> - no responce
IFXOS ERROR - User Thread Shutdown <tPipe_1> - no responce
DSL_CPE: Goodbye from DSL CPE API CLI interface

FW 7: Only IDLE state.

(Last edited by fedor on 8 Feb 2015, 13:25)

Great work until now everybody, running my own trunk r44257 version on 2 F1's with:
Board: ZyXEL P-2812HNU-F1, SoC:   Lantiq VRX288 v1.1
Board: ZyXEL P-2812HNU-F1, SoC:   Lantiq VRX288 v1.2 (some strange eth0 messages... working on that)

Aquatica : I had slow performance too, try to set the 1msec delay on the line-feed instead of char-feed (teraterm).
It should go around 10KBytes/s, otherwise reboot device again into UART and try again (keep connection open!).

And sorry that i can't help (yet) with the xDSL issues, but some could also be related to ISP limitations/settings.
--

About building OpenWRT Firmware images:

1) How to build nandtpl-images instead of nandspl-images, nandspl-images do not work on a F1 device.
https://github.com/danielschwierzeck/u- … q/issues/7
The answer there did not solve my issue...

https://forum.openwrt.org/viewtopic.php … 70#p257770
Says: 'Its U-boot with patches from Antonios Vamporakis, TPL/SPL build. OpenWRT U-Boot build isn't working atm.'
How to implement, and where to find these patches?
I still can only use earlier downloaded nandtpl image to boot/install OpenWrt.
Only then i can install my own build F1-firmware.

2) During every boot i see (not sure if this is only the SoC v1.2 version):

[    7.284000] UBI error: ubi_open_volume: cannot open device 0, volume 0, error -16
Could not open mtd device: /dev/mtd4
reading rootfs failed
mounting /dev/root

and

/etc/rc.common: line 138: esi: not found
[   15.200000] UBI error: ubi_open_volume: cannot open device 0, volume 0, error -16

This doesn't seem right, or am i wrong? Although device is working fine.
Probably issued also together with the spl/tpl question above?

3) When try to connect my Wifi-Repeater-F1 (OpenWrt) to the new 'normal' OpenWrt-Router-F1 i receive the following HW errors:

[  419.080000] wlan0: authenticate with 00:0c:43:30:62:00
[  419.084000] wlan0: capabilities/regulatory prevented using AP HT/VHT configuration, downgraded
[  419.132000] ------------[ cut here ]------------
[  419.132000] WARNING: CPU: 0 PID: 2200 at /home/dguser/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xrx200/compat-wireless-2014-11-04/net/mac80211/sta_info.c:453 sta_info_insert_rcu+0xa0/0xe8 [mac80211]()
[  419.152000] Modules linked in: rt2800pci rt2800mmio rt2800lib iptable_nat rt2x00pci rt2x00mmio rt2x00lib pppoe nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT usbmon pppox ppp_async nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_irc nf_conntrack_ftp nf_conntrack ltq_deu_vr9 iptable_raw iptable_mangle iptable_filter ipt_REJECT ip_tables crc_itu_t crc_ccitt compat drv_dsl_cpe_api drv_mei_cpe ip6t_REJECT ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables pppoatm ppp_generic slhc vfat fat br2684 atm nls_utf8 nls_iso8859_1 nls_cp437 ipv6 eeprom_93cx6 drv_ifxos arc4 crypto_blkcipher usb_storage ltq_hcd_vr9 uhci_hcd ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache
[  419.236000] CPU: 0 PID: 2200 Comm: wpa_supplicant Tainted: G        W    3.14.30 #12
[  419.240000] Stack : 00000006 00000000 00000000 00000000 00000000 00000000 8047cd9e 00000048
[  419.240000]       86d92370 86c03000 803b0d6c 80410ddb 00000898 80473afc 86d92370 86c03000
[  419.240000]       00000000 00000000 878b9410 802ea620 00000003 80207488 00000000 00000000
[  419.240000]       803b3f98 86d4d97c 00000000 00000000 00000000 00000000 00000000 00000000
[  419.240000]       00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  419.240000]       ...
[  419.276000] Call Trace:
[  419.280000] [<80254bc4>] show_stack+0x48/0x70
[  419.284000] [<8030ef10>] warn_slowpath_common+0x84/0xb4
[  419.288000] [<8030efc8>] warn_slowpath_null+0x18/0x24
[  419.296000] [<87284adc>] sta_info_insert_rcu+0xa0/0xe8 [mac80211]
[  419.300000] [<87284b34>] sta_info_insert+0x10/0x83c [mac80211]
[  419.308000] [<872b4c44>] ieee80211_cqm_rssi_notify+0x660/0x800 [mac80211]
[  419.312000] 
[  419.316000] ---[ end trace cb6fc0487a3ca689 ]---
[  419.320000] wlan0: failed to insert STA entry for the AP (error -22)

I guess ( almost sure 8-) ) this is due to the same BSSID (mac) for both WLAN devices.
How do i change default MAC address for WLAN device?
Add 'option macaddr' in /etc/config/wireless will re-arrange mac addresses.

Can this be done during build of OpenWrt-firmware?

As well as adding files into your OpenWrt builds:
- Create a 'files/lib/firmware' directory in your openWrt build environment, and put files there (ie xDSL code and/or RT3062.eeprom).
After installing the new OpenWrt-firmware on your device the files will be in '/lib/firmware' and will boot correctly the first time.

Mac address wifi, is located in rt3062 eeprom file, starting at offset 4. U can put whatwever mac u want there.

Sorry, posts 176 to 175 are missing from our archive.