Flashed my WG302 and now it seems bricked

Post new topic   Reply to topic    DD-WRT Forum Index -> ARM or PPC based Hardware
Goto page 1, 2, 3  Next
Author Message
RevT
DD-WRT Novice


Joined: 13 Feb 2009
Posts: 2

PostPosted: Fri Feb 13, 2009 22:36    Post subject: Flashed my WG302 and now it seems bricked Reply with quote
Hi Everyone, I have a WG302V1 and I used the wg302.rmt file via TFTP to flash my unit and after the reboot it just seems to spit out garbage via console then immediately reboot.
It does try to TFTP to the 0.36 address and look for a config.bin file so it seems like this could be recoverable. I've tried renaming the .rmt and .bin files to config.bin to see if those would do the trick but no joy there. I've read through the wikis and searched the site and didn't find anything.
I do see that flashing a WAP is on my own luck but it seems like if you guys got it running on your V1, I should be able to to as well. As long as this thing asks for a flash image I think we're still in business, it is just a matter of making it take a bin file, install it and configure it to work.
Anyway, any advice is certainly appreciated.
thanks in advance!

NOTE: I did use the WG302v1 v24 preSP2 - build 11522 file as per the current instructions.
Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Sun Feb 15, 2009 12:48    Post subject: Reply with quote
ddwrt console is 115k
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7463
Location: Dresden, Germany

PostPosted: Sun Feb 15, 2009 12:54    Post subject: Reply with quote
it was not me who got it running. one of our users helped me and tested it. but he had problems with the rmt file. so he did manually install it with redboot, since the tftp recovery did not work at all.
so he used the linux.bin file to install it manually with redboot. the procedure is simply the same as for gateworks and other xscale based boards with redboot only installations

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
RevT
DD-WRT Novice


Joined: 13 Feb 2009
Posts: 2

PostPosted: Mon Feb 16, 2009 15:25    Post subject: Reply with quote
Gotcha guys, thanks. I'll give the console install a go this evening.

regards,
dianc
DD-WRT Novice


Joined: 25 Feb 2009
Posts: 11

PostPosted: Wed Feb 25, 2009 5:21    Post subject: i have get a running dd-wrt on wg302 v2 Reply with quote
yesterday i read this topic,and i tryed today,it's run.

my pc ip addesss:192.168.0.250
pc run Tftpd32 : linux.bin in the current directory
connect wg302 v2 with console: 9600-8-N-1-N

reboot wg302 v2
enter the RedBoot console by pressing CTRL+C

this is the command in the console.
--------------
fis init -f

ip_address -l 192.168.0.228/24 -h 192.168.0.250

load -r -b %{FREEMEMLO} linux.bin

fis create linux

fconfig

fis load linux
exec -c "console=ttyS0,9600 root=/dev/mtdblock2"

reset
-------------


Last edited by dianc on Thu Feb 26, 2009 7:40; edited 1 time in total
dianc
DD-WRT Novice


Joined: 25 Feb 2009
Posts: 11

PostPosted: Wed Feb 25, 2009 5:30    Post subject: Reply with quote
here is the login pic.
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Thu Feb 26, 2009 8:59    Post subject: Re: i have get a running dd-wrt on wg302 v2 Reply with quote
dianc wrote:
yesterday i read this topic,and i tryed today,it's run.

my pc ip addesss:192.168.0.250
pc run Tftpd32 : linux.bin in the current directory
connect wg302 v2 with console: 9600-8-N-1-N

reboot wg302 v2
enter the RedBoot console by pressing CTRL+C

this is the command in the console.
--------------
fis init -f

ip_address -l 192.168.0.228/24 -h 192.168.0.250

load -r -b %{FREEMEMLO} linux.bin

fis create linux

fconfig

fis load linux
exec -c "console=ttyS0,9600 root=/dev/mtdblock2"

reset
-------------


for standadrd install its
Code:
fis load linux
exec

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
dianc
DD-WRT Novice


Joined: 25 Feb 2009
Posts: 11

PostPosted: Thu Feb 26, 2009 13:41    Post subject: Re: i have get a running dd-wrt on wg302 v2 Reply with quote
Sash wrote:
dianc wrote:
yesterday i read this topic,and i tryed today,it's run.

my pc ip addesss:192.168.0.250
pc run Tftpd32 : linux.bin in the current directory
connect wg302 v2 with console: 9600-8-N-1-N

reboot wg302 v2
enter the RedBoot console by pressing CTRL+C

this is the command in the console.
--------------
fis init -f

ip_address -l 192.168.0.228/24 -h 192.168.0.250

load -r -b %{FREEMEMLO} linux.bin

fis create linux

fconfig

fis load linux
exec -c "console=ttyS0,9600 root=/dev/mtdblock2"

reset
-------------


for standadrd install its
Code:
fis load linux
exec


I tried your recommendation of "exec" command, but the machine to start the implementation of the 'exec', my console appeared garbled. So I switch to 'exec -c "console=ttyS0,9600 root=/dev/mtdblock2"'
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Thu Feb 26, 2009 14:14    Post subject: Reply with quote
ddwrt standard output is 115k on console
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
Jer0me24
DD-WRT Novice


Joined: 27 Feb 2009
Posts: 6

PostPosted: Fri Feb 27, 2009 11:24    Post subject: Reply with quote
I also own a WG302v2, but unfortunately i don't have a Serial (RS232) wire, so I can't use the console.

