Posted: Sun Jun 15, 2014 7:10 Post subject: LinkSys E4200v2 serial port info
I couldn't find this anywhere, so thought I'd post it once I found it.
The e4200v2 is Marvell based, and there are serious reservations on dd-wrt landing on those units because of binary blobs being published instead of real and true GPL source code.
But I was able to connect to the serial port on my e4200v2 and capture its bootup (using my arduino uno...it was actually not hard once I figured it out).
The serial port is on section J5 and transmit is pin 5 of 6 (5th furthest from the super bright LED on this unit)
DRAM (DDR2) CAS Latency = 6 tRP = 6 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 128MB
DRAM Total size 128MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Reading data from 0x1eff800 -- 100% complete.
3145728 bytes read: OK
## Booting image at 02000000 ...
Image Name: Linux-2.6.35.8
Created: 2012-11-14 10:25:23 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2688864 Bytes = 2.6 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
NET: Registered protocol family 24
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
NET: Registered protocol family 26
u32 classifier
Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (1943 buckets, 7772 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ctnetlink v0.93: registering with nfnetlink.
nf_conntrack_rtsp v0.6.21 loading
IPv4 over IPv4 tunneling driver
nf_nat_rtsp v0.6.21 loading
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Bridge firewalling registered
Ebtables v2.0 registered
L2TP core driver, V2.0
PPPoL2TP kernel driver, V2.0
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
lib80211: common routines for IEEE802.11 drivers
rtc mv_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x010609e4: 0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x010609e8: 0x0201 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x010609f0: 0x0003 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x010609f4: 0x2700 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x010609f8: 0x433d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x010609fc: 0x6f63 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01060a00: 0x7473 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01060a04: 0x3b73 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01060a08: 0x563d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x01060a0c: 0x7265 instead
Further such events for this erase block will not be printed
VFS: Mounted root (jffs2 filesystem) readonly on device 31:6.
Freeing init memory: 124K
*******************************************************************
| |
.|||. .|||.
..:|||||||:...:|||||||:..
C i s c o S y s t e m s
Copyright (c) 2011 by Cisco Systems, Inc. All Rights Reserved.
Booting viper (firmware version 2.1.39.145204)
*******************************************************************
[utopia][init] System Initialization
[utopia][init] Starting udev..
bdutil board utility kernel module, version 1.3
bdutil board utility kernel module boardId (16)
bdutil board utility gpio kernel module, version 1.3
bdutil board utility buttons kernel module, version 1.2
bdutil board utility LEDs kernel module, version 1.3
bdutil board utility pwm LED kernel module, version 1.3
bdutil board utility eeprom kernel module, version 1.3
orion_wdt module load (249)
Orion Watchdog Timer: Initial timeout 21 sec
[utopia][init] Using persistent syscfg data from /var/config/syscfg
[utopia][init] Starting system logging
[utopia][init] Starting sysevent subsystem
[utopia][init] Late loading kernel modules
[utopia][init] Setting any unset system values to default
ioctl: Bad address
ioctl: Bad address
0x9000000 0x1000000
system_state-normal|/etc/led/solid.sh ; system_state-error|/etc/led/blink_15_sec.sh ; system_state-heartbeat|/etc/led/pulsate.sh ; fwupd-start|/etc/led/pulsate.sh ; fwupd-success|/etc/led/solid.sh ; fwupd-failed|/etc/led/blink_15_sec.sh ; wps-running|/etc/led/pulsate.sh ; wps-success|/etc/led/solid.sh ; wps-failed|/etc/led/blink_15_sec.sh ; wps-stopped|/etc/led/solid.sh ; led_ethernet_on|/etc/led/rear_all_default.sh ; led_ethernet_off|/etc/led/rear_all_off.sh ;
0xa000000 0x1000000
0xb000000 0x1000000
0xc000000 0x1000000
0xd000000 0x1000000
0xe000000 0x1000000
0xf000000 0x1000000
0x10000000 0x1000000
0x11000000 0x1000000
0x12000000 0x1000000
0x13000000 0x1000000
0x14000000 0x1000000
0x15000000 0x1000000
file sharing waiting for lan startup
Cannot find downloads MTD partition, /dev/
Updating BootCount Page[21]:A800 ... Done
[utopia][init] Starting bdutil daemon
BDUTIL daemon mode
mount: mounting /tmp/backup on /www/backup failed: No such file or directory
[utopia][init] Starting HBT kernel daemon
[utopia][init] Starting WDT kernel daemon
Channel list is available. Do nothing
Sat Nov 2 16:38:00 UTC 2013
(none) login: Loading /lib/modules/2.6.35.8/ap8x.ko with GPL
Loading /etc/24G_power_table_FCC to wdev0
Loading /etc/5G_power_table_FCC to wdev1
Device is Router
Setting regioncode 0x10 to wdev0
Setting regioncode 0x10 to wdev1
Lighttpd Model Base: E4200
Generating Rainier lighttpd config
Fire up the user vap
starting wireless link monitor
Device is Router
Build temporary www configuration directory:
Registering Service myrouter._http._tcp.local port 80
##########################
Got a reply for myrouter._http._tcp.local.: Name now registered and active
Fire up the user vap
starting wireless link monitor
Configuration file: /tmp/hostapd-wdev0ap0.conf
Using interface wdev0ap0 with hwaddr 58:6d:8f:f7:00:00 and ssid 'MYSSID'
ls: /tmp/anon_smb/: No such file or directory
WPS: Converting display to virtual_display for WPS 2.0 compliance
WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance
Configuration file: /tmp/hostapd-wdev1ap0.conf
Using interface wdev1ap0 with hwaddr 58:6d:8f:f7:00:00 and ssid 'MYSSID'
WPS: Converting display to virtual_display for WPS 2.0 compliance
WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance
Failed to modify password entry for user guest
killall: nmbd: no process killed
ls: /mnt/: No such file or directory
ls: /mnt/: No such file or directory
find: /mnt/: No such file or directory
find: /mnt/: No such file or directory
find: /mnt/: No such file or directory
total smb count 0
total ftp count 0
total med count 0
ls: /mnt/: No such file or directory
ls: /mnt/: No such file or directory
find: /mnt/: No such file or directory
find: /mnt/: No such file or directory
find: /mnt/: No such file or directory
total smb count 0
total ftp count 0
total med count 0
file_sharing waiting a while for system resources before starting
Restarting nfqrecv service...
ls: /tmp/anon_smb/: No such file or directory
Failed to modify password entry for user guest
Starting smbd ...
Posted: Sun Jun 15, 2014 18:31 Post subject: LinkSys E4200v2 serial port info
I was able to solder my headers on....as referred to before:
TX=pin 5 of 6 (starting from bright LED)
RX=pin 3 of 6
GND=pin 6 of 6 (or any other good ground spots on this board...there are many if you want to break out your multimeter)
Version of linux is NOT stripped down, I found all the tools I really need (wget, find) already installed. Theoretically I could compile anything new I need by using the source code & toolchains supplied by LinkSys....
Posted: Tue Jun 17, 2014 4:58 Post subject: LinkSys E4200v2 serial port info
I was able to interrupt the Marvell U-Boot process by hitting spacebar immediately upon powering on the unit. Make sure you are properly grounded to the board or this may not work.
DRAM (DDR2) CAS Latency = 6 tRP = 6 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 128MB
DRAM Total size 128MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Posted: Fri Jun 20, 2014 15:27 Post subject: LinkSys E4200v2 serial port info
# cat /proc/cpuinfo
Processor : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS : 1199.30
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1
Hardware : Feroceon-KW
Revision : 0000
Serial : 0000000000000000
By chance, could you rebuild the original firmware to update some components? (like libupnp, twonky media server, wifi drivers, etc.) Also removing the old Cisco logos in favor of the new Linksys ones and the Router Properties pages is messed up
What about taking features from the WRT1900AC and porting them to the E4200v2? (like Network Map, Wireless Bridge & Wireless Repeater)
As far as rebuilding the stock firmware, I think that will be a little harder than first thought. The stock firmware source has none of the image packaging built in, so it build the binaries but doesn't arrange them into an image. It is basically a dump of the developers' build environment without good notes and all types of build customizations.
I need help on the OpenWRT side so I can install a kernel that boots. I'm pretty sure my boot options are wrong, but I think the u-Boot won't load newer 3.2 kernels.