Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WAG320N . Request Support for. #44

Closed
GoogleCodeExporter opened this issue Jul 6, 2015 · 13 comments
Closed

WAG320N . Request Support for. #44

GoogleCodeExporter opened this issue Jul 6, 2015 · 13 comments

Comments

@GoogleCodeExporter
Copy link

The .bin image is lzma-something...  Tried to mount it with a loop sentence, 
but no luck so far. 
This router is quite expensive (100€) .. it would be nice if supported..

Original issue reported on code.google.com by vuk...@gmail.com on 7 Dec 2011 at 5:49

Attachments:

@GoogleCodeExporter
Copy link
Author

[root@dans34 trunk]# ./extract-ng.sh 
/home/Dans34/firmware_mod_kit/WAG320N-EU-ANNEXA-ETSI-1.00.12.bin test22
Firmware Mod Kit (build-ng) 0.73 beta, (c)2011 Craig Heffner, Jeremy Collake
http://www.bitsum.com

Scanning firmware...

DECIMAL         HEX             DESCRIPTION
--------------------------------------------------------------------------------
-----------------------
7190480         0x65747962      Squashfs filesystem, big endian, lzma 
signature, version 3.0, size: 6445866 bytes, 910 inodes, blocksize: 65536 
bytes, created: Mon Mar 22 02:52:16 2010

Extracting 65792 bytes of  header image at offset 0
Extracting squashfs file system at offset 65792
Extracting 16 byte footer from offset 8388592
Extracting squashfs files...
Firmware extraction successful!
Firmware parts can be found in 'test22/*'


it seams to already be supported

Original comment by danarn...@gmail.com on 7 Dec 2011 at 1:49

@GoogleCodeExporter
Copy link
Author

Well, extraction is supported anyway. I can't guarantee that it will re-build a 
valid firmware image - let us know if it works or not. :P

Original comment by heffne...@gmail.com on 7 Dec 2011 at 11:07

@GoogleCodeExporter
Copy link
Author

I suppose we must start listing more supported formats, or telling people to 
'try' first, then submit a ticket. Gotta love these new binwalk based scripts 
of Craig's, work on so many unknown formats.

Original comment by jeremy.collake@gmail.com on 8 Dec 2011 at 1:42

@GoogleCodeExporter
Copy link
Author

Of course, there is a bit more risk since it means more untested devices might 
have their firmwares seemingly correctly extracted and built, but could be 
bricked on flash.

Original comment by jeremy.collake@gmail.com on 8 Dec 2011 at 5:31

@GoogleCodeExporter
Copy link
Author

What about a page with a table of firmware that has been used with fmk , 
something like http://betaftp.co.uk/ , would then be easy to search , maybe on 
the wiki here ?

Original comment by danarn...@gmail.com on 8 Dec 2011 at 12:34

@GoogleCodeExporter
Copy link
Author

Yes, bricking is possible, but in *most* cases if the firmware isn't built 
properly the header/footer checksums won't match and the devices *should* 
reject the firmware. Not always the case though, so still be cautious.

A list of supported and tested firmware would probably be a good idea, but to 
be honest I wouldn't hold my breath. Testing takes a bit of time (and money to 
get the routers), and Jeremy and I are usually pretty busy with everything else 
we have going on. Maybe a wiki/submission page where users can report 
successes/failures would be a good idea.

Original comment by heffne...@gmail.com on 8 Dec 2011 at 1:18

@GoogleCodeExporter
Copy link
Author

I'll get my Gentoo Machine next week ... Debricking is perfectly feasible by 
software (kudos to Mr. Eko :) ) and Linksys WAG320N source tar does include 
image builder (whilst source code is another story) .. I will report feedback 
next week .. thank you so much ;)

Original comment by vuk...@gmail.com on 8 Dec 2011 at 2:32

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

yep... header is not supported..
'http://www.filehosting.org/file/details/285071/WAG320N_v1.00.12-A_GPL.tar.gz, 
wag320n source code is crap.. Ages ago I had managed to compile an image.. Now, 
kernel doesn't even compile... 
So I am trying to rebuild image using  the Linksys image builder, which need 
rootfs (I have it) and the kernel_fs (I don't know where to find It)

Original comment by vuk...@gmail.com on 5 Feb 2012 at 3:55

Attachments:

@GoogleCodeExporter
Copy link
Author

rootfs.img is 8M ... that's impossible, because 8M is the size of flash... I am 
trying vmlinuz extracted by old extract tool .. wish me luck..
this is standard build command :

/root/WAG320N_v1.00.12-A_GPL/bcm963xx_4.02L.01/hostTools/bcmImageBuilder 
--output /root/WAG320N_v1.00.12-A_GPL/image/bcm963xx_fs_kernel --chip 6358 
--board "96358GWVG" --blocksize 64 --cfefile 
/root/WAG320N_v1.00.12-A_GPL/image/cfe6358.bin --rootfsfile 
/root/WAG320N_v1.00.12-A_GPL/image/fsa.bin --kernelfile  
/root/WAG320N_v1.00.12-A_GPL/kernel/vmlinux.lz.a
bcmImageBuilder
    File tag size                 : 256
    Root filesystem image size    : 6438912
    Kernel image size             : 920932
    Combined image file size      : 7360100

cd /root/WAG320N_v1.00.12-A_GPL/image && cp -f wag320n.pid.a wag320n.pid && 
./bb && mv wag320n.bin wag320n_A_1.00.12.bin
CheckSum...
Protect Area CheckSum OK: 0x00
CheckSum OK: 0x00
-------------------------------
checksum = 0C 1E FD 7C 43 12 76 45 84 21 CF BC 97 77 C9 34 

Original comment by vuk...@gmail.com on 7 Feb 2012 at 1:05

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

OK.. So.. my initial need is fulfilled... the extracted fs (rootfs folder) can 
be used to rebuild a working image (using Linksys source code) by just being 
compressed and named as target.tgz .
Case closed :) .. Thanks a lot..
PD: I mean, router is still unsopported.. but at least fs can be extracted :D

Original comment by vuk...@gmail.com on 7 Feb 2012 at 4:17

@GoogleCodeExporter
Copy link
Author

Original comment by jeremy.collake@gmail.com on 11 Jun 2013 at 8:14

  • Changed state: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant