Hmm.. the OR sources. Pass on them! They did compile in the end, or most of them did, but there's so much missing - e.g. no httpd - it was hardly worth the bother, except there's obviously some board-specific stuff in there. That needs extracting and putting in the source tree for OpenWRT proper.
A kernel for the EASY80920 reference board [1] of the Lantiq VR9, built with the openWRT toolchain from SVN runs okay on it, but there's no ethernet switch support at all, or I couldn't get it to work. Hopefully
blogic, the Lantiq maintainer at OpenWRT, can find time to discover why:
ROM VER: 1.
ROM VER: 1.0.5
CFG 01
DDR autotuning Rev 0.3c
DDR size from 0xa0000000 - 0xa3ffffff
DDR check ok... start booting...
VG3503J 1-A-DC BootLoader v2.00.01 (May 25 2012 - 13:44:42)
CLOCK CPU 333M RAM 166M
DRAM: 32 MiB
Flash: 8 MiB
In: serial
Out: serial
Err: serial
Net: Internal phy(GE) firmware version: 0x8400
vr9 Switch
Hit any key to stop autoboot: 3 0
VR9 # tftp
Using vr9 Switch device
TFTP from server 192.168.1.11; our IP address is 192.168.1.2
Filename 'uImage'.
Load address: 0x80800000
Loading: #################################################################
#################################################################
#################################################################
################
done
Bytes transferred = 3093631 (2f347f hex)
VR9 # bootm
## Booting kernel from Legacy Image at 80800000 ...
Image Name: MIPS OpenWrt Linux-3.8.3
Created: 2013-04-02 2:26:05 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 3093567 Bytes = 3 MiB
Load Address: 80002000
Entry Point: 80002000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 3.8.3 (asbokid@core2quad) (gcc version 4.6.4 20121210 (prerelease) (Linaro GCC 4.6-2012.12) ) #21 Tue Apr 2 03:25:47 BST 2013
[ 0.000000] SoC: VR9 rev 1.1
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019555 (MIPS 34Kc)
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x03ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x03ffffff]
[ 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: 16256
[ 0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] Writing ErrCtl register=000040d0
[ 0.000000] Readback ErrCtl register=000040d0
[ 0.000000] Memory: 54656k/65536k available (2563k kernel code, 10880k reserved, 783k data, 6692k init, 0k highmem)
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 333MHz
[ 0.000000] Calibrating delay loop... 221.18 BogoMIPS (lpj=442368)
[ 0.040000] pid_max: default: 32768 minimum: 301
[ 0.044000] Mount-cache hash table entries: 512
[ 0.048000] pinctrl core: initialized pinctrl subsystem
[ 0.052000] NET: Registered protocol family 16
[ 0.068000] pinctrl-xway 1e100b10.pinmux: Init done
[ 0.072000] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28
[ 0.080000] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[ 0.104000] bio: create slab <bio-0> at 0
[ 0.108000] gpio-stp-xway 1e100bb0.stp: Init done
[ 0.112000] usbcore: registered new interface driver usbfs
[ 0.116000] usbcore: registered new interface driver hub
[ 0.120000] usbcore: registered new device driver usb
[ 0.124000] Switching to clocksource MIPS
[ 0.132000] NET: Registered protocol family 2
[ 0.136000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.144000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.152000] TCP: Hash tables configured (established 512 bind 512)
[ 0.156000] TCP: reno registered
[ 0.160000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.168000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.172000] NET: Registered protocol family 1
[ 0.416000] gptu: totally 6 16-bit timers/counters
[ 0.420000] gptu: misc_register on minor 63
[ 0.424000] gptu: succeeded to request irq 126
[ 0.428000] gptu: succeeded to request irq 127
[ 0.432000] gptu: succeeded to request irq 128
[ 0.436000] gptu: succeeded to request irq 129
[ 0.444000] gptu: succeeded to request irq 130
[ 0.448000] gptu: succeeded to request irq 131
[ 0.456000] phy-xrx200 gphy-xrx200.5: requesting lantiq/vr9_phy11g_a2x.bin
[ 0.464000] phy-xrx200 gphy-xrx200.5: booting GPHY0 firmware at 2D00000
[ 0.468000] phy-xrx200 gphy-xrx200.5: booting GPHY1 firmware at 2D00000
[ 0.580000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.584000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.596000] msgmni has been set to 106
[ 0.600000] io scheduler noop registered
[ 0.604000] io scheduler deadline registered (default)
[ 0.608000] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112) is a lantiq,asc
[ 0.616000] console [ttyLTQ0] enabled, bootconsole disabled
[ 0.616000] console [ttyLTQ0] enabled, bootconsole disabled
[ 0.632000] ltq_nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022cb
[ 0.640000] Amd/Fujitsu Extended Query Table at 0x0040
[ 0.644000] Amd/Fujitsu Extended Query version 1.1.
[ 0.652000] number of CFI chips: 1
[ 0.656000] 3 ofpart partitions found on MTD device ltq_nor
[ 0.660000] Creating 3 MTD partitions on "ltq_nor":
[ 0.664000] 0x000000000000-0x000000010000 : "uboot"
[ 0.672000] 0x000000010000-0x000000020000 : "uboot_env"
[ 0.680000] 0x000000020000-0x000000800000 : "linux"
[ 0.708000] no uImage or brnImage or eva found in linux partition
[ 0.716000] Can't split linux partition
[ 0.828000] libphy: lantiq,xrx200-mdio: probed
[ 0.840000] eth0: attached PHY [Generic PHY] (phy_addr=0:00, irq=-1)
[ 0.844000] eth0: attached PHY [Generic PHY] (phy_addr=0:01, irq=-1)
[ 0.852000] eth0: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:11, irq=-1)
[ 0.860000] eth1: attached PHY [Generic PHY] (phy_addr=0:05, irq=-1)
[ 0.868000] eth2: attached PHY [Lantiq XWAY VR9 GPHY 11G v1.4] (phy_addr=0:13, irq=-1)
[ 0.876000] wdt 1f8803f0.watchdog: Init done
[ 0.880000] leds-gpio gpio-leds.7: pins are not configured from the driver
[ 0.892000] TCP: cubic registered
[ 0.896000] NET: Registered protocol family 17
[ 0.900000] 8021q: 802.1Q VLAN Support v1.8
[ 0.936000] Freeing unused kernel memory: 6692k freed
[ 1.840000] eth0: port 0 got link
[ 1.840000] eth0: port 1 got link
[ 1.864000] eth1: port 5 got link
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
- init -
Please press Enter to activate this console.
[ 6.020000] IFXOS, Version 1.5.14 (c) Copyright 2009, Lantiq Deutschland GmbH
[ 6.040000] Compat-drivers backport release: compat-drivers-2013-01-21-1
[ 6.048000] Backport based on wireless-testing.git master-2013-02-22
[ 6.052000] compat.git: wireless-testing.git
[ 6.092000] cfg80211: Calling CRDA to update world regulatory domain
[ 6.096000] cfg80211: World regulatory domain updated:
[ 6.100000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 6.108000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 6.116000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 6.124000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 6.132000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 6.140000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 6.392000] NET: Registered protocol family 8
[ 6.392000] NET: Registered protocol family 20
[ 6.468000] PPP generic driver version 2.4.2
[ 6.540000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 6.716000] NET: Registered protocol family 24
[ 6.744000] nf_conntrack version 0.5.0 (958 buckets, 3832 max)
[ 7.028000] IFXUSB: ifxusb_hcd: version 3.2 B110801
[ 7.032000] Chip Version :01c2 BurstSize=0
[ 7.596000] MEI CPE Driver, Version 1.2.0
[ 7.600000] (c) Copyright 2009, Infineon Technologies AG
[ 7.600000] ### MEI CPE - MEI CPE - MEI CPE - MEI CPE ###
[ 7.636000]
[ 7.636000] Lantiq CPE API Driver version: DSL CPE API V4.11.4
[ 7.644000]
[ 7.644000] Predefined debug level: 2
[ 7.672000] ATM1.0.26 ATM (A1) firmware version 0.24
[ 7.676000] ifxmips_atm: ATM init succeed
[ 7.696000] ltq_deu_vr9: Unknown symbol crypto_register_shash (err 0)
[ 7.700000] ltq_deu_vr9: Unknown symbol crypto_unregister_shash (err 0)
[ 13.740000] device eth0 entered promiscuous mode
[ 13.752000] br-lan: port 1(eth0) entered forwarding state
[ 13.756000] br-lan: port 1(eth0) entered forwarding state
[ 15.760000] br-lan: port 1(eth0) entered forwarding state
BusyBox v1.19.4 (2013-03-31 04:03:52 BST) 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 (Bleeding Edge, r36141)
-----------------------------------------------------
* 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:/# uname -a
Linux OpenWrt 3.8.3 #21 Tue Apr 2 03:25:47 BST 2013 mips GNU/Linux
# cat /proc/cpuroot@OpenWrt:/# cat /proc/cpuinfo
system type : VR9 rev 1.1
processor : 0
cpu model : MIPS 34Kc V5.5
BogoMIPS : 221.18
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0490, 0x0f88, 0x0608]
ASEs implemented : mips16 dsp mt
shadow register sets : 1
kscratch registers : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
root@OpenWrt:/#
There's 8MB of NOR flash on the
Arcadyan vg3503j (the ECI /r) board. In theory there's loads of space for better things because the squashfs root file system consumes less than 4MB and the kernel about 1MB. What is reserved for a secondary rootfs is unused.
So the telnetd does periodically hang for you, too? Does this coincide with anything to do with btagent?
cheers, a
EDIT: Just to add, the flash-based kernel is also locked through the use of a checksum in the bootloader. When I changed the kernel, the bootloader complained. Yet when I loaded the kernel via tftpboot, it worked fine, so the lock is only effective for the kernel on the flash. In other words, a generic and non-locked u-boot bootloader needs writing to flash. It would be nice to have JTAG pinout just in case that goes wrong!
[1]
http://www.lantiq.com/uploads/tx_abzlantiqproducts/PB-e-0028-v1_lres.pdf