I noticed there is also the "wg302v2-webflash-firmware.bin" available. Is it working ? If I flash my router from the web interface with this file, is there any risk of brick ?


Thanks in advance for your replies ! Very Happy
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Fri Feb 27, 2009 12:21    Post subject: Reply with quote
this file is for upgrade when ddwrt is already installed
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
pic.micro23
DD-WRT Novice


Joined: 03 Mar 2009
Posts: 1

PostPosted: Tue Mar 03, 2009 5:01    Post subject: Re: i have get a running dd-wrt on wg302 v2 Reply with quote
dianc wrote:

load -r -b %{FREEMEMLO} linux.bin


Hello - When I type this I got the following error from the Redboot

RedBoot> load -r -b %{FREEMEMLO} linux.bin
Ambiguous command 'load', choices are: loadBootcode load
** Error: Illegal command: "load"


RedBoot> version

RedBoot(tm) bootstrap and debug environment [ROM]
Red Hat certified release, version 1.92 - built 19:29:19, Dec 29 2003

Platform: IXDP425 Development Platform (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x10000000, 0x0001f950-0x0ffd1000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.

Bootcode Version 1.6 2003/12/29
RedBoot>

Any info is appreciate it.
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7463
Location: Dresden, Germany

PostPosted: Tue Mar 03, 2009 9:27    Post subject: Reply with quote
consider that dd-wrt uses 115200 baudrate. this is why you saw garbage. but do not use any parameter for exec since the parameters for /dev/mtdblock2 is not enough. rootfstype=squashfs noinitrd is important too

the default dd-wrt commandline which is used without parameters is
"console=ttyS0,115200 panic=10 root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd"

i dont know why your redboot wont support "load". the only one i know who tested this device (and he surelly knows also the installation instructions) is Eko here in this forum

_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Shaz
DD-WRT Novice


Joined: 02 May 2009
Posts: 5

PostPosted: Sat May 02, 2009 3:52    Post subject: Reply with quote
Just got my hands on one of these AP's. Found some stuff that might help others. To answer pic.micro23 you need to find the start of your free memory address. When you CTRL-C into the console look for
Code:

RAM: 0x00000000-0x10000000, 0x0001f9b8-0x0ffd1000 available


Whatever is in the spot '0x0001f9b8' you need to use as your starting memory address. That was mine.

Now my setup in using this firmware - I have a WG302v1.

Before continuing be sure to reset your AP to default settings

The Setup:

First you will need a Null modem cable to connect to the console. DB9 Female on both ends. Google it.

Connect a Ethernet cable to the ap from your computer and set your IP address as 192.168.0.36

Download the latest version of v24 pre sp2 from brainslayers directory. Here

Install a TFTP client and place linux.bin in its default download directory. Download

Start up hyper terminal and set it to default settings. Connect to the ap with the null modem cable and start listening.

Unplug the ap and plug back. Once plugged back in hit ctrl+c until you get the redboot console.

Make sure your tftp server is started before proceeding.

In the terminal:

1. fis init -f
1a. Answer 'y'

NOTE: 0x01600000 is what I found netgear to be using when installing there own firmware.

2. load -b 0x01600000 -m tftp -h 192.168.0.36 -r linux.bin
3. fis create linux
4. fconfig
4a.When prompted to type a script for bootup type:

fis load -b 0x01600000 linux <press enter>
exec 0x0160004c <press enter, then enter again to finish>

4b. press enter to the rest of the options
5. reset

Disconnect from hyper terminal and setup a new session with a 115 baud rate so the text is readable.

Now you should see it started a wifi connection. Connect to it. Go to 192.168.1.1. What a trial? All things don't come free.

So we made it. From standard crappy netgear firmware to all out pro dd-wrt firmware. You can now upgrade with the web based firmware you probably saw earlier.

Back to the original:

I haven't tried going back to the original firmware but I found this over at dslreports by lemonadesoda:
Quote:

1./ Download WinAgents TFTP Server (demo for 30 days)
2./ Download netgear firmware and save to, e.g. c:\netgear\wg302.rmt
3./ Edit settings in WinAgents so the default virtual directory is now c:\netgear\. Important note, do not set up a second virtual directory
4./ Set PC to 192.168.0.36
5./ Run WinAgents TFTP Server with "local" default settings
6./ Connect ethernet cable
7./ Power off the netgear. Hold down the reset button. Power on the netgear. Wait 5-10 secs before releasing the rest button
8./ Patiently wait about 2 minutes. Watch the "Transfers" console in WinAgents. You should get a log of the downloading process after 1 minute or so.
9./ The device will reboot itself and you will be back online at 192.168.0.228
10./ Phew. Get a drink.


I would recommend setting up hyper terminal so you can see what is happening when reverting back.

Bugs/Problems:
-I have noticed that the WAN port won't get a DHCP address. So a workaround is to just setup a Static Address.

-When wireless channel is set to auto the security set will not be recognized right by clients trying to connect. Be sure to choose a specific channel.


References:
http://oldwiki.openwrt.org/OpenWrtDocs(2f)Hardware(2f)Netgear(2f)WG302.html

http://www.dslreports.com/forum/r18607101-

Thanks to dianc for most of this info and of course BrainSlayer :p

Edit: Update 2/5/09
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7463
Location: Dresden, Germany

PostPosted: Sun May 03, 2009 15:08    Post subject: Reply with quote
i will take care about the auto channel selection problem.
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Goto page 1, 2, 3  Next Display posts from previous:    Page 1 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> ARM or PPC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum