OpenWrt Forum Archive

Topic: [Volunteer nedeed] I need someone with 3G-6200N

The content of this topic has been archived between 19 Apr 2018 and 27 Apr 2018. Unfortunately there are posts – most likely complete pages – missing.

Hi, I'm working on adding support for  Edimax 3G-6200N router to trunk. I almost finished the job, but I need someone who hasn't flash his router with openwrt. Currently the only image file that works is "openwrt-ramips-rt305x-v22rw-2x2-squashfs-sysupgrade.bin" but the problem is that it deletes the partition where the wan MAC address is stored and also many things just doesn't work properly. [s]I need the dump form "cimage" partition cause I erased mine tongue.[/s]

Can anyone help ?

All you need is to:
1. Open your browser go to http://router_ip/syscmd.asp
2. In input box enter: /usr/sbin/telnetd -l /bin/ash and click apply
3. Close web browser, and open terminal, open telnet session =>"telnet router_ip"
   [s]a) cd /tmp
   b) cat /dev/mtd5 > /tmp/cimage.bin
   c) And post here the output of "cat /tmp/cimage.bin"[/s]
   a) post the output of

flash all

[s]
There will be a lot of garbage, but that's ok, only thing I need to know if I'm 100% sure about mac stored in this partition.

Or, you can install the firmware I prepared, which shouldn't delete that partition, cause it creates "cimage" with the same size and offset as original. Post it with hexdump or send it via mail.

1. Do the same as above from 1 to 3 (up to telnet).
cd /tmp
wget http://dl.dropbox.com/u/7157357/My-file … pgrade.bin
wget http://dl.dropbox.com/u/7157357/My-files/mtd
chmod +x mtd
./mtd -r write openwrt-ramips-rt305x-3g-6200n-squashfs-sysupgrade.bin Kernel:RootFS
2. telnet to edimax on 192.168.1.1
dd if=/dev/mtd6 of=/tmp/cimage.img /*it is now mtd6 not mtd5, but it is still the same size on on the same offset*/
scp /tmp/cimage.bin to your linux PC

for example:
scp /tmp/cimage.bin root@your_pc_ip:/home_dir
post cimage.bin on forum or send it via mail[/s]

(Last edited by lgolebio on 21 Jun 2012, 18:06)

I don't have a device, but usually the factory partition is offset 256k. Very few devices have it anywhere else.

0x000000000000-0x000000030000 : "u-boot" 
0x000000030000-0x000000040000 : "u-boot-env" 
0x000000040000-0x000000050000 : "factory"

Arg, I used to have the vanilla boot log from one of these. I will try to find it.

(Last edited by aport on 21 Jun 2012, 18:40)

@aport, yes but. This device has mac addres in cimage stored for wan and lan interfaces. I can even set them with

flash -set ....

and all of them go to cvimg partition. Even after reflashing, rebooting and resetting the device all of mac settings stayed intact. (original firmware)

Mac address can potentially be anywhere, but in this case WAN and LAN is in cimage partition.

By the way here is the original log from edimax 3g-6200n.
http://update.groov.pl/3g-6200n/bootloader.txt

I really need to see the dump of

flash all

command. smile It will help me a lot.

I'm already ready to submit patches, but I won't till someone get me those info. There will be full support for this device.

(Last edited by lgolebio on 22 Jun 2012, 09:19)

edited output - original after reset, flashed to 2.21b - mac addresses mangled.
You´ll find the mac sticker on the bottom of the case. NIC0 and WLAN are identical to that number. NIC1 is hex(NIC+1).
In case your partition got deleted, those values alone, won´t really help, will they?

HW_BOARD_ID=1
HW_NIC0_ADDR=001f1faaaaac
HW_NIC1_ADDR=001f1faaaaad
HW_WLAN_ADDR=001f1faaaaac
HW_REG_DOMAIN=3
HW_RF_TYPE=7
HW_TX_POWER_CCK=0c0c0c0c0c0c0c0c0c0c0c0c0c0c
HW_TX_POWER_OFDM=13131313131313131313131313130e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e0e
HW_ANT_DIVERSITY=0
HW_TX_ANT=0
HW_CCA_MODE=0
HW_WLAN_LED_TYPE=2
HW_INIT_GAIN=4
DHCP_CLIENT_START='192.168.2.100'
DHCP_CLIENT_END='192.168.2.200'
LICENCE=0
WAN_DHCP=0
DNS_MODE=0
DNS1='0.0.0.0'
DNS2='0.0.0.0'
DNS3='0.0.0.0'
WAN_MODE=0
DYNIP_HOSTNAME=''
WAN_MAC_ADDR=000000000000
WAN_IP_ADDR='172.1.1.1'
WAN_SUBNET_MASK='255.255.0.0'
WAN_DEFAULT_GATEWAY='172.1.1.254'
PPP_USER_NAME=''
PPP_PASSWORD=''
PPP_IDLE_TIME=600
PPP_CONNECT_TYPE=0
PPP_SERVNAME=''
PPP_MTU=1392
PPP_TTL_ENABLED=0
PPTP_IPMODE=0
PPTP_IP_ADDR='0.0.0.0'
PPTP_IP_MASK_ADDR='0.0.0.0'
PPTP_DEF_GATEWAY='0.0.0.0'
PPTP_GATEWAY='0.0.0.0'
PPTP_USER_NAME=''
PPTP_PASSWORD=''
PPTP_IDLE_TIME=600
PPTP_CONNECT_TYPE=0
PPTP_CONNT_ID=''
PPTP_BEZEQ_ENABLED=0
PPTP_MTU=1392
L2TP_IPMODE=0
L2TP_IP_ADDR='0.0.0.0'
L2TP_MASK_ADDR='0.0.0.0'
L2TP_DEFGATEWAY='0.0.0.0'
L2TP_GATEWAY=''
L2TP_USER_NAME=''
L2TP_PASSWORD=''
L2TP_IDLE_TIME=600
L2TP_CONNECT_TYPE=0
L2TP_MTU=1392
TELBP_IP_ADDR='0.0.0.0'
TELBP_USER_NAME=''
TELBP_PASSWORD=''
TELBP_ENABLED=0
PORTFW_ENABLED=0
PORTFW_TBL_NUM=0
IPFILTER_ENABLED=0
IPFILTER_TBL_NUM=0
DMZ_TBL_NUM=0
URLB_ENABLED=0
URLB_TBL_NUM=0
ACPC_ENABLED=0
IPDENY_ENABLED=1
ACPC_TBL_NUM=0
MACDENY_ENABLED=1
MACFILTER_ENABLED=0
MACFILTER_TBL_NUM=0
PORTFILTER_ENABLED=0
PORTFILTER_TBL_NUM=0
TRIGGERPORT_ENABLED=0
TRIGGERPORT_TBL_NUM=0
DMZ_ENABLED=0
SROUT_ENABLED=0
SROUT_TBL_NUM=0
WAN1_QOS_ENABLED=0
WAN1_QOS_TBL_NUM=0
SDHCP_ENABLED=0
SDHCP_TBL_NUM=0
WLAN_TX_POWER=0
WLAN_WMM=0
WLAN_TURBO=0
WLAN_N_FIXRTAE=0
WLAN_N_CHAN_WIDTH=0
WLAN_TRAN_RATE='auto'
WLAN_RATE_MODE=0
WLAN_CTS=2
WLAN_BURST=0
WEP152_KEY1=00000000000000000000000000000000
WEP152_KEY2=00000000000000000000000000000000
WEP152_KEY3=00000000000000000000000000000000
WEP152_KEY4=00000000000000000000000000000000
DOT1X_MODE=0
ELAN_MAC_ADDR=000000000000
WLAN_MAC_ADDR=000000000000
SSID='default'
CHANNEL=11
WEP=0
WEP64_KEY1=0000000000
WEP64_KEY2=0000000000
WEP64_KEY3=0000000000
WEP64_KEY4=0000000000
WEP128_KEY1=00000000000000000000000000
WEP128_KEY2=00000000000000000000000000
WEP128_KEY3=00000000000000000000000000
WEP128_KEY4=00000000000000000000000000
WEP_DEFAULT_KEY=0
WEP_KEY_TYPE=1
FRAG_THRESHOLD=2346
SUPPORTED_RATES=15
BEACON_INTERVAL=100
PREAMBLE_TYPE=0
BASIC_RATES=3
RTS_THRESHOLD=2347
AUTH_TYPE=2
HIDDEN_SSID=0
WLAN_DISABLED=0
INACTIVITY_TIME=30000
RATE_ADAPTIVE_ENABLED=1
DTIM_PERIOD=3
NETWORK_TYPE=0
IAPP_DISABLED=0
PROTECTION_DISABLED=1
MACCLONE_ENABLED=0
BAND=5
FIX_RATE=0
WPA2_PRE_AUTH=0
WPA2_CIPHER_SUITE=0
WLAN_SET_TX=0
AP_MODE=0
SECURITY_MODE=0
CLIENT_IP_DISABLED=0
WLAN_BLOCK_RELAY=0
AUTO_MAC_CLONE=0
OP_MODE=0
WISP_WAN_ID=0
WL_LINKMAC1=000000000000
WL_LINKMAC2=000000000000
WL_LINKMAC3=000000000000
WL_LINKMAC4=000000000000
WL_LINKMAC5=000000000000
WL_LINKMAC6=000000000000
WDS_ENABLED=0
WLAN_WDS_ENCRYPT=0
WLAN_WDS_WPA_AUTH=2
WLAN_WDS_WPA_CIPHER_SUITE=1
WLAN_WDS_WPA2_CIPHER_SUITE=0
WLAN_WDS_WPA_PSK=''
WLAN_WDS_PSK_FORMAT=0
WLAN_ENCRYPT=0
WLAN_ENABLE_SUPP_NONWPA=0
WLAN_SUPP_NONWPA=0
WLAN_WPA_AUTH=2
WLAN_WPA_CIPHER_SUITE=1
WLAN_WPA_PSK=''
WLAN_WPA_GROUP_REKEY_TIME=86400
MAC_AUTH_ENABLED=0
RS_IP='0.0.0.0'
RS_PORT=1812
RS_PASSWORD=''
RS_MAXRETRY=3
RS_INTERVAL_TIME=5
ACCOUNT_RS_ENABLED=0
ACCOUNT_RS_IP='0.0.0.0'
ACCOUNT_RS_PORT=1813
ACCOUNT_RS_PASSWORD=''
ACCOUNT_RS_UPDATE_ENABLED=0
ACCOUNT_RS_UPDATE_DELAY=60
ACCOUNT_RS_MAXRETRY=3
ACCOUNT_RS_INTERVAL_TIME=5
WLAN_ENABLE_1X=0
WLAN_PSK_FORMAT=0
IP_ADDR='192.168.2.1'
DHCPGATEWAYIP_ADDR='0.0.0.0'
DHCPNAMESERVER_ADDR='0.0.0.0'
DOMAIN_NAME=''
LAN_LEASE_TIME=315360000
SUBNET_MASK='255.255.255.0'
DEFAULT_GATEWAY='0.0.0.0'
DHCP=2
STP_ENABLED=0
WLAN_MACAC_NUM=0
WLAN_MACAC_ENABLED=0
SUPER_NAME='super'
SUPER_PASSWORD='APR@xuniL'
USER_NAME='admin'
USER_PASSWORD='1234'
TIME_ZONE_SEL=22
START_MONTH=1
START_DAY=1
END_MONTH=1
END_DAY=1
TIMESERVER_ADDR='192.43.244.18'
DAYLIGHT_ENABLE=0
REMANHOST_ADDR='0.0.0.0'
REMAN_PORT=8080
REMANG_ENABLE=0
UPNP_ENABLE=1
NAT_ENABLE=1
FAST_NAT_ENABLE=0
FIREWALL_ENABLE=1
VSER_ENABLED=0
VSER_TBL_NUM=0
POD_ENABLED=0
PING_ENABLED=0
SCAN_ENABLED=0
SYN_ENABLED=0
POD_PACK=5
POD_TIME=0
POD_BUR=5
SYN_PACK=30
SYN_TIME=0
SYN_BUR=30
SCAN_NUM=nmap,xmastree,axmastree,nullscan,synrst,synfin,synouport
DDNS_NAME=''
DDNS_ACCOUNT=''
DDNS_PASS=''
DDNS_ENABLED=0
DDNS_PVID_SEL='dyndns'
APP_LAYER_GATEWAY=amanda,egg,ftp,h323,irc,mms,quake3,talk,tftp,ipsec,sip
DHIS_HOSTID=0
DHIS_ISADDR='0.0.0.0'
DHIS_PASSWORD=''
DHIS_AUTH_P1=''
DHIS_AUTH_P2=''
DHIS_AUTH_Q1=''
DHIS_AUTH_Q2=''
DHIS_SELECT=0
MAX_DOWNLOAD_BANDWIDTH=0
MAX_UPLOAD_BANDWIDTH=0
REPEATER_ENABLED=0
REPEATER_SSID=''
PS_ENABLE=1
PS_IPPENABLE=1
PS_LPRENABLE=1
PS_NAME=''
PS_PORT1NAME='lpt1'
PS_PORT2NAME=''
AP_ROUTER_SWITCH=0
WPS_ENABLE=1
WPS_CONFIG_MODE=7
WPS_PROXY_ENABLE=0
WPS_INTERNAL_REG=0
WPS_CONFIG_TYPE=0
WPS_CONFIG_STATUS=0
WPS_PING_CODE=''
WPS_DISPLAY_KEY=0
WLAN_NOFORWARD=0
DDNS_STATUS=0
AUTO_BRIDGE=0
WIFI_TEST=0
IS_RESET_DEFAULT=0
IGMP_PROXY_ENABLED=1
WATCH_DOG_ENABLE=0
WATCH_DOG_INTERVAL=0
WATCH_DOG_HOST='0.0.0.0'
WLAN_SCH_ENABLED=0
WLAN_SCH_NUM=0
WWAN_AUTHMODESEL=''
WWAN_OPMODESEL=''
WWAN_NPSEL='hsdpa'
WWAN_NAME=''
WWAN_PASSWORD=''
WWAN_PINCODE=''
WWAN_APN=''
WWAN_PPPNAME=''
WWAN_PPPPASS=''
WWAN_PPPIDLETIME=0
WWAN_PPPECHOTIMEOUT=60
WWAN_PPPECHOCOUNT=3
WWAN_PHONENO='*99#'
FAILOVER_ENABLED=0
WAN_PRIORITY=0
WAN_IDLE_TIMEOUT_DETECT_ENABLED=0
WAN_IDLE_TIMEOUT=0
WAN_PING_TARGET_ENABLED=0
WAN_PING_TARGET='0.0.0.0'
FAILOVER_MAIL_ENABLED=0
FAILOVER_MAIL_FROM=''
FAILOVER_MAIL_TO=''
FAILOVER_MAIL_SMTP=''
STADRV_SSID=''
STADRV_CHANNEL=0
STADRV_BAND=0
STADRV_ENCRYPT_TYPE=0
STADRV_WEP_LENGTH=0
STADRV_WEP_FORMAT1=0
STADRV_WEP_FORMAT2=0
STADRV_WEP_FORMAT3=0
STADRV_WEP_FORMAT4=0
STADRV_WEP_DEFAULT_KEY=0
STADRV_WPA_CIPHER=0
STADRV_PSK_FORMAT=0
STADRV_WEPKEY1=''
STADRV_WEPKEY2=''
STADRV_WEPKEY3=''
STADRV_WEPKEY4=''
STADRV_PSKKEY=''
STADRV_CLONEMAC=000000000000

(Last edited by epek on 23 Jun 2012, 14:59)

The problem is I don't know if MAC address from the sticker is from LAN, WAN or WLAN.

NIC0 and WLAN are identical to that number. NIC1 is hex(NIC+1).

Well, I'm not so sure about this. Cause as you can see on the original boot log from this device, there are at least two different MAC addresses.

eth2.1: Setting MAC address to 00 1f 1f 6d 80 xx. 
eth2.2: Setting MAC address to 00 0f ea c4 35 xx.

(Last edited by lgolebio on 25 Jun 2012, 16:07)

Hello there,
do you still need the output of "flash all"?
If yes, I can get it this weekend.


I've another question:
Is OpenWRT working fine on 6200n?
Does the repeater function work too?

@gorko122, yes I still need that info.

I've another question:
Is OpenWRT working fine on 6200n?
Does the repeater function work too?

There is some regression in trunk, ap-client (sta) doesn't work, so I presume, repeater also will not work at all. I know that ap-client (sta) worked couple weeks ago, so probably we have to wait unitl someone fix that issue.

(Last edited by lgolebio on 27 Jun 2012, 08:04)

In the output I submitted, the "aaaaa" represents a number that is identical on both addresses.

@epek, yes you are right WLAN and LAN uses the same mac, somebody sent me the original flash variables. I'm submitting patches today...

If anyone is interested with uploading openwrt firmware, I put this on my dropbox account.

Instructions to install openwrt.
1. Go to router_ip/syscmd.asp ( http://192.168.2.1/syscmd.asp)
2. In system command box paste "/usr/sbin/telnetd -l /bin/ash " (without quotes) and click apply.
3. Telnet your router, telnet 192.168.2.1
4. Go to /tmp, and

wget http://dl.dropbox.com/u/7157357/My-files/mtd
wget http://dl.dropbox.com/u/7157357/My-files/openwrt-ramips-rt305x-3g-6200n-squashfs-sysupgrade.bin

5.

chmod +x mtd

6.

./mtd -r write openwrt-ramips-rt305x-3g-6200n-squashfs-sysupgrade.bin Kernel:RootFS

7. Wait 2 minutes.
8. You can now telnet your router under 192.168.1.1.

Patches to trunk are available here.
http://dl.dropbox.com/u/7157357/My-file … nges.patch

(Last edited by lgolebio on 28 Jun 2012, 11:02)

Have you submitted this via svn?

Thank you!

BTW: Could you give me some hints how to port OpenWRT? I have a WRT160N v2 on the shelf and I would like to port opwnwrt to it. The manufacturer published the source with a linux 2.4 kernel and there where issues with the realtek switch, which I believe have been fixed for other devices. How did you start your port?

Hi ,

Do you still need the output of flash all ?

(Last edited by gunker on 8 Jul 2012, 14:07)

Hi lgolebio, is the port really working properly in the device? Is the 3g functionality working?

Well 3G functionality is not up to "port". It is up to 3g port in trunk smile.

So the answer is yes, USB works good, so all packages that use USB, work just fine.

lgolebio wrote:

Well 3G functionality is not up to "port". It is up to 3g port in trunk smile.

So the answer is yes, USB works good, so all packages that use USB, work just fine.

So does this mean that it would require us to install/configure the packages required for the 3g functionality instead of it being built-in to the router?

Exactly. Just select what you want in menuconfig and that's it. Then read the opewnrt wiki, how to get 3g connection.

(Last edited by lgolebio on 21 Aug 2012, 09:08)

lgolebio wrote:

Exactly. Just select what you want in menuconfig and that's it. Then read the opewnrt wiki, how to get 3g connection.

Thanks for the quick reply lgolebio. That sums it up for me. I will try tinkering with this router whenever it will be returned to me..

Perfect smile

[s]Please set in LuCI->Network->Interfaces->Wan->Advanced Settings->"Modem init timeout" to 60 Seconds or higher to avoid conflicting with usb-modeswitching.[/s]

->Standard Configuration (20s) works.

Please report any Issues or Bugs, i will update the Image regulary!

Cheers,
Guenther

(Last edited by guenti on 29 Aug 2012, 12:28)

upgraded to r33311

(Last edited by guenti on 30 Aug 2012, 07:27)

guenti wrote:

@C007dudz:

I have successfully compiled a fully working Image from Trunk.
Works perfectly with 3G-Modems.

Here the Image (3G-Support + Luci):
http://dl.dropbox.com/u/87161358/edimax … pgrade.bin


Here the .config:
http://dl.dropbox.com/u/87161358/edimax … um/.config


Screenshot:
http://dl.dropbox.com/u/87161358/edimax … n_main.jpg

Guenti,
I have a question regarding networking, currently I'm using a dd-wrt on my 1043ND. Additionally I have RB433 which serves as a dhcp and gateway, so my 1043ND works in a router mode (instead of gateway), my question is does the openwrt luci has this functionality? and if where can I find it?

Recently I installed fw for 3g-6200n made by you, it works fine and I would like to swap from dd-wrt to luci on my 1043ND, which I found more promising and with future support.

with regards,

Stoned.

(Last edited by stoned on 10 Sep 2012, 21:18)

Sorry, posts 26 to 25 are missing from our archive.