Posted: Wed Jun 21, 2006 8:56 Post subject: Re: checksum algorithm documented...
db90h wrote:
... If anything happens and I'm not able to complete this task, I hope someone can pick up where I left off since I've done much of the grub work.
Jeremy
Yeah man, watch out, they are out there looking for you! All your routers are belong to the them!!! ...and they are not going to like this...
Posted: Wed Jun 21, 2006 10:01 Post subject: Re: checksum algorithm documented...
ro-maniak wrote:
db90h wrote:
... If anything happens and I'm not able to complete this task, I hope someone can pick up where I left off since I've done much of the grub work.
Jeremy
Yeah man, watch out, they are out there looking for you! All your routers are belong to the them!!! ...and they are not going to like this...
LOL. Seriously, unrelated to this, someone has tracked me down for reasons unknown. That's why I fear something will happen... as crazy as this sounds. It's a very whack story.
Anyway, yea, I about had a heart attack when my test code emitted the right checksum ;p. I am very happy to have this done.
Although I should probably now begin doing some 'real' work, in case something does happen to me, I might not be able to leave this project alone and go ahead and finish it up...
Assuming I make it at least a week though, I will definitely have this accomplished...barring any more big hurdles .
.....
The next step is to write a firmware image creator. It's a bit more involved than the TRX tool, but not that much work. I dunno if I'll go to the trouble of making it really nice, or just hack it out as quickly as possible.. depends on my mood. It'll probably never be used again, but who knows...
Joined: 06 Jun 2006 Posts: 7463 Location: Dresden, Germany
Posted: Wed Jun 21, 2006 12:13 Post subject: Re: checksum algorithm documented...
db90h wrote:
ro-maniak wrote:
db90h wrote:
... If anything happens and I'm not able to complete this task, I hope someone can pick up where I left off since I've done much of the grub work.
Jeremy
Yeah man, watch out, they are out there looking for you! All your routers are belong to the them!!! ...and they are not going to like this...
LOL. Seriously, unrelated to this, someone has tracked me down for reasons unknown. That's why I fear something will happen... as crazy as this sounds. It's a very whack story.
Anyway, yea, I about had a heart attack when my test code emitted the right checksum ;p. I am very happy to have this done.
Although I should probably now begin doing some 'real' work, in case something does happen to me, I might not be able to leave this project alone and go ahead and finish it up...
Assuming I make it at least a week though, I will definitely have this accomplished...barring any more big hurdles .
.....
The next step is to write a firmware image creator. It's a bit more involved than the TRX tool, but not that much work. I dunno if I'll go to the trouble of making it really nice, or just hack it out as quickly as possible.. depends on my mood. It'll probably never be used again, but who knows...
if you get the linux kernel booting i could do the rest _________________ "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
Woot. Guys. Just imagine, DDWRT being the first (and maybe only) firmware that all those poor users with a v5 can JUST flash onto their device, as if nothing was easier!!!!!!!!!
Man, will this be a stunt. And also, it opens up a world of possibilities... anything that runs on a chip that can run DDWRT is now in danger of getting flashed!!!! _________________ If you use DD-WRT, you HAVE to make a donation! See this topic too: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=228
Woot. Guys. Just imagine, DDWRT being the first (and maybe only) firmware that all those poor users with a v5 can JUST flash onto their device, as if nothing was easier!!!!!!!!!
LOL. And what about the v6 and the v7?
Its no wonder Linux/Opensource has gone nowhere. You folks will spend half your lives reinventing the f*cking wheel.
Joined: 06 Jun 2006 Posts: 7463 Location: Dresden, Germany
Posted: Wed Jun 21, 2006 17:06 Post subject:
malawi wrote:
ro-maniak wrote:
Woot. Guys. Just imagine, DDWRT being the first (and maybe only) firmware that all those poor users with a v5 can JUST flash onto their device, as if nothing was easier!!!!!!!!!
LOL. And what about the v6 and the v7?
Its no wonder Linux/Opensource has gone nowhere. You folks will spend half your lives reinventing the f*cking wheel.
v6 is no problem. its still almost identical to the v5. v7 will never be supported so far i see. _________________ "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
First, due to my excitement, I made a slight mistake in my description of the checksum algorithm. It begins at the start of the header, not at +4 (after code pattern).
I've also made some fixes to the header definition. There were some typos I found when I actually put it to use. I've updated my wiki, so, as always, the latest information will be there.
I have an early alpha version of my tool to view, extract, and build firmware images for the WRT54G v5 and v6. http://www.bitsum.com/files/wrt54gv5_img_001.zip. Currently only view and extract are supported. I might have the building part done in just a while, if I keep at it.
Keep in mind this is very early build. I probably shouldn't even be posting it since it might have bugs, and I'll probably have numerous new builds in the next while. That said, I'm not one for prudent behavior..
A binary for Win32 is included, along with C++ source code. I'll make sure it'll build under linux sooner or later.
@Brainslayer: Ok, cool.. thanks . I'll be at that point as soon as I get this firmware image builder done. Hopefully I won't have much trouble with getting vmlinux to boot, thanks to those who have come before on other VxWorks based platforms.
@Supporters: Its very rewarding to know that this will be used, thanks .
Here's a sample output of the tool (which i've named so poorly, i prefer just calling 'the tool' ;p):
Code:
wrt54gv5_imgbuild - v0.01 alpha - Jun 21 2006
by Jeremy Collake (jeremy at bitsum.com)
Tool background: http://www.bitsum.com/openwiking/owbase/ow.asp?WRT54G5FE
@Supporters: Its very rewarding to know that this will be used, thanks .
I think there are many of us watching history be made! You're adding another generation of routers to the DD-WRT family. _________________ DD-WRT<--Have you contributed to DD-WRT yet?
Posted: Wed Jun 21, 2006 19:40 Post subject: first flash of fresh built firmware ...
Sorry to keep posting updates, but I'm making progress rapidly.
I've got the firmware image build code done . The tool, now v0.02 alpha, is available at the same URL I posted earlier.
I've been able to successfully flash and boot a firmware created with this version! I excluded unused files in the firmware image, along with the trailer, and all still went great. I'm still not sure why all those unnamed, undefined files are there, nor the web UI filesystem trailer..but they are quite unused and optional.
I also updated the extraction so that it does emit the unused files as well as the 3 primary ones.
I haven't even gotten to try anything else yet (like booting a tweaked vmlinux), this is 'hot off the presses'..
wrt54gv5_imgbuild - v0.02 alpha - Jun 21 2006
by Jeremy Collake (jeremy at bitsum.com)
Tool background: http://www.bitsum.com/openwiking/owbase/ow.asp?WRT54G5FE
Building firmware image c:\linksys\my109.bin
+ Size of c:\linksys\out\igwhtm.dat is 183064 bytes.
+ Size of c:\linksys\out\langpak_en.dat is 29432 bytes.
+ Size of c:\linksys\out\vxworks.bin is 1120664 bytes.
+ Building header
+ Storing c:\linksys\out\igwhtm.dat
+ Stored with file type 3 (igwhtm.dat)
+ Storing c:\linksys\out\langpak_en.dat
+ Stored with file type 6 (langpak_en.dat)
+ Storing c:\linksys\out\vxworks.bin
+ Stored with file type 2 (vxworks.bin)
+ Checksum is AC98892F
Joined: 06 Jun 2006 Posts: 7463 Location: Dresden, Germany
Posted: Wed Jun 21, 2006 20:51 Post subject:
okay lets start to write a overtaking image. mmh could someone provide a vxworks flash dump here? my one is already flashed and i lost the backup _________________ "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