how can I change a software of openwrt and rebuild it in Bin file -


... $make menuconfig select package ... $make ...

there many bin files in bin folder.:

my question , want change software source code of openwrt , rebuild again.

i have try edit source code of build_dir. want rebuild openwrt code refresh newest code of svn.

does 1 how that?

writing code , synchronizing it:

1) clone official linino repository arduino on machine using git (install using sudo apt-get install git):

git clone https://github.com/linino/linino_distro.git 

2) own changes in relevant code files, makefiles or whatever need change.

3) whenever want synchronize work latest changes remote master branch in linino repository, need first fetch changes, meaning retrieving them without yet merging them, in 2nd time merge them , resolve conflicts if any:

preliminary: if created local branch own changes make sur master branch, need check out master: git checkout master a) fetching latest changes:

git fetch master 

b) merging them changes on local repository (normally called origin):

git merge origin/master 

note: alternatively can in 1 command:

git pull 

it fetch , merge @ same time it's important understand process using fetch first. experience can confusing beginners, plus can cause automerge if not explicitely specified otherwise, causing more work undo them.

4) you're ready resolve conflicts if any, can use:

git mergetool 

this allow resolve conflicts using graphical tool such tkdiff (2 way merge tool), or meld (3 way merge tool, diff changes, changes remote master, , original file).

compiling code:

5) open terminal in linino buildroot directory, make sure update config if added new packages, recompile image i.e.

cd ~/mylininobuildroot/trunk make menuconfig #now select new package, added in trunk/package # make sure save configuration before exiting make 

note: alternatively can recompile packages 1 one. instead of doing simple make do:

preliminary step: make sure have compiled linino toolchain allows compile packages separately: cd trunk/ make tools/install make toolchain/install make target/compile

then compile package:

make package/mypackage 

or alternatively, can more specific selecting target package makefile instance install or compile or build targets:

make package/mypackage/install make package/mypackage/compile make package/mypackage/build 

finally, recompile index target common packages allow have bin directory trunk/bin/yourarchitecture/packages contains date index of packages including freshly compiled one:

make package/index 

more info at: http://wiki.openwrt.org/doc/howto/build.a.package

checking alright:

now go have @ trunk/bin/yourarchitecture/packages/packages, grep make sure listed in packages (the actual packages index file) , date:

grep packages | mypackage 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -