One of my C program. I want to compile it against the libraries inside the firmware and re-package it.What programs? What router?
Do you mean scripts?
Why it won't be compatible? Let's just assume I want to add a hello world program to the firmware and start it on boot. Do you know how can I extract the files from .w file and how to re-package a directory to a new .w file so I can flash it to my router?You need to give more details. More than likely, it won't be compatible with what Asuswrt is using.
Thanks for the reply, I have a cross compile environment. But what I'm trying to do is packaging the build into a .w file that my router can flash. Do you have detailed instructions for that?You have to start with compiling your own builds.
If you have setup and can do that you also have the cross compiling tools to cross compile your own C code
Sadly amcfwm is broken - and until @Adamm emerges from Thailand and can hopefully find time to fix ... not much point in trying a compile with that script. Others have succeeded by using RMerlin's modified script.amcfwm - AsusWRT-Merlin Custom Firmware Manager
amcfwm AsusWRT-Merlin - Custom Firmware Manager Inspired By @RMerlins Original Script Features Can configure default Ubuntu 20.04 VM Interactive menu Configurable settings No hard-coded settings/variables Daily build cronjob if git changes detected POSIX compliance Installation This...www.snbforums.com
I don't know why it won't be compatible. But the above link will allow you to find out if it is or not.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!