Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:trendnet:tew-712br [2015/10/04 16:35] – Link to media adjusted tmomas | toh:trendnet:tew-712br [2016/03/15 11:49] – [Tags] tmomas | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Trendnet TEW-712BR ====== | ||
| + | * [[http:// | ||
| + | |||
| + | |||
| + | * H/W:1.0R | ||
| + | |||
| + | ''# | ||
| + | dev: size | ||
| + | mtd0: 00010000 00010000 " | ||
| + | mtd1: 00010000 00010000 " | ||
| + | mtd2: 00010000 00010000 " | ||
| + | mtd3: 00010000 00010000 " | ||
| + | mtd4: 00030000 00010000 " | ||
| + | mtd5: 000e0000 00010000 " | ||
| + | mtd6: 002b0000 00010000 " | ||
| + | mtd7: 000b0000 00010000 " | ||
| + | mtd8: 00390000 00010000 " | ||
| + | |||
| + | ''# | ||
| + | system type : Atheros AR9330 rev 1 | ||
| + | machine | ||
| + | processor | ||
| + | cpu model : MIPS 24Kc V7.4 | ||
| + | BogoMIPS | ||
| + | wait instruction | ||
| + | microsecond timers | ||
| + | tlb_entries | ||
| + | extra interrupt vector | ||
| + | hardware watchpoint | ||
| + | ASEs implemented | ||
| + | shadow register sets : 1 | ||
| + | kscratch registers | ||
| + | core : 0 | ||
| + | VCED exceptions | ||
| + | VCEI exceptions | ||
| + | '' | ||
| + | |||
| + | ===== Bootlogs ===== | ||
| + | |||
| + | '' | ||
| + | U-Boot 1.1.4 (Mar 2 2012 - 15:15:23) | ||
| + | |||
| + | AP121-2MB (ar9330) U-boot | ||
| + | |||
| + | DRAM: 32 MB | ||
| + | Top of RAM usable for U-Boot at: 82000000 | ||
| + | Reserving 161k for U-Boot at: 81fd4000 | ||
| + | Reserving 192k for malloc() at: 81fa4000 | ||
| + | Reserving 44 Bytes for Board Info at: 81fa3fd4 | ||
| + | Reserving 36 Bytes for Global Data at: 81fa3fb0 | ||
| + | Reserving 128k for boot params() at: 81f83fb0 | ||
| + | Stack Pointer at: 81f83f98 | ||
| + | Now running in RAM - U-Boot at: 81fd4000 | ||
| + | ============================================ | ||
| + | Date: | ||
| + | Cameo Version: v1.00 Build:08 | ||
| + | Module Name: Treadnet TEW-712BR | ||
| + | ============================================ | ||
| + | id read 0x100000ff | ||
| + | flash size 4194304, sector count = 64 | ||
| + | Flash: | ||
| + | Using default environment | ||
| + | |||
| + | In: serial | ||
| + | Out: | ||
| + | Err: | ||
| + | Net: | ||
| + | : cfg1 0x5 cfg2 0x7114 | ||
| + | eth0: XXXXXXXXXXXXXXX | ||
| + | eth0 up | ||
| + | : cfg1 0xf cfg2 0x7214 | ||
| + | eth1: XXXXXXXXXXXXXXX | ||
| + | athrs26_reg_init_lan | ||
| + | ATHRS26: resetting s26 | ||
| + | ATHRS26: s26 reset done | ||
| + | eth1 up | ||
| + | eth0, eth1 | ||
| + | Hit any key to stop autoboot: | ||
| + | ar7240> help | ||
| + | fake - fake | ||
| + | ? - alias for ' | ||
| + | boot - boot default, i.e., run ' | ||
| + | bootd - boot default, i.e., run ' | ||
| + | bootm - boot application image from memory | ||
| + | cp - memory copy | ||
| + | erase - erase FLASH memory | ||
| + | eth_soft_led | ||
| + | help - print online help | ||
| + | httpboot- entering the backup mode. | ||
| + | md - memory display | ||
| + | mm - memory modify (auto-incrementing) | ||
| + | mtest - simple RAM test | ||
| + | mw - memory write (fill) | ||
| + | nm - memory modify (constant address) | ||
| + | ping - send ICMP ECHO_REQUEST to network host | ||
| + | printenv- print environment variables | ||
| + | progmac - Set ethernet MAC addresses | ||
| + | reset - Perform RESET of the CPU | ||
| + | run - run commands in an environment variable | ||
| + | setenv | ||
| + | tftpboot- boot image via network using TFTP protocol | ||
| + | version - print monitor version | ||
| + | ar7240> printenv | ||
| + | bootargs=console=ttyS0, | ||
| + | bootcmd=bootm 0x9f070000 | ||
| + | bootdelay=2 | ||
| + | baudrate=115200 | ||
| + | ethaddr=XXXXXXXXXXXXXXXXXXXX | ||
| + | ipaddr=192.168.10.1 | ||
| + | serverip=192.168.10.100 | ||
| + | stdin=serial | ||
| + | stdout=serial | ||
| + | stderr=serial | ||
| + | ethact=eth0 | ||
| + | '' | ||
| + | ==== Serial ==== | ||
| + | UART pinout:\\ | ||
| + | {{: | ||
| + | |||
| + | ===== Debricking Guide ===== | ||
| + | ==== Materials required ==== | ||
| + | * USB To RS232 TTL PL2303HX Converter Module 3.3V, or similar serial/tty converter | ||
| + | * Solder and soldering iron | ||
| + | * Large paper clip or header pins from an old circuit board | ||
| + | * LAN cable | ||
| + | * Computer with USB interface (the procedure given here assumes Ubuntu/ | ||
| + | |||
| + | ==== Preparation ==== | ||
| + | * Router: Solder header pins to the TX, RX and GND sockets shown above. | ||
| + | * Computer: Install the required software: '' | ||
| + | |||
| + | ==== Procedure ==== | ||
| + | Router- Connect the converter module wires from the TX on the router to the RX on the converter, RX to TX and GND to GND (the power will come from the router, so we do not connect that). Connect the adapter to an open USB port. | ||
| + | |||
| + | Computer- To find the adpater, run the command: | ||
| + | $ dmesg | grep tty | ||
| + | |||
| + | You should see something like the following, showing which USB it is associated with: | ||
| + | [ 0.000000] console [tty0] enabled | ||
| + | [ 0.362312] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A | ||
| + | [ 0.383277] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A | ||
| + | [ 5024.119425] usb 2-10: pl2303 converter now attached to ttyUSB0 | ||
| + | |||
| + | Connect a LAN cable between a LAN port on the router and an Ethernet port on the computer. | ||
| + | |||
| + | Now is a good time to prepare the tftp server to server the firmare file. | ||
| + | Issue the command: | ||
| + | $ sudo gedit / | ||
| + | Paste the following in the editor window and save the file: | ||
| + | | ||
| + | service tftp | ||
| + | { | ||
| + | protocol | ||
| + | port = 69 | ||
| + | socket_type | ||
| + | wait = yes | ||
| + | user = nobody | ||
| + | server | ||
| + | server_args | ||
| + | disable | ||
| + | } | ||
| + | |||
| + | Now we need to create the directory that will serve the firmware and make it writable. | ||
| + | |||
| + | $ sudo mkdir /tftpboot | ||
| + | $ sudo chown ubuntu /tftpboot | ||
| + | |||
| + | Create a .trx file of the factory firmware by downloading the firmware from the Trendnet site and placing it into your OpenWrt build directory. | ||
| + | |||
| + | Copy the .trx file to the /tftpboot directory. | ||
| + | | ||
| + | Restart xinetd: | ||
| + | |||
| + | $ sudo / | ||
| + | |||
| + | Start cutecom. I start it from the command line with sudo to make sure I have access to the USB service. | ||
| + | Confirm the following settings: device = / | ||
| + | |||
| + | Press the "open device" | ||
| + | |||
| + | ar7240> ping 192.168.10.100 | ||
| + | |||
| + | dup 1 speed 1000 | ||
| + | Using eth1 device | ||
| + | checksum bad | ||
| + | host 192.168.10.100 is alive | ||
| + | |||
| + | Next we transfer the firmware from the server to the router' | ||
| + | |||
| + | | ||
| + | |||
| + | Using eth1 device | ||
| + | TFTP from server 192.168.10.100; | ||
| + | | ||
| + | Load address: 0x80000000 | ||
| + | | ||
| + | ################################################################# | ||
| + | \0x09 ################################################################# | ||
| + | \0x09 ################################################################# | ||
| + | \0x09 ################################################################# | ||
| + | \0x09 ################################################################# | ||
| + | \0x09 ################################################################# | ||
| + | \0x09 ################################################################# | ||
| + | \0x09 ################################################################# | ||
| + | \0x09 ################################################################# | ||
| + | \0x09 ######################################################## | ||
| + | done | ||
| + | Bytes transferred = 3276804 (320004 hex) | ||
| + | | ||
| + | |||
| + | Now we erase the targeted area of ROM | ||
| + | |||
| + | | ||
| + | |||
| + | Copy to ROM: | ||
| + | |||
| + | | ||
| + | |||
| + | Reboot the router: | ||
| + | |||
| + | | ||
| + | |||
| + | In a minute or two, you should be able to access the router via the factory web ui at http:// | ||
| + | |||
| + | ===== Tags ===== | ||
| + | [[meta: | ||
| + | {{tag> | ||