using 7zip to edit bin files

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
papdee
DD-WRT Novice


Joined: 10 Apr 2022
Posts: 6

PostPosted: Mon Feb 12, 2024 3:37    Post subject: using 7zip to edit bin files Reply with quote
I am able to explore the Archer C9v1 bin file with 7zip file manager. Would it be a simple matter of unzipping this file then copying over some ko modules and then re-zipping this file back up and uploading it the router? The ko files work after testing them but now want to make them permanent in the firmware itself so I can load them on boot.
Sponsor
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1959

PostPosted: Mon Feb 12, 2024 5:23    Post subject: Reply with quote
In short, no.
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12922
Location: Netherlands

PostPosted: Tue Feb 13, 2024 7:31    Post subject: Reply with quote
You can try the firmware Mod Kit FMK:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=332549

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Tue Feb 13, 2024 7:49    Post subject: Re: using 7zip to edit bin files Reply with quote
papdee wrote:
I am able to explore the Archer C9v1 bin file with 7zip file manager. Would it be a simple matter of unzipping this file then copying over some ko modules and then re-zipping this file back up and uploading it the router? The ko files work after testing them but now want to make them permanent in the firmware itself so I can load them on boot.

In not short aka long: you need to find out how the firmware file is being packed (possibly with compression)! Maybe reading the source codes? The Makefile? Smile
edit:
The same method applies to motherboard BIOS. DD-WRT is the BIOS of routers in some ways? Or is it?

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
papdee
DD-WRT Novice


Joined: 10 Apr 2022
Posts: 6

PostPosted: Wed Feb 14, 2024 2:41    Post subject: Reply with quote
Thanks for the info but I already tried those un/pack utilities and they threw undecipherable errors. I will just load the batman-adv.ko modules via USB although would prefer it in the firmware itself. Since the C9v1 is the same hardware as the R7000 I was able to just extract and copy over the batman-adv.ko file and it loaded fine on the C9.
lazardo
DD-WRT User


Joined: 17 Apr 2014
Posts: 140
Location: SF Bay Area

PostPosted: Wed Feb 14, 2024 18:45    Post subject: Reply with quote
https://github.com/peno64/ddwrt-nvram-tools/tree/master

Oops, these are for nvram backups not firmware.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12922
Location: Netherlands

PostPosted: Thu Feb 15, 2024 8:25    Post subject: Reply with quote
If you have compiling expertise you can compile your own builds:
https://gitlab.com/egc112/ddwrt-community-build-clone/-/tree/master

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
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