macsat.com OpenWrt and ASUS WL Forum
January 08, 2009, 18:19:58 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: Need help on installing  (Read 7166 times)
0 Members and 1 Guest are viewing this topic.
aladinsane
Newbie
*
Offline Offline

Posts: 7


View Profile
« on: June 25, 2007, 20:22:08 PM »

Hi,

I hope it's okay to ask a newbie question here. I have been trying to upgrade my SMCWAPS-G, but so far without any success, and I'm running low on ideas.

As far as I can understand, I have to "unlock" device via a modified r400b7-image in order to install the MGB-100 image. The firmware of the unit is currently r400b5, but I can't seem to be able to flash it with anything besides the original SMC firmware.

I have aqcuired the r400b7 image from conceptronix. Flashing this image without editing I get the error that the image is "unallowable". Then I've tried to copy the first part of the r400b5 image to the r400b7 (to the part where the binary read "...[NONE]" in both images - but I get the same error, that the image is an unallowable file.

Could someone please tell me what I'm doing wrong.  Huh



Logged
sanecyclist
Newbie
*
Offline Offline

Posts: 45


View Profile
« Reply #1 on: June 25, 2007, 23:40:14 PM »

Use this unlocked version:

http://www.penn8688.freeserve.co.uk/temp/CHD2WLANU_R400b7unlock.BIN
Logged
aladinsane
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #2 on: June 26, 2007, 19:46:44 PM »

Absolutly excellent Smiley

Thank you very much. After having flashed the device with a bad firmware (guess I overdid the header swap), I succesfully managed to run the recovery process with a original firmware and flash with the modified one. And afterwards with the upgrade.img (v3) and everything works like a charm ;-)

Thanks again, and now onto toying with the UsbFS and BusyBox...
Logged
sanecyclist
Newbie
*
Offline Offline

Posts: 45


View Profile
« Reply #3 on: June 27, 2007, 07:02:10 AM »

You're welcome.

Btw, there's an even better upgrade.img V4 as well.
Logged
aladinsane
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #4 on: June 27, 2007, 14:32:51 PM »

Once again, thanks for all the help so far  Cheesy... but I've run into another problem (or at least a puzzlement)  Sad.

I reflashed with the recommended v4-image and it went smooth. After playing around a bit felt a need for some more functionality so I decided try my luck with the OpenWrt Kamikaze for x86 by MacSat. No problems installing it but I'm stuck at the login-procedure. Obviously the password is "aaaa" as described in the download section, but what is the login? I've tried "root", "admin", "nobody" and more or less everything I can remember of built-in *nix accounts.

Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #5 on: June 27, 2007, 14:39:45 PM »


The OpenWrt is not by me, but by Pagano :-)

The user = root and pass = aaaaa

Logged
aladinsane
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #6 on: June 28, 2007, 12:32:07 PM »

Whoops, that's what you get for reading to fast  - the details slip Roll Eyes

Everything works just fine now, however I have yet another question, that I'm hoping someone will be kind enough to help me with.

I can set the box up as a wireless access point (both secure and non-secure) using the /etc/RT2500AP.dat, but I can't seem to figure out how to disable the access point and just get it to connect as a client to my existing WiFi-network  Huh ?


Logged
bytespider
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #7 on: June 29, 2007, 08:03:34 AM »

aladinsane, can you not do this through the web interface? As far as I believe the modified firmwares keep the original functions of the device.
Logged
aladinsane
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #8 on: June 29, 2007, 16:20:30 PM »

Quite true. Without the OpenWrt Kamikaze Package the original firmware webinterface is intact and I have no problem setting up the device as client, however with the OpenWrt package loaded the operating system of the firmware is overruled by a "real" linux distribution and the original webinterface replaced by "webif" (which is more or less ignored by the new operating system)

It's been a while since I've set up network in linux manual. As far as I can see the /etc/init.d/rcS brings up the eth0 and wl0 interfaces and bridges them with the ipaddress 192.168.2.1 while dnsmasq distributes ipadresses from this on both eth0 and wl0. Before this the RT2500 module is loaded and a rt2500apd daemon is started which creates an access point from settings within the RT2500AP.dat file. I guess I could disable the distribution of ipadresses on the eth0 device and thus replace my router with the SMCWAPS - but I would rather just turn the access point feature off and use the device as a wireless client on my exsisting network. However I simple can't figure out what to do in order to change the wireless mode from AP to client...

Maybe my question is posted in a wrong place, but all the forums I've searched related to OpenWrt Kamikaze refers to the "webif" which isn't active and/or to a method using "nvram set wl0_mode=sta", but nvram isn't available either...

I'm sorry if I'm being a nuisance with all my question, but I'm having a hard time finding documentation anywhere else on this matter (...and besides I think you guys are cool keeping a site/forum like this with alternative firmware going ;-) )
Logged
pagano
Jr. Member
**
Offline Offline

Posts: 61


View Profile
« Reply #9 on: June 29, 2007, 17:40:17 PM »

RT2500 uses a module for Access Point and another one for client.
There is a configuration file in /etc/RT2500ap.dat. This file is copied to /tmp at init with the file  /etc/init.d/rcS before load AP module. You need change rcS file to load Client module and copy this file instead AP one.
---- ----
# In OpenWRT version modify and copy this file to /etc/RT2500.dat
# This file will be read on loading rt2500sta.o module from /tmp/ dir.
# Use "vi -b RT2500STA.dat" to modify settings according to your need.
#
# 1.) set NetworkType to "Adhoc" for using Adhoc-mode, otherwise using as
# Infrastructure-mode.
# 2.) set Channel to "0" for auto-select on Infrastructure mode.
# 3.) set SSID for connecting to your Accss-point.
# 4.) AuthMode can be "OPEN", "SHARED", "AUTO", "WPAPSK", "WPANONE".
# 5.) EncrypType can be "NONE", "WEP", "TKIP", "AES".
#
# When editing the file, make sure the filesize does not exceed 1024 Bytes (1kb).
# Anything stored beyond the 1024 bte limit will be ignored by the driver.
#
[Default]
CountryRegion=0
WirelessMode=0
SSID=AP350
NetworkType=Infra
Channel=0
AuthMode=OPEN
EncrypType=NONE
DefaultKeyID=1
Key1=0123456789
Key2=
Key3=
Key4=
WPANONE=abcdefghijklmnopqrstuvwxyz
WPAPSK=abcdefghijklmnopqrstuvwxyz
TXBurst=0
TurboRate=0
BGProtection=0
ShortSlot=0
TxPreamble=2
TxRate=0
RTSThreshold=2312
FragThreshold=2312
PSMode=CAM
-----------------------------------------------
syntax is 'Param'='Value' and described below.

1.  CountryRegion=value
    value
        0:      for use channel 1-11
        1:      for use channel 1-11
        2:      for use channel 1-13
        3:      for use channel 10-11
        4:      for use channel 10-13
        5:      for use channel 14
        6:      for use channel 1-14
        7:      for use channel 3-9
2.  WirelessMode=value
    value
        0:      802.11 B/G mixed
        1:      802.11 B only
3.  SSID=value
    value
         1~32 ascii characters.
4.  NetworkType=Infra
    value
       Infra : infrastructure mode
       Adhoc : adhoc mode
5.  Channel=value
    value
        1~14 depends on  CountryRegion
6.  AuthMode=value
    value
        OPEN      For Open System
        SHARED    For Shared key system
        AUTO
        WPAPSK   
7.  EncrypType=value
    value
        NONE      :For AuthMode=OPEN
        WEP       :For AuthMode=OPEN or AuthMode=SHARED
        TKIP      :For AuthMode=WPAPSK
        AES       :For AuthMode=WPAPSK
8.  DefaultKeyID=value
    value
        1 ~ 4
9.  Key1=value
    value
        10 or 26 hexadecimal characters eg: 012345678
        5 or 13 ascii characters eg: passd
10. Key2=value
    value
        10 or 26 hexadecimal characters eg: 012345678
        5 or 13 ascii characters eg: passd
11. Key3=value
    value
        10 or 26 hexadecimal characters eg: 012345678
        5 or 13 ascii characters eg: passd
12. Key4=value
    value
        10 or 26 hexadecimal characters eg: 012345678
        5 or 13 ascii characters eg: passd
13. WPANONE=value - use for adhoc mode
    value
        8 ~ 63 characters
          or
        64 hexadecimal characters
13. WPAPSK=value - use for infrastructure mode
    value
        8 ~ 63 characters
          or
        64 hexadecimal characters
14. TxBurst=value
    value
        0:        Disable
        1:        Enable
15. TurboRate=value
    value
        0:        Disable
        1:        Enable
16. BGProtection=value
   value
        0:        Auto
        1:        Always On
        2:        Always Off
17. ShortSlot=value
    value
        0:        Disable
        1:        Enable
18. TxPreamble=value
    value
         0:     Long
         1:     Short
         2:     Auto
19. TxRate=value
    value
         0:     Auto
         1:     1 Mbps
         2:     2 Mbps
         3:     5.5 Mbps
         4:     11 Mbps
         5:     6  Mbps  //WirelessMode must be 0
         6:     9  Mbps  //WirelessMode must be 0
         7:     12 Mbps  //WirelessMode must be 0
         8:     18 Mbps  //WirelessMode must be 0
         9:     24 Mbps  //WirelessMode must be 0
        10:     36 Mbps  //WirelessMode must be 0
        11:     48 Mbps  //WirelessMode must be 0
        12:     54 Mbps  //WirelessMode must be 0
20. RTSThreshold=value
    value
        1 ~ 2312
21. FragThreshold=value
    value
        256 ~ 2312
22. PSMode=value
    value
    MAX_PSP   Power Saving Mode

23. AdhocOfdm=value
    value
    0:      Tx MAX rate will be 11Mbps in Adhoc mode.
    1:      Tx MAX rate will be 54Mbps in Adhoc mode.

24. StaWithEtherBridge=value
    value
    0:      Disable sta with ethernet to wireless bridge.
    1:      Enable sta with ethernet to wireless bridge.
Logged
pagano
Jr. Member
**
Offline Offline

Posts: 61


View Profile
« Reply #10 on: June 29, 2007, 18:15:53 PM »

Parameters for ACCESS POINT in the file RT2500AP.dat
(not for aladinsane client configuration)
=======================================================================
1. CountryRegion=value
   value
        0:      channel 1-11
        1:      channel 1-11
        2:      channel 1-13
        3:      channel 10-11
        4:      channel 10-13
        5:      channel 14
        6:      channel 1-14
        7:      channel 3-9
2. WirelessMode=value
   value
        0:      802.11 B/G mixed
        1:      802.11 B only
        2:      802.11 G only
3. SSID=value
   value
         1~32 ascii characters.
4. AutoChannelSelect=value
    value
        0:        Disable
        1:        Enable
5. Channel=value
   value
        1~14 depends on  CountryRegion
6. AuthMode=value
    value
        OPEN
        SHARED
        WPAPSK
    **NOTE : WPAPSK only supports TKIP and AES as encryption method.
             SHARED only supports Wep as encryption method.
7. EncrypType=value
    value
        NONE      :For AuthMode=OPEN or AuthMode=SHARED
        WEP       :For AuthMode=OPEN or AuthMode=SHARED
        TKIP      :For AuthMode=WPAPSK
        AES       :For AuthMode=WPAPSK
8. DefaultKeyID=value
    value
        1 ~ 4
9. Key1Type=value
    value
        0:        Hexadecimal
        1:        Ascii
10. Key1Str=value
    value
        10 or 26 hexadecimal characters eg: 012345678
        5 or 13 ascii characters eg: passd
11. Key2Type=value
    value
        0:        Hexadecimal
        1:        Ascii
12. Key2Str=value
    value
        10 or 26 hexadecimal characters eg: 012345678
        5 or 13 ascii characters eg: passd
13. Key3Type=value
    value
        0:        Hexadecimal
        1:        Ascii
14. Key3Str=value
    value
        10 or 26 hexadecimal characters eg: 012345678
        5 or 13 ascii characters eg: passd
15. Key4Type=value
    value
        0:        Hexadecimal
        1:        Ascii
16. Key4Str=value
    value
        10 or 26 hexadecimal characters eg: 012345678
        5 or 13 ascii characters eg: passd
17. WPAPSK=value
    value
        32 ascii characters
             or
        64 hexadecimal characters
18. TxRate=value
    value
         0:     Auto
         1:     1 Mbps
         2:     2 Mbps
         3:     5.5 Mbps
         4:     11 Mbps
         5:     6  Mbps  //WirelessMode must be 0
         6:     9  Mbps  //WirelessMode must be 0
         7:     12 Mbps  //WirelessMode must be 0
         8:     18 Mbps  //WirelessMode must be 0
         9:     24 Mbps  //WirelessMode must be 0
        10:     36 Mbps  //WirelessMode must be 0
        11:     48 Mbps  //WirelessMode must be 0
        12:     54 Mbps  //WirelessMode must be 0
19. BeaconPeriod=value
    value
        50 ~ 1024
20. BGProtection=value
    value
        0:        Auto
        1:        Always On
        2:        Always Off
21. TxPreamble=value
    value
        0:        PreambleLong
        1:        Rt802_11PreambleShort
22. RTSThreshold=value
    value
        1 ~ 2347
23. FragThreshold=value
    value
        256 ~ 2346
24. TxBurst=value
    value
        0:        Disable
        1:        Enable
25. TurboRate=value
    value
        0:        Disable
        1:        Enable
26. NoForwarding=value
    value
        0:        Disable
        1:        Enable
27. HideSSID=value
    value
        0:        Disable
        1:        Enable
28. ShortSlot=value
    value
        0:        Disable
        1:        Enable
29. AccessPolicy=value
    value
        0:        Disable
        1:        Allow all
        2:        Reject all
30. AccessControlList=value
    value
        [Mac Address];[Mac Address];...
        eg:
            00:10:20:30:40:50;0A:0b:0c:0D:0e:0f;1a:2b:3c:4d:5e:6f
31. WdsEnable=value
    value
        0:        Disable
        1:        Enable
32. WdsList=value
    value
        [Mac Address];[Mac Address];...
        eg:
            00:10:20:30:40:50;0A:0b:0c:0D:0e:0f;1a:2b:3c:4d:5e:6f
33. RADIUS_Server=xxx.xxx.xx.xx

34. RADIUS_Port=1812
    This is port number for IAS service in Authentication Server(AS). Default is 1812.
   
35. RADIUS_Key=value
    value
    string, suggested longer than 8 ascii characters. This is Radius Secret shared with
    Authenticator and AS.
   
36. own_ip_addr=xxx.xxx.xx.xx
    this is the ip address of our SoftAP.
   
note: xxx.xxx.xx.xx is an IP address
Logged
aladinsane
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #11 on: June 30, 2007, 13:07:59 PM »

Thanks a lot Pagano. I realised the bit about the the RT2500STA client module shortly after my last post here. Now I've just managed to lock myself out by setting a wrong ipadress in the /etc/rcC file (192.168.20.20 for the br0 and 192.168.20.254 as the default gateway) which results in the sad event that I can't log in through ssh ...  Sad

Well, I guess that can be solved by deleting the autobootfs and replace it with a new one. That would reset the entire OpenWrt installation wouldn't it?

And once again, thanks again for all your help guys
Logged
bytespider
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #12 on: July 05, 2007, 13:53:19 PM »

I've just upgraded to v4 and its not seeing the autobootfs on my internal harddrive.

telnetting in shows that the init file called isnt init.altboot (which is the new one that checks for autobootfs).

Shouldn't init contain the contents of init.altboot?

Cheers guys

ps. dont you hate it when you cant explain the problem even though you can visulise it in your head?
Logged
Dyrg
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #13 on: July 06, 2007, 10:30:25 AM »

Hi,
I think I have the same problem using v4 too.

If  I run init.altboot, it found my autobootfs placed on my harddrive. But this is not done for this and produces lots of problems.

I notice autobootfs isn't use nor on my USB key.

Each one are with FAT32 filesystem. is it the problem?

Dyrg
Thanks
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #14 on: July 06, 2007, 12:27:49 PM »


Yes! This is the problem.

The v4 seem only to have ext2/3 support (or at least for some reason only works if the autobootfs is placed on a ext2/3 partition)
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.21 seconds with 25 queries.