OpenWrt Forum Archive

Topic: Let's try to port Speedport W921V to openwrt

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello, i am trying to port this device to openwrt.

Created a page about device on wiki http://wiki.openwrt.org/toh/t-com/spw921v

I succeded to find uart cfg04

- On the front side, not that with cpu, short R133 (located near the big rf shield)
- As file used, worked the p2812hnu-f1 asc file.
- Uboot compiled for the zyxel hardware not work, got loop on cfg06.

(Last edited by cornelus2009 on 23 Jun 2015, 20:59)

making some progress, i used as base the zyxel p2812hnufx uboot source, and booted via uart, but nand is not recognized, dunno why,

ROM VER: 1.0.5
CFG 04
EEPROM Data OK
UART

***********************************************************************************************************************************************************

U-Boot 2015.02 (Jul 03 2015 - 16:18:13) W921V

Board: Speedport W921V
SoC:   Lantiq VRX288 v1.1
CPU:   125 MHz
IO:    125 MHz
BUS:   125 MHz
BOOT:  UART
DRAM:  128 MiB
NAND:  0 MiB
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ltq-eth
Hit any key to stop autoboot:  2  1  0 
Wrong Image Format for bootm command
ERROR: can't get kernel image!
W921V # 

builded a ramfs image to probe if system work, and seems pretty good, nand recognized by openwrt

tftp ramfs
ltq_phy: addr 0, link 0, speed 10, duplex 0
ltq_phy: addr 1, link 0, speed 10, duplex 0
ltq_phy: addr 17, link 1, speed 100, duplex 1
ltq_phy: addr 19, 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 'ramfs'.
Load address: 0x81000000
Loading: *#################################################################
     #################################################################
     #################################################################
     #################################################################
     ############################
done
Bytes transferred = 4224707 (4076c3 hex)
W921V # bootm
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-3.10.49
   Created:      2015-07-03  20:51:17 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    4224643 Bytes = 4 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 3.10.49 (cornelus@dell) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r46164) ) #4 Fri Jul 3 23:50:52 EEST 2015
[    0.000000] SoC: VR9 rev 1.1
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019555 (MIPS 34Kc)
[    0.000000] MIPS: machine is VGV953 - SPEEDPORT W921V
[    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=0006490e
[    0.000000] Readback ErrCtl register=0006490e
[    0.000000] Memory: 122680k/131072k available (3046k kernel code, 8392k reserved, 1031k data, 2888k init, 0k highmem)
[    0.000000] NR_IRQS:256
[    0.000000] Setting up vectored interrupts
[    0.000000] CPU Clock: 125MHz
[    0.000000] Calibrating delay loop... 82.94 BogoMIPS (lpj=165888)
[    0.040000] pid_max: default: 32768 minimum: 301
[    0.044000] Mount-cache hash table entries: 512
[    0.052000] pinctrl core: initialized pinctrl subsystem
[    0.056000] NET: Registered protocol family 16
[    0.088000] pinctrl-xway 1e100b10.pinmux: Init done
[    0.092000] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28
[    0.108000] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[    0.112000] PCI host bridge /fpi@10000000/pci@E105400 ranges:
[    0.116000]  MEM 0x0000000018000000..0x0000000019ffffff
[    0.120000]   IO 0x000000001ae00000..0x000000001affffff
[    0.160000] bio: create slab <bio-0> at 0
[    0.168000] gpio-stp-xway 1e100bb0.stp: Init done
[    0.176000] usbcore: registered new interface driver usbfs
[    0.180000] usbcore: registered new interface driver hub
[    0.184000] usbcore: registered new device driver usb
[    0.188000] PCI host bridge to bus 0000:00
[    0.192000] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[    0.196000] pci_bus 0000:00: root bus resource [io  0x1ae00000-0x1affffff]
[    0.200000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.204000] pci 0000:00:0e.0: BAR 1: assigned [mem 0x18000000-0x187fffff pref]
[    0.208000] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18800000-0x18800fff pref]
[    0.212000] pci 0000:00:0e.0: SLOT:14 PIN:1 IRQ:30
[    0.216000] Switching to clocksource MIPS
[    0.232000] NET: Registered protocol family 2
[    0.236000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.244000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.252000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.256000] TCP: reno registered
[    0.260000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.268000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.272000] NET: Registered protocol family 1
[   17.156000] gptu: totally 6 16-bit timers/counters
[   17.164000] gptu: misc_register on minor 63
[   17.168000] gptu: succeeded to request irq 126
[   17.172000] gptu: succeeded to request irq 127
[   17.176000] gptu: succeeded to request irq 128
[   17.180000] gptu: succeeded to request irq 129
[   17.188000] gptu: succeeded to request irq 130
[   17.192000] gptu: succeeded to request irq 131
[   17.204000] phy-xrx200 gphy-xrx200.4: requesting lantiq/vr9_phy11g_a1x.bin
[   17.212000] phy-xrx200 gphy-xrx200.4: booting GPHY0 firmware at 6860000
[   17.216000] phy-xrx200 gphy-xrx200.4: booting GPHY1 firmware at 6860000
[   17.328000] Wired TLB entries for Linux read_c0_wired() = 0
[   17.332000] config3 0x2424 MT 1
[   17.332000] MVPControl 0x2, STLB 0 VPC 1 EVP 0
[   17.332000] mvpconf0 0xb8008403, PVPE 1 PTC 3 M 1
[   17.360000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   17.368000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[   17.380000] msgmni has been set to 239
[   17.384000] io scheduler noop registered
[   17.388000] io scheduler deadline registered (default)
[   17.396000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112) is a lantiq,asc
[   17.404000] console [ttyLTQ0] enabled, bootconsole disabled
[   17.404000] console [ttyLTQ0] enabled, bootconsole disabled
[   17.424000] NAND device: Manufacturer ID: 0x20, Chip ID: 0x75 (ST Micro NAND 32MiB 3,3V 8-bit), 32MiB, page size: 512, OOB size: 16
[   17.436000] Scanning device for bad blocks
[   17.496000] 4 ofpart partitions found on MTD device 10000000.nand-parts
[   17.500000] Creating 4 MTD partitions on "10000000.nand-parts":
[   17.508000] 0x000000000000-0x000000040000 : "uboot"
[   17.516000] 0x000000040000-0x000000060000 : "uboot-env"
[   17.528000] 0x000000060000-0x000000260000 : "kernel"
[   17.536000] 0x000000260000-0x000002000000 : "ubi"
[   17.668000] libphy: lantiq,xrx200-mdio: probed
[   17.680000] net-xrx200: invalid MAC, using random
[   17.684000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:00, irq=-1)
[   17.692000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.3] (phy_addr=0:01, irq=-1)
[   17.700000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:11, irq=-1)
[   17.708000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:13, irq=-1)
[   17.720000] wdt 1f8803f0.watchdog: Init done
[   17.724000] leds-gpio gpio-leds.6: pins are not configured from the driver
[   17.748000] TCP: cubic registered
[   17.752000] NET: Registered protocol family 17
[   17.756000] 8021q: 802.1Q VLAN Support v1.8
[   17.772000] UBI: auto-attach mtd3
[   17.772000] UBI: attaching mtd3 to ubi0
[   18.192000] UBI: scanning is finished
[   18.228000] UBI: attached mtd3 (name "ubi", size 29 MiB) to ubi0
[   18.232000] UBI: PEB size: 16384 bytes (16 KiB), LEB size: 15872 bytes
[   18.236000] UBI: min./max. I/O unit sizes: 512/512, sub-page size 256
[   18.244000] UBI: VID header offset: 256 (aligned 256), data offset: 512
[   18.252000] UBI: good PEBs: 1896, bad PEBs: 0, corrupted PEBs: 0
[   18.256000] UBI: user volume: 0, internal volumes: 1, max. volumes count: 92
[   18.264000] UBI: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 3767489496
[   18.272000] UBI: available PEBs: 1852, total reserved PEBs: 44, PEBs reserved for bad PEB handling[   18.304000] Freeing unused kernel memory: 2888K (803fe000 - 806d0000)
[   18.308000] UBI: background thread "ubi_bgt0d" started, PID 239
procd: Console is alive
procd: - watchdog -
[   18.500000] SCSI subsystem initialized
[   18.524000] IFXUSB: ifxusb_hcd: version 3.2 B110801
[   18.528000] Chip Version :01c0 BurstSize=0
[   19.136000] IFXUSB: USB core #0 soft-reset
[   19.440000] IFXUSB: USB core #0 soft-reset
[   19.444000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[   19.448000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus number 1
[   19.456000] ifxusb_hcd ifxusb_hcd: irq 62, io mem 0xbe101000
[   19.460000] IFXUSB: Init: Power Port (0)
[   19.468000] eth0: port 2 got link
[   19.472000] hub 1-0:1.0: USB hub found
[   19.476000] hub 1-0:1.0: 1 port detected
[   19.984000] IFXUSB: USB core #1 soft-reset
[   20.288000] IFXUSB: USB core #1 soft-reset
[   20.292000] ifxusb_hcd ifxusb_hcd: IFX USB Controller
[   20.296000] ifxusb_hcd ifxusb_hcd: new USB bus registered, assigned bus number 2
[   20.304000] ifxusb_hcd ifxusb_hcd: irq 91, io mem 0xbe106000
[   20.308000] IFXUSB: Init: Power Port (0)
[   20.316000] hub 2-0:1.0: USB hub found
[   20.320000] hub 2-0:1.0: 1 port detected
[   20.324000] ifxusb_hcd ifxusb_hcd: requested GPIO 233
[   20.340000] usbcore: registered new interface driver usb-storage
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 -
Failed to connect to ubus
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   28.244000] IFXOS, Version 1.5.14 (c) Copyright 2009, Lantiq Deutschland GmbH

[   28.296000] NET: Registered protocol family 10
[   28.324000] NET: Registered protocol family 8
[   28.328000] NET: Registered protocol family 20
[   28.368000] PPP generic driver version 2.4.2
[   28.404000] nf_conntrack version 0.5.0 (1962 buckets, 7848 max)
[   28.428000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   28.476000] MEI CPE Driver, Version 1.2.0

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


Lantiq CPE API Driver version: DSL CPE API V4.11.4
[   28.520000] 
[   28.520000] Predefined debug level: 2
[   28.552000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   28.580000] Infineon Technologies DEU driver version 2.0.0 
[   28.584000] IFX DEU DES initialized (multiblock).
[   28.592000] IFX DEU AES initialized (multiblock).
[   28.596000] IFX DEU ARC4 initialized (multiblock).
[   28.600000] IFX DEU SHA1 initialized.
[   28.604000] IFX DEU MD5 initialized.
[   28.608000] IFX DEU SHA1_HMAC initialized.
[   28.612000] IFX DEU MD5_HMAC initialized.
[   28.664000] NET: Registered protocol family 24
[   28.676000] usbcore: registered new interface driver usblp
[   28.692000] usbcore: registered new interface driver usbserial
[   28.700000] usbcore: registered new interface driver usbserial_generic
[   28.708000] usbserial: USB Serial support registered for generic
[   28.772000] xt_time: kernel timezone is -0000
[   28.816000] usbcore: registered new interface driver option
[   28.824000] usbserial: USB Serial support registered for GSM modem (1-port)
[   44.432000] device eth0.1 entered promiscuous mode
[   44.436000] device eth0 entered promiscuous mode
[   44.448000] br-lan: port 1(eth0.1) entered forwarding state
[   44.452000] br-lan: port 1(eth0.1) entered forwarding state
[   46.456000] br-lan: port 1(eth0.1) entered forwarding state
procd: - init complete -



BusyBox v1.22.1 (2015-07-03 21:08:00 EEST) 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
 -----------------------------------------------------
 BARRIER BREAKER (Barrier Breaker, r46164)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -----------------------------------------------------
root@OpenWrt:/# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@OpenWrt:/# lspci
00:0e.0 Wireless controller: Lantiq Wave300 PSB8224 [Hyperion III] (rev 01)

today succesfully booted device, finaly builded working uboot.

ROM VER: 1.0.5                                                                  
CFG 06                                                                          
NAND                                                                            
NAND Read OK                                                                    
                                                                                
U-Boot SPL 2015.07 (Jul 16 2015 - 13:08:59)                                     
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 2015.07 (Jul 16 2015 - 13:08:59) VGV953                                  
                                                                                
Board: SPEEDPORT W921V                                                          
SoC:   Lantiq VRX288 v1.1                                                       
CPU:   500 MHz                                                                  
IO:    250 MHz                                                                  
BUS:   250 MHz                                                                  
BOOT:  NAND                                                                     
DRAM:  128 MiB                                                                  
NAND:  32 MiB                                                                   
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
Net:   ltq-eth                                                                  
Hit any key to stop autoboot:  0                                                
VGV953 #

the binaries are here

asc file to boot on UART mode - https://www.dropbox.com/s/gzp8aqzrc8nph … 3.asc?dl=0
uboot file to write from UART mode - https://www.dropbox.com/s/ostgjkgsw7tv0 … 3.bin?dl=0

(Last edited by cornelus2009 on 19 Jul 2015, 18:50)

Hello There,

am new here and looking for an image for a Speedport W921V.

Unfortunately, I'm not sure what I need to use.

https://downloads.openwrt.org/barrier_b … ntiq/xway/

I believe I am correct in this directory, but what?
I hope someone can help me!

greeting

Jogi1212

Updated wiki page.
On the page are images to run openwrt on device, but there is problem with device
- wifi not working (no drivers for lantiq wave wifi)

http://wiki.openwrt.org/toh/t-com/spw921v

(Last edited by cornelus2009 on 28 Jul 2015, 13:02)

Hey, nice to have OpenWrt on W921v. What is the deal with the wireless drivers?

I saw that post, but i dunno how to implement those drivers in openwrt build.

hi.. i just installed openwrt to my w921v device.. now i got problems with signatures on two repos.. telephony and routing..

after asking in the freenode channel of openwrt i just was informed that the device is not officiallly supported or something like this.. because those two builds linked on the device page of the wiki are just custom made..

then i found this thread and want to ask, if its possible to get those sources.. and/or new build, since i'm not a coder sad

Maybe you want to port this to lede-project? this would be awesome!

The discussion might have continued from here.