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.

look in ur log, if have vmmc driver activated , wifi not work.
it show enabled but cannot connect to it.

Nope, no vmmc in log or anywhere I could find...

As said; attenuation and SnR etc are all 0 and they stay there.

I made my own build, this time trying it on the P2812HNU-F1. Pretty much "trial and error" and "I quess I need that and that" from Trunk...

Running at 10minutes, and just got past cfg80211, wifi config part. Super-super-slow boot, but I didn't have nandtpl image available; does it matter? Right now "/etc/rc.common: line 138: esi: not found" at over 400seconds in the bootup. Heh :-)

Will post bootlog if I ever manage to get it. Also scapi or someone who has built this from sources noprob, any chances to get .config to be loaded, so I can actually get a proper base configuration for this and then tweak from that? Would be much easier... I think.

carmine wrote:

I compiled mine today from the latest trunk (r44375 to be exact) and it works like a charm. In my image there's a bunch of extra packages installed by default, including kmod-ltq-ptm-vr9. You can find it at http://static.paolino.me/openwrt/lantiq … pgrade.tar

Those are the extra packages already installed:

collectd
collectd-mod-*
dnsmasq-dhcpv6
kmod-ledtrig-*
kmod-ltq-ptm-vr9
luci-app-ddns
luci-app-sqm
luci-app-upnp
luci-proto-ipv6

It's basically all I need for my router so far.

This is my /etc/config/network:

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 'fdc6:01b4:ccdc::/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'

config switch
    option name 'switch0'
    option reset '1'
    option enable_vlan '1'

config switch_vlan
    option device 'switch0'
    option vlan '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 'eth0.2'
    option macaddr 'XX:XX:XX:XX:XX:XX'

config interface 'vdsl'
    option proto 'dhcp'
    option ifname 'ptm0.34' # <- change to your ISP settings
    option macaddr 'FC:F5:28:XX:XX:XX'

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

Unfortunately I still have low speeds on VDSL, even though I tried pretty much all of scapi's firmwares.
ZyNTaX: could you send me your VDSL firmware or how to get it?

I used the firmware which is in the git (the annex b one
https://www.dropbox.com/s/i0quzcpy6ipa1h8/vdsl.bin?dl=0

(Last edited by ZyNTaX on 10 Feb 2015, 21:58)

New builds in new branch F1/F3 : https://github.com/ScApi/P2812HNUFx-Pre … mer-r44367

New repo.txt (openwrt and rev before /packages/), sysupgrade image works from luci (if board hangs (when adsl/vdsl is active) wait 2min and do power off/on. Keep config can be "checked".

Old images and repo will stay if anyone prefer it smile so no need to worry about.

Change log in readme.

Bootlog:

[    0.000000] Linux version 3.18.6 (sylwek@WRT) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44367) ) #3 Tue Feb 10 20:10:11 CET 2015
[    0.000000] SoC: VR9 rev 1.1
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019555 (MIPS 34Kc)
[    0.000000] MIPS: machine is P2812HNUF1 - ZyXEL P-2812HNU-F1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 80474530, node_mem_map 810093e0
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=000030c5
[    0.000000] Readback ErrCtl register=000030c5
[    0.000000] Memory: 124780K/131072K available (3494K kernel code, 147K rwdata, 1024K rodata, 180K init, 206K bss, 6292K reserved)
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 500MHz
[    0.028000] Calibrating delay loop... 332.54 BogoMIPS (lpj=665088)
[    0.032000] pid_max: default: 32768 minimum: 301
[    0.036000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.040000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.044000] pinctrl core: initialized pinctrl subsystem
[    0.048000] NET: Registered protocol family 16
[    0.056000] pinctrl-xway 1e100b10.pinmux: Init done
[    0.060000] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28
[    0.064000] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[    0.068000] PCI host bridge /fpi@10000000/pci@E105400 ranges:
[    0.072000]  MEM 0x0000000018000000..0x0000000019ffffff
[    0.076000]   IO 0x000000001ae00000..0x000000001affffff
[    0.088000] gpio-stp-xway 1e100bb0.stp: Init done
[    0.092000] usbcore: registered new interface driver usbfs
[    0.096000] usbcore: registered new interface driver hub
[    0.100000] usbcore: registered new device driver usb
[    0.104000] PCI host bridge to bus 0000:00
[    0.108000] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[    0.112000] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.116000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.120000] pci 0000:00:0e.0: [1814:3062] type 00 class 0x028000
[    0.120000] pci 0000:00:0e.0: reg 0x10: [mem 0xffff0000-0xffffffff]
[    0.120000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.120000] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[    0.124000] Switched to clocksource MIPS
[    0.128000] NET: Registered protocol family 2
[    0.132000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.148000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.152000] TCP: reno registered
[    0.156000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.160000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.168000] NET: Registered protocol family 1
[    0.172000] PCI: CLS 0 bytes, default 32
[    0.172000] gptu: totally 6 16-bit timers/counters
[    0.180000] gptu: misc_register on minor 63
[    0.184000] gptu: succeeded to request irq 126
[    0.188000] gptu: succeeded to request irq 127
[    0.192000] gptu: succeeded to request irq 128
[    0.196000] gptu: succeeded to request irq 129
[    0.200000] gptu: succeeded to request irq 130
[    0.204000] gptu: succeeded to request irq 131
[    0.208000] ralink,eeprom ralink_eep: using RT3062.eeprom as eeprom
[    0.216000] phy-xrx200 gphy-xrx200: requesting lantiq/vr9_phy11g_a1x.bin
[    0.224000] phy-xrx200 gphy-xrx200: booting GPHY0 firmware at 7940000
[    0.228000] phy-xrx200 gphy-xrx200: booting GPHY1 firmware at 7940000
[    0.336000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.368000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.372000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.384000] msgmni has been set to 243
[    0.388000] io scheduler noop registered
[    0.392000] io scheduler deadline registered (default)
[    0.396000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc
[    0.408000] console [ttyLTQ0] enabled
[    0.412000] bootconsole [early0] disabled
[    0.424000] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    0.424000] nand: Samsung NAND 128MiB 3,3V 8-bit
[    0.424000] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    0.440000] Scanning device for bad blocks
[    0.444000] Bad eraseblock 55 at 0x0000006e0000
[    0.504000] 4 ofpart partitions found on MTD device 10000000.nand-parts
[    0.508000] Creating 4 MTD partitions on "10000000.nand-parts":
[    0.512000] 0x000000000000-0x000000040000 : "uboot"
[    0.520000] 0x000000040000-0x000000060000 : "uboot-env"
[    0.524000] 0x000000060000-0x000000260000 : "kernel"
[    0.528000] 0x000000260000-0x000008000000 : "ubi"
[    0.636000] libphy: lantiq,xrx200-mdio: probed
[    0.656000] net-xrx200: invalid MAC, using random
[    0.720000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:00, irq=-1)
[    0.788000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:01, irq=-1)
[    0.856000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:11, irq=-1)
[    0.924000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:13, irq=-1)
[    0.992000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:05, irq=-1)
[    1.000000] wdt 1f8803f0.watchdog: Init done
[    1.004000] TCP: cubic registered
[    1.008000] NET: Registered protocol family 17
[    1.012000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.024000] Bridge firewalling registered
[    1.028000] 8021q: 802.1Q VLAN Support v1.8
[    1.036000] UBI: auto-attach mtd3
[    1.036000] UBI: attaching mtd3 to ubi0
[    1.200000] UBI: scanning is finished
[    1.216000] UBI: attached mtd3 (name "ubi", size 125 MiB) to ubi0
[    1.220000] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.224000] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.232000] UBI: VID header offset: 512 (aligned 512), data offset: 2048
[    1.240000] UBI: good PEBs: 1004, bad PEBs: 1, corrupted PEBs: 0
[    1.244000] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[    1.252000] UBI: max/mean erase counter: 26/16, WL threshold: 4096, image sequence number: 886882633
[    1.260000] UBI: available PEBs: 0, total reserved PEBs: 1004, PEBs reserved for bad PEB handling: 19
[    1.272000] UBI: background thread "ubi_bgt0d" started, PID 236
[    1.296000] UBIFS: background thread "ubifs_bgt0_0" started, PID 239
[    1.380000] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    1.384000] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    1.396000] UBIFS: FS size: 125153280 bytes (119 MiB, 970 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs)
[    1.404000] UBIFS: reserved for root: 0 bytes (0 KiB)
[    1.408000] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 2EB6DFA0-F0B5-4C47-9F2F-CACB0C3AE1CB, small LPT model
[    1.420000] VFS: Mounted root (ubifs filesystem) on device 0:11.
[    1.428000] Freeing unused kernel memory: 180K (80493000 - 804c0000)
[    1.776000] SCSI subsystem initialized
[    1.800000] IFXUSB: ifxusb_hcd: version 3.2 B110801
[    1.804000] Chip Version :01c0 BurstSize=0
[    2.408000] IFXUSB: USB core #0 soft-reset
[    2.712000] IFXUSB: USB core #0 soft-reset
[    2.716000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[    2.720000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus number 1
[    2.728000] ifxusb_hcd ifxusb_hcd: irq 62, io mem 0xbe101000
[    2.732000] IFXUSB: Init: Power Port (0)
[    2.736000] eth0: port 4 got link
[    2.740000] hub 1-0:1.0: USB hub found
[    2.744000] hub 1-0:1.0: 1 port detected
[    3.248000] IFXUSB: USB core #1 soft-reset
[    3.552000] IFXUSB: USB core #1 soft-reset
[    3.556000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[    3.560000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus number 2
[    3.568000] ifxusb_hcd ifxusb_hcd: irq 91, io mem 0xbe106000
[    3.572000] IFXUSB: Init: Power Port (0)
[    3.576000] hub 2-0:1.0: USB hub found
[    3.580000] hub 2-0:1.0: 1 port detected
[    3.584000] ifxusb_hcd ifxusb_hcd: requested GPIO 489
[    3.600000] usbcore: registered new interface driver usb-storage
[    3.912000] random: mktemp urandom read with 15 bits of entropy available
[    8.636000] usb 1-1: new high-speed USB device number 2 using ifxusb_hcd
[    8.836000] usb-storage 1-1:1.0: USB Mass Storage device detected
[    8.848000] scsi host0: usb-storage 1-1:1.0
[    9.080000] random: nonblocking pool is initialized
[    9.848000] scsi 0:0:0:0: Direct-Access     FUJITSU  MHZ2250BH G2          PQ: 0 ANSI: 0
[    9.856000] sd 0:0:0:0: [sda] 488397167 512-byte logical blocks: (250 GB/232 GiB)
[    9.872000] sd 0:0:0:0: [sda] Write Protect is off
[    9.872000] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[    9.876000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.880000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.924000]  sda: sda1
[    9.932000] sd 0:0:0:0: [sda] Attached SCSI disk
[   10.188000] IFXOS, Version 1.5.14 (c) Copyright 2009, Lantiq Deutschland GmbH
[   10.188000] 
[   10.304000] NET: Registered protocol family 10
[   10.324000] NET: Registered protocol family 8
[   10.328000] NET: Registered protocol family 20
[   10.348000] PPP generic driver version 2.4.2
[   10.360000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.408000] MEI CPE Driver, Version 1.2.0
[   10.408000] 
[   10.412000] (c) Copyright 2009, Infineon Technologies AG
[   10.412000] 
### MEI CPE - MEI CPE - MEI CPE - MEI CPE ###
[   10.420000] 
[   10.420000] 
[   10.420000] Lantiq CPE API Driver version: DSL CPE API V4.11.4
[   10.472000] 
[   10.472000] Predefined debug level: 2
[   10.484000] Loading modules backported from Linux version master-2014-11-04-0-gf3660a2
[   10.492000] Backport generated by backports.git backports-20141023-2-g4ff890b
[   10.504000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.520000] Infineon Technologies DEU driver version 2.0.0 
[   10.528000] IFX DEU DES initialized (multiblock).
[   10.532000] IFX DEU AES initialized (multiblock).
[   10.536000] IFX DEU ARC4 initialized (multiblock).
[   10.540000] IFX DEU SHA1 initialized.
[   10.544000] IFX DEU MD5 initialized.
[   10.548000] IFX DEU SHA1_HMAC initialized.
[   10.552000] IFX DEU MD5_HMAC initialized.
[   10.576000] nf_conntrack version 0.5.0 (1952 buckets, 7808 max)
[   10.608000] NET: Registered protocol family 24
[   10.616000] usbcore: registered new interface driver ums-alauda
[   10.624000] usbcore: registered new interface driver ums-cypress
[   10.628000] usbcore: registered new interface driver ums-datafab
[   10.636000] usbcore: registered new interface driver ums-freecom
[   10.644000] usbcore: registered new interface driver ums-isd200
[   10.652000] usbcore: registered new interface driver ums-jumpshot
[   10.660000] usbcore: registered new interface driver ums-karma
[   10.668000] usbcore: registered new interface driver ums-sddr09
[   10.676000] usbcore: registered new interface driver ums-sddr55
[   10.684000] usbcore: registered new interface driver ums-usbat
[   10.692000] usbcore: registered new interface driver usblp
[   10.704000] usbcore: registered new interface driver usbserial
[   10.712000] usbcore: registered new interface driver usbserial_generic
[   10.716000] usbserial: USB Serial support registered for generic
[   10.744000] xt_time: kernel timezone is -0000
[   10.828000] cfg80211: Calling CRDA to update world regulatory domain
[   10.860000] cfg80211: World regulatory domain updated:
[   10.860000] cfg80211:  DFS Master region: unset
[   10.868000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   10.876000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   10.884000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   10.892000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   10.900000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   10.908000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   10.916000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   10.924000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   10.932000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   11.180000] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[   11.184000] rt2800pci 0000:00:0e.0: failed to load eeprom property
[   11.188000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT3062.eeprom'.
[   11.200000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3572, rev 0223 detected
[   11.208000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0008 detected
[   11.216000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   17.676000] ATM1.0.26    ATM (A1) firmware version 0.24
[   17.680000] ifxmips_atm: ATM init succeed
[   19.708000] device eth0.1 entered promiscuous mode
[   19.712000] device eth0 entered promiscuous mode
[   19.720000] br-lan: port 1(eth0.1) entered forwarding state
[   19.724000] br-lan: port 1(eth0.1) entered forwarding state
[   21.372000] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'
[   21.416000] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.34
[   21.560000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   21.576000] device wlan0 entered promiscuous mode
[   21.580000] br-lan: port 2(wlan0) entered forwarding state
[   21.584000] br-lan: port 2(wlan0) entered forwarding state
[   21.700000] br-lan: port 2(wlan0) entered disabled state
[   21.728000] br-lan: port 1(eth0.1) entered forwarding state
[   23.652000] br-lan: port 2(wlan0) entered forwarding state
[   23.656000] br-lan: port 2(wlan0) entered forwarding state
[   23.660000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   25.660000] br-lan: port 2(wlan0) entered forwarding state
[   83.408000] enter showtime, cell rate: 0 - 2018, 1 - 2018, xdata addr: 0x86cd0000
[   83.420000] enter showtime, cell rate: 0 - 2018, 1 - 2018, xdata addr: 0x86cd0000
[  108.712000] pppoe-wan: renamed from ppp0
[ 1735.572000] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.

Please eventualy test ptm/Annex B (it's included).

@Aquatica what revision did you build and from where?

ralink,eeprom ralink_eep.5: using RT2860.eeprom as eeprom

Indicates you are using pre 43987 build or BB build.

(Last edited by scapi on 10 Feb 2015, 22:34)

after upgrading
i get sync using old annex b fw, but it doesn't connect to  the net  anymore :-S

(Last edited by ZyNTaX on 10 Feb 2015, 23:54)

scapi, i definitely will try your new version build!
Especially the nandtpl-boot, the other OpenWrt-builds (own or others) work fine.
Note: I still can't test (x)DSL connections ...

My current F1 OpenWrt r44257 box, as normal WAN(eth) - (W)LAN router:

system type             : VR9 rev 1.2
machine                 : P2812HNUF1 - ZyXEL P-2812HNU-F1
processor               : 0
cpu model               : MIPS 34Kc V5.6

Has a lot of 'eth0: tx ring full' msgs. Maybe because it has a high through-put as it is (also) part of iSCSI channel for my ESXi machine wink It still works for me...

kernel msgs:
-
[161932.744000] eth0: tx ring full
[161932.788000] eth0: tx ring full
[161932.824000] eth0: tx ring full
[161932.864000] eth0: tx ring full
[161932.900000] eth0: tx ring full
[161933.160000] eth0: tx ring full
-

system msgs:
-
Tue Feb 10 23:17:07 2015 kern.err kernel: [177572.320000] eth0: tx ring full
Tue Feb 10 23:17:07 2015 kern.err kernel: [177572.336000] eth0: tx ring full
Tue Feb 10 23:17:07 2015 kern.err kernel: [177572.372000] eth0: tx ring full
Tue Feb 10 23:17:07 2015 kern.err kernel: [177572.412000] eth0: tx ring full
Tue Feb 10 23:17:41 2015 kern.err kernel: [177606.404000] eth0: tx ring full
Tue Feb 10 23:17:41 2015 kern.err kernel: [177606.416000] eth0: tx ring full
-

In my logs i see on both of my r44257 boxes:
[    7.232000] UBI error: ubi_open_volume: cannot open device 0, volume 0, error -16

Just before:
IFXOS, Version 1.5.14 (c) Copyright 2009, Lantiq Deutschland GmbH

This doesn't look good to me, i have to re-build both boxes as it looks like wrong flashing.
Although the box does what it should do.

System log:

ROM VER: 1.1.4
CFG 06
NAND
NAND Read OK

U-Boot SPL 2013.10-openwrt5 (Nov 18 2014 - 19:54:01)
SPL: initializing NAND flash
SPL: checking U-Boot image
SPL: loading U-Boot to RAM
SPL: decompressing U-Boot with LZO
SPL: jumping to U-Boot


U-Boot 2013.10-openwrt5 (Nov 18 2014 - 19:54:01) P-2812HNU-Fx

Board: ZyXEL P-2812HNU-Fx
SoC:   Lantiq VRX288 v1.2
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NAND
DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   ltq-eth
Hit any key to stop autoboot:  2  1  0 

NAND read: device 0 offset 0x60000, size 0x200000
 2097152 bytes read: OK
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   MIPS OpenWrt Linux-3.14.30
   Created:      2015-02-05   8:56:28 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1494823 Bytes = 1.4 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.14.30 (dguser@LD801) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44236) ) #12 Thu Feb 5 09:53:53 CET 2015

[    0.000000] SoC: VR9 rev 1.2

[    0.000000] bootconsole [early0] enabled

[    0.000000] CPU0 revision is: 00019556 (MIPS 34Kc)

[    0.000000] MIPS: machine is P2812HNUF1 - ZyXEL P-2812HNU-F1

[    0.000000] Determined physical RAM map:

[    0.000000]  memory: 08000000 @ 00000000 (usable)

[    0.000000] Initrd not found or empty - disabling initrd

[    0.000000] Zone ranges:

[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]

[    0.000000] Movable zone start for each node

[    0.000000] Early memory node ranges

[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]

[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.

[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512

[    0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit

[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)

[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

[    0.000000] Writing ErrCtl register=00000008

[    0.000000] Readback ErrCtl register=00000008

[    0.000000] Memory: 125252K/131072K available (3184K kernel code, 149K rwdata, 900K rodata, 164K init, 201K bss, 5820K reserved)

[    0.000000] NR_IRQS:256

[    0.000000] CPU Clock: 500MHz

[    0.000000] Calibrating delay loop... 332.54 BogoMIPS (lpj=665088)

[    0.032000] pid_max: default: 32768 minimum: 301

[    0.036000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)

[    0.040000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)

[    0.044000] pinctrl core: initialized pinctrl subsystem

[    0.048000] NET: Registered protocol family 16

[    0.060000] pinctrl-xway 1e100b10.pinmux: Init done

[    0.064000] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28

[    0.072000] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV

[    0.076000] PCI host bridge /fpi@10000000/pci@E105400 ranges:

[    0.080000]  MEM 0x0000000018000000..0x0000000019ffffff

[    0.084000]   IO 0x000000001ae00000..0x000000001affffff

[    0.100000] bio: create slab <bio-0> at 0

[    0.104000] gpio-stp-xway 1e100bb0.stp: Init done

[    0.108000] usbcore: registered new interface driver usbfs

[    0.112000] usbcore: registered new interface driver hub

[    0.116000] usbcore: registered new device driver usb

[    0.120000] PCI host bridge to bus 0000:00

[    0.124000] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]

[    0.128000] pci_bus 0000:00: root bus resource [io  0x1ae00000-0x1affffff]

[    0.132000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]

[    0.136000] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]

[    0.140000] Switched to clocksource MIPS

[    0.148000] NET: Registered protocol family 2

[    0.152000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)

[    0.160000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

[    0.164000] TCP: Hash tables configured (established 1024 bind 1024)

[    0.172000] TCP: reno registered

[    0.176000] UDP hash table entries: 256 (order: 0, 4096 bytes)

[    0.180000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[    0.188000] NET: Registered protocol family 1

[    0.192000] gptu: totally 6 16-bit timers/counters

[    0.196000] gptu: misc_register on minor 63

[    0.200000] gptu: succeeded to request irq 126

[    0.204000] gptu: succeeded to request irq 127

[    0.212000] gptu: succeeded to request irq 128

[    0.216000] gptu: succeeded to request irq 129

[    0.220000] gptu: succeeded to request irq 130

[    0.224000] gptu: succeeded to request irq 131

[    0.232000] ralink,eeprom ralink_eep.6: using RT3062.eeprom as eeprom

[    0.236000] phy-xrx200 gphy-xrx200.4: requesting lantiq/vr9_phy11g_a2x.bin

[    0.244000] phy-xrx200 gphy-xrx200.4: booting GPHY0 firmware at 78C0000

[    0.252000] phy-xrx200 gphy-xrx200.4: booting GPHY1 firmware at 78C0000

[    0.360000] futex hash table entries: 256 (order: -1, 3072 bytes)

[    0.368000] squashfs: version 4.0 (2009/01/31) Phillip Lougher

[    0.372000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.

[    0.384000] msgmni has been set to 244

[    0.388000] io scheduler noop registered

[    0.392000] io scheduler deadline registered (default)

[    0.400000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc

[    0.408000] console [ttyLTQ0] enabled
[    0.408000] console [ttyLTQ0] enabled

[    0.416000] bootconsole [early0] disabled
[    0.416000] bootconsole [early0] disabled

[    0.424000] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    0.424000] nand: Samsung NAND 128MiB 3,3V 8-bit
[    0.424000] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    0.440000] Scanning device for bad blocks
[    0.472000] Bad eraseblock 339 at 0x000002a60000
[    0.524000] Bad eraseblock 920 at 0x000007300000
[    0.536000] 4 ofpart partitions found on MTD device 10000000.nand-parts
[    0.540000] Creating 4 MTD partitions on "10000000.nand-parts":
[    0.544000] 0x000000000000-0x000000040000 : "uboot"
[    0.552000] 0x000000040000-0x000000060000 : "uboot-env"
[    0.560000] 0x000000060000-0x000000260000 : "kernel"
[    0.564000] 0x000000260000-0x000008000000 : "ubi"
[    0.676000] libphy: lantiq,xrx200-mdio: probed
[    0.684000] net-xrx200: invalid MAC, using random
[    0.752000] eth0: attached PHY [Lantiq XWAY PEF7071] (phy_addr=0:00, irq=-1)
[    0.820000] eth0: attached PHY [Lantiq XWAY PEF7071] (phy_addr=0:01, irq=-1)
[    0.888000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:11, irq=-1)
[    0.956000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:13, irq=-1)
[    1.024000] eth0: attached PHY [Lantiq XWAY PEF7071] (phy_addr=0:05, irq=-1)
[    1.032000] wdt 1f8803f0.watchdog: Init done
[    1.040000] TCP: cubic registered
[    1.044000] NET: Registered protocol family 17
[    1.048000] 8021q: 802.1Q VLAN Support v1.8
[    1.056000] UBI: auto-attach mtd3
[    1.056000] UBI: attaching mtd3 to ubi0
[    1.240000] UBI: scanning is finished
[    1.256000] UBI: attached mtd3 (name "ubi", size 125 MiB) to ubi0
[    1.260000] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.268000] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.272000] UBI: VID header offset: 512 (aligned 512), data offset: 2048
[    1.280000] UBI: good PEBs: 1003, bad PEBs: 2, corrupted PEBs: 0
[    1.284000] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[    1.292000] UBI: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 849802874
[    1.300000] UBI: available PEBs: 0, total reserved PEBs: 1003, PEBs reserved for bad PEB handling: 18
[    1.312000] UBI: background thread "ubi_bgt0d" started, PID 234
[    1.320000] mtd: device 4 (rootfs) set to be root[    1.344000] UBIFS: background thread "ubifs_bgt0_0" started, PID 240
[    1.372000] UBIFS: recovery needed
[    1.448000] UBIFS: recovery completed
[    1.452000] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    1.456000] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    1.468000] UBIFS: FS size: 125153280 bytes (119 MiB, 970 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs)
[    1.476000] UBIFS: reserved for root: 0 bytes (0 KiB)
[    1.480000] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 51D3F469-2666-4399-8D77-6AA112BAF1C2, small LPT model
[    1.492000] VFS: Mounted root (ubifs filesystem) on device 0:10.
[    1.500000] Freeing unused kernel memory: 164K (80427000 - 80450000)
procd: Console is alive
procd: - watchdog -
[    1.988000] SCSI subsystem initialized
[    2.012000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.020000] ehci-platform: EHCI generic platform driver
[    2.032000] uhci_hcd: USB Universal Host Controller Interface driver
[    2.048000] IFXUSB: ifxusb_hcd: version 3.2 B110801
[    2.056000] Chip Version :000b BurstSize=4
[    2.656000] IFXUSB: USB core #0 soft-reset
[    2.960000] IFXUSB: USB core #0 soft-reset
[    2.964000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[    2.968000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus number 1
[    2.976000] ifxusb_hcd ifxusb_hcd: irq 62, io mem 0xbe101000
[    2.980000] IFXUSB: Init: Power Port (0)
[    2.988000] hub 1-0:1.0: USB hub found
[    2.988000] hub 1-0:1.0: 1 port detected
[    3.496000] IFXUSB: USB core #1 soft-reset
[    3.796000] IFXUSB: USB core #1 soft-reset
[    3.800000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[    3.804000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus number 2
[    3.812000] ifxusb_hcd ifxusb_hcd: irq 91, io mem 0xbe106000
[    3.820000] IFXUSB: Init: Power Port (0)
[    3.824000] hub 2-0:1.0: USB hub found
[    3.828000] hub 2-0:1.0: 1 port detected
[    3.832000] ifxusb_hcd ifxusb_hcd: requested GPIO 233
[    3.848000] usbcore: registered new interface driver usb-storage
procd: - preinit -
[    4.144000] random: mktemp urandom read with 16 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    7.248000] 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
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   10.084000] IFXOS, Version 1.5.14 (c) Copyright 2009, Lantiq Deutschland GmbH


[   10.184000] NET: Registered protocol family 10
[   10.208000] NET: Registered protocol family 8
[   10.212000] NET: Registered protocol family 20
[   10.248000] PPP generic driver version 2.4.2
[   10.260000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.304000] MEI CPE Driver, Version 1.2.0


[   10.308000] (c) Copyright 2009, Infineon Technologies AG
[   10.308000] 
### MEI CPE - MEI CPE - MEI CPE - MEI CPE ###



Lantiq CPE API Driver version: DSL CPE API V4.11.4
[   10.364000] 
[   10.364000] Predefined debug level: 2
[   10.376000] Loading modules backported from Linux version master-2014-11-04-0-gf3660a2
[   10.384000] Backport generated by backports.git backports-20141023-2-g4ff890b
[   10.396000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.412000] Infineon Technologies DEU driver version 2.0.0 
[   10.416000] IFX DEU DES initialized (multiblock).
[   10.420000] IFX DEU AES initialized (multiblock).
[   10.424000] IFX DEU ARC4 initialized (multiblock).
[   10.432000] IFX DEU SHA1 initialized.
[   10.432000] IFX DEU MD5 initialized.
[   10.436000] IFX DEU SHA1_HMAC initialized.
[   10.440000] IFX DEU MD5_HMAC initialized.
[   10.464000] nf_conntrack version 0.5.0 (1959 buckets, 7836 max)
[   10.492000] NET: Registered protocol family 24
[   10.528000] xt_time: kernel timezone is -0000
[   10.604000] cfg80211: Calling CRDA to update world regulatory domain
[   10.612000] cfg80211: World regulatory domain updated:
[   10.612000] cfg80211:  DFS Master region: unset
[   10.620000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   10.628000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   10.636000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   10.644000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   10.652000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   10.660000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   10.668000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   10.676000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   10.684000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   10.928000] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[   10.932000] rt2800pci 0000:00:0e.0: failed to load eeprom property
[   10.936000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT3062.eeprom'.
[   10.948000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3572, rev 0223 detected
[   10.956000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0008 detected
/etc/rc.common: line 138: esi: not found
[   14.484000] UBI error: ubi_open_volume: cannot open device 0, volume 0, error -16
[   17.388000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   17.400000] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   17.408000] device eth0.2 entered promiscuous mode
[   17.408000] device eth0 entered promiscuous mode
[   17.424000] IPv6: ADDRCONF(NETDEV_UP): br-WAN: link is not ready
[   17.456000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[   17.468000] device eth0.1 entered promiscuous mode
[   17.488000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   18.344000] cfg80211: Calling CRDA for country: NL
[   18.356000] cfg80211: Regulatory domain changed to country: NL
[   18.360000] cfg80211:  DFS Master region: ETSI
[   18.364000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   18.372000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   18.380000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   18.392000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   18.400000] cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2700 mBm), (0 s)
[   18.408000] cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   20.152000] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'
[   20.164000] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.34
[   20.268000] random: nonblocking pool is initialized
[   20.292000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   20.300000] device wlan0 entered promiscuous mode
procd: - init complete -
[   21.172000] br-lan: port 2(wlan0) entered forwarding state
[   21.176000] br-lan: port 2(wlan0) entered forwarding state
[   21.180000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   21.192000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   23.180000] br-lan: port 2(wlan0) entered forwarding state



BusyBox v1.22.1 (2015-02-01 20:41:34 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (Bleeding Edge, r44257)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@OpenWrt:/#

Anyway: Next I will build an F1 with OpenWrt r?:

system type             : VR9 rev 1.1
machine                 : P2812HNUF1 - ZyXEL P-2812HNU-F1
processor               : 0
cpu model               : MIPS 34Kc V5.5

(Everybody noticed the 'cpu model' difference, 5.5 vs 5.6 ?)

First with the same nandtpl boot and r44257 firmware as the other F1-OpenWrt:
U-Boot 2013.10-openwrt5 (Nov 18 2014 - 19:54:01) P-2812HNU-Fx

  • Check the bootprocess & its logs, and see if we have the same msgs.

  • Test global working.

Next rebuild the worst working box with new nandtpl boot and build the box with same (or new) firmware.

  • Check again for the msgs and global working.

Just to see if there is difference in OpenWrt working on different CPU versions of the F1.
And for good working / performance testing.

scapi wrote:

@Aquatica what revision did you build and from where?

ralink,eeprom ralink_eep.5: using RT2860.eeprom as eeprom

Indicates you are using pre 43987 build or BB build.

Except this came with *your* pre-build setup (the one from about a week ago).
The exact same files worked very nicely on the installation before... So something had to go wrong?

ZyNTaX wrote:

after upgrading
i get sync using old annex b fw, but it doesn't connect to  the net  anymore :-S

Post your bootlog when it cannot Connect.

Tested scapi's new firmware (on my 3th - F1, with broken WAN port) and does work perfectly!
As my other F1´s most probably have a nandspl-boot file (instead of nandtpl-boot).

Last good known serial log (with 8GB USB pendrive attached):

ROM VER: 1.0.5
CFG 06
NAND
NAND Read OK

U-Boot SPL 2013.10-openwrt5 (Nov 18 2014 - 19:54:01)
SPL: initializing NAND flash
SPL: checking U-Boot image
SPL: loading U-Boot to RAM
SPL: decompressing U-Boot with LZO
SPL: jumping to U-Boot


U-Boot 2013.10-openwrt5 (Nov 18 2014 - 19:54:01) P-2812HNU-Fx

Board: ZyXEL P-2812HNU-Fx
SoC:   Lantiq VRX288 v1.1
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NAND
DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   ltq-eth
Hit any key to stop autoboot:  2  1  0 

NAND read: device 0 offset 0x60000, size 0x200000
 2097152 bytes read: OK
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   MIPS OpenWrt Linux-3.18.6
   Created:      2015-02-10  19:11:53 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1631738 Bytes = 1.6 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.18.6 (sylwek@WRT) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44367) ) #3 Tue Feb 10 20:10:11 CET 2015
[    0.000000] SoC: VR9 rev 1.1
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019555 (MIPS 34Kc)
[    0.000000] MIPS: machine is P2812HNUF1 - ZyXEL P-2812HNU-F1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000008
[    0.000000] Readback ErrCtl register=00000008
[    0.000000] Memory: 124780K/131072K available (3494K kernel code, 147K rwdata, 1024K rodata, 180K init, 206K bss, 6292K reserved)
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 500MHz
[    0.000000] Calibrating delay loop... 332.54 BogoMIPS (lpj=665088)
[    0.032000] pid_max: default: 32768 minimum: 301
[    0.036000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.040000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.044000] pinctrl core: initialized pinctrl subsystem
[    0.048000] NET: Registered protocol family 16
[    0.056000] pinctrl-xway 1e100b10.pinmux: Init done
[    0.060000] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28
[    0.064000] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[    0.068000] PCI host bridge /fpi@10000000/pci@E105400 ranges:
[    0.072000]  MEM 0x0000000018000000..0x0000000019ffffff
[    0.076000]   IO 0x000000001ae00000..0x000000001affffff
[    0.088000] gpio-stp-xway 1e100bb0.stp: Init done
[    0.092000] usbcore: registered new interface driver usbfs
[    0.096000] usbcore: registered new interface driver hub
[    0.100000] usbcore: registered new device driver usb
[    0.104000] PCI host bridge to bus 0000:00
[    0.108000] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[    0.112000] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.116000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.120000] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[    0.124000] Switched to clocksource MIPS
[    0.128000] NET: Registered protocol family 2
[    0.132000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.140000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.148000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.152000] TCP: reno registered
[    0.156000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.160000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.168000] NET: Registered protocol family 1
[    0.172000] gptu: totally 6 16-bit timers/counters
[    0.180000] gptu: misc_register on minor 63
[    0.184000] gptu: succeeded to request irq 126
[    0.188000] gptu: succeeded to request irq 127
[    0.192000] gptu: succeeded to request irq 128
[    0.196000] gptu: succeeded to request irq 129
[    0.200000] gptu: succeeded to request irq 130
[    0.204000] gptu: succeeded to request irq 131
[    0.208000] ralink,eeprom ralink_eep: using RT3062.eeprom as eeprom
[    0.216000] phy-xrx200 gphy-xrx200: requesting lantiq/vr9_phy11g_a1x.bin
[    0.224000] phy-xrx200 gphy-xrx200: booting GPHY0 firmware at 7940000
[    0.228000] phy-xrx200 gphy-xrx200: booting GPHY1 firmware at 7940000
[    0.336000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.368000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.372000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.384000] msgmni has been set to 243
[    0.388000] io scheduler noop registered
[    0.392000] io scheduler deadline registered (default)
[    0.396000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc
[    0.408000] console [ttyLTQ0] enabled
[    0.408000] console [ttyLTQ0] enabled
[    0.412000] bootconsole [early0] disabled
[    0.412000] bootconsole [early0] disabled
[    0.424000] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    0.424000] nand: Samsung NAND 128MiB 3,3V 8-bit
[    0.424000] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    0.440000] Scanning device for bad blocks
[    0.524000] Bad eraseblock 973 at 0x0000079a0000
[    0.532000] 4 ofpart partitions found on MTD device 10000000.nand-parts
[    0.536000] Creating 4 MTD partitions on "10000000.nand-parts":
[    0.540000] 0x000000000000-0x000000040000 : "uboot"
[    0.548000] 0x000000040000-0x000000060000 : "uboot-env"
[    0.552000] 0x000000060000-0x000000260000 : "kernel"
[    0.556000] 0x000000260000-0x000008000000 : "ubi"
[    0.664000] libphy: lantiq,xrx200-mdio: probed
[    0.680000] net-xrx200: invalid MAC, using random
[    0.748000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:00, irq=-1)
[    0.816000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:01, irq=-1)
[    0.884000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:11, irq=-1)
[    0.952000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:13, irq=-1)
[    1.020000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:05, irq=-1)
[    1.028000] wdt 1f8803f0.watchdog: Init done
[    1.032000] TCP: cubic registered
[    1.036000] NET: Registered protocol family 17
[    1.040000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.052000] Bridge firewalling registered
[    1.056000] 8021q: 802.1Q VLAN Support v1.8
[    1.064000] UBI: auto-attach mtd3
[    1.064000] UBI: attaching mtd3 to ubi0
[    1.256000] UBI: scanning is finished
[    1.280000] UBI: volume 0 ("rootfs") re-sized from 56 to 981 LEBs
[    1.284000] UBI: attached mtd3 (name "ubi", size 125 MiB) to ubi0
[    1.288000] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.296000] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.304000] UBI: VID header offset: 512 (aligned 512), data offset: 2048
[    1.308000] UBI: good PEBs: 1004, bad PEBs: 1, corrupted PEBs: 0
[    1.316000] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[    1.324000] UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 33117336
[    1.332000] UBI: available PEBs: 0, total reserved PEBs: 1004, PEBs reserved for bad PEB handling: 19
[    1.340000] UBI: background thread "ubi_bgt0d" sta[    1.372000] UBIFS: background thread "ubifs_bgt0_0" started, PID 239
[    1.400000] UBIFS: start fixing up free space
[    1.984000] UBIFS: free space fixup complete
[    2.012000] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    2.016000] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    2.028000] UBIFS: FS size: 125153280 bytes (119 MiB, 970 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs)
[    2.036000] UBIFS: reserved for root: 0 bytes (0 KiB)
[    2.040000] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 2EB6DFA0-F0B5-4C47-9F2F-CACB0C3AE1CB, small LPT model
[    2.056000] VFS: Mounted root (ubifs filesystem) on device 0:11.
[    2.060000] Freeing unused kernel memory: 180K (80493000 - 804c0000)
procd: Console is alive
procd: - watchdog -
[    2.444000] SCSI subsystem initialized
[    2.472000] IFXUSB: ifxusb_hcd: version 3.2 B110801
[    2.476000] Chip Version :01c0 BurstSize=0
[    3.080000] IFXUSB: USB core #0 soft-reset
[    3.384000] IFXUSB: USB core #0 soft-reset
[    3.384000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[    3.392000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus number 1
[    3.396000] ifxusb_hcd ifxusb_hcd: irq 62, io mem 0xbe101000
[    3.404000] IFXUSB: Init: Power Port (0)
[    3.408000] hub 1-0:1.0: USB hub found
[    3.412000] hub 1-0:1.0: 1 port detected
[    3.916000] IFXUSB: USB core #1 soft-reset
[    4.220000] IFXUSB: USB core #1 soft-reset
[    4.220000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[    4.228000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus number 2
[    4.232000] ifxusb_hcd ifxusb_hcd: irq 91, io mem 0xbe106000
[    4.240000] IFXUSB: Init: Power Port (0)
[    4.244000] hub 2-0:1.0: USB hub found
[    4.248000] hub 2-0:1.0: 1 port detected
[    4.252000] ifxusb_hcd ifxusb_hcd: requested GPIO 489
[    4.268000] usbcore: registered new interface driver usb-storage
procd: - preinit -
[    4.580000] random: mktemp urandom read with 16 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    4.916000] usb 1-1: new high-speed USB device number 2 using ifxusb_hcd
[    5.112000] usb-storage 1-1:1.0: USB Mass Storage device detected
[    5.116000] scsi host0: usb-storage 1-1:1.0
[    5.420000] random: nonblocking pool is initialized
[    6.120000] scsi 0:0:0:0: Direct-Access     CBM      Flash Disk       5.00 PQ: 0 ANSI: 2
[    6.128000] sd 0:0:0:0: [sda] 15663104 512-byte logical blocks: (8.01 GB/7.46 GiB)
[    6.136000] sd 0:0:0:0: [sda] Write Protect is off
[    6.140000] sd 0:0:0:0: [sda] No Caching mode page found
[    6.144000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    6.156000]  sda: sda1
[    6.160000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    6.408000] eth0: port 0 got link
mounting /dev/root
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   10.612000] IFXOS, Version 1.5.14 (c) Copyright 2009, Lantiq Deutschland GmbH


[   10.728000] NET: Registered protocol family 10
[   10.748000] NET: Registered protocol family 8
[   10.752000] NET: Registered protocol family 20
[   10.772000] PPP generic driver version 2.4.2
[   10.788000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.836000] MEI CPE Driver, Version 1.2.0


[   10.836000] (c) Copyright 2009, Infineon Technologies AG
[   10.836000] 
### MEI CPE - MEI CPE - MEI CPE - MEI CPE ###



Lantiq CPE API Driver version: DSL CPE API V4.11.4
[   10.896000] 
[   10.896000] Predefined debug level: 2
[   10.912000] Loading modules backported from Linux version master-2014-11-04-0-gf3660a2
[   10.920000] Backport generated by backports.git backports-20141023-2-g4ff890b
[   10.932000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.948000] Infineon Technologies DEU driver version 2.0.0 
[   10.952000] IFX DEU DES initialized (multiblock).
[   10.956000] IFX DEU AES initialized (multiblock).
[   10.960000] IFX DEU ARC4 initialized (multiblock).
[   10.968000] IFX DEU SHA1 initialized.
[   10.968000] IFX DEU MD5 initialized.
[   10.972000] IFX DEU SHA1_HMAC initialized.
[   10.976000] IFX DEU MD5_HMAC initialized.
[   11.004000] nf_conntrack version 0.5.0 (1952 buckets, 7808 max)
[   11.036000] NET: Registered protocol family 24
[   11.044000] usbcore: registered new interface driver ums-alauda
[   11.052000] usbcore: registered new interface driver ums-cypress
[   11.056000] usbcore: registered new interface driver ums-datafab
[   11.064000] usbcore: registered new interface driver ums-freecom
[   11.072000] usbcore: registered new interface driver ums-isd200
[   11.080000] usbcore: registered new interface driver ums-jumpshot
[   11.088000] usbcore: registered new interface driver ums-karma
[   11.096000] usbcore: registered new interface driver ums-sddr09
[   11.104000] usbcore: registered new interface driver ums-sddr55
[   11.112000] usbcore: registered new interface driver ums-usbat
[   11.116000] usbcore: registered new interface driver usblp
[   11.132000] usbcore: registered new interface driver usbserial
[   11.140000] usbcore: registered new interface driver usbserial_generic
[   11.144000] usbserial: USB Serial support registered for generic
[   11.176000] xt_time: kernel timezone is -0000
[   11.256000] cfg80211: Calling CRDA to update world regulatory domain
[   11.276000] cfg80211: World regulatory domain updated:
[   11.280000] cfg80211:  DFS Master region: unset
[   11.284000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   11.292000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.300000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.308000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   11.316000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   11.324000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   11.336000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   11.344000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   11.352000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   11.608000] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[   11.612000] rt2800pci 0000:00:0e.0: failed to load eeprom property
[   11.616000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT3062.eeprom'.
[   11.628000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3572, rev 0223 detected
[   11.636000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0008 detected
/etc/rc.common: line 138: esi: not found
[   18.260000] PTM 1.0.27    PTM (E1) firmware version 0.30
[   18.264000] ifxmips_ptm: PTM init succeed
[   20.336000] device eth0.1 entered promiscuous mode
[   20.340000] device eth0 entered promiscuous mode
[   20.348000] br-lan: port 1(eth0.1) entered forwarding state
[   20.352000] br-lan: port 1(eth0.1) entered forwarding state
[   22.356000] br-lan: port 1(eth0.1) entered forwarding state
procd: - init complete -



BusyBox v1.22.1 (2015-02-10 16:03:09 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (Bleeding Edge, r44367)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@OpenWrt:/#

Only 1 small item (which I only see in serial log above):
-
/etc/rc.common: line 138: esi: not found
-
What do i miss?

I see 'openwrt-lantiq-p2812hnufx_nandtpl-u-boot.img' is not changed, so no need to replace that, as i wrote earlier.
U-Boot 2013.10-openwrt5 (Nov 18 2014 - 19:54:01) P-2812HNU-Fx

As this build looks more stable to me, next to flash the same code to the first full working F1 (v1.1).
Next to test exactly the same FW on a CPU v1.2 version F1.
To test the CPU version differences with OpenWrt.

scapi

I'm trying to get my V1.1 HNU-F1 to actually wake up with your build(s) (the older and the most recent, also I made my own from 44xx trunk). It takes *hundreds* of seconds to boot to get to terminal. At worst over 1200...

I've done everything exactly as with the VMG3266-D20A on which it works pretty OK. Ideas? I've been thinking on taking the risk of nand scrub.chip instead of erase... Installation goes very nicely and fast, no errors whatsoever. Problems start at the very first point of boot:
The basic data comes out OK, but "Uncompressing kernel..." is what stalls it for ages. And then it goes rapidly onwards for a while, and then it freezes again for a long, long time. And then it keeps going. By the kernel boot time timestamps, it works perfectly 1-30seconds, halts and continues at 120-150seconds for a while... Halts again, only to continue at 300+ seconds. And this goes on until it hits (depending on luck, I guess) 600....1200seconds when it claims it's ready to rock.

Now I've been waitin dropbearkey to generate SSH keys for the past 40minutes or so. Through serial I can get top running and every time it shows a ton of CPU usage, but pretty much nothing else. df -h shows 0% usage, available to be on /tmp 61.1M and /dev as much as 512k. I can't get SSH server running, since they keys wont get generated, so I can't upload the final images...
Mem usage says pretty much: nothing at all, nothing cached, nada.

Box also boots noproblems with either nandtpl-image and nandspl-image. I thought this shouldn't be possible? This one machine seems more a faulty brick than working box, however I used it pretty extensively untill I tried to install openWRT on it - and it worked OK.

Here's the bootlog from my build, that most certainly has useless stuff in it. And prolly wrong stuff in it, as well.
However, with scapi's prebuilt it does exactly the same at about same speeds...
Also after nearly an 1hour waiting, dropbearkey apparently got those host keys created. Still no ssh response, tho (now it only times out).

Bootlog, including actual flashing stuff... The .asc upload is cut short since the amount of asterix's is unnecessary for the purpose.

ROM VER: 1.0.5
CFG 02
UART
********************************************************************************

U-Boot 2013.10-openwrt5 (Nov 18 2014 - 19:54:58) P-2812HNU-Fx

Board: ZyXEL P-2812HNU-Fx
SoC:   Lantiq VRX288 v1.1
CPU:   125 MHz
IO:    125 MHz
BUS:   125 MHz
BOOT:  UART w/o EEPROM
DRAM:  256 MiB
NAND:  128 MiB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ltq-eth
P-2812HNU-Fx # nand erase.chip

NAND erase.chip: device 0 whole chip
Skipping bad block at  0x012c0000
Erasing at 0x7fe0000 -- 100% complete.
OK
P-2812HNU-Fx # tftp 0x80700000 openwrt-lantiq-p2812hnufx_nandspl-u-boot.img
ltq_phy: addr 0, link 1, speed 100, duplex 1
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 0, speed 10, duplex 0
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-p2812hnufx_nandspl-u-boot.img'.
Load address: 0x80700000
Loading: ###########
         1.9 MiB/s
done
Bytes transferred = 158197 (269f5 hex)
P-2812HNU-Fx # nand write 0x80700000 0x0 0x269f5

NAND write: device 0 offset 0x0, size 0x269f5
 158197 bytes written: OK

P-2812HNU-Fx # tftp 0x80800000 openwrt-lantiq-xrx200-p2812hnuf1-uimage
ltq_phy: addr 0, link 1, speed 100, duplex 1
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 0, speed 10, duplex 0
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-p2812hnuf1-uimage'.
Load address: 0x80800000
Loading: #################################################################
         #########################################
         2 MiB/s
done
Bytes transferred = 1542355 (1788d3 hex)
P-2812HNU-Fx # nand erase 0x60000 0x200000

NAND erase: device 0 offset 0x60000, size 0x200000
Erasing at 0x240000 -- 100% complete.
OK
P-2812HNU-Fx # nand write 0x80800000 0x60000 0x200000

NAND write: device 0 offset 0x60000, size 0x200000
 2097152 bytes written: OK
P-2812HNU-Fx # tftpboot 0x80800000 openwrt-lantiq-xrx200-p2812hnuf1-uimage-initr                 amfs
ltq_phy: addr 0, link 1, speed 100, duplex 1
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 0, speed 10, duplex 0
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-p2812hnuf1-uimage-initramfs'.
Load address: 0x80800000
Loading: #################################################################
         #################################################################
         #################################################################
         ###################################################
         2 MiB/s
done
Bytes transferred = 3599833 (36edd9 hex)
P-2812HNU-Fx # bootm 0x80800000
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   MIPS OpenWrt Linux-3.18.6
   Created:      2015-02-10  20:03:42 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    3599769 Bytes = 3.4 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.18.6 (aquatica@bullhorn) (gcc version 4.8.3 (Open                 Wrt/Linaro GCC 4.8-2014.04 r44380) ) #2 Tue Feb 10 22:03:33 EET 2015
[    0.000000] SoC: VR9 rev 1.1
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019555 (MIPS 34Kc)
[    0.000000] MIPS: machine is P2812HNUF1 - ZyXEL P-2812HNU-F1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32                  bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                 es: 32512
[    0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=0000b640
[    0.000000] Readback ErrCtl register=0000b640
[    0.000000] Memory: 123116K/131072K available (3304K kernel code, 148K rwdata                 , 920K rodata, 2136K init, 205K bss, 7956K reserved)
[    0.000000] NR_IRQS:256
[    0.000000] CPU Clock: 125MHz
[    0.028000] Calibrating delay loop... 4.80 BogoMIPS (lpj=9600)
[    0.088000] pid_max: default: 32768 minimum: 301
[    0.112000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.256000] pinctrl core: initialized pinctrl subsystem
[    0.504000] NET: Registered protocol family 16
[    0.728000] pinctrl-xway 1e100b10.pinmux: Init done
[    0.760000] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels:                  28
[    0.868000] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[    1.132000] gpio-stp-xway 1e100bb0.stp: Init done
[    1.172000] usbcore: registered new interface driver usbfs
[    1.180000] usbcore: registered new interface driver hub
[    1.188000] usbcore: registered new device driver usb
[    1.244000] Switched to clocksource MIPS
[    1.348000] NET: Registered protocol family 2
[    1.432000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    1.444000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.452000] TCP: Hash tables configured (established 1024 bind 1024)
[    1.464000] TCP: reno registered
[    1.468000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.476000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.504000] NET: Registered protocol family 1
[   33.044000] random: nonblocking pool is initialized
[  294.940000] gptu: totally 6 16-bit timers/counters
[  294.952000] gptu: misc_register on minor 63
[  294.960000] gptu: succeeded to request irq 126
[  294.964000] gptu: succeeded to request irq 127
[  294.972000] gptu: succeeded to request irq 128
[  294.976000] gptu: succeeded to request irq 129
[  294.984000] gptu: succeeded to request irq 130
[  294.988000] gptu: succeeded to request irq 131
[  295.028000] ralink,eeprom ralink_eep: using RT3062.eeprom as eeprom
[  295.048000] phy-xrx200 gphy-xrx200: requesting lantiq/vr9_phy11g_a1x.bin
[  295.072000] phy-xrx200 gphy-xrx200: booting GPHY0 firmware at 6E20000
[  295.080000] phy-xrx200 gphy-xrx200: booting GPHY1 firmware at 6E20000
[  295.260000] futex hash table entries: 256 (order: -1, 3072 bytes)
[  295.324000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[  295.332000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT                 Y) (c) 2001-2006 Red Hat, Inc.
[  295.392000] msgmni has been set to 240
[  295.476000] io scheduler noop registered
[  295.484000] io scheduler deadline registered (default)
[  295.516000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud                  = 0) is a lantiq,asc
[  295.528000] console [ttyLTQ0] enabled
[  295.528000] console [ttyLTQ0] enabled
[  295.536000] bootconsole [early0] disabled
[  295.536000] bootconsole [early0] disabled
[  295.616000] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[  295.616000] nand: Samsung NAND 128MiB 3,3V 8-bit
[  295.616000] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[  295.636000] Scanning device for bad blocks
[  295.740000] Bad eraseblock 150 at 0x0000012c0000
[  296.324000] 4 ofpart partitions found on MTD device 10000000.nand-parts
[  296.332000] Creating 4 MTD partitions on "10000000.nand-parts":
[  296.340000] 0x000000000000-0x000000040000 : "uboot"
[  296.404000] 0x000000040000-0x000000060000 : "uboot-env"
[  296.468000] 0x000000060000-0x000000260000 : "kernel"
[  296.532000] 0x000000260000-0x000008000000 : "ubi"
[  296.884000] libphy: lantiq,xrx200-mdio: probed
[  297.304000] net-xrx200: invalid MAC, using random
[  297.380000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:00                 , irq=-1)
[  297.452000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:01                 , irq=-1)
[  297.524000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:11                 , irq=-1)
[  297.596000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:13                 , irq=-1)
[  297.668000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:05                 , irq=-1)
[  297.732000] wdt 1f8803f0.watchdog: Init done
[  297.892000] TCP: cubic registered
[  297.896000] NET: Registered protocol family 17
[  297.904000] bridge: automatic filtering via arp/ip/ip6tables has been depreca                 ted. Update your scripts to load br_netfilter if you need this.
[  297.920000] 8021q: 802.1Q VLAN Support v1.8
[  298.044000] UBI error: ubi_auto_attach: no valid UBI magic found inside mtd3
[  298.268000] Freeing unused kernel memory: 2136K (8044a000 - 80660000)
procd: Console is alive
procd: - watchdog -
[  299.884000] IFXUSB: ifxusb_hcd: version 3.2 B110801
[  299.908000] Chip Version :01c0 BurstSize=0
[  300.600000] IFXUSB: USB core #0 soft-reset
[  300.948000] IFXUSB: USB core #0 soft-reset
[  300.956000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[  300.964000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus numbe                 r 1
[  300.972000] ifxusb_hcd ifxusb_hcd: irq 62, io mem 0xbe101000
[  300.980000] IFXUSB: Init: Power Port (0)
[  301.060000] hub 1-0:1.0: USB hub found
[  301.068000] hub 1-0:1.0: 1 port detected
[  301.672000] IFXUSB: USB core #1 soft-reset
[  302.024000] IFXUSB: USB core #1 soft-reset
[  302.032000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[  302.040000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus numbe                 r 2
[  302.048000] ifxusb_hcd ifxusb_hcd: irq 91, io mem 0xbe106000
[  302.056000] IFXUSB: Init: Power Port (0)
[  302.108000] hub 2-0:1.0: USB hub found
[  302.128000] hub 2-0:1.0: 1 port detected
[  302.152000] ifxusb_hcd ifxusb_hcd: requested GPIO 489
[  302.236000] eth0: port 0 got link
procd: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[  350.400000] IFXOS, Version 1.5.14 (c) Copyright 2009, Lantiq Deutschland GmbH

[  351.208000] NET: Registered protocol family 10
[  351.472000] NET: Registered protocol family 8
[  351.476000] NET: Registered protocol family 20
[  351.752000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[  352.400000] MEI CPE Driver, Version 1.2.0

[  352.404000] (c) Copyright 2009, Infineon Technologies AG
### MEI CPE - MEI CPE - MEI CPE - MEI CPE ###


Lantiq CPE API Driver version: DSL CPE API V4.11.4
[  352.768000]
[  352.768000] Predefined debug level: 2
[  352.944000] Loading modules backported from Linux version master-2014-11-04-0                 -gf3660a2
[  352.952000] Backport generated by backports.git backports-20141023-2-g4ff890b
[  353.132000] ip_tables: (C) 2000-2006 Netfilter Core Team
[  353.400000] Infineon Technologies DEU driver version 2.0.0
[  353.448000] IFX DEU DES initialized (multiblock).
[  353.480000] IFX DEU AES initialized (multiblock).
[  353.496000] IFX DEU ARC4 initialized (multiblock).
[  353.508000] IFX DEU SHA1 initialized.
[  353.516000] IFX DEU MD5 initialized.
[  353.528000] IFX DEU SHA1_HMAC initialized.
[  353.536000] IFX DEU MD5_HMAC initialized.
[  353.892000] nf_conntrack version 0.5.0 (1957 buckets, 7828 max)
[  355.416000] xt_time: kernel timezone is -0000
[  356.308000] cfg80211: Calling CRDA to update world regulatory domain
[  358.372000] cfg80211: World regulatory domain updated:
[  358.376000] cfg80211:  DFS Master region: unset
[  358.380000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gai                 n, max_eirp), (dfs_cac_time)
[  358.392000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 m                 Bm), (N/A)
[  358.400000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 m                 Bm), (N/A)
[  358.408000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 m                 Bm), (N/A)
[  358.420000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 m                 Bm), (N/A)
[  358.428000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AU                 TO), (N/A, 2000 mBm), (0 s)
[  358.440000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000                  mBm), (0 s)
[  358.448000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 m                 Bm), (N/A)
[  358.456000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0                  mBm), (N/A)
/etc/rc.common: line 138: esi: not found
 [  567.872000] device eth0.1 entered promiscuous mode
[  567.876000] device eth0 entered promiscuous mode
[  567.988000] br-lan: port 1(eth0.1) entered forwarding state
[  567.996000] br-lan: port 1(eth0.1) entered forwarding state
[  570.000000] br-lan: port 1(eth0.1) entered forwarding state
procd: - init complete -



BusyBox v1.22.1 (2015-02-10 21:51:40 EET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (Bleeding Edge, r44380)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@OpenWrt:/# passwd
Changing password for root
New password:
Retype password:
Password for root changed by root
root@OpenWrt:/# top

Mem: 15844K used, 109408K free, 0K shrd, 0K buff, 2140901208K cached
CPU:  91% usr   8% sys   0% nic   0% idle   0% io   0% irq   0% sirq
Load average: 1.50 1.33 1.22 2/28 1084
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
 1073  1072 root     R     1164   1%  86% /usr/bin/dropbearkey -t dss -f /tmp/d
 1084   313 root     R     1360   1%   6% top
 1005     1 root     S     1356   1%   4% /usr/sbin/ntpd -n -S /usr/sbin/ntpd-h
 1007     1 nobody   S      924   1%   3% /usr/sbin/dnsmasq -C /var/etc/dnsmasq
  790     1 root     S     1484   1%   0% /sbin/netifd
 1072     1 root     S     1448   1%   0% {rc.common} /bin/sh /etc/rc.common /e
    1     0 root     S     1392   1%   0% /sbin/procd
  313     1 root     S     1360   1%   0% /bin/ash --login
  932     1 root     S     1356   1%   0% /usr/sbin/telnetd -F -l /bin/login.sh
  820     1 root     S     1152   1%   0% /usr/sbin/odhcpd
  753     1 root     S     1036   1%   0% /sbin/logd -S 16
  311     1 root     S      884   1%   0% /sbin/ubusd
   14     2 root     SW       0   0%   0% [kworker/0:1]
    3     2 root     SW       0   0%   0% [ksoftirqd/0]
    6     2 root     SW       0   0%   0% [kworker/u2:0]
    7     2 root     SW<      0   0%   0% [khelper]
  203     2 root     SW       0   0%   0% [kworker/u2:2]
    2     0 root     SW       0   0%   0% [kthreadd]
  126     2 root     SW       0   0%   0% [fsnotify_mark]
^C447     2 root     SW<      0   0%   0% [ipv6_addrconf]

takes so long because u after entered uart, and flashed new uboot, need power off-on device(no reset).
then write uimage and run initramfs.

Aquatica, i also had this ones, but not sure what causes it. On such a slow boot, do a re-try.

You can use nand scrub.chip, but my advice to do this ONLY when you have 'a lot' of bad nand blocks (command: 'nand bad' @ autoboot). Some are normal, but more then 15 could be considered as 'too bad'. I see you have only 1 bad block...

Also make sure your files to be flashed to 192.168.1.1 are on 192.168.1.2 and not somewhere else on a network. I had some kind of trouble using Wireless network with my files on there to be flashed to local connected F1.

Yesterday I flashed a F1 without any problems with the files from scapi (see logs above). Nandspl-image may work, but the nandtpl-image does a better job, i think. And can also run all other home/self made newer images.

cornelus2009, Aquatica's log shows the first boot, before SCP the image to the F1 to flash. Following http://wiki.openwrt.org/toh/zyxel/p2812hnu-f1, you shouldn't reboot in between, or you have to tftp both uImages again, i thought.

(Last edited by DGDodo on 11 Feb 2015, 21:50)

cornelus2009
I did the install 100% as per instructions, several times. I've done the other box several times as well, no prob... Not many boots in between to be done. The terminal log might miss some other stuff as well, since I only "select all + copy" everything and tried to take out duplicates and clean it up a little bit...

Also, I noticed that the CPU bogomips on this slow installation are very low, less than 5... The other installation on a working system is over 330. There is a huge difference

EDIT
Ok, I now installed again. Sent the u-boot through serial etc. And remembered to power off and on at that point.
NOW it works. Well, at least boots, haven't had the time to even test if it really works heh.

DGDodo
I have a laptop with 192.168.1.2, then there's the router. Laptop isn't connected to wireless (wifi disabled), so that shouldn't be an issue. Also after writing U-boot, power cycle was in the guide before I think, but now it seems to be gone.
So cornelus was very right about that powercycle!

(Last edited by Aquatica on 12 Feb 2015, 05:56)

And now after I actually managed to install openWRT in a working manner...
My WiFi doesn't like to stay alive for too long.
This is scapi's pre-made images for Chaos Calmer. I will be testing my own build now on the same box, so if there is a known fix for this - sorry. If not, I think I can use this box as testbed to test such a fix when someone figures out something.

Yes, my linux diagnostic skills are utterly bad sad

[  475.756000] ------------[ cut here ]------------
[  475.756000] WARNING: CPU: 0 PID: 4103 at /home/sylwek/openwrt/trunk/openwrt/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/linux-lantiq_xrx200/compat-wireless-2014-11-04/drivers/net/wireless/rt2x00/rt2800lib.c:1095 rt2800_get_txwi_rxwi_size+0x1b8/0x28c [rt2800lib]()
[  475.780000] Modules linked in: ltq_ptm_vr9 rt2800pci rt2800mmio rt2800lib iptable_nat rt2x00pci rt2x00mmio rt2x00lib pppoe nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT 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 usbserial usblp ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda pppox ppp_async nf_reject_ipv4 nf_nat_masquerade_ipv4 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 ip_tables crc_itu_t crc_ccitt compat drv_dsl_cpe_api drv_mei_cpe ip6t_REJECT nf_reject_ipv6 ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables pppoatm ppp_generic slhc br2684 atm ipv6 eeprom_93cx6 drv_ifxos arc4 crypto_blkcipher usb_storage ltq_hcd_vr9 sd_mod scsi_mod gpio_button_hotplug
[  475.872000] CPU: 0 PID: 4103 Comm: luci Not tainted 3.18.6 #3
[  475.876000] Stack : 00000000 00000000 00000000 00000000 804edf4a 00000031 00000000 00000000
          86cfc748 000000e0 804186d0 8047ccfb 00001007 804e3b00 86cfc748 000000e0
          00000008 87342b40 87bf96c0 80328cec 00000003 80239858 00000447 00000000
          8041b840 8733975c 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
[  475.912000] Call Trace:
[  475.912000] [<8028e1a4>] show_stack+0x48/0x70
[  475.920000] [<8034e61c>] warn_slowpath_common+0x84/0xb4
[  475.924000] [<8034e6d4>] warn_slowpath_null+0x18/0x24
[  475.928000] [<872e420c>] rt2800_get_txwi_rxwi_size+0x1b8/0x28c [rt2800lib]
[  475.936000]
[  475.936000] ---[ end trace 49c6ac6ee3432fe6 ]---
[  594.572000] device wlan0 left promiscuous mode
[  594.576000] br-lan: port 2(wlan0) entered disabled state

@Aquatica as @cornelus2009 said:

ROM VER: 1.0.5
CFG 02
UART

is ok for only U-Boot flashing.

After

Filename 'openwrt-lantiq-p2812hnufx_nandspl-u-boot.img'.
Load address: 0x80700000
Loading: ###########
         1.9 MiB/s
done
Bytes transferred = 158197 (269f5 hex)
P-2812HNU-Fx # nand write 0x80700000 0x0 0x269f5

You need to power off/on device and do rest after "normal U-boot" boots.

From log You done everything from CFG 02 and asc U-Boot (more-less 1/4 speed of normal board).

As for wireless, post Your config.

You have only one BB in nand so it isn't the case.

And about

Filename 'openwrt-lantiq-p2812hnufx_nandspl-u-boot.img'.

where did You find spl image ? SPL isn't working atm in "normal boot mode".

Edit: Made corrections about Powering off board in wiki.

Edit 2: As in Your bootlog, there is no PCI init in current trunk build, as of 3.18. It needs some corrections after kernel bump (will be corrected soon), and becose 3.18 needed some patches to lantiq code it may be unstable.

(Last edited by scapi on 12 Feb 2015, 09:14)

@scapi
You were right, with cornelus - ofcourse smile

Did it the proper way and it worked, like I posted.
And the nandspl-u-boot.img worked like a charm. I built it myself, from a bit earlier trunk (think it was 4409 or so?). Dunno if anything changed since. I got the same results with way older trunk a while back, so I don't know why it works if it shouldn't. I just followed your tutorial, used your U-Boot image file and everything else was exactly like I got out from compiling.

Important edit
Actually I am *NOT* sure about the spl... Because I failed the installation to my own stupidity, so it is possible the nandtpl-image actually resided... I WILL check this out soon.
The sources create the nandspl-image (using make menuconfig). However I don't even know how to make tpl image?

My network config:

root@OpenWrt:/# cat /etc/config/network

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 'fd0d:e664:a99d::/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'

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 atm-bridge 'atm'
        option vpi '1'
        option vci '32'
        option encaps 'llc'
        option payload 'bridged'

config interface 'wan'
        option ifname 'nas0'
        option proto 'pppoe'
        option username 'foo'
        option password 'bar'
        option ipv6 '1'
        option macaddr '00:01:02:03:04:06'

config interface 'wan6'
        option ifname '@wan'
        option proto 'dhcpv6'

config vdsl 'dsl'
        option annex 'a'
        option firmware '/lib/firmware/vdsl.bin'
        option tone 'av'
        option xfer_mode 'ptm'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option vid '2'
        option ports '5t 6t'

And my wireless config:

config wifi-device 'radio0'
    option type 'mac80211'
    option channel '11'
    option hwmode '11g'
    option path 'pci:0000:00/0000:00:0e.0'
    option htmode 'HT20'
    option txpower '20'
    option country '00'

config wifi-iface
    option device 'radio0'
    option network 'lan'
    option mode 'ap'
    option ssid 'Kattilanvaltakunta'
    option encryption 'psk-mixed'
    option key '[redacted]'

(Last edited by Aquatica on 12 Feb 2015, 18:37)

Yuply Yep.
You guys were right - yet again, of course... I'm starting to feel very ashamed sad
It has got to be some freaky failure (probably forgot one power cycle) that the spl-boot-image "worked". I think, actually, that it never stuck and the nandtpl-image was still in use - or something. Might, possibly, explain some of the issues I've been having.

I again tried to build my own version from the very newest trunk (r44423), but hit a wall with compile errors on a load of stuff. Need to go figure those out first.

Just a question about the wifi issue I'm having (or was having, not sure if it is around this time around... Who knows?)
should the option path 'pci:..." be something other than 0000...? Like, is that cause or effect for failing WiFi?

You are trying to make to many things at the same time.
Yes, path for wifi is ok, look at bootlog (pci device is detected and there is Your path).
Newest trunk has pci init fixed.

Try to compile everything from trunk, create lib/firmware folder in base-files, copy vdsl.bin with RT3062.eeprom there, and check if everything is working.
U-Boot needs to be replaced only one (first) time You are trying to flash OpenWRT, next flashing only requires to stick with OpenWRT flashing guide (without touching U-Boot).

Still anyone checked ptm driver for VDSL ?

(Last edited by scapi on 13 Feb 2015, 09:08)

Although the nice working OpenWrt and its gui, testing the latest OpenWrt in production shows a dramatic low throughput WAN-LAN. Just above 5MBps, which looks more like 100Mbps than 1GBps connections.
http://dgcomsys.noip.me/DGWP01/wp-content/uploads/2015/02/img_54de7bfc2f502.png

Everything looks ok (despite the lots of 'eth0: tx ring full' msgs in kerel and system logs) and working @ 1GBps.
But these value's are too low for me to work with. (maybe too see now, when loading my pictures ..... very slow)

The ZyXEL box shows speeds to 65MBps are possible.
http://dgcomsys.noip.me/DGWP01/wp-content/uploads/2014/11/img_54653ea22c489.png

Anyone else noticed these findings when doing large copies?
I think i'm forced to use the ZyXEL firmware .... for the time being.

All info of the 'slow' box:
--

BusyBox v1.22.1 (2015-02-10 16:03:09 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (Bleeding Edge, r44367)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------

# ifconfig

br-lan    Link encap:Ethernet  HWaddr 00:01:02:03:04:15
          inet addr:192.168.117.1  Bcast:192.168.117.255  Mask:255.255.255.0
          inet6 addr: fddb:25aa:90a3::1/60 Scope:Global
          inet6 addr: fe80::201:2ff:fe03:415/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14611852 errors:0 dropped:68 overruns:0 frame:0
          TX packets:11967936 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15311663096 (14.2 GiB)  TX bytes:9855119492 (9.1 GiB)

eth0      Link encap:Ethernet  HWaddr 1E:E5:51:13:31:D3
          inet6 addr: fe80::1ce5:51ff:fe13:31d3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26051909 errors:0 dropped:23 overruns:0 frame:0
          TX packets:25500523 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4226770765 (3.9 GiB)  TX bytes:2874176890 (2.6 GiB)

eth0.1    Link encap:Ethernet  HWaddr 1E:E5:51:13:31:D3
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14177805 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11043913 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15370871573 (14.3 GiB)  TX bytes:8650301557 (8.0 GiB)

eth0.2    Link encap:Ethernet  HWaddr 1E:E5:51:13:31:D3
          inet addr:192.168.0.254  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11831903 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14439588 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9611157678 (8.9 GiB)  TX bytes:15467401434 (14.4 GiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:4916 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4916 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:407278 (397.7 KiB)  TX bytes:407278 (397.7 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:0C:43:30:62:00
          inet6 addr: fe80::20c:43ff:fe30:6200/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:480815 errors:0 dropped:0 overruns:0 frame:0
          TX packets:696659 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:86420570 (82.4 MiB)  TX bytes:606883398 (578.7 MiB)

# cat /etc/config/network

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 'fddb:25aa:90a3::/48'

config interface 'lan'
        option force_link '1'
        option type 'bridge'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ifname 'eth0.1'
        option macaddr '00:01:02:03:04:15'
        option ipaddr '192.168.117.1'
        option gateway '192.168.0.1'
        option dns '192.168.0.1 8.8.8.8 213.46.228.196'

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 vdsl 'dsl'
        option annex 'a'
        option firmware '/lib/firmware/vdsl.bin'
        option tone 'av'
        option xfer_mode 'ptm'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option vid '2'
        option ports '5 6t'

config interface 'WAN'
        option _orig_ifname 'nas0'
        option _orig_bridge 'true'
        option proto 'static'
        option netmask '255.255.255.0'
        option gateway '192.168.0.1'
        option dns '8.8.8.8 213.46.228.196'
        option ipaddr '192.168.0.254'
        option ifname 'eth0.2'

The box should pass iSCSI traffic normally, as all other boxes, i persume. Or do i need to set something up 4 that?  Not that i am aware of, its just TCP/IP packet passing.
Maybe this has something to do with the lots and lots of 'eth0: tx ring full' msgs in kernel and system logs?

(Last edited by DGDodo on 14 Feb 2015, 00:09)

DG, won't be only the eth0: tx ring full. I had this low output reported a while back (the first pre-built images). scapi said it's kernel issue? There has to be a workaround for it. Why it's slow, I have no clue. I had *for a short while* a good throughput through WAN-LAN on scapi's prebuilt, right after bootup. But it got "clogged" within a minute. And I had a lots of load too, like now:

Uptime    4d 6h 20m 44s
Load Average    2.00, 2.01, 2.05

Still everything is very, very fast (handshaking, opening connection, loading luci etc) with minimal latency. Only the throughput from WAN is very slow (10Mbps'ish, when Zyxel FW gets over 70). So to me it also looks like being 100Mbps, instead of 1Gbps - when I do up/down at full speed, I get 5/5. Doing just one at a time I get more, between 10-30/10-12Mbps.

EDIT:
scapi,
I have an issue with trunk. I got everything OK but now I don't get ubidetach -p at all, as if the whole ubidetach had been changed? Trying to figure out this building stuff still, little by little...

Should I do the lib/firmware before build or just what, since how to include FW's is still a mystery to me. I thought I could add them after installation only?

(Last edited by Aquatica on 14 Feb 2015, 11:25)

Aquatica,

I've seen more tickets regarding these 'eth0: tx ring full' msgs, but nowhere is a solution:

My F1 does not get 'clogged' at all:

~# uptime
15:47:50 up 13:11,  load average: 0.11, 0.04, 0.05

On the ZyXEL firmware i have seen a fallback to 100MBps on the WAN port, but then my iSCSI connection will drop.
This is not the case here, connection stays, which means the connection is still 1GBps, only the throughput gets too low.

To add files to you build, as i wrote @ then bottom, here: https://forum.openwrt.org/viewtopic.php … 40#p264640

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.

DGDodo wrote:

Aquatica,

I've seen more tickets regarding these 'eth0: tx ring full' msgs, but nowhere is a solution:

My F1 does not get 'clogged' at all:

~# uptime
15:47:50 up 13:11,  load average: 0.11, 0.04, 0.05

Thanks for the tips to the lot of you - again....
I will be trying to test VDSL functionality with the F1 at sunday evening, if I get lucky and get some time for it.

To clarify about the issues before: the "clogged" one is the VMG3326-D20A, not the P-2812HNU-F1. I just swapped the F1 to be my "deployed" router for the time being, as with calibration data etc. everything seems to work exactly as I hoped (apart from the slow WAN-LAN) - running the scapi's prebuilt r44367.

I'm now starting to investigate the D20A's issues, which I believe are at least for a part because of a failed installation (remember, I forgot that one power cycle....? This has at least that, in part. At least).
Is there any log's or things like that what would help with finding differences between the two routers? I know that my F1 is SoC 1.1 (huge heatshield) and D20A is SoC 1.2 (no heatshield) and the D20A misses the 2 VoIP ports. Externally and looking at the board, I am unable to find any other differences between the two. Not one. I haven't been able to have them both in parts sitting next to eachother, that I could see any differences in chip markings etc.... There's propably some minor chip differences? Same drivers work, however, so shouldn't be anything big or huge.

Build back a ZyXEL firmware F1 box, doing the fast WAN-LAN without any problem.
Now testing scapi's OpenWrt Chaos Calmer r44367, with port0 = WAN (as my HW port5 WAN is defect on this F1) and i can reproduce the 'eth0: tx ring full' msgs.
These 'eth0: tx ring full' msgs occure on CPU v1.1 and on CPU v1.2, and only when doing large copy / big data traffic. Also this box does not get over 5MBps WAN-LAN sad  That's pitty.
Tested CHAOS CALMER (Bleeding Edge, r44257) & CHAOS CALMER (Bleeding Edge, r43771), all same result.

Sorry, posts 226 to 225 are missing from our archive.