NEW: Firmware Modification Kit (beta testing)

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5 ... 12, 13, 14  Next
Author Message
solarflare
DD-WRT Novice


Joined: 26 Jun 2006
Posts: 14
Location: Helsinki, Finland

PostPosted: Thu Aug 10, 2006 8:20    Post subject: Example: creating a HSFX image from shell Reply with quote
db90h wrote:
Recent revision history:

0.23 beta

Wow! Do you sleep at all? :)

Here's an example how to manage a case sensitive minifilesystem inside shell on Mac OS X.

First we create the case sensitive filesystem image and mount it:

Code:
$ hdiutil create -size 10m -fs HFSX -volname db90h -nouuid test-image
.....................................................................
created: /Users/solarflare/test-image.dmg
$ hdiutil attach test-image.dmg
/dev/disk2              Apple_partition_scheme         
/dev/disk2s1            Apple_partition_map           
/dev/disk2s2            Apple_HFSX                      /Volumes/db90h

And play around a little:

Code:
$ cd /Volumes/db90h/
$ ls -l
$ touch foo
$ touch Foo
$ ls -l
total 0
-rw-r--r--   1 solarflare  solarflare  0 Aug 10 11:13 Foo
-rw-r--r--   1 solarflare  solarflare  0 Aug 10 11:13 foo
$ cd

And then unmount the image:

Code:
$ hdiutil detach /Volumes/db90h
"disk2" unmounted.
"disk2" ejected.

I think the Mac OS X support inside the script should be a piece of cake for you now. Wink
Sponsor




Joined: 01 Jan 1970
Posts:

PostPosted: Thu Aug 10, 2006 8:27    Post subject: Re: Example: creating a HSFX image from shell Reply with quote
solarflare wrote:

I think the Mac OS X support inside the script should be a piece of cake for you now. Wink


Yep, thanks much for this Wink. I'll give it a try shortly.




Joined: 01 Jan 1970
Posts:

PostPosted: Thu Aug 10, 2006 9:16    Post subject: Reply with quote
Well interesting news: the MAC OS X firmware using the regular case INsensitive file system does seem to do better than cygwin. The resulting firmware boots and runs, though there seems to be a few errors. I've still got to evaluate it. It does run though.

However, still gotta fix up a few minor quirks on OS X and do more testing. Currently the trx tool is failing for some reason, but asustrx is working.

I did upload a new version of the kit, though didn't rename the version #. This was to fix a critical error in the untrx tool that I didn't notice until now. It was only working on TRX style images (*.trx or *generic*), not the ones with the U2ND style header prepended.
solarflare
DD-WRT Novice


Joined: 26 Jun 2006
Posts: 14
Location: Helsinki, Finland

PostPosted: Thu Aug 10, 2006 9:38    Post subject: Mac OS X Developer Tools Reply with quote
At some point you'll probably want to indicate in the OS X platform line, that the Developer Tools (a free download), which contain the gcc et al tools as well, are required to be installed before compiling the Firmware Modification Kit.

Last edited by solarflare on Thu Aug 10, 2006 10:05; edited 1 time in total




Joined: 01 Jan 1970
Posts:

PostPosted: Thu Aug 10, 2006 10:05    Post subject: Re: Mac OS X Developer Tools Reply with quote
solarflare wrote:
At some point you'll probably want to indicate in the Mac OS X platform line, that the Mac OS X Developer Tools, which contain the gcc et al tools as well, are required to be installed before compiling the Firmware Modification Kit.


I'll do that now. Turns out the trx tool had a weird bug command line arg interprepting bug on the OS X big endian system of yours. I didn't bother tracking it down since it's really redundant since asustrx does the same thing, and more. addpattern is also redundant since that's the more the asustrx tool does. For now, I'm leaving addpattern in though.

I've been uploading new builds as I fix minor things here and there caused by my delerium. The next build should work great on OS X, but still use the default file system. I'll then merge into the system some scripts to mount and unmount the case sensitive file system, and hopefully all will be well for MAC OS X, big or little endian.




Joined: 01 Jan 1970
Posts:

PostPosted: Thu Aug 10, 2006 10:43    Post subject: v0.25 released Reply with quote
This should be a great build... at least I hope Wink.

Cumulative changes since last revision history:

0.25 beta

  • OS X now works. Case insenstive file systems though result in firmwares that have runtime errata. Case sensitive filesystem mount not integrated yet.
  • trx: removed trx due to odd command line parsing bug on (big endian?) OS X systems. asustrx now used in its place.
  • scripts: file system case insensitive now warning, can be continued in default settings.
  • untrx: fixed some endian problems.
  • untrx: fixed a problem with U2ND headers (previous version only worked on trx/generic firmwares).
  • docs: minor additions.


I've verified that the errata I saw with the OS X builds from a case insensitive file system are indeed due to the file system, so while it handles them better th CYGWIN, a case sensitive file system really must be used for DD-WRT. You'll see a big warning about this if you try it.

I'll try out the case insenstive file system under OS X here in a while and integrate it on it. However, this build *ought* to do just fine if you manually mount and unmount a compatible filesytem yourself under OS X.

For CYGWIN users, try following Eko's instructions to mount an EXT2 file system. This has not been tested though.

For LInux users, this build is the bomb. No need for you guys to worry Wink.

Ok, I'm good and delerious.. and I need sleep. There's a chance that I might pass out.
schrottt
DD-WRT Novice


Joined: 10 Aug 2006
Posts: 6
Location: Wolfenbüttel

PostPosted: Thu Aug 10, 2006 12:58    Post subject: Reply with quote
Hi
The file that is available at the moment at http://www.bitsum.com/files/firmware_mod_tools.tar.gz seems to be broken. I tried to donwload and open it on two different systems, and both say the file is corrupted.
mbellot
DD-WRT User


Joined: 13 Jun 2006
Posts: 64

PostPosted: Thu Aug 10, 2006 14:05    Post subject: Reply with quote
BrainSlayer wrote:
it might be legal. but i dont want this. i want a full open source project. i found another "bad" *g* way. review the next release
its nothing special or complicated but prevents changing of the web gui without recompiling. everything else like adding or removing of packets and own scripts will work without any problem if you care about it.


BS: I've been following this tool and had a question about your "changing the web gui" comment.

I'd like to replace httpd in the standard DD-WRT firmware with one that has more functionality (such as support for httpd.conf), but I don't want to go through the trouble if I'm going to end up with a funny looking GUI.

I'd like to avoid the total recompile if possible, I have more than enough to keep me busy and this tool seemed like a nice shortcut to accomplish what I want to do.

Any comment?

_________________
WRT54GL modded to 32MB DRAM and 16MB Flash. Very Happy
BrainSlayer
Site Admin


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

PostPosted: Thu Aug 10, 2006 14:27    Post subject: Reply with quote
if you replace the httpd as well as all web files you will have no troubles. but please make sure to include the source (i mean the name DD-WRT) of the firmware. this is my only intention for this action.
_________________
"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
mbellot
DD-WRT User


Joined: 13 Jun 2006
Posts: 64

PostPosted: Thu Aug 10, 2006 19:00    Post subject: Reply with quote
BrainSlayer wrote:
if you replace the httpd as well as all web files you will have no troubles. but please make sure to include the source (i mean the name DD-WRT) of the firmware. this is my only intention for this action.


I don't want to change the actual GUI, just the httpd it runs on. Or is the GUI somehow integrated/compiled into httpd?

DD-WRT is the best thing that ever happened to my WRT54GL and I let everyone know it.

_________________
WRT54GL modded to 32MB DRAM and 16MB Flash. Very Happy




Joined: 01 Jan 1970
Posts:

PostPosted: Thu Aug 10, 2006 20:18    Post subject: Reply with quote
schrottt wrote:
Hi
The file that is available at the moment at http://www.bitsum.com/files/firmware_mod_tools.tar.gz seems to be broken. I tried to donwload and open it on two different systems, and both say the file is corrupted.


Sorry, not sure how this happened. Ubuntu has been acting strangely. Anyway, I threw up a new archive that should be fine. Sucks that a corrupt archive has been up there, cuz 0.25 really is the best build so far.


Last edited by on Thu Aug 10, 2006 20:29; edited 1 time in total
BrainSlayer
Site Admin


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

PostPosted: Thu Aug 10, 2006 20:20    Post subject: Reply with quote
mbellot wrote:
BrainSlayer wrote:
if you replace the httpd as well as all web files you will have no troubles. but please make sure to include the source (i mean the name DD-WRT) of the firmware. this is my only intention for this action.


I don't want to change the actual GUI, just the httpd it runs on. Or is the GUI somehow integrated/compiled into httpd?

DD-WRT is the best thing that ever happened to my WRT54GL and I let everyone know it.


yes the gui is partially implemented within the httpd. there are many cgi functions embedded. it will not be compatible with any other http server

_________________
"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


Last edited by BrainSlayer on Thu Aug 10, 2006 20:33; edited 1 time in total




Joined: 01 Jan 1970
Posts:

PostPosted: Thu Aug 10, 2006 20:30    Post subject: Reply with quote
mbellot wrote:

DD-WRT is the best thing that ever happened to my WRT54GL and I let everyone know it.


32/16 is the best thing that ever happened to your WRT54GL ;p. I am almost to the point where I can no longer contain my envy Wink.
BrainSlayer
Site Admin


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

PostPosted: Thu Aug 10, 2006 20:34    Post subject: Reply with quote
what do you mean with 32/16?
_________________
"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
HWS
DD-WRT Guru


Joined: 06 Jun 2006
Posts: 579
Location: Germany

PostPosted: Thu Aug 10, 2006 20:36    Post subject: Reply with quote
mbellot wrote:
WRT54GL modded to 32MB DRAM and 16MB Flash

_________________
DD-WRT v23 SP2 (09/13/06) std on WRT54GL V1.1
Last News
Goto page Previous  1, 2, 3, 4, 5 ... 12, 13, 14  Next Display posts from previous:    Page 4 of 14
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC 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 can attach files in this forum
You can download files in this forum