Etique wrote:I would need to build this pakage against your build (used to do that with arokh's build), but... here I reach my limits (dunno how to use the buildscripts and *.patch).
I read through the files and I *assume* I would need to run the buildscript against the proper source revision, but what should be the file structure?
If you really want that module, I suggest that you build the whole firmware by yourself and modify my config to include that module. It is probably the easiest way.
If you check the buildscripts.txt file in my firmware archive, it contain all the scripts I use, including a script for re-creating the whole environment in Ubuntu 12.04 x64 environment.
Check the file: http://koti.welho.com/hnyman1/Openwrt/t … cripts.txt
It is a text file containing several shell scripts, which are pretty well identified: copyPackages2tmp.sh, createbuildinfo.sh, kernelcompile.sh, mountNcopy.sh, newOpenwrtBuildroot.sh, singlecompile.sh, updateNmake.sh, versionT.sh
Open that file with a text editor and save the script files.
Of those scripts, updateNmake.sh and createbuildinfo.sh are used in the actual build process.
newOpenwrtBuildroot.sh will create the new environment, and it contains the needed patch commands at the end (commented out in the archive, as the patch files' names will change along the version).
First manually create /Openwrt directory and make sure it is writable by your normal user account. Then run newOpenwrtBuildroot.sh. If needed, edit the patch commands in the end to use the correct version patches. The scripts generated both trunk and Attitude Adjustment envirnoments, as well as a local Luci repository, so it matches my full setup for creating both firmware versions (trunk & Attitude).
After running that you go into /Openwrt/trunk and copy the file .config.init to .config to create the recipe for my config. After that you just run updateNmake.sh, which will do the actual make process.
newOpenwrtBuildroot.sh:
#!/bin/sh
#
# newOpenwrtBuildroot.sh
#
# Creates Openwrt build environment, with /Openwrt as the root. Create /Openwrt first manually
# subdirs trunk, attitude branch, local luci sources and dl for downloads
# sets up the svn repositories for trunk, attitude and luci
### Prerequisites installed for buildroot and buildscripts (lsdiff needs patchutils)
sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext
sudo apt-get install patchutils
### download directory
mkdir /Openwrt/dl
### trunk
mkdir /Openwrt/trunk
cd /Openwrt/trunk
ln -s ../dl dl
svn co svn://svn.openwrt.org/openwrt/trunk/ .
### attitude
mkdir /Openwrt/attitude
cd /Openwrt/attitude
ln -s ../dl dl
svn co svn://svn.openwrt.org/openwrt/branches/attitude_adjustment/ .
### luci local source repository
mkdir /Openwrt/luci
cd /Openwrt/luci
svn co http://svn.luci.subsignal.org/luci/ . --depth empty
svn up --set-depth infinity trunk
svn up --set-depth empty branches
svn up --set-depth infinity branches/luci-0.11
### patch sources (main Openwrt, packages feed, local Luci)
### patch main Openwrt first to set feeds correctly, then update packages feed and patch it
cd /Openwrt
patch -p0 -i WNDR3700-trunk-r34636-2012-12-11-1937-openwrt.patch
/Openwrt/trunk/scripts/feeds update -a
patch -p0 -i WNDR3700-trunk-r34636-2012-12-11-1937-packages.patch
patch -p0 -i WNDR3700-trunk-r34636-2012-12-11-1937-luci-trunk.patch
EDIT: alternatively, if you only want that module and you already have a build environment ready, you could try just taking my .config.init, copy it to .config, run make menuconfig to blow it out and add that one kmod you want to the config. Then a normal make should create a firmware (that you do not need) and the packages directory with the kmod you could then install. There should be no strange kernel config options and the build scripts do nothing strange for the actual make process.
(Last edited by hnyman on 15 Dec 2012, 11:14)