How to re-launch menuconf

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

roblad
Posts: 34
Joined: Mon Aug 05, 2013 11:04 am

Re: How to re-launch menuconf

Post by roblad »

Hi,

I see that my netfilter has 3 tims less files then yours - I am completly sure that it crashes during patch build netfilter.

could you send me that patch from custom_src dir

target/linux/ramips/patches-3.3/650-ustom_netfilter_match_modules.patch

User avatar
ericwong
Posts: 430
Joined: Sat Aug 25, 2012 6:15 am
Location: Melbourne, Australia
Contact:

Re: How to re-launch menuconf

Post by ericwong »

roblad wrote:could you send me that patch from custom_src dir

target/linux/ramips/patches-3.3/650-ustom_netfilter_match_modules.patch
As attached. Take note that this file is found at three locations.

Code: Select all

$ find -name 650-custom_netfilter_match_modules.patch
./custom-src/target/linux/ramips/patches-3.3/650-custom_netfilter_match_modules.patch
./custom-src/build_dir/linux-ramips_rt305x/linux-3.3.8/.pc/platform/650-custom_netfilter_match_modules.patch
./custom-src/build_dir/linux-ramips_rt305x/linux-3.3.8/patches/platform/650-custom_netfilter_match_modules.patch
./custom-src/package/iptables/patches/650-custom_netfilter_match_modules.patch
Attachments
650-custom_netfilter_match_modules.patch.tar.gz
(57.19 KiB) Downloaded 470 times
Eric Wong

PM me if you need to buy Gargoyle router in Australia/NZ, willing to pay me to help you on your Gargoyle configurations or build custom configured ROM with pre-installed app or try to fix your bricked router. Yes, I am looking for job/work.

roblad
Posts: 34
Joined: Mon Aug 05, 2013 11:04 am

Re: How to re-launch menuconf

Post by roblad »

Hi,

I found probably the error in nf-patch-build/Makefile created by build.sh and

cp $(DL_DIR)/$(PKG_SOURCE) .
tar xjf $(PKG_SOURCE)
rm *.bz2
mv iptables* iptables
it returns error

mv iptables* iptables
mv: target ‘iptables’ is not a directory

When i run it manualy


something is wrong in build.sh and
../scripts/patch-kernel.sh iptables ../package/iptables/patches/

Applying ../package/iptables/patches//002-layer7_2.22.patch using plaintext:
patching file extensions/libxt_layer7.c

Applying ../package/iptables/patches//009-table-alignment.patch using plaintext:
patching file libiptc/libiptc.c

Applying ../package/iptables/patches//010-multiport-linux-2.4-compat.patch using plaintext:
patching file extensions/libxt_multiport.c

Applying ../package/iptables/patches//011-recent-add-reap.patch using plaintext:
patching file extensions/libxt_recent.c
patching file extensions/libxt_recent.man
patching file include/linux/netfilter/xt_recent.h

Applying ../package/iptables/patches//020-iptables-disable-modprobe.patch using plaintext:
patching file xtables.c

Applying ../package/iptables/patches//030-no-libnfnetlink.patch using plaintext:
patching file configure
patching file configure.ac

Applying ../package/iptables/patches//100-bash-location.patch using plaintext:
patching file autogen.sh
patching file iptables-apply

Applying ../package/iptables/patches//110-linux_3.2_compat.patch using plaintext:
patching file include/linux/types.h

Applying ../package/iptables/patches//200-configurable_builtin.patch using plaintext:
patching file extensions/GNUmakefile.in

Applying ../package/iptables/patches//300-imq.patch using plaintext:
patching file extensions/libxt_IMQ.c
patching file extensions/libxt_IMQ.man
patching file include/linux/netfilter/xt_IMQ.h

Applying ../package/iptables/patches//650-custom_netfilter_match_modules.patch using plaintext:
patching file extensions/.bandwidth-test
patching file extensions/.weburl-test
patching file extensions/libipt_webmon.c
patching file extensions/libipt_weburl.c
patching file extensions/libipt_timerange.c
patching file extensions/libipt_bandwidth.c
patching file extensions/.timerange-test
patching file extensions/.webmon-test
patching file include/linux/netfilter_ipv4/ipt_weburl.h
patching file include/linux/netfilter_ipv4/ipt_timerange.h
patching file include/linux/netfilter_ipv4/ipt_webmon.h
patching file include/linux/netfilter_ipv4/ipt_bandwidth.h
compile@root:/media/proc/test/gargoyle/custom-src/nf-patch-build$ ^C
compile@root:/media/proc/test/gargoyle/custom-src/nf-patch-build$

it has been patched in iptables

iam reruning build

netfilter-match-modules

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: How to re-launch menuconf

Post by BashfulBladder »

roblad: what I was trying to illustrate with the Mac OS X & wc/xargs issue I had was that there are extra utilities that Gargoyle requires that you might have missed. Maybe you missed something in dev-utils/debian_install_build_deps.sh or something else... There are dozens of people that compile Gargoyle - and you are the only one (at this time) having issues with the Gargoyle-specific modules that everyone else sails through.

I compiled a r37174 ramips Asus RT-56U image with 6 threads on Mac OS X in 52 minutes. While oddly small @ 3.5MB (much more normal if you include the kernel, which is separate), it had the right amount of 120+ packages.
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

roblad
Posts: 34
Joined: Mon Aug 05, 2013 11:04 am

Re: How to re-launch menuconf

Post by roblad »

Hi,

Yes there was a problem with dev utils

Code: Select all

 lib64gcc-4.7-dev : Depends: lib64gcc1 (>= 1:4.7.3-4) but it is not going to be installed
                    Depends: libx32gcc1 (>= 1:4.7.3-4) but it is not going to be installed
                    Depends: lib64gomp1 (>= 4.7.3-4) but it is not going to be installed
                    Depends: libx32gomp1 (>= 4.7.3-4) but it is not going to be installed
                    Depends: lib64itm1 (>= 4.7.3-4) but it is not going to be installed
                    Depends: libx32itm1 (>= 4.7.3-4) but it is not going to be installed
                    Depends: lib64quadmath0 (>= 4.7.3-4) but it is not going to be installed
                    Depends: libx32quadmath0 (>= 4.7.3-4) but it is not going to be installed
 libc6-dev-amd64 : Depends: libc6-amd64 (= 2.17-7) but it is not going to be installed
                   Recommends: gcc-multilib but it is not going to be installed
 libc6-dev-x32 : Depends: libc6-x32 (= 2.17-7) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I run apt-get install

Code: Select all

The following extra packages will be installed:
  gcc-4.7-multilib lib64gcc-4.7-dev lib64gcc1 lib64gomp1 lib64itm1 lib64quadmath0 libc6-amd64 libc6-dev-amd64 libc6-dev-x32 libc6-x32 libx32gcc-4.7-dev libx32gcc1 libx32gomp1 libx32itm1
  libx32quadmath0
Suggested packages:
  lib64mudflap0 libx32mudflap0
The following NEW packages will be installed:
  gcc-4.7-multilib gcc-multilib git-core lib64gcc-4.7-dev lib64gcc1 lib64gomp1 lib64itm1 lib64quadmath0 libc6-amd64 libc6-dev-amd64 libc6-dev-x32 libc6-x32 libx32gcc-4.7-dev libx32gcc1 libx32gomp1
  libx32itm1 libx32quadmath0
0 upgraded, 17 newly installed, 0 to remove and 44 not upgraded.
Need to get 14.5 MB/19.8 MB of archives.
After this operation, 47.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Err http://ftp.pl.debian.org/debian/ testing/main libc6-amd64 i386 2.17-7
  404  Not Found [IP: 153.19.251.221 80]
Err http://ftp.pl.debian.org/debian/ testing/main libc6-dev-amd64 i386 2.17-7
  404  Not Found [IP: 153.19.251.221 80]
Err http://ftp.pl.debian.org/debian/ testing/main libc6-x32 i386 2.17-7
  404  Not Found [IP: 153.19.251.221 80]
Err http://ftp.pl.debian.org/debian/ testing/main libc6-dev-x32 i386 2.17-7
  404  Not Found [IP: 153.19.251.221 80]
Failed to fetch http://ftp.pl.debian.org/debian/pool/main/e/eglibc/libc6-amd64_2.17-7_i386.deb  404  Not Found [IP: 153.19.251.221 80]
Failed to fetch http://ftp.pl.debian.org/debian/pool/main/e/eglibc/libc6-dev-amd64_2.17-7_i386.deb  404  Not Found [IP: 153.19.251.221 80]
Failed to fetch http://ftp.pl.debian.org/debian/pool/main/e/eglibc/libc6-x32_2.17-7_i386.deb  404  Not Found [IP: 153.19.251.221 80]
Failed to fetch http://ftp.pl.debian.org/debian/pool/main/e/eglibc/libc6-dev-x32_2.17-7_i386.deb  404  Not Found [IP: 153.19.251.221 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I am investigating, and I have installed all required

Code: Select all

/media/proc/test/gargoyle/dev-utils# ./debian_install_build_deps.sh
Reading package lists... Done
Building dependency tree       
Reading state information... Done
flex is already the newest version.
g++ is already the newest version.
gawk is already the newest version.
gcc-multilib is already the newest version.
automake is already the newest version.
bison is already the newest version.
build-essential is already the newest version.
curl is already the newest version.
git-core is already the newest version.
libncurses5-dev is already the newest version.
subversion is already the newest version.
vim is already the newest version.
wget is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 142 not upgraded.
root@root:/media/proc/test/gargoyle/dev-utils# 
iptables are not pached


I am comletly sure that there is a problem in integrate_netfilter_modules.sh

in section

Code: Select all

if [ "$patch_kernel" = 1 ] ; then
	target_name=$(cat .config | egrep  "CONFIG_TARGET_([^_]+)=y" | sed 's/^.*_//g' | sed 's/=y$//g' )
result

target_name=$(cat .config | egrep "CONFIG_TARGET_([^_]+)=y" | sed 's/^.*_//g' | sed 's/=y$//g' ) && echo $target_name
ramips OPTIONS

next section


compile@root:/media/proc/test/gargoyle/custom-src$ test_names=$(cat .config | egrep "CONFIG_TARGET_.*=y" | sed 's/CONFIG_TARGET_//g' | sed 's/_.*$//g' )
compile@root:/media/proc/test/gargoyle/custom-src$

result

echo $test_names
ramips=y ramips ramips ROOTFS ROOTFS OPTIONS=y PREINIT PREINIT INIT
compile@root:/media/proc/test/gargoyle/custom-src$

Result from run full script

Code: Select all

sh -x ../netfilter-match-modules/integrate_netfilter_modules.sh /media/proc/test/gargoyle/custom-src /media/proc/test/gargoyle/netfilter-match-modules 1 1
+ openwrt_buildroot_dir=/media/proc/test/gargoyle/custom-src
+ module_dir=/media/proc/test/gargoyle/netfilter-match-modules
+ patch_openwrt=1
+ patch_kernel=1
+ '[' -z 1 ']'
+ '[' -z 1 ']'
+ '[' -z /media/proc/test/gargoyle/custom-src ']'
+ '[' -z /media/proc/test/gargoyle/netfilter-match-modules ']'
+ '[' '!' -e /media/proc/test/gargoyle/custom-src/.config ']'
+ new_module_dirs=
++ ls /media/proc/test/gargoyle/netfilter-match-modules
+ new_module_list='bandwidth
integrate_netfilter_modules.sh
integrate_netfilter_modules.sh~
timerange
webmon
weburl'
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/bandwidth ']'
++ cat /media/proc/test/gargoyle/netfilter-match-modules/bandwidth/name
+ new_name=bandwidth
+ '[' -n bandwidth ']'
+ new_module_dirs='bandwidth '
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/integrate_netfilter_modules.sh ']'
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/integrate_netfilter_modules.sh~ ']'
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/timerange ']'
++ cat /media/proc/test/gargoyle/netfilter-match-modules/timerange/name
+ new_name=timerange
+ '[' -n timerange ']'
+ new_module_dirs='timerange bandwidth '
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/webmon ']'
++ cat /media/proc/test/gargoyle/netfilter-match-modules/webmon/name
+ new_name=webmon
+ '[' -n webmon ']'
+ new_module_dirs='webmon timerange bandwidth '
+ for d in '$new_module_list'
+ '[' -d /media/proc/test/gargoyle/netfilter-match-modules/weburl ']'
++ cat /media/proc/test/gargoyle/netfilter-match-modules/weburl/name
+ new_name=weburl
+ '[' -n weburl ']'
+ new_module_dirs='weburl webmon timerange bandwidth '
+ '[' -z 'weburl webmon timerange bandwidth ' ']'
++ pwd
+ exec_dir=/media/proc/test/gargoyle/custom-src
+ cd /media/proc/test/gargoyle/custom-src
++ pwd
+ openwrt_buildroot_dir=/media/proc/test/gargoyle/custom-src
+ cd /media/proc/test/gargoyle/custom-src
+ cd /media/proc/test/gargoyle/netfilter-match-modules
++ pwd
+ module_dir=/media/proc/test/gargoyle/netfilter-match-modules
+ cd /media/proc/test/gargoyle/custom-src
+ cd /media/proc/test/gargoyle/custom-src
+ mkdir -p nf-patch-build
+ rm -rf nf-patch-build/iptables.new nf-patch-build/iptables.orig nf-patch-build/iptables-patch-dir nf-patch-build/Makefile
+ '[' '!' -d dl ']'
+ '[' 1 = 1 ']'
++ sed 's/^.*_//g'
++ sed 's/=y$//g'
++ cat .config
++ egrep 'CONFIG_TARGET_([^_]+)=y'
+ target_name='ramips
OPTIONS'
+ '[' -z 'ramips
OPTIONS' ']'
++ cat target/linux/ramips OPTIONS/Makefile
++ grep 'BOARD.*:='
cat: target/linux/ramips: Is a directory
cat: OPTIONS/Makefile: No such file or directory
+ board_var=
++ grep 'KERNEL.*:='
++ cat target/linux/ramips OPTIONS/Makefile
cat: target/linux/ramips: Is a directory
cat: OPTIONS/Makefile: No such file or directory
+ kernel_var=
++ grep 'LINUX_VERSION.*:='
++ cat target/linux/ramips OPTIONS/Makefile
cat: target/linux/ramips: Is a directory
cat: OPTIONS/Makefile: No such file or directory
+ linux_ver_var=
++ printf '\n\n\n'
+ defines=
+ cat
+ printf '\n'
+ cat
+ echo TOPDIR:=..
+ echo 'SCRIPT_DIR:=$(TOPDIR)/scripts'
+ echo 'DL_DIR:=$(TOPDIR)/dl'
+ sed s/=/:=/g
+ egrep 'CONFIG_LINUX_.*=y' .config
++ cat package/iptables/Makefile
++ egrep -n 'include.*package.mk'
++ sed 's/:.*$//g'
+ package_include_line_num=30
+ head -n 30 package/iptables/Makefile
+ awk ' { if( ( $0 !~ /^include/ ) && ($0 !~ /^#/ )){ print $0 ; }} '
+ echo all:
+ echo '        if [ ! -e "$(DL_DIR)/$(PKG_SOURCE)" ] ; then $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL) ; fi ; '
+ echo '        cp $(DL_DIR)/$(PKG_SOURCE) . '
+ echo '        tar xjf $(PKG_SOURCE)'
+ echo '        rm *.bz2'
+ echo '        mv iptables* iptables'
+ echo '        $(SCRIPT_DIR)/patch-kernel.sh iptables $(TOPDIR)/package/iptables/patches/'
+ echo '        echo $(TOPDIR)/package/iptables/patches/ > iptables-patch-dir'
+ cd nf-patch-build
+ '[' 1 = 1 ']'
+ mv linux-download-make Makefile
+ make
if [ ! -e "../dl/linux-.tar.bz2" ] ; then ../scripts/download.pl ../dl linux-.tar.bz2 x @KERNEL/linux/kernel/v. ; fi ; 
cp ../dl/linux-.tar.bz2 . 
rm -rf linux linux-
tar xjf linux-.tar.bz2
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
make: *** [all] Error 2
+ mv linux linux.orig
mv: cannot stat ‘linux’: No such file or directory
+ cp -r linux.orig linux.new
cp: cannot stat ‘linux.orig’: No such file or directory
+ mv iptables-download-make Makefile
+ make
if [ ! -e "../dl/iptables-1.4.10.tar.bz2" ] ; then ../scripts/download.pl ../dl iptables-1.4.10.tar.bz2 f382fe693f0b59d87bd47bea65eca198 http://www.netfilter.org/projects/iptables/files ftp://ftp.be.netfilter.org/pub/netfilter/iptables/ ftp://ftp.de.netfilter.org/pub/netfilter/iptables/ ftp://ftp.no.netfilter.org/pub/netfilter/iptables/ ; fi ; 
cp ../dl/iptables-1.4.10.tar.bz2 . 
tar xjf iptables-1.4.10.tar.bz2
rm *.bz2
mv iptables* iptables
../scripts/patch-kernel.sh iptables ../package/iptables/patches/

Applying ../package/iptables/patches//002-layer7_2.22.patch using plaintext: 
patching file extensions/libxt_layer7.c

Applying ../package/iptables/patches//009-table-alignment.patch using plaintext: 
patching file libiptc/libiptc.c

Applying ../package/iptables/patches//010-multiport-linux-2.4-compat.patch using plaintext: 
patching file extensions/libxt_multiport.c

Applying ../package/iptables/patches//011-recent-add-reap.patch using plaintext: 
patching file extensions/libxt_recent.c
patching file extensions/libxt_recent.man
patching file include/linux/netfilter/xt_recent.h

Applying ../package/iptables/patches//020-iptables-disable-modprobe.patch using plaintext: 
patching file xtables.c

Applying ../package/iptables/patches//030-no-libnfnetlink.patch using plaintext: 
patching file configure
patching file configure.ac

Applying ../package/iptables/patches//100-bash-location.patch using plaintext: 
patching file autogen.sh
patching file iptables-apply

Applying ../package/iptables/patches//110-linux_3.2_compat.patch using plaintext: 
patching file include/linux/types.h

Applying ../package/iptables/patches//200-configurable_builtin.patch using plaintext: 
patching file extensions/GNUmakefile.in

Applying ../package/iptables/patches//300-imq.patch using plaintext: 
patching file extensions/libxt_IMQ.c
patching file extensions/libxt_IMQ.man
patching file include/linux/netfilter/xt_IMQ.h
echo ../package/iptables/patches/ > iptables-patch-dir
+ mv iptables iptables.orig
+ cp -r iptables.orig iptables.new
++ cat generic-config-file
cat: generic-config-file: No such file or directory
+ generic_config_file=
++ cat generic-patch-dir
cat: generic-patch-dir: No such file or directory
+ generic_patch_dir=
++ cat config-file
cat: config-file: No such file or directory
+ config_file=
++ cat patch-dir
cat: patch-dir: No such file or directory
+ patch_dir=
++ cat iptables-patch-dir
+ iptables_patch_dir=../package/iptables/patches/
+ mkdir -p ''
mkdir: cannot create directory ‘’: No such file or directory
+ mkdir -p ../package/iptables/patches/
+ mkdir -p ''
mkdir: cannot create directory ‘’: No such file or directory
+ for new_d in '$new_module_dirs'
+ new_d=/media/proc/test/gargoyle/netfilter-match-modules/weburl
++ cat /media/proc/test/gargoyle/netfilter-match-modules/weburl/name
+ new_name=weburl
++ echo weburl
++ tr '[:lower:]' '[:upper:]'
+ upper_name=WEBURL
++ echo weburl
++ tr '[:upper:]' '[:lower:]'
+ lower_name=weburl
+ echo 'found WEBURL module, patching...'
found WEBURL module, patching...
+ '[' 1 = 1 ']'
+ cp -r /media/proc/test/gargoyle/netfilter-match-modules/weburl/module/ipt_weburl.c /media/proc/test/gargoyle/netfilter-match-modules/weburl/module/weburl_deps linux.new/net/ipv4/netfilter/
cp: target ‘linux.new/net/ipv4/netfilter/’ is not a directory
+ cp -r /media/proc/test/gargoyle/netfilter-match-modules/weburl/header/ipt_weburl.h linux.new/include/linux/netfilter_ipv4/
cp: cannot create regular file ‘linux.new/include/linux/netfilter_ipv4/’: No such file or directory
++ sed 's/:.*$//g'
++ cat linux.new/net/ipv4/netfilter/Makefile
++ egrep -n '#.*[Mm][Aa][Tt][Cc][Hh]'
cat: linux.new/net/ipv4/netfilter/Makefile: No such file or directory
+ match_comment_line_num=
+ config_line='obj-$(CONFIG_IP_NF_MATCH_WEBURL) += ipt_weburl.o'
+ insert_lines_at '' 'obj-$(CONFIG_IP_NF_MATCH_WEBURL) += ipt_weburl.o' linux.new/net/ipv4/netfilter/Makefile 1
+ insert_after=
+ lines='obj-$(CONFIG_IP_NF_MATCH_WEBURL) += ipt_weburl.o'
+ file=linux.new/net/ipv4/netfilter/Makefile
+ default_end=1
++ sed 's/ .*$//g'
++ wc -l
++ cat linux.new/net/ipv4/netfilter/Makefile
cat: linux.new/net/ipv4/netfilter/Makefile: No such file or directory
+ file_length=0
+ '[' -z '' ']'
+ '[' 1 = 0 ']'
+ =1
../netfilter-match-modules/integrate_netfilter_modules.sh: line 13: =1: command not found
../netfilter-match-modules/integrate_netfilter_modules.sh: line 16: 0 - : syntax error: operand expected (error token is "- ")
That pach script does not predict that option for ramips in kernel modules when is set to =Y

the option is

CONFIG_TARGET_OPTIONS=Y

it founds 2 lines and because of that crashed every time

when you mark in "Advanced configuration option (for developers) the star that line is set in .config for =Y

after remark it for empty the build spedup option inside still set for =Y

When you mark that the patch for iptables crashing

There is a bug in the script - should be corrected - I lost one week for find it.

Regards
Robert

PS

And finall error in .config

'PACKAGE_plugin-gargoyle-webcam' refer to undefined symbol 'PACKAGE_gargoyle-mjpg-streamer'

that is not block - but probably something is wrong in packahges (there is a build mentioned by Eric)

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: How to re-launch menuconf

Post by BashfulBladder »

roblad wrote:That pach script does not predict that option for ramips in kernel modules when is set to =Y
What var is set to =Y? And in what file?
If you mean CONFIG_TARGET_ramips in custom-src/.config, I don't think that is the case.

Perhaps you missed it:

"I compiled a r37174 ramips Asus RT-56U image". See how I compiled a ramips Gargoyle firmware? That means all the way through to the end. That seems to contraindicate "That pach script does not predict that option for ramips in kernel modules".

I will add that I didn't get too into the weeds about the ramips build other than to verify that my i18n changes were integrated into 'make custom'.

Just to be certain, I will try to compile a firmware for your device. Please provide what you set in menuconfig for these items:

Target (ramips)
Subtarget (I think I saw rt288x, please correct if not)
Target Profile
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

roblad
Posts: 34
Joined: Mon Aug 05, 2013 11:04 am

Re: How to re-launch menuconf

Post by roblad »

Hi,

it is the same as FONERA20N and in standard AA default config rather should OMNIEMB because there is only one WAN/LAN port it has 3 LEDS lan,storage,wlan. Button mode is only in one reset button. I did the Cesary Osby, 00-bytton. Additionaly I downloaded additional plugins from GG gits.
I want to use Osby PL patches in my build.

My config is a standard one with a plugins:

Code: Select all

# Administration
#

#
# Gargoyle Web Interface
#
CONFIG_PACKAGE_gargoyle=y
CONFIG_PACKAGE_plugin-gargoyle-cron=y
CONFIG_PACKAGE_plugin-gargoyle-hdidle=y
CONFIG_PACKAGE_plugin-gargoyle-initd=y
CONFIG_PACKAGE_plugin-gargoyle-logread=y
CONFIG_PACKAGE_plugin-gargoyle-logs=y
# CONFIG_PACKAGE_plugin-gargoyle-msg is not set
CONFIG_PACKAGE_plugin-gargoyle-openvpn=y
CONFIG_PACKAGE_plugin-gargoyle-ping-watchdog=y
# CONFIG_PACKAGE_plugin-gargoyle-smsbox is not set
# CONFIG_PACKAGE_plugin-gargoyle-theme-by-matei is not set
CONFIG_PACKAGE_plugin-gargoyle-theme-dark-one=y
# CONFIG_PACKAGE_plugin-gargoyle-theme-green is not set
# CONFIG_PACKAGE_plugin-gargoyle-theme-light is not set
# CONFIG_PACKAGE_plugin-gargoyle-theme-xeye is not set
CONFIG_PACKAGE_plugin-gargoyle-tinyproxy=y
# CONFIG_PACKAGE_plugin-gargoyle-tor is not set
# CONFIG_PACKAGE_plugin-gargoyle-usb-printer is not set
CONFIG_PACKAGE_plugin-gargoyle-usb-storage=y
CONFIG_PACKAGE_plugin-gargoyle-usbreset=y
# CONFIG_PACKAGE_plugin-gargoyle-webcam is not set
CONFIG_PACKAGE_plugin-gargoyle-webshell=y
# CONFIG_PACKAGE_plugin-gargoyle-wifi-schedule is not set
CONFIG_PACKAGE_plugin-gargoyle-wifi-survey=y

I have to additionally make some changes in imagebuild Makefile

Code: Select all

ifeq ($(CONFIG_RALINK_RT305X),y)
define Image/Build/Profile/Default
	$(call Image/Build/Profile/3G6200N,$(0))
	$(call Image/Build/Profile/ALL02393G,$(0))
	$(call Image/Build/Profile/ALL0256N,$(0))
	$(call Image/Build/Profile/ALL5002,$(0))
	$(call Image/Build/Profile/ARGUS_ATP52B,$(0))
	$(call Image/Build/Profile/BC2,$(0))
	$(call Image/Build/Profile/CARAMBOLA,$(0))
	$(call Image/Build/Profile/DIR300B1,$(0))
	$(call Image/Build/Profile/DIR615H1,$(0))
	$(call Image/Build/Profile/DAP1350,$(0))
	$(call Image/Build/Profile/ESR9753,$(0))
	$(call Image/Build/Profile/F5D8235V2,$(0))
	$(call Image/Build/Profile/RTN10PLUS,$(0))
	$(call Image/Build/Profile/FONERA20N,$(1))
	$(call Image/Build/Profile/FREESTATION5,$(0))
	$(call Image/Build/Profile/HW5503G,$(0))
	$(call Image/Build/Profile/MOFI35003GN,$(0))
	$(call Image/Build/Profile/NBG419N,$(0))
	$(call Image/Build/Profile/NW718,$(0))
	$(call Image/Build/Profile/OMNIEMB,$(1))
	$(call Image/Build/Profile/PSR680W,$(0))
	$(call Image/Build/Profile/PWH2004,$(0))
	$(call Image/Build/Profile/RTG32B1,$(0))
	$(call Image/Build/Profile/SLR7205,$(0))
	$(call Image/Build/Profile/V22RW2X2,$(0))
	$(call Image/Build/Profile/W306R_V20,$(0))
	$(call Image/Build/Profile/W502U,$(0))
	$(call Image/Build/Profile/WCR150GN,$(0))
	$(call Image/Build/Profile/WHRG300N,$(0))
	$(call Image/Build/Profile/WL_330N,$(0))
	$(call Image/Build/Profile/WL_330N3G,$(0))
	$(call Image/Build/Profile/WL341V3,$(0))
	$(call Image/Build/Profile/WL351,$(0))
	$(call Image/Build/Profile/WR5123GN,$(0))
	$(call Image/Build/Profile/WR6202,$(0))
	$(call Image/Build/Profile/XDXRN502J,$(0))
endef

If you could do it for me, and give me revision where I can download build dir from git I will appreciate. I want to apply Cezary's patches when everything will work.

Regards,
Robert

roblad
Posts: 34
Joined: Mon Aug 05, 2013 11:04 am

Re: How to re-launch menuconf

Post by roblad »

BashfulBladder wrote:
roblad wrote:That pach script does not predict that option for ramips in kernel modules when is set to =Y
What var is set to =Y? And in what file?
If you mean CONFIG_TARGET_ramips in custom-src/.config, I don't think that is the case.

Perhaps you missed it:

"I compiled a r37174 ramips Asus RT-56U image". See how I compiled a ramips Gargoyle firmware? That means all the way through to the end. That seems to contraindicate "That pach script does not predict that option for ramips in kernel modules".

I will add that I didn't get too into the weeds about the ramips build other than to verify that my i18n changes were integrated into 'make custom'.

Just to be certain, I will try to compile a firmware for your device. Please provide what you set in menuconfig for these items:

Target (ramips)
Subtarget (I think I saw rt288x, please correct if not)
Target Profile

Hi,

bug

compile@root:/media/proc/test/gargoyle/custom-src$ test_names=$(cat .config | egrep "CONFIG_TARGET_.*=y" | sed 's/CONFIG_TARGET_//g' | sed 's/_.*$//g' )
compile@root:/media/proc/test/gargoyle/custom-src$

not skipping that:

CONFIG_TARGET_OPTIONS=Y

when you mark in "Advanced configuration option (for developers) > "Target options" in .config copied after that to custom/profile/default for future usage.


I did not use i18n git repository I am using official one.



suptarget is rt305x
Regards,
Robert

PS

Code: Select all

------------------------------------------------------------------
|            _____                             _                 |
|           |  __ \                           | |                |
|           | |  \/ __ _ _ __ __ _  ___  _   _| | ___            |
|           | | __ / _` | '__/ _` |/ _ \| | | | |/ _ \           |
|           | |_\ \ (_| | | | (_| | (_) | |_| | |  __/           |
|            \____/\__,_|_|  \__, |\___/ \__, |_|\___|           |
|                             __/ |       __/ |                  |
|                            |___/       |___/                   |
|                                                                |
|----------------------------------------------------------------|
| Gargoyle version 1.5.10.0 | OpenWrt Attitude Adjustment branch |
| Gargoyle revision 62b7660 | OpenWrt revision r36469            |
| Built August 14, 2013     | Target  ramips/custom              |
------------------------------------------------------------------
build started and I see that

Code: Select all

patching file package/base-files/files/etc/init.d/sysntpd
Hunk #1 succeeded at 1 with fuzz 2.
patching file package/base-files/files/etc/config/system
Hunk #1 FAILED at 3.
1 out of 1 hunk FAILED -- saving rejects to file package/base-files/files/etc/config/system.rej
Patch failed!  Please fix /media/proc/test2/gargoyle/patches-generic//19-start_sysntpd_sooner.patch!
Aborting.  '/media/proc/test2/gargoyle/targets/custom/patches/' is not a directory.
found WEBURL module, patching...
found WEBMON module, patching...
found TIMERANGE module, patching...
found BANDWIDTH module, patching...

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: How to re-launch menuconf

Post by BashfulBladder »

I ask for 3 things & I get.... well a lot of things.

I don't know why you are going to the effort of CONFIG_TARGET_OPTIONS=Y if you aren't providing compiler flags. I used the default:
-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves

So I did 3 things in menuconfig (after my script that deselects ar71xx & comments in ramips):
Subtarget: RT305x based boards
Target Profile: Default Profile (because none of the things you talk about are listed there)
Target Options =Y (although why if you aren't changing compiler flags is beyond me, but moving swiftly along...)
(and none of the other things options or packages you mention)

It turns out that:
CONFIG_TARGET_OPTIONS=Y
integrate_netfilter_modules.sh gets target_name (wrong) as:
ramips
OPTIONS

when # CONFIG_TARGET_OPTIONS is not set
integrate_netfilter_modules.sh gets target_name (right) as:
ramips

As a temporary measure, you can add -m 1:

Code: Select all

egrep  "CONFIG_TARGET_([^_]+)=y" -m 1
For test_names just tack on:

Code: Select all

 | grep -v OPTIONS
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

roblad
Posts: 34
Joined: Mon Aug 05, 2013 11:04 am

Re: How to re-launch menuconf

Post by roblad »

Hi,

That should be predicted in the script (could you change it in git repository)- somebody can switch it on. On AA forums that options for ramips was suggested for speed up compilation. For that reason I switched on, but I did not know that patch script for bwmon for GG has a bug. I spent a loot of time to investigate.

Additionally I have been running the AA r37174 and mentioned AA release by Eric. Eric wrote that after the revision 62b7660 Gargoyle and OpenWRT revision r36469, bwmon does not work, you said that it works. You wrote that you compiled for AA r37174. What git do you uset for GG, whether it is the master for AA r37174 and everything compiles without problem for ramipsa? Could you test r37174 and GG master and provide me built image, I will test it on my hardware I will check if bwmon will work and bandwidth statistics will be seen.

Regards,
Robert

BDW,

Do you plan to implement polish language from Czezary "Osby "

Hi prepaired patches that works (only buttons are in English) ?

PS

The options for GCC as added flags for optimalisation


Should be caller-saves instead of -fno-caller-save (probably)

There is a AA function added (probably)
Caller-Saves - Register Allocation
If you enable it, GCC can save registers around function calls. This makes it possible to use call-clobbered registers to hold variables that must live across calls.
Gcc treats its own created by user registered as a variable and all the variables that are used by the optimization. But this is some sort of an old feature, unless already lacking in the newer versions of GCC.


-pipe: is safe flag. It has no effect on the generated code, but it makes the speed of compilation.

-Os: This level will optimize your code for size. It activates all-O2, which does not increase the size of the generated code. This can be useful for machines that have very limited disk space or processor with a very small cache sizes.

-mips32r2: There is optimal sat code for MIPS processors mips 32 v2 that is in i.e. in FONERA20n etc.

-march = - use this flag means that the executable is compiled only in the type of processor. Compatibility with other types of processors will be deleted. If such a program compiled for pentium4 and then tried to run the amd64 such a program, unfortunately, does not work. However, the processor for which there was a compilation of the program will run up efficiently (will use the processor to the last cycle).

Here are our options:

-mtune = - Use this flag is similar to the previous one, but in this case, the compiler does not remove the compatibility with other types of processors. Our code will work (of course, if it is well written) in other processors. However, there are but two: first - the processor for which the program was compiled, its effect will be slightly slower than for the first flag. In addition, the code will not be optimized for other architectures, so it will run much slower

Post Reply