Hi,
Is there any chances to get support for Linksys WRT610N in openwrt firmware?
Thanx.
The content of this topic has been archived between 6 Feb 2018 and 1 May 2018. Unfortunately there are posts – most likely complete pages – missing.
Hi,
Is there any chances to get support for Linksys WRT610N in openwrt firmware?
Thanx.
We don't have one, so can't add support for it. Patches are welcomed, tho
Hi
I have one. From where to start in order to add support for it?
I have one too. What part of the wrt610n doesn't work? The WiP page doesn't say anything on this matter. I mean: what would happen if I tried OpenWRT on it? Would it brick? And why would it? Switch not supported? CPU not supported? Flash not supported?
I would start with adding a serial console before flashing. Make sure you have compiled the brcm57xx driver into your image, there is a chance it might support the switch.
I'm not a big fan of TTL serial consoles. My last attempt with an Asus WL-500gP failed miserably, because I tried soldering a converter, and it didn't work. I can't find a ready made one on the market either.
Do you know if this router has a diag mode like the WL-500gP, so I can reinstate its firmware if OpenWRT doesn't support its switch?
Another approach that I can think about: what in OpenWRT could not work? Is it the kernel? Would things have a better chance of working if I built a OpenWRT image with the original kernel instead of the OpenWRT one? If that would work (in the idea that I don't risk bricking the router, and that I don't have to go hunting for ttl serial cables), it would solve my problem momentarily, and after that I'd have time to go the long way and get a ttl cable from China (they seem to have it there).
Hi,
I've just bought a WRT610n that is waiting for a brand new rom ;-)
I have some photos of both sides if this is of interest of anyone. There are 5 big pads for a connector on the back side of the pcb with the following measured voltage:
1 +3.25
2 +3.25
3 +3.25
4 NC
5 GND
This looks like usb... Or?
Has anyone manged to find a serial connection on this model?
Has also anyone managed to recover via tftp? I'd like to start playing with openwrt on this box, but if possible without definitely breaking it ;-)
thanks...
Hi,
I've just bought a WRT610n that is waiting for a brand new rom ;-)
I have some photos of both sides if this is of interest of anyone. There are 5 big pads for a connector on the back side of the pcb with the following measured voltage:
1 +3.25
2 +3.25
3 +3.25
4 NC
5 GNDThis looks like usb... Or?
Has anyone manged to find a serial connection on this model?
Has also anyone managed to recover via tftp? I'd like to start playing with openwrt on this box, but if possible without definitely breaking it ;-)
thanks...
I just bought a 610N also and would like to help get a working version of OpenWRT on it.
I tried to open it last night and it would open after I removed the 4 screws.
Any hints? I would like to see you pictures.
thanks!
Hi,
Managed to arrive just in time before closure of the electronic shop... And this has proved to be a good think ;-)
I followed the posts in dd-wrt forums about WRT610n (http://www.dd-wrt.com/phpBB2/viewtopic. … ;start=285), managed to get a max3232 chip for the serial interface to PC.
I applied the default design proposed in the chip documentation (http://www.datasheetcatalog.org/datashe … 537_DS.pdf) and it looks like that:
Connection to backplane of the PCB:
Everything worked immediately using minicom on linux at 115000 8N1. Bootlog is really similar to the one posted on openwrt wiki.
Here is the schematic used, but I think you can also find ready to use cables.
DON'T DIRECTLY CONNECT YOUR PC TO THE ROUTER DIRECTLY. You need a voltage adaptation or you may burn the serial interface on the router.
Let's play with firmwares ;-)
Hi,
Great stuff, really helpful
Hi,
Managed to arrive just in time before closure of the electronic shop... And this has proved to be a good think ;-)
I followed the posts in dd-wrt forums about WRT610n (http://www.dd-wrt.com/phpBB2/viewtopic. … ;start=285), managed to get a max3232 chip for the serial interface to PC.
I applied the default design proposed in the chip documentation (http://www.datasheetcatalog.org/datashe … 537_DS.pdf) and it looks like that: http://lh3.ggpht.com/_TZhfo_vWSEk/SRtGR … g_0129.jpg
Connection to backplane of the PCB:
http://lh6.ggpht.com/_TZhfo_vWSEk/SRtGM … g_0120.jpg
Everything worked immediately using minicom on linux at 115000 8N1. Bootlog is really similar to the one posted on openwrt wiki.
Here is the schematic used, but I think you can also find ready to use cables.
http://lh6.ggpht.com/_TZhfo_vWSEk/SRtRK … rt610n.jpg
DON'T DIRECTLY CONNECT YOUR PC TO THE ROUTER DIRECTLY. You need a voltage adaptation or you may burn the serial interface on the router.
Let's play with firmwares ;-)
How did you manage to open the router? Did you have to break the casing?
I took the screws out and the damn thing won't open, are there clips that need to be pushed wide to open?
I would like to keep the 610N looking functional if possible, if not then I will use a hammer...
I assume that my first attempt to load the firmware will not be a success so I will need to prepare to recover the router from serial.
Thanks!
Using a precision screwdriver, you should manage to open it "pacifically" ;-)
Start on the front of the router, the back is a little harder to remove and I did it manually has the screwdriver only provided glitches on the box. Be also careful with the antennas wires.
I could close the box, but I'll need first to make a hole for the serial cable. I don't think the box provide enough room to get the serial converter in it and also don't seems practical to add a connector
Tried to upload firmware for 350n_v1 but it failed.
Here what I get in the console:
Release memory for upgrade file.
http upgrading....umount all disks
cmd=[write /tmp/uploadL3N1OO linux ]
find "linux" in MTD 1 (0x7a0000)
Max support length = 7995392
Upgrade buf size = [1024]
Upgrading
code pattern error!
.
.........../tmp/uploadL3N1OO: Bad trx header
.......................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..............waitfor timeout 5 secs
.waitfor timeout 5 secs
(94)cmd=[erase lang ]
done
Using a precision screwdriver, you should manage to open it "pacifically" ;-)
Start on the front of the router, the back is a little harder to remove and I did it manually has the screwdriver only provided glitches on the box. Be also careful with the antennas wires.
http://lh5.ggpht.com/_TZhfo_vWSEk/SRtnd … g_0130.jpg
http://lh4.ggpht.com/_TZhfo_vWSEk/SRtnc … g_0131.jpg
I could close the box, but I'll need first to make a hole for the serial cable. I don't think the box provide enough room to get the serial converter in it and also don't seems practical to add a connector
Great info!!!
Thanks... I got mine open too!
I will get a serial cable kit tomorrow.
Do you have a picture of how you soldered your serial cable?
Thanks!
PS: When you say not to connect the PC to the board directly, you mean that the MAXIM chip is required to adapt voltage?
(Last edited by gosselic on 13 Nov 2008, 05:37)
Great info!!!
Thanks... I got mine open too!
I will get a serial cable kit tomorrow.
Do you have a picture of how you soldered your serial cable?
Thanks!
PS: When you say not to connect the PC to the board directly, you mean that the MAXIM chip is required to adapt voltage?
Connection to the WRT610 is described in the photos and schema I posted, ie: pin1 for +3.3v, pin2 for tx, pin3 for RX and pin5 for ground.
The maxim chip (or an equivalent) is necessary as the router is expecting 3.3v signal on the serial port while a standard PC will send 12v. I f you omit the interface/chip, you will certainly write your router this first time you will hit a key... It may work readonly, but the cost of the chip + 5 100nF capacitors and db9 connector has been below 5 euro for me, and it gives real control over the boot process of the router (ie: CFE) ...
gosselic wrote:Great info!!!
Thanks... I got mine open too!
I will get a serial cable kit tomorrow.
Do you have a picture of how you soldered your serial cable?
Thanks!
PS: When you say not to connect the PC to the board directly, you mean that the MAXIM chip is required to adapt voltage?
Connection to the WRT610 is described in the photos and schema I posted, ie: pin1 for +3.3v, pin2 for tx, pin3 for RX and pin5 for ground.
The maxim chip (or an equivalent) is necessary as the router is expecting 3.3v signal on the serial port while a standard PC will send 12v. I f you omit the interface/chip, you will certainly write your router this first time you will hit a key... It may work readonly, but the cost of the chip + 5 100nF capacitors and db9 connector has been below 5 euro for me, and it gives real control over the boot process of the router (ie: CFE) ...
Damn it!!! I couldn't find the right chip or a replacement. I will have to order from the web...
I have ordered the MAX3232CPE+ there were a lot of variants on http://www.maxim-ic.com/
Is this the same one that you are using? I still would appreciate a picture of your soldering of the cable onto the board.
Thanks,
/Carl
Here is why it is important to have a serial interface:
I managed to add the binary header information in the image Makefile:
Index: target/linux/brcm-2.4/image/Makefile
===================================================================
--- target/linux/brcm-2.4/image/Makefile (revision 13193)
+++ target/linux/brcm-2.4/image/Makefile (working copy)
@@ -70,6 +70,7 @@
$(call Image/Build/CyberTAN,$(1),wrt150n,N150,1.51.3,$(patsubst jffs2-%,jffs2,$(1)))
$(call Image/Build/CyberTAN,$(1),wrt300n_v1,EWCB,1.51.2,$(patsubst jffs2-%,jffs2,$(1)))
$(call Image/Build/CyberTAN,$(1),wrt350n_v1,EWCG,1.04.1,$(patsubst jffs2-%,jffs2,$(1)))
+ $(call Image/Build/CyberTAN,$(1),wrt610n_v1,610N,1.0.1,$(patsubst jffs2-%,jffs2,$(1)))
$(call Image/Build/Motorola,$(1),wa840g,2,$(patsubst jffs2-%,jffs2,$(1)))
$(call Image/Build/Motorola,$(1),we800g,3,$(patsubst jffs2-%,jffs2,$(1)))
endef
This generates a new "valid" image for the wrt610n... Lets brick the box:
Max support length = 7995392
Upgrade buf size = [1024]
Upgrading
it's code.bin
code pattern correct!
...........freeram=[37306368] bufferram=[3485696]
The free memory is enough, writing image once.
.......................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
....waitfor timeout 5 secs
.waitfor timeout 5 secs
sum=[2822144]
(97)linux: CRC OK
Writing image to flash, waiting a monent...
Amin 931006 (rc/mtd.c mtd_write) none adjust offset
cmd=[erase lang ]
done
Terminated....................................
Written successfully, great! Will it boot???
Sending SIGTERM to all processes
test: handle_server_sig_int catch this signal:15
test: EGHN_HANP_sig_handle catch this signal
Sending SIGKILL to all processes
Restarting system.
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Mon May 12 15:37:48 CST 2008 (ljh@team2-complier)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.
Initializing Arena
Initializing PCI. [normal]
PCI bus 0 slot 0/0: vendor 0x14e4 product 0x0800 (flash memory, rev 0x02)
PCI bus 0 slot 1/0: vendor 0x14e4 product 0x471f (ethernet network, rev 0x02)
PCI bus 0 slot 2/0: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x10, rev 0x02)
PCI bus 0 slot 2/1: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x20, rev 0x02)
PCI bus 0 slot 3/0: vendor 0x14e4 product 0x471b (USB serial bus, rev 0x02)
PCI bus 0 slot 4/0: vendor 0x14e4 product 0x0804 (PCI bridge, rev 0x02)
PCI bus 0 slot 5/0: vendor 0x14e4 product 0x0816 (MIPS processor, rev 0x02)
PCI bus 0 slot 6/0: vendor 0x14e4 product 0x471d (IDE mass storage, rev 0x02)
PCI bus 0 slot 7/0: vendor 0x14e4 product 0x4718 (network/computing crypto, rev 0x02)
PCI bus 0 slot 8/0: vendor 0x14e4 product 0x080f (RAM memory, rev 0x02)
PCI bus 0 slot 9/0: vendor 0x14e4 product 0x471e (class 0xfe, subclass 0x00, rev 0x02)
Initializing Devices.
No DPN
This is a Parallel Flash
Boot partition size = 262144(0x40000)
Partition information:
boot #00 00000000 -> 0003FFFF (262144)
trx #01 00040000 -> 0004001B (28)
os #02 0004001C -> 007F7FFF (8093668)
nvram #03 007F8000 -> 007FFFFF (32768)
Partition information:
boot #00 00000000 -> 0003FFFF (262144)
trx #01 00040000 -> 007F7FFF (8093696)
nvram #02 007F8000 -> 007FFFFF (32768)
PCI bus 0 slot 1/0: pci_map_mem: attempt to map 64-bit region tag=0x800 @ addr=18010004
PCI bus 0 slot 1/0: pci_map_mem: addr=0x18010004 pa=0x18010000
ge0: BCM5750 Ethernet at 0x18010000
CPU type 0x2901A: 300MHz
Total memory: 65536 KBytes
Total memory used by CFE: 0x80700000 - 0x807A60B0 (680112)
Initialized Data: 0x8073A2B0 - 0x8073E540 (17040)
BSS Area: 0x8073E540 - 0x807400B0 (7024)
Local Heap: 0x807400B0 - 0x807A40B0 (409600)
Stack Area: 0x807A40B0 - 0x807A60B0 (8192)
Text (code) segment: 0x80700000 - 0x8073A2B0 (238256)
Boot area (physical): 0x007A7000 - 0x007E7000
Relocation Factor: I:00000000 - D:00000000
Boot version: v4.2
The boot is CFE
mac_init(): Find mac [00:21:29:C6:80:24] in location 0
Nothing...
country_init(): Find country code in location 0
The country is same
CMD: [ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0]
eth0: Link speed: 1000BaseT FDX
Device eth0: hwaddr 00-21-29-C6-80-24, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
CMD: [go;]
Wireless PCI nvram value is missing, use default!
Check CRC of image1
Len: 0x2B1000 (2822144) (0xBC040000)
Offset0: 0x1C (28) (0xBC04001C)
Offset1: 0x90C (2316) (0xBC04090C)
Offset2: 0xC0000 (786432) (0xBC100000)
Header CRC: 0x9F95A4FE
Calculate CRC: 0x9F95A4FE
Image 1 is OK
Try to load image 1.
CMD: [load -raw -addr=0x807a60b0 -max=0x3a0000 :]
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
CMD: [boot -raw -z -addr=0x80001000 -max=0x3a0000 flash0.os:]
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3768 bytes read
Entry at 0x80001000
Closing network.
eth0: cannot clear 1400/00000002
Starting program at 0x80001000
Linux version 2.6.25.20 (tom@darkstar) (gcc version 4.1.2) #4 Thu Nov 13 20:20:00 CET 2008
console [early0] enabled
CPU revision is: 0002901a (Broadcom BCM3302)
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x0F, vendor 0x4243)
ssb: Core 1 found: GBit Ethernet (cc 0x81F, rev 0x00, vendor 0x4243)
ssb: Core 2 found: USB 2.0 Host (cc 0x819, rev 0x00, vendor 0x4243)
ssb: Core 3 found: USB 2.0 Device (cc 0x81A, rev 0x02, vendor 0x4243)
ssb: Core 4 found: PCI (cc 0x804, rev 0x0B, vendor 0x4243)
ssb: Core 5 found: MIPS 3302 (cc 0x816, rev 0x07, vendor 0x4243)
ssb: Core 6 found: PATA (cc 0x81D, rev 0x00, vendor 0x4243)
ssb: Core 7 found: IPSEC (cc 0x80B, rev 0x03, vendor 0x4243)
ssb: Core 8 found: MEMC SDRAM (cc 0x80F, rev 0x03, vendor 0x4243)
ssb: Core 9 found: SATA XOR-DMA (cc 0x81E, rev 0x00, vendor 0x4243)
ssb: Initializing MIPS core...
ssb: set_irq: core 0x081f, irq 3 => 2
ssb: set_irq: core 0x0819, irq 1 => 3
ssb: set_irq: core 0x0804, irq 4 => 4
ssb: Sonics Silicon Backplane found at address 0x18000000
Serial init done.
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 0 -> 16384
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 16384
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
Synthesized clear page handler (26 instructions).
Synthesized copy page handler (46 instructions).
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover: boot [early0] -> real [ttyS0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 62208k/65536k available (2092k kernel code, 3252k reserved, 312k data, 132k init, 0k highmem)
Mount-cache hash table entries: 512
net_namespace: 540 bytes
NET: Registered protocol family 16
ssb: PCIcore in host mode found
Registering a PCI bus after boot
PCI: Fixing up bridge 0000:00:00.0
PCI: Fixing up device 0000:00:00.0
PCI: Fixing latency timer of device 0000:00:00.0 to 168
Registering a PCI bus after boot
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
detected lzma initramfs
initramfs: LZMA lc=1,lp=2,pb=2,origSize=512
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0x0 (irq = 2) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 2) is a 16550A
serial8250 serial8250.0: unable to register port at index 0 (IO0 MEMb8000300 IRQ2): -28
serial8250 serial8250.0: unable to register port at index 1 (IO0 MEMb8000400 IRQ2): -28
flash init: 0x1c000000 0x02000000
Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Flash device: 0x800000 at 0x1fc00000
bootloader size: 262144
Updating TRX offsets and length:
old trx = [0x0000001c, 0x0000090c, 0x000c0000], len=0x002b1000 crc32=0x9f95a4fe
new trx = [0x0000001c, 0x0000090c, 0x000c0000], len=0x000c0000 crc32=0x9712e462
Done
Creating 4 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x00100000-0x007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
split_squashfs: no squashfs found in "Physically mapped flash"
0x007f0000-0x00800000 : "nvram"
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
jffs2_scan_eraseblock(): End of filesystem marker found at 0x1f0000
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing unused kernel memory: 132k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe
diag: Detected 'Linksys WRT54G/GS/GL'
roboswitch: Probing device eth0: No such device
roboswitch: Probing device eth1: No such device
roboswitch: Probing device eth2: No such device
roboswitch: Probing device eth3: No such device
- init -
Please press Enter to activate this console. roboswitch: Probing device eth0: No such device
roboswitch: Probing device eth1: No such device
roboswitch: Probing device eth2: No such device
roboswitch: Probing device eth3: No such device
Broadcom 43xx driver loaded [ Features: NLR, Firmware-ID: FW13 ]
Broadcom 43xx-legacy driver loaded [ Features: LRD, Firmware-ID: FW10 ]
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
Greeeeeeeeeeeeeaaaaaaat!
BusyBox v1.11.3 (2008-11-13 00:17:49 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
KAMIKAZE (bleeding edge, r13193) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:/# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@OpenWrt:/# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@OpenWrt:/# lsmod
Module Size Used by Not tainted
nf_nat_tftp 448 0
nf_conntrack_tftp 2448 1 nf_nat_tftp
nf_nat_irc 928 0
nf_conntrack_irc 2768 1 nf_nat_irc
nf_nat_ftp 1440 0
nf_conntrack_ftp 5120 1 nf_nat_ftp
ipt_MASQUERADE 1216 0
iptable_nat 4144 1
nf_nat 12512 5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_state 832 6
nf_conntrack_ipv4 8384 9 iptable_nat,nf_nat
nf_conntrack 39744 11 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_4
ipt_REJECT 2112 2
xt_TCPMSS 3296 1
ipt_LOG 4960 0
xt_multiport 1888 0
xt_mac 704 0
xt_limit 1248 1
iptable_mangle 1056 0
iptable_filter 928 1
ip_tables 8816 3 iptable_nat,iptable_mangle,iptable_filter
xt_tcpudp 1920 3
x_tables 8976 11 ipt_MASQUERADE,iptable_nat,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
ppp_async 9728 0
ppp_generic 20096 1 ppp_async
slhc 5248 1 ppp_generic
b43legacy 97440 0
b43 147104 0
switch_core 5248 0
mac80211 158288 2 b43legacy,b43
cfg80211 24592 1 mac80211
crc_ccitt 992 1 ppp_async
arc4 832 0
aes_generic 28432 0
deflate 1568 0
ecb 1408 0
cbc 2176 0
crypto_blkcipher 12272 2 ecb,cbc
crypto_hash 992 0
cryptomgr 1696 0
crypto_algapi 8576 7 arc4,aes_generic,deflate,ecb,cbc,crypto_blkcipher,cryptomgr
diag 7760 0
root@OpenWrt:/# cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
But no network :-)
root@OpenWrt:/# uname -a
Linux OpenWrt 2.6.25.20 #4 Thu Nov 13 20:20:00 CET 2008 mips unknown
root@OpenWrt:/# free
total used free shared buffers
Mem: 62416 6928 55488 0 0
Swap: 0 0 0
Total: 62416 6928 55488
root@OpenWrt:/# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00010000 "cfe"
mtd1: 007b0000 00010000 "linux"
mtd2: 006f0000 00010000 "rootfs"
mtd3: 00010000 00010000 "nvram"
root@OpenWrt:/# cat /proc/cpuinfo
system type : Broadcom BCM47XX
processor : 0
cpu model : Broadcom BCM3302 V1.10
BogoMIPS : 299.00
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : no
ASEs implemented : mips16
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available
Lets try to get some ethernet...
Damn it!!! I couldn't find the right chip or a replacement. I will have to order from the web...
I have ordered the MAX3232CPE+ there were a lot of variants on http://www.maxim-ic.com/
Is this the same one that you are using? I still would appreciate a picture of your soldering of the cable onto the board.
Thanks,
/Carl
I'm also using a MAX3232CPE.
I will provide a pcb layout soon...
gosselic wrote:Damn it!!! I couldn't find the right chip or a replacement. I will have to order from the web...
I have ordered the MAX3232CPE+ there were a lot of variants on http://www.maxim-ic.com/
Is this the same one that you are using? I still would appreciate a picture of your soldering of the cable onto the board.
Thanks,
/CarlI'm also using a MAX3232CPE.
I will provide a pcb layout soon...
Thanks !! Hopefully I will be able to return the favor soon and help get the WRT610N up and running with OpenWRT.
Even if you are doing great on your own...
Here is why it is important to have a serial interface:
I managed to add the binary header information in the image Makefile:
Index: target/linux/brcm-2.4/image/Makefile =================================================================== --- target/linux/brcm-2.4/image/Makefile (revision 13193) +++ target/linux/brcm-2.4/image/Makefile (working copy) @@ -70,6 +70,7 @@ $(call Image/Build/CyberTAN,$(1),wrt150n,N150,1.51.3,$(patsubst jffs2-%,jffs2,$(1))) $(call Image/Build/CyberTAN,$(1),wrt300n_v1,EWCB,1.51.2,$(patsubst jffs2-%,jffs2,$(1))) $(call Image/Build/CyberTAN,$(1),wrt350n_v1,EWCG,1.04.1,$(patsubst jffs2-%,jffs2,$(1))) + $(call Image/Build/CyberTAN,$(1),wrt610n_v1,610N,1.0.1,$(patsubst jffs2-%,jffs2,$(1))) $(call Image/Build/Motorola,$(1),wa840g,2,$(patsubst jffs2-%,jffs2,$(1))) $(call Image/Build/Motorola,$(1),we800g,3,$(patsubst jffs2-%,jffs2,$(1))) endef
This generates a new "valid" image for the wrt610n... Lets brick the box:
Max support length = 7995392 Upgrade buf size = [1024] Upgrading it's code.bin code pattern correct! ...........freeram=[37306368] bufferram=[3485696] The free memory is enough, writing image once. ....................................... .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. ....waitfor timeout 5 secs .waitfor timeout 5 secs sum=[2822144] (97)linux: CRC OK Writing image to flash, waiting a monent... Amin 931006 (rc/mtd.c mtd_write) none adjust offset cmd=[erase lang ] done Terminated....................................
Written successfully, great! Will it boot???
Sending SIGTERM to all processes test: handle_server_sig_int catch this signal:15 test: EGHN_HANP_sig_handle catch this signal Sending SIGKILL to all processes Restarting system. CFE version 1.0.37 for BCM947XX (32bit,SP,LE) Build Date: Mon May 12 15:37:48 CST 2008 (ljh@team2-complier) Copyright (C) 2000,2001,2002,2003 Broadcom Corporation. Initializing Arena Initializing PCI. [normal] PCI bus 0 slot 0/0: vendor 0x14e4 product 0x0800 (flash memory, rev 0x02) PCI bus 0 slot 1/0: vendor 0x14e4 product 0x471f (ethernet network, rev 0x02) PCI bus 0 slot 2/0: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x10, rev 0x02) PCI bus 0 slot 2/1: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x20, rev 0x02) PCI bus 0 slot 3/0: vendor 0x14e4 product 0x471b (USB serial bus, rev 0x02) PCI bus 0 slot 4/0: vendor 0x14e4 product 0x0804 (PCI bridge, rev 0x02) PCI bus 0 slot 5/0: vendor 0x14e4 product 0x0816 (MIPS processor, rev 0x02) PCI bus 0 slot 6/0: vendor 0x14e4 product 0x471d (IDE mass storage, rev 0x02) PCI bus 0 slot 7/0: vendor 0x14e4 product 0x4718 (network/computing crypto, rev 0x02) PCI bus 0 slot 8/0: vendor 0x14e4 product 0x080f (RAM memory, rev 0x02) PCI bus 0 slot 9/0: vendor 0x14e4 product 0x471e (class 0xfe, subclass 0x00, rev 0x02) Initializing Devices. No DPN This is a Parallel Flash Boot partition size = 262144(0x40000) Partition information: boot #00 00000000 -> 0003FFFF (262144) trx #01 00040000 -> 0004001B (28) os #02 0004001C -> 007F7FFF (8093668) nvram #03 007F8000 -> 007FFFFF (32768) Partition information: boot #00 00000000 -> 0003FFFF (262144) trx #01 00040000 -> 007F7FFF (8093696) nvram #02 007F8000 -> 007FFFFF (32768) PCI bus 0 slot 1/0: pci_map_mem: attempt to map 64-bit region tag=0x800 @ addr=18010004 PCI bus 0 slot 1/0: pci_map_mem: addr=0x18010004 pa=0x18010000 ge0: BCM5750 Ethernet at 0x18010000 CPU type 0x2901A: 300MHz Total memory: 65536 KBytes Total memory used by CFE: 0x80700000 - 0x807A60B0 (680112) Initialized Data: 0x8073A2B0 - 0x8073E540 (17040) BSS Area: 0x8073E540 - 0x807400B0 (7024) Local Heap: 0x807400B0 - 0x807A40B0 (409600) Stack Area: 0x807A40B0 - 0x807A60B0 (8192) Text (code) segment: 0x80700000 - 0x8073A2B0 (238256) Boot area (physical): 0x007A7000 - 0x007E7000 Relocation Factor: I:00000000 - D:00000000 Boot version: v4.2 The boot is CFE mac_init(): Find mac [00:21:29:C6:80:24] in location 0 Nothing... country_init(): Find country code in location 0 The country is same CMD: [ifconfig eth0 -addr=192.168.1.1 -mask=255.255.255.0] eth0: Link speed: 1000BaseT FDX Device eth0: hwaddr 00-21-29-C6-80-24, ipaddr 192.168.1.1, mask 255.255.255.0 gateway not set, nameserver not set CMD: [go;] Wireless PCI nvram value is missing, use default! Check CRC of image1 Len: 0x2B1000 (2822144) (0xBC040000) Offset0: 0x1C (28) (0xBC04001C) Offset1: 0x90C (2316) (0xBC04090C) Offset2: 0xC0000 (786432) (0xBC100000) Header CRC: 0x9F95A4FE Calculate CRC: 0x9F95A4FE Image 1 is OK Try to load image 1. CMD: [load -raw -addr=0x807a60b0 -max=0x3a0000 :] Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null) Loading: Failed. Could not load :: Timeout occured CMD: [boot -raw -z -addr=0x80001000 -max=0x3a0000 flash0.os:] Loader:raw Filesys:raw Dev:flash0.os File: Options:(null) Loading: .. 3768 bytes read Entry at 0x80001000 Closing network. eth0: cannot clear 1400/00000002 Starting program at 0x80001000 Linux version 2.6.25.20 (tom@darkstar) (gcc version 4.1.2) #4 Thu Nov 13 20:20:00 CET 2008 console [early0] enabled CPU revision is: 0002901a (Broadcom BCM3302) ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x0F, vendor 0x4243) ssb: Core 1 found: GBit Ethernet (cc 0x81F, rev 0x00, vendor 0x4243) ssb: Core 2 found: USB 2.0 Host (cc 0x819, rev 0x00, vendor 0x4243) ssb: Core 3 found: USB 2.0 Device (cc 0x81A, rev 0x02, vendor 0x4243) ssb: Core 4 found: PCI (cc 0x804, rev 0x0B, vendor 0x4243) ssb: Core 5 found: MIPS 3302 (cc 0x816, rev 0x07, vendor 0x4243) ssb: Core 6 found: PATA (cc 0x81D, rev 0x00, vendor 0x4243) ssb: Core 7 found: IPSEC (cc 0x80B, rev 0x03, vendor 0x4243) ssb: Core 8 found: MEMC SDRAM (cc 0x80F, rev 0x03, vendor 0x4243) ssb: Core 9 found: SATA XOR-DMA (cc 0x81E, rev 0x00, vendor 0x4243) ssb: Initializing MIPS core... ssb: set_irq: core 0x081f, irq 3 => 2 ssb: set_irq: core 0x0819, irq 1 => 3 ssb: set_irq: core 0x0804, irq 4 => 4 ssb: Sonics Silicon Backplane found at address 0x18000000 Serial init done. Determined physical RAM map: memory: 04000000 @ 00000000 (usable) Initrd not found or empty - disabling initrd Zone PFN ranges: Normal 0 -> 16384 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0 -> 16384 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200 Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes. Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes Synthesized clear page handler (26 instructions). Synthesized copy page handler (46 instructions). PID hash table entries: 256 (order: 8, 1024 bytes) console handover: boot [early0] -> real [ttyS0] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 62208k/65536k available (2092k kernel code, 3252k reserved, 312k data, 132k init, 0k highmem) Mount-cache hash table entries: 512 net_namespace: 540 bytes NET: Registered protocol family 16 ssb: PCIcore in host mode found Registering a PCI bus after boot PCI: Fixing up bridge 0000:00:00.0 PCI: Fixing up device 0000:00:00.0 PCI: Fixing latency timer of device 0000:00:00.0 to 168 Registering a PCI bus after boot NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered detected lzma initramfs initramfs: LZMA lc=1,lp=2,pb=2,origSize=512 squashfs: version 3.0 (2006/03/15) Phillip Lougher Registering mini_fo version $Id$ JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered (default) Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing enabled serial8250: ttyS0 at MMIO 0x0 (irq = 2) is a 16550A serial8250: ttyS1 at MMIO 0x0 (irq = 2) is a 16550A serial8250 serial8250.0: unable to register port at index 0 (IO0 MEMb8000300 IRQ2): -28 serial8250 serial8250.0: unable to register port at index 1 (IO0 MEMb8000400 IRQ2): -28 flash init: 0x1c000000 0x02000000 Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank Amd/Fujitsu Extended Query Table at 0x0040 number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. Flash device: 0x800000 at 0x1fc00000 bootloader size: 262144 Updating TRX offsets and length: old trx = [0x0000001c, 0x0000090c, 0x000c0000], len=0x002b1000 crc32=0x9f95a4fe new trx = [0x0000001c, 0x0000090c, 0x000c0000], len=0x000c0000 crc32=0x9712e462 Done Creating 4 MTD partitions on "Physically mapped flash": 0x00000000-0x00040000 : "cfe" 0x00040000-0x007f0000 : "linux" 0x00100000-0x007f0000 : "rootfs" mtd: partition "rootfs" set to be root filesystem split_squashfs: no squashfs found in "Physically mapped flash" 0x007f0000-0x00800000 : "nvram" TCP vegas registered NET: Registered protocol family 1 NET: Registered protocol family 17 Bridge firewalling registered 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> All bugs added by David S. Miller <davem@redhat.com> jffs2_scan_eraseblock(): End of filesystem marker found at 0x1f0000 jffs2_build_filesystem(): unlocking the mtd device... done. jffs2_build_filesystem(): erasing all blocks after the end marker... done. VFS: Mounted root (jffs2 filesystem) readonly. Freeing unused kernel memory: 132k freed Please be patient, while OpenWrt loads ... Algorithmics/MIPS FPU Emulator v1.5 - preinit - Press CTRL-C for failsafe diag: Detected 'Linksys WRT54G/GS/GL' roboswitch: Probing device eth0: No such device roboswitch: Probing device eth1: No such device roboswitch: Probing device eth2: No such device roboswitch: Probing device eth3: No such device - init - Please press Enter to activate this console. roboswitch: Probing device eth0: No such device roboswitch: Probing device eth1: No such device roboswitch: Probing device eth2: No such device roboswitch: Probing device eth3: No such device Broadcom 43xx driver loaded [ Features: NLR, Firmware-ID: FW13 ] Broadcom 43xx-legacy driver loaded [ Features: LRD, Firmware-ID: FW10 ] PPP generic driver version 2.4.2 ip_tables: (C) 2000-2006 Netfilter Core Team nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
Greeeeeeeeeeeeeaaaaaaat!
BusyBox v1.11.3 (2008-11-13 00:17:49 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 KAMIKAZE (bleeding edge, r13193) ------------------- * 10 oz Vodka Shake well with ice and strain * 10 oz Triple sec mixture into 10 shot glasses. * 10 oz lime juice Salute! --------------------------------------------------- root@OpenWrt:/# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 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:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) root@OpenWrt:/# ifconfig -a lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 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:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) root@OpenWrt:/# lsmod Module Size Used by Not tainted nf_nat_tftp 448 0 nf_conntrack_tftp 2448 1 nf_nat_tftp nf_nat_irc 928 0 nf_conntrack_irc 2768 1 nf_nat_irc nf_nat_ftp 1440 0 nf_conntrack_ftp 5120 1 nf_nat_ftp ipt_MASQUERADE 1216 0 iptable_nat 4144 1 nf_nat 12512 5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat xt_state 832 6 nf_conntrack_ipv4 8384 9 iptable_nat,nf_nat nf_conntrack 39744 11 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_4 ipt_REJECT 2112 2 xt_TCPMSS 3296 1 ipt_LOG 4960 0 xt_multiport 1888 0 xt_mac 704 0 xt_limit 1248 1 iptable_mangle 1056 0 iptable_filter 928 1 ip_tables 8816 3 iptable_nat,iptable_mangle,iptable_filter xt_tcpudp 1920 3 x_tables 8976 11 ipt_MASQUERADE,iptable_nat,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp ppp_async 9728 0 ppp_generic 20096 1 ppp_async slhc 5248 1 ppp_generic b43legacy 97440 0 b43 147104 0 switch_core 5248 0 mac80211 158288 2 b43legacy,b43 cfg80211 24592 1 mac80211 crc_ccitt 992 1 ppp_async arc4 832 0 aes_generic 28432 0 deflate 1568 0 ecb 1408 0 cbc 2176 0 crypto_blkcipher 12272 2 ecb,cbc crypto_hash 992 0 cryptomgr 1696 0 crypto_algapi 8576 7 arc4,aes_generic,deflate,ecb,cbc,crypto_blkcipher,cryptomgr diag 7760 0 root@OpenWrt:/# cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
But no network :-)
root@OpenWrt:/# uname -a Linux OpenWrt 2.6.25.20 #4 Thu Nov 13 20:20:00 CET 2008 mips unknown root@OpenWrt:/# free total used free shared buffers Mem: 62416 6928 55488 0 0 Swap: 0 0 0 Total: 62416 6928 55488 root@OpenWrt:/# cat /proc/mtd dev: size erasesize name mtd0: 00040000 00010000 "cfe" mtd1: 007b0000 00010000 "linux" mtd2: 006f0000 00010000 "rootfs" mtd3: 00010000 00010000 "nvram" root@OpenWrt:/# cat /proc/cpuinfo system type : Broadcom BCM47XX processor : 0 cpu model : Broadcom BCM3302 V1.10 BogoMIPS : 299.00 wait instruction : yes microsecond timers : yes tlb_entries : 32 extra interrupt vector : yes hardware watchpoint : no ASEs implemented : mips16 shadow register sets : 1 core : 0 VCED exceptions : not available VCEI exceptions : not available
Lets try to get some ethernet...
You probably noticed this already but the device detection (WRT54G\GS\GL) is wrong and it is complaining about not finding any LAN interfaces
"
Press CTRL-C for failsafe
diag: Detected 'Linksys WRT54G/GS/GL'
roboswitch: Probing device eth0: No such device
roboswitch: Probing device eth1: No such device
roboswitch: Probing device eth2: No such device
roboswitch: Probing device eth3: No such device
- init -
Please press Enter to activate this console. roboswitch: Probing device eth0: No such device
roboswitch: Probing device eth1: No such device
roboswitch: Probing device eth2: No such device
roboswitch: Probing device eth3: No such device "
The broadcom-57xx driver is not compatible with linux 2.6...
Compiling another image...
The broadcom-57xx driver is not compatible with linux 2.6...
Compiling another image...
Are you going to use Linux 2.4??
Is JTAG visible on the board somewhere? None of the photos give a clean overhead shot.
I have just ordered one of these and anticipate adding to the Wiki page.
I wonder why people keep using MAX232? I have stereo jacks fitted on all the WRT54GL & GS & SL routers I work with in a WISP setup. Easy & CHEAP to fit the jack then I just have one USB cable with the smart/expensive bits I move around as needed.
See this link to section of WRTSL54GS wiki page:
http://wiki.openwrt.org/OpenWrtDocs/Har … ef59391468
(Last edited by vincentfox on 14 Nov 2008, 01:08)
Is JTAG visible on the board somewhere? None of the photos give a clean overhead shot.
I have just ordered one of these and anticipate adding to the Wiki page.
Never seen them before... MAX3232 was near me ;-)
I wonder why people keep using MAX232? I have stereo jacks fitted on all the WRT54GL & GS & SL routers I work with in a WISP setup. Easy & CHEAP to fit the jack then I just have one USB cable with the smart/expensive bits I move around as needed.
See this link to section of WRTSL54GS wiki page:
According to dd-wrt forums, there are 3 JTAG ports (visible on the backplane photo). 2 at the bottom linked to the wifi card, and one to the cpu (near the EON chip)