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.

F3 users please test latest build on git-hub, WiFi should be fixed.

scapi wrote:

F3 users please test latest build on git-hub, WiFi should be fixed.

Wireless is not working on that build.
I've sent you email With bootlog.

ase wrote:
Mijzelf wrote:

@ase: Can that mean that isochronous transfer is supported now?

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

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

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

in kernel log about every 50 msec.

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

Problem:
P-2812HNU-F1 switch0 VLAN not being enabled when trying to setup a WAN port on port 5 with pvid/ untagged vlan 2. Tried GUI and CLI approach.

Procedure:
I started the uart/serial  flashprocedure with r45578 and was running openwrt very quickly lol but noticed the vlan was not being enabled when setting up a wan on switch0 port 5, then I downgraded through webinterface sysupgrade.tar to older openwrt releases. The following squashfs firmware releases from https://github.com/ScApi/P2812HNUFx-Pre-Build/tree/OpenWrt-Chaos-Calmer-r45578 have been used all with the same result:

Barrier Breaker 14.07
r44367
r45269
r45578

The following output was created using a factoryreset/firstboot settings using r45578 and setting up the wan+vlan using the webinterface. Notice the missing eth0.2 interface, but that one comes up after setting up /etc/config/network manually but it still won't set the switch0 in vlan enabled mode...

root@OpenWrt:/# dmesg
[    0.000000] Linux version 3.18.11 (sylwek@WRT) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44945) ) #1 Sat Apr 25 03:53:16 CEST 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] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 8047a2f0, node_mem_map 81009680
[    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=000208b8
[    0.000000] Readback ErrCtl register=000208b8
[    0.000000] Memory: 124780K/131072K available (3506K kernel code, 149K rwdata, 1036K rodata, 152K 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.164000] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[    0.168000] PCI host bridge /fpi@10000000/pci@E105400 ranges:
[    0.172000]  MEM 0x0000000018000000..0x0000000019ffffff
[    0.176000]   IO 0x000000001ae00000..0x000000001affffff
[    0.188000] gpio-stp-xway 1e100bb0.stp: Init done
[    0.192000] usbcore: registered new interface driver usbfs
[    0.196000] usbcore: registered new interface driver hub
[    0.200000] usbcore: registered new device driver usb
[    0.204000] PCI host bridge to bus 0000:00
[    0.208000] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[    0.212000] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    0.216000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.220000] pci 0000:00:0e.0: [1814:3062] type 00 class 0x028000
[    0.220000] pci 0000:00:0e.0: reg 0x10: [mem 0xffff0000-0xffffffff]
[    0.220000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.220000] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[    0.224000] Switched to clocksource MIPS
[    0.228000] NET: Registered protocol family 2
[    0.232000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.240000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.248000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.252000] TCP: reno registered
[    0.256000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.268000] NET: Registered protocol family 1
[    0.272000] PCI: CLS 0 bytes, default 32
[    0.272000] gptu: totally 6 16-bit timers/counters
[    0.280000] gptu: misc_register on minor 63
[    0.284000] gptu: succeeded to request irq 126
[    0.288000] gptu: succeeded to request irq 127
[    0.292000] gptu: succeeded to request irq 128
[    0.296000] gptu: succeeded to request irq 129
[    0.300000] gptu: succeeded to request irq 130
[    0.304000] gptu: succeeded to request irq 131
[    0.308000] ralink,eeprom ralink_eep: using RT3062.eeprom as eeprom
[    0.316000] phy-xrx200 gphy-xrx200: requesting lantiq/vr9_phy11g_a2x.bin
[    0.324000] phy-xrx200 gphy-xrx200: booting GPHY0 firmware at 7940000
[    0.328000] phy-xrx200 gphy-xrx200: booting GPHY1 firmware at 7940000
[    0.436000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.460000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.464000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.484000] msgmni has been set to 243
[    0.488000] io scheduler noop registered
[    0.492000] io scheduler deadline registered (default)
[    0.496000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc
[    0.508000] console [ttyLTQ0] enabled
[    0.512000] bootconsole [early0] disabled
[    0.524000] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    0.524000] nand: Samsung NAND 128MiB 3,3V 8-bit
[    0.524000] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    0.540000] Scanning device for bad blocks
[    0.596000] Bad eraseblock 647 at 0x0000050e0000
[    0.600000] Bad eraseblock 680 at 0x000005500000
[    0.608000] Bad eraseblock 696 at 0x000005700000
[    0.636000] 4 ofpart partitions found on MTD device 10000000.nand-parts
[    0.640000] Creating 4 MTD partitions on "10000000.nand-parts":
[    0.648000] 0x000000000000-0x000000040000 : "uboot"
[    0.652000] 0x000000040000-0x000000060000 : "uboot-env"
[    0.660000] 0x000000060000-0x000000260000 : "kernel"
[    0.664000] 0x000000260000-0x000008000000 : "ubi"
[    0.772000] libphy: lantiq,xrx200-mdio: probed
[    0.788000] net-xrx200: invalid MAC, using random
[    0.856000] eth0: attached PHY [Lantiq XWAY PEF7071] (phy_addr=0:00, irq=-1)
[    0.924000] eth0: attached PHY [Lantiq XWAY PEF7071] (phy_addr=0:01, irq=-1)
[    0.992000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:11, irq=-1)
[    1.060000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:13, irq=-1)
[    1.128000] eth0: attached PHY [Lantiq XWAY PEF7071] (phy_addr=0:05, irq=-1)
[    1.132000] wdt 1f8803f0.watchdog: Init done
[    1.140000] TCP: cubic registered
[    1.140000] NET: Registered protocol family 17
[    1.144000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.160000] Bridge firewalling registered
[    1.164000] 8021q: 802.1Q VLAN Support v1.8
[    1.168000] UBI: auto-attach mtd3
[    1.172000] UBI: attaching mtd3 to ubi0
[    1.360000] UBI: scanning is finished
[    1.376000] UBI: attached mtd3 (name "ubi", size 125 MiB) to ubi0
[    1.380000] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    1.388000] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    1.392000] UBI: VID header offset: 512 (aligned 512), data offset: 2048
[    1.400000] UBI: good PEBs: 1002, bad PEBs: 3, corrupted PEBs: 0
[    1.408000] UBI: user volume: 2, internal volumes: 1, max. volumes count: 128
[    1.412000] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 65520344
[    1.424000] UBI: available PEBs: 0, total reserved PEBs: 1002, PEBs reserved for bad PEB handling: 17
[    1.432000] UBI: ubiblock0_0 created from ubi0:0(rootfs)
[    1.436000] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    1.444000] UBI: background thread "ubi_bgt0d" started, PID 240
[    1.456000] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    1.464000] Freeing unused kernel memory: 152K (8049a000 - 804c0000)
[    2.484000] init: failed to symlink /tmp -> /var
[    2.488000] init: Console is alive
[    2.492000] init: - watchdog -
[    3.860000] dwc2 1e101000.ifxhcd: requested GPIO 489
[    4.236000] eth0: port 4 got link
[    4.724000] dwc2 1e101000.ifxhcd: DWC OTG Controller
[    4.724000] dwc2 1e101000.ifxhcd: new USB bus registered, assigned bus number 1
[    4.732000] dwc2 1e101000.ifxhcd: irq 62, io mem 0x00000000
[    4.740000] dwc2 1e101000.ifxhcd: Hardware does not support descriptor DMA mode -
[    4.740000] dwc2 1e101000.ifxhcd: falling back to buffer DMA mode.
[    4.752000] hub 1-0:1.0: USB hub found
[    4.756000] hub 1-0:1.0: 1 port detected
[    5.620000] dwc2 1e106000.ifxhcd: DWC OTG Controller
[    5.620000] dwc2 1e106000.ifxhcd: new USB bus registered, assigned bus number 2
[    5.628000] dwc2 1e106000.ifxhcd: irq 91, io mem 0x00000000
[    5.636000] dwc2 1e106000.ifxhcd: Hardware does not support descriptor DMA mode -
[    5.636000] dwc2 1e106000.ifxhcd: falling back to buffer DMA mode.
[    5.648000] hub 2-0:1.0: USB hub found
[    5.652000] hub 2-0:1.0: 1 port detected
[    6.528000] init: - preinit -
[    6.744000] random: procd urandom read with 89 bits of entropy available
[    9.964000] UBIFS: background thread "ubifs_bgt0_1" started, PID 296
[    9.992000] UBIFS: recovery needed
[   10.112000] UBIFS: recovery completed
[   10.116000] UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.120000] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.132000] UBIFS: FS size: 121669632 bytes (116 MiB, 943 LEBs), journal size 6064128 bytes (5 MiB, 47 LEBs)
[   10.140000] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
[   10.144000] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 3DB45C98-11AE-40D7-B0EB-A680DDD91CCB, small LPT model
[   10.160000] mount_root: switching to jffs2 overlay
[   10.176000] procd: - early -
[   10.176000] procd: - watchdog -
[   10.820000] procd: - ubus -
[   11.828000] procd: - init -
[   12.692000] IFXOS, Version 1.5.14 (c) Copyright 2009, Lantiq Deutschland GmbH
[   12.692000]
[   12.716000] NET: Registered protocol family 10
[   12.728000] NET: Registered protocol family 8
[   12.728000] NET: Registered protocol family 20
[   12.740000] PPP generic driver version 2.4.2
[   12.748000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.768000] MEI CPE Driver, Version 1.2.0
[   12.768000]
[   12.772000] (c) Copyright 2009, Infineon Technologies AG
### MEI CPE - MEI CPE - MEI CPE - MEI CPE ###
[   12.780000]
[   12.780000]
[   12.780000] Lantiq CPE API Driver version: DSL CPE API V4.11.4
[   12.796000]
[   12.796000] Predefined debug level: 2
[   12.808000] Loading modules backported from Linux version master-2015-03-09-0-g141f155
[   12.816000] Backport generated by backports.git backports-20150129-0-gdd4a670
[   12.824000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.836000] Infineon Technologies DEU driver version 2.0.0
[   12.840000] IFX DEU DES initialized (multiblock).
[   12.844000] IFX DEU AES initialized (multiblock).
[   12.852000] IFX DEU ARC4 initialized (multiblock).
[   12.856000] IFX DEU SHA1 initialized.
[   12.860000] IFX DEU MD5 initialized.
[   12.860000] IFX DEU SHA1_HMAC initialized.
[   12.868000] IFX DEU MD5_HMAC initialized.
[   12.876000] nf_conntrack version 0.5.0 (1952 buckets, 7808 max)
[   12.904000] NET: Registered protocol family 24
[   12.924000] xt_time: kernel timezone is -0000
[   12.960000] cfg80211: Calling CRDA to update world regulatory domain
[   12.984000] cfg80211: World regulatory domain updated:
[   12.988000] cfg80211:  DFS Master region: unset
[   12.992000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   13.000000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   13.008000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   13.016000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   13.024000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   13.032000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   13.044000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   13.052000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   13.060000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   13.096000] random: nonblocking pool is initialized
[   13.164000] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[   13.168000] rt2800pci 0000:00:0e.0: failed to load eeprom property
[   13.172000] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT3062.eeprom'.
[   13.184000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3572, rev 0223 detected
[   13.192000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0008 detected
[   13.200000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   18.940000] PTM 1.0.27    PTM (E1) firmware version 0.30
[   18.944000] ifxmips_ptm: PTM init succeed
[   21.784000] device eth0.1 entered promiscuous mode
[   21.788000] device eth0 entered promiscuous mode
[   21.796000] br-lan: port 1(eth0.1) entered forwarding state
[   21.800000] br-lan: port 1(eth0.1) entered forwarding state
[   23.804000] br-lan: port 1(eth0.1) entered forwarding state
root@OpenWrt:/# swconfig dev switch0 show
Global attributes:
        enable_vlan: 0
Port 0:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:0 link:down
Port 1:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:1 link:down
Port 2:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:2 link:down
Port 3:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:3 link:down
Port 4:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:4 link:up speed:1000baseT full-duplex auto
Port 5:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 2
        link: port:5 link:down
Port 6:
        uvr: 0
        vsr: 0
        vinr: 0
        tvm: 0
        pvid: 1
        link: port:6 link:up speed:1000baseT full-duplex auto
VLAN 1:
        vid: 1
        enable: 1
        ports: 0 1 2 4 6t
VLAN 2:
        vid: 2
        enable: 1
        ports: 5 6t
root@OpenWrt:/# ifconfig -a
br-lan    Link encap:Ethernet  HWaddr 00:01:02:03:04:05
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd1e:35f1:f5f9::1/60 Scope:Global
          inet6 addr: fe80::201:2ff:fe03:405/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3202 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3283 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:335823 (327.9 KiB)  TX bytes:927407 (905.6 KiB)

eth0      Link encap:Ethernet  HWaddr 72:C8:59:54:FE:CE
          inet6 addr: fe80::70c8:59ff:fe54:fece/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3248 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3207 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:422383 (412.4 KiB)  TX bytes:950055 (927.7 KiB)

eth0.1    Link encap:Ethernet  HWaddr 72:C8:59:54:FE:CE
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3248 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3200 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:337935 (330.0 KiB)  TX bytes:919389 (897.8 KiB)

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:3840 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3840 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:261792 (255.6 KiB)  TX bytes:261792 (255.6 KiB)

nas0      Link encap:Ethernet  HWaddr 00:01:02:03:04:06
          inet6 addr: fe80::201:2ff:fe03:406/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:1729 dropped:0 overruns:0 carrier:1729
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ptm0      Link encap:Ethernet  HWaddr 00:20:DA:86:23:75
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:0C:43:30:62:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

PS: I read somewhere that it was possible to build a version of the firmware without vlan support but with 2 physical ethernet interfaces one connected to the 4 LAN ports and the other one to the WAN port is this possible(although I love vlan)?

walterav wrote:

Barrier Breaker 14.07
r44367
r45269
r45578

The following output was created using a factoryreset/firstboot settings using r45578 and setting up the wan+vlan using the webinterface. Notice the missing eth0.2 interface, but that one comes up after setting up /etc/config/network manually but it still won't set the switch0 in vlan enabled mode...

That is normal, You need to create eth0.2 manually via VLAN's and create/assign it under interfaces section.

Switch driver have problems with VLAN's, it isn't reporting it as enabled.

walterav wrote:

PS: I read somewhere that it was possible to build a version of the firmware without vlan support but with 2 physical ethernet interfaces one connected to the 4 LAN ports and the other one to the WAN port is this possible(although I love vlan)?

It is somewhere in this thread on my dropbox.

scapi wrote:

Switch driver have problems with VLAN's, it isn't reporting it as enabled.

Does it mean vlan is working but its just the reporting of the correct status is broken?

I figured out I made stupid mistake by connecting both the WAN eth0.2 and the LAN eth0.1 on the vlan configured p2812 to the same external switch, because both my external gateway and local LAN devices were available on that switch.

Since p2812 is working in vlan mode and all physical separated ethernet interfaces are connected through the internal switch (although both WAN/LAN being on a different vlan) they are (VLANS) and share the same single ethernet MAC ADDRESS duhhhh! Therefor probably a loop/flapping status was created and errors popped up in the openwrt console something about this MAC address has been ... already found somewhere... (try to catch the real error log later) and using the WAN was impossible slow which conclusively made me do the wrong assumption that VLAN was totally broken...(sorry). But I already tried adding a spoofed MAC address, but that did not help.

Than I remembered that "kmod-macvlan" was only able to do that real good, could you include that one in your default firmware, I wasn't able to get it with the packet manager? With kmod-macvlan its easy to get a multi-wan dhcp client based setup working since each fake WAN interface with its own real mac address can request a unique ip from the dhcp server.

scapi wrote:

It is somewhere in this thread on my dropbox.

Found firmware with 2 separated physical interfaces: https://www.dropbox.com/sh/9aup68dv6oq5 … 0eth1?dl=0
Will tagged vlans still work with that separated eth firmware version? I'll try it soon and will test creating a loop again and see if the interfaces are really separated.

(Last edited by walterav on 11 May 2015, 07:56)

Hello all,

I'm trying to get to CFG 02 so that can switch out the Z-boot for U-boot on my F1 and afterwards install OpenWRT. I tried shorting R17 several times with different screwdrivers, but no matter how I try, I always end up at CFG 06 ! The board has an xway v1.2, no shielding plate or anything.
I attached, the bootlog, I hope someone will have a bright idea where to look or what to test next.
For the record, I tested the screwdrivers and they all conduct just fine ;-)


ROM VER: 1.1.4
CFG 06
NAND
NAND Read OK

ROM VER: 1.1.4
CFG 06

NAND
NAND Read OK

DDR autotuning Rev 0.3d
DDR size from 0xa0000000 - 0xa7ffffff
DDR check ok... start booting...




ZyU-F02-300-20AA003-V3.10|01/08|2013(TUE)

CLOCK CPU 500M RAM
 250M
DRAM:  128 MB

 relocate_code start
 relocate_code finish.

128 MiB
*** Warning - bad CRC or NAND, using default environment

In
:    serial
Out:   serial
Err:   serial
Net:   
fw_addr=0xa0200000

Internal phy(GE) firmware version: 0x0405
vr9 Switch
Hit any
 key to stop autoboot:  0 

NAND read: device 0 offset 116736, size 65536 ...  65536 bytes read: OK
## Starting application at 0x86A80000 ...


Z-LOADER 3.0(Jan  8 2013)

NAND flash block size: 0x20000

verify_zboot_image: wrong signature in the 1st zboot image.

Select 2nd zboot image...
go 0x86a90000
## Starting application at 0x86A90000 ...


Z-Boot 3.0.0(May 20 2014)

we get zloader version: 3.0
Hit any key to stop autoboot:  \0x08\0x08 3
\0x08\0x08 2
\0x08\0x08 1
\0x08\0x08 1
ZHAL> 

ATBT\0x09x         block0 write enable (1=enable, 0=disable
)
ATWM\0x09x         set MAC address in working buffer
ATEN\0x09x,(y)     set BootExtension Debug Flag (y=password)
ATSE\0x09x          show the seed of password generator
ATWZ\0x09a(,b,c)   write ZyXEL MAC addr, Country code, EngDbgFlag
ATCB\0x09          copy from FLASH ROM to working buffer
ATCL\0x09          clear working buffer
ATSB\0x09          save working buffer to FLASH ROM
ATBU\0x09          dump manufacturer related data in working buffer
ATSH\0x09          dump manufacturer related data in ROM
ATCO\0x09x         set country code in working buffer
ATFL\0x09x         set EngDebugFlag in working buffer
ATVD\0x09x         set vendor name in working buffer
ATPN\0x09x         set product name in working buffer
ATFE\0x09x,y,...   set feature bits in working buffer
ATSN\0x09x         set serial number in FLASH ROM
ATTL\0x09          MRD_CERT & ROM-D partition utility
ATGO\0x09          boot up whole system
ATGU\0x09          go back to U-Boot command line mode
ATRT\0x09(x,y,z,u) ATRT RAM read/write test (x=level, y=start addr, z=end addr, u=iterations
ATMI\0x09x         Enable/Disable model ID checking (1=enable, 0=disable)
ATMT\0x09x         reduce manufacture bootup time for wireless calibration (1=enable, 0=disable)
ATUR\0x09x         upgrade RAS image (filename)
ATUB\0x09x         upgrade ZyU-Boot image (filename)
ZHAL> 

Plukje,

As far as i know R17 isn't a resistor, it's an empty (smd) space, as seen here:
http://wiki.openwrt.org/_media/media/p2812/f1-nand.png

And also I had some trouble shorting this 'empty' R17, especially when the 2 places have alot tin on them.
Try the point of a paperclip, work sometime better on smd-boards.

Thanks for the clarification DGDodo. In my case there's a nice little blob of tin on both holes, hence I assumed that shorting R17 was all about making a connection between the two points (of tin).

Looks like this makes it a little bit trickier as I think I'll need to remove some tin without damaging the board.

Well, before removing any solder I figured I'd best check it with the multimeter as I think it would be weird for an SMD hole filled with solder not to make any contact. I can clearly see the pull up as the board boots, but it remains in CFG 06.

The chip next to it is a SAMSUNG 310 K9F1G08U0D SCB0 , could it be that the /CE is attached to a different pin somewhere on the board?
I can't find a lot about the board revision itself, bottom left corner says E241819 13 18  (18th week of 2013?)

ideas, anyone?

Plukje,
You are aware to power on the F1, during shorting R17? (Then the F1 stays in CFG02 mode.)
Only shorting R17 won't get you into CFG02, you need to power down / short R17 / power up.
You probably did, but it was not clear yet 4 me.
As i have F1's in v1.1 & v1.2 all doing what it should, it look strange to me that you can't get the F1 into CFG02 boot mode.

Hi DGDodo,

that's exactly what I'm doing.
Power down, short & keep shorted, power up aaaaaand ..... CFG 06.

It's a mystery to me as well.

Plukje,

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

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 

And it looks like your device is running ZyXEL P-2812HNU-F1 firmware v3.10, according:
ZyU-F02-300-20AA003-V3.10|01/08|2013(TUE)

It's indeed weird that you can't get the device into 'CFG 02'.
As my logs show's a v1.2 running openWRT fine.

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

Hi, just wanted to say i got it working on my F3 with v1.2

The instructions on the wiki worked perfectly for replacing uboot and loading kernel and ubifs into nand, but it wouldn't boot from nand.

Shorting the things was really difficult as it seemed there was a layer of something over the solder blobs, so i ended up putting a solder blob to shorten them and removing it afterwards.
It was a pain to remove since my soldering skills are somewhat lacking and i don't have any solder wick.

The github kernel loaded fine, but got stuck (at initializing nand?):

[    0.340000] gptu: misc_register on minor 63
[    0.344000] gptu: succeeded to request irq 126
[    0.348000] gptu: succeeded to request irq 127
[    0.352000] gptu: succeeded to request irq 128
[    0.360000] gptu: succeeded to request irq 129
[    0.364000] gptu: succeeded to request irq 130
[    0.368000] gptu: succeeded to request irq 131
[    0.376000] phy-xrx200 gphy-xrx200.5: requesting lantiq/vr9_phy11g_a1x.bin
[    0.380000] phy-xrx200 gphy-xrx200.5: booting GPHY0 firmware at 78C0000
[    0.388000] phy-xrx200 gphy-xrx200.5: booting GPHY1 firmware at 78C0000
[    0.496000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.504000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.512000] msgmni has been set to 244
[    0.520000] io scheduler noop registered
[    0.520000] io scheduler deadline registered (default)
[    0.528000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112) is a lantiq,asc
[    0.536000] console [ttyLTQ0] enabled, bootconsole disabled
[    0.536000] console [ttyLTQ0] enabled, bootconsole disabled
(hangs here forever)

The solution for me was to build a new kernel from openwrt git and i wrote that to nand instead and now it boots fine.

Wifi doesn't seem to work, but for now i'm happy just to get it to boot without having to tftp in images.

Just thought I'd let you know about that kernel thing i ran into.

Acording to

[    0.376000] phy-xrx200 gphy-xrx200.5: requesting lantiq/vr9_phy11g_a1x.bin

It will not work, what image did You use ?
And are You for 100% sure that Your board cpu is 1.2, post full bootlog on pastebin and give link to it.

Here is dmesg, do you need uboot as well?
http://pastebin.com/NSBmcmWW

cpuinfo says it's 1.2:
http://pastebin.com/4nX6t8Tj

I could attach a photo of the chip which also says v1.2, but i hope you trust me.

The kernel it's running now is from latest git.openwrt.org (when i posted it was maybe a day old) and most of the packages are from the same build.

VDSL working fine with annex b firmware and config, but i see no trace of the wifi. I probably forgot something (like firmware...)

You didn't understand, I meant witch version from my GitHub did You upload at first time.

As for wifi, You need to build trunk from 45718, it has pcie/pci fixed, or use OpenWrt-Chaos-Calmer-r45578 from my GitHub.

Nand seems stable now, worked about 2 days and today get an crash, no acces to lan, internet droped down.
Not saw in log, what crashed.

From today I'm out of any participation in OpenWRT Lantiq development. My last vr9 device have been fried by the storm so if anyone is interested in development of VDSL Driver or Switch Driver please subscribe to openwrt-devel mailing list.

Best Regards Everyone and Many thanks for Your help.

Too bad. Can I offer you a replacement F1?

Today I installed Chaos Calmer rc2 on my F1. After installing I had no wlan0. Looking at dmesg I saw that it failed to load RT3062.eeprom. From capi I have a RT2860.eeprom and a RT3092.eeprom. I renamed the 3092 to 3062 and rebooted. Now wifi works. What's in a name? Why is CC using another eeprom file than capi's? Did I rename the right one, or do I actually need another file?

Further the (squashfs) image doesn't contain luci, but of course that can be installed. So far I haven't found any real problems. Haven't tested DSL yet.

Mijzelf wrote:

Today I installed Chaos Calmer rc2 on my F1. After installing I had no wlan0. Looking at dmesg I saw that it failed to load RT3062.eeprom...

I was also curious if scapi's patches ended up in the original openwrt branch but maybe its only the firmware of the wifi thats missing?

i know i am out of subject now, but i need a simple c# source file to swap bytes in a binary file.

need a specific order, from 0x12345678 --->> 0x56781234.

thank u.

can send directly to my email  rodycor@yahoo.com

(Last edited by cornelus2009 on 22 Jun 2015, 21:32)