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.

No, there isn't.

Is it possible for you to make a build with switch configuration also?
**nvm.....i fixed it :-)

(Last edited by ZyNTaX on 8 Oct 2015, 21:20)

Hi,

I have P-2812HNU-F3 router, with following specs:

ROM VER: ���#!�D�

U-Boot 2014.01-openwrt2 (Nov 15 2014 - 14:05:27) P-2812HNU-Fx

Board: ZyXEL P-2812HNU-Fx
SoC:   Lantiq VRX288 v1.1
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NOR
DRAM:  128 MiB
Flash: 8 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   ltq-eth


I bought it with OpenWRT installed however I decided to reinstall the software - since I could not perform sysuprade. I have followed the guide from http://wiki.openwrt.org/toh/zyxel/p2812hnu-f3, however when I come to the step where it is supposed to run the initramfs image, it gives me following errors:

LZMA: uncompress or overwrite error 7 - must RESET b

Full log is here:

P-2812HNU-Fx # tftpboot 0x80800000 openwrt-lantiq-xrx200-P2812HNUF3-uImage-initramfs
ltq_phy: addr 0, link 0, speed 10, duplex 0
ltq_phy: addr 1, link 0, speed 10, duplex 0
ltq_phy: addr 17, link 0, speed 10, duplex 0
ltq_phy: addr 19, link 1, speed 1000, duplex 1
ltq_phy: addr 5, link 0, speed 10, duplex 0
Using ltq-eth device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'openwrt-lantiq-xrx200-P2812HNUF3-uImage-initramfs'.
Load address: 0x80800000
Loading: T #################################################################
     #################################################################
     #################################################################
     #################################################################
     ################################################
     787.1 KiB/s
done
Bytes transferred = 4509456 (44cf10 hex)
P-2812HNU-Fx # bootm 0x80800000
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   MIPS OpenWrt Linux-3.18.21
   Created:      2015-09-23  19:49:47 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    4509392 Bytes = 4.3 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... LZMA: uncompress or overwrite error 7 - must RESET b


I used files from this tree (r47026) https://github.com/ScApi/P2812HNUFx-Pre … %20OpenWRT

When I do the same with the image without initramfs, it starts booting correctly, then obviously hangs due to no root filesystem.

Do you have any idea how to get rid of the LZMA error?

(Last edited by tommy79 on 23 Oct 2015, 00:36)

@tommy79, see comment #395.

Can anyone send me backup file for F3 latest firmware to dropbox. I want restore my modem. Thx for helping.

Hallo, i now have openwrt running. And internet is also working. But now i want to get interactive television running from telfort. I have done testing with vlans but i don't get it working.

This is my network configuration:

config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fd58:9e27:ba32::/48'

config interface 'lan'
    option force_link '1'
    option type 'bridge'
    option proto 'static'
    option ipaddr '192.168.1.1'
    option netmask '255.255.255.0'
    option ip6assign '60'
    option ifname 'eth0.1'
    option macaddr '00:01:02:03:04:05'
    option gateway '192.168.1.1'
    option dns '195.241.77.55'

config switch                                                                                                                             
        option name 'switch0'                                                                                                             
        option reset '1'                                                                                                                   
        option enable_vlan '1'                                                                                                             
                                                                                                                                           
config switch_vlan                                                                                                                         
        option device 'switch0'                                                                                                           
        option vlan '1'                                                                                                                   
    option vid '1'
        option ports '0 1 2 4 6t'                                                                                                         
                                                                                                                                           
config switch_vlan                                                                                                                         
        option device 'switch0'                                                                                                           
        option vlan '2'                                                                                                                   
        option ports '5 6t'

config interface 'wan'                                                                                                                     
        option proto 'dhcp'                                                                                                                                                                                                           
        option ifname 'ptm0.34' 
    option macaddr '00:01:02:03:04:06'

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

So I have been away 10 months or so regarding this router. So.. what firmware shall one use these days for the F1?

What was wrong with the stock again for this.. it seemed actually quite decent (except for the like Cisco, very low SSL certificate browser security)?

Are speeds up/down acceptable on WAN/LAN ports? and hi ho, etc ^^

Hi again,

I managed to install latest build (r47026) but I have several issues with the router (version F3).

I could not get the modem working on my ADSL line. It is annex A, i tried different vdsl.bin drivers and still no go - it did not synchronize no matter what settings I use.

Another problem emerged when I wanted to use the router as an internet radio player. I installed cheap, popular USB audio device, added all needed packages and when I try to play any audio (e.g. mp3 using madplay), I only get silence and in the logread I get following messages:

kern.err kernel: [66339.532000] usb usb1: clear tt 1 (1021) error -22

Is there any way to fix it?

(Last edited by tommy79 on 1 Nov 2015, 22:16)

Hi there,

Thank you for all for your great efforts in making project like this successful! Much appreciated. smile

Currently Im experiencing exactly the same problem as described by cornelus2009 in this post. Did someone managed to solve this problem?

Used references
OpenWRT Wiki F1: http://wiki.openwrt.org/toh/zyxel/p2812hnu-f1
Scapi Github Repo: https://github.com/ScApi/P2812HNUFx-Pre-Build

Steps
Short R17 -> CFG 02 UART
Teraterm: Send file: openwrt-lantiq-p2812hnufx_ram-u-boot.asc
# nand erase.chip
# tftp 0x80700000 openwrt-lantiq-p2812hnufx_nandtpl-u-boot.img
# nand write 0x80700000 0x0 0x38985
# tftp 0x80800000 openwrt-lantiq-xrx200-P2812HNUF1-uImage
# nand erase 0x60000 0x200000
# nand write 0x80800000 0x60000 0x200000
# tftpboot 0x80800000 openwrt-lantiq-xrx200-P2812HNUF1-uImage-initramfs (Tested: master, DDr47026, DDr46993, CCr45578)
# bootm 0x80800000

Results -> Reboot

[   13.516000] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[   13.520000] rt2800pci 0000:00:0e.0: failed to load eeprom property
[   13.528000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT3062.eeprom'.

ROM VER: 1.0.5
CFG 06
NAND
NAND Read OK

It's probably important to know that I found this F1 crashed and unable to successfully reboot with original Zyxel firmware. I have to tried to reflash it with original images 100AACC3C0.bin, 310TUJ0C0.bin, 311TUJ0.bin, but could not get the F1 in stable operation.

It often crashed with the following trace:

rt3062ap: module license 'unspecified' taints kernel.

=== pAd = c0269000, size = 643880 ===

<-- RTMPAllocAdapterBlock, Status=0

ROM VER: 1.0.5
CFG 06
NAND
NAND Read OK

Next steps
Don't know really. I will probably try to build without RT wireless drivers. I really need the DSL interface at the moment.

(Last edited by strtfr on 1 Nov 2015, 21:09)

DGDodo wrote:

Plukje,

Your device is indeed a v1.2, looking @ 1 of my logs:

<snip>

Maybe a real close look on the board close to pin 10 of the Samsungchip, does it have good connection to the board itself? With good soldering tools & skills you could try bridgeing it with a switch or wire, temporarly (during the 1st asc-flash).


Hi again, well, it's been a while but I'd like to report success. It turned out that the entire pulldown resistor was not present on my board, at all. Thankfully someone with very, very good soldering skills was able to put one on for me and... magic CFG 02. In hindsight I guess it wouldn't have been necessary to actually _solder_ it on, but hey, it all works. After I hit CFG02  t was breeze to get OpenWRT installed.

Thank you all ! Next challenge will be to find some Galliano ;-)


Plukje

@strtfr it was faulty wireless chip, he need to reflow it, if I remember it right.

ase wrote:
Mijzelf wrote:
ase wrote:

To my understanding dwc2 supports them so it is at least worth trying.

Finally I tried, and unfortunately it doesn't work. Streaming some sound the userland software doesn't notice anything wrong, but there is no sound, and I get a

[ 1651.100000] usb usb2: clear tt 1 (1021) error -22

in kernel log about every 50 msec.

On BB the userland software errored out with 'broken pipe', or something like that, and the kernel log showed a 'isochron transfer is not supported'.

For those with USB trouble (especially with isochronous transfers), could you try the following patch: https://dev.openwrt.org/attachment/tick … ters.patch

Today I built CC with this patch applied, and I'm happy to confirm the patch works! I have sound, finally.

I left my router on the shelve for a while as it was behaving a bit strange breaking down at 1 Megabyte/s when my internet is 3.7 Megabyte/s. So I see there is new images ready, it will be sufficient to just flash the sysupgrade through shell and it will wipe all the configuration I have on it? (no serial to install bootimage etc) I only need WAN port working which I did with a pretty messy bridge set-up last time. Would have been best if the DSL/Wan switch could be working so one could easily use both without conflicts.

If you remember @scapi: I had tx ring errors too, wondered if that was due to eeprom or possibly some conflicts with the driver in my set-up F3. The device is old but not that old, I think it should handle 4 Megabyte/s, I have a older linksys which is slower than that running OpenWRT but its very very old. If you think it can push through that stable now I'll be very happy to use it again. If it doesn't, well, I'll be happy to send it to somebody who wants a working F3 that used to be branded. Having to run a dedicated server for dnsmasq right now because my Asus doesn't let me modify that.

When I set-up my fathers router for him I noticed how they sent him some pretty good Inteno routers (two, one for LAN and a separate one only for sending Wi-Fi over LAN w/USB) running OpenWRT customized by them as default. Pretty sweet router I envy him for having such an ISP.

(Last edited by courfazor on 9 Nov 2015, 21:38)

Mijzelf wrote:
ase wrote:
Mijzelf wrote:

Finally I tried, and unfortunately it doesn't work. Streaming some sound the userland software doesn't notice anything wrong, but there is no sound, and I get a in kernel log about every 50 msec.

On BB the userland software errored out with 'broken pipe', or something like that, and the kernel log showed a 'isochron transfer is not supported'.

For those with USB trouble (especially with isochronous transfers), could you try the following patch: https://dev.openwrt.org/attachment/tick … ters.patch

Today I built CC with this patch applied, and I'm happy to confirm the patch works! I have sound, finally.

Hello,
I can confirm the patch mentioned above solves the issues with USB soundcards - I built the newest CC and finally I can enjoy music from my router smile
How can we make the patch to be included in the official openwrt CC for our router?

tommy79 wrote:

Hello,
I can confirm the patch mentioned above solves the issues with USB soundcards - I built the newest CC and finally I can enjoy music from my router smile
How can we make the patch to be included in the official openwrt CC for our router?

Which USB soundcards are you all using? Only thing my online stores sells is Creative Sound Blaster Play! 2 and ASUS Xonar U3. Sounds a little bit interesting to have the router play music now xD.

Just some generic USB speakerset. I'm not using it for music BTW, just for some notifications.

courfazor wrote:

Which USB soundcards are you all using? Only thing my online stores sells is Creative Sound Blaster Play! 2 and ASUS Xonar U3. Sounds a little bit interesting to have the router play music now xD.

I am using a usb dongle like this one, but am considering to buy a better card from Sound Blaster line

Mijzelf wrote:

Today I built CC with this patch applied, and I'm happy to confirm the patch works! I have sound, finally.

tommy79 wrote:

Hello,
I can confirm the patch mentioned above solves the issues with USB soundcards - I built the newest CC and finally I can enjoy music from my router smile
How can we make the patch to be included in the official openwrt CC for our router?

Thank you for testing. I've sent the patch for inclusion to openwrt mailing list so that it gets picked up by the maintainers.

That patch solves the problem with soundcards (was also successfully tested with TD-W8970).
Unfortunately the problem reported in Ticket #20177 (https://dev.openwrt.org/ticket/20177) remains sad

Regards

(Last edited by Scotch's on 15 Nov 2015, 12:32)

tommy79 wrote:
courfazor wrote:

Which USB soundcards are you all using? Only thing my online stores sells is Creative Sound Blaster Play! 2 and ASUS Xonar U3. Sounds a little bit interesting to have the router play music now xD.

I am using a usb dongle like this one, but am considering to buy a better card from Sound Blaster line

Ah so like a $1-2 card on eBay or aliexpress, I was thinking about those but they just reek of horrible sound quality (they don't even write what they process in) and/or dying very fast.
Nonetheless I want to warn you about the older Creative sound card series. If you plan to use them on Windows 10, I heard a lot of people have been having driver issues. I myself am locked to windows 8.1 for the time being due to Windows 10 having a huge list of legacy problems, which is quite bad considering their aggressive stance to get people to upgrade. (Sorry for the off-topic)

scapi wrote:

@strtfr it was faulty wireless chip, he need to reflow it, if I remember it right.

Thanks for the heads-up mate, much appreciated! My unit suddenly died during operation, so I expect it to be a comparable malfunction. I still haven't managed to get the unit booting OWRT by removing wlan modules, but I will continu to try.

Wow.. I see another one mention a slow 1 Mbyte/s? speed or so. I can update some info!

OMG @ my ISP in Norway... tarded f#^&%^&#$@

I bricked my wnr350Lv2 by using the voltage on serial sad and so I didn't have a backup.. back then when using both stock and openwrt on the zyxel, I got very slow upload speeds (instead of 40 MB/s [that is bits]), I get <2 MB/s.

Now I thought it was firmware/driver issue. It turns out, by luck, trying this Zyxel again behind a wokring router (I bought a dead cheap wnr3500Lv1 used with tomato on it), it has the full speed 40/40 on both lan and wifi!!

Hence, it works flawlessly hmm BUT.. for some reason, no matter WHAT I DO, if I place it right on the wan from ISP, upload drops to 1-2 MB/s.. WTF is that all about?

They do use this routerbranded in the past and right now I flashed back from the old scapi build to the most recent back to stock to test.. and it happens to all. Had it been branded on stock , perhaps they have zyxel MAC addys which would confuse some upstream routing tables say, but even with openwrt and custom MAC I presume, it dones't flow ...

This baffles me .. any tips, ideas?

scapi wrote:

As I wrote earlier, I can and will update OpenWRT images but I cannot test them fully (Ded LAN and VDSL part). U-Boot is out of my reach so everything that I made wont be updated. SIP part needs some patching and fixing in VPE part and i don't know how if I'm capable to do it (currently it breaks WiFi if activated)

Ah, thank you. I started up your new now two months old build openwrt-lantiq-xrx200-P2812HNUF3-squashfs-sysupgrade.tar with MD5    52b60212c7db8994d8c2d77c4980fb55. The new OpenWRT interface looks great, but is a bit irritating since I'm so used to the old one big_smile
The first things I noticed: the power2 LED needs to be disabled so it doesn't shine red all the time on my router, but it might be that this will turn green if it gets internet connection? Moving on I switched over the WAN interface to DHCP and connected the WAN port up with both my current router LAN and tried it directly to the port on the internet output, it can't get the DHCP packets and obtain an IP address. I tried plugging it into LAN if it was configured that way and I believe DSL (I believe these can't take regular WAN anyway...) too but no luck. The WAN light shined yellow when I used the WAN and here are some of the logs: http://pastebin.com/mQGm9VBW
I flashed it in the web GUI and selected not to take any settings with me in fear of breaking anything.

If I need to configure anything myself do tell, but I think that it might simply be that the DHCP client udhcpc is broken? As I saw you said this new firmware was using separate ports now I assumed that maybe the WAN port is now fixed by default. I'm not any good with bridging you see... Another thing is that the local time, uptime and load does not show. I believe these are the dispatcher.lua errors I'm seeing.

Here is a full bootlog, the router has WAN port connected with my other router on LAN which has a dnsmasq serving as DHCP and should be working perfectly. WAN port is set-up to do DHCP of course, only other thing I did was connect myself on port 1 to get the logs: http://pastebin.com/fdCRzs6s

scapi wrote:

@strtfr it was faulty wireless chip, he need to reflow it, if I remember it right.

For the record.. I had flashed a version of your openwrt onto it back in jan or whatever and my wifi worked at full speed (40mbit/s) up/down .. I then upgraded through the web gui some days ago and worked fine too.. it was only when I reflashed to stock, and now I am in same situation as the A. have ot use older commit to make things boot (#395), and am also ow stuck with the kernel image issue.

So I don't tihink it is wifi HW issue, it's some other misconfiguration in recent builds.

Answer to B) was in fact that wrong space in the nboot command btw.

Well, I get full speed after using the calibration file and as long as I am behind my other router and not ISP.. don't know why but so be it. I will use the other router as my main entry fw (tomato) and use openwrt as my lan fw/freeradius yaddi ya. Thanks for amazing software and work scapi et al!

(Last edited by forgetmij on 27 Nov 2015, 14:37)