[Split] Compiling DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Generic Questions
Goto page Previous  1, 2, 3 ... , 23, 24, 25  Next
Author Message
Mazout360
DD-WRT Novice


Joined: 21 Apr 2013
Posts: 21

PostPosted: Wed Oct 30, 2013 20:32    Post subject: Reply with quote
<Kong> wrote:

skipping incompatible-> that's what I told you, you are mixing host with target libs and try to link against a lib that you compiled for opensuse not for your target.


Oh of course! Thanks!
Went to /src/router/jansson and ran make clean, ./configure mipsel-linux and then everything went smoothly. Sorry, stupid error on my part.
So I compiled DD-WRT and the "2.6.24.111" kernel using the 4.5 linaro toolchain (Without the change on rev.22452, i.e. with ccache).I'll reenable FPU emulation to support optware and test everything. Will repost back.
Sponsor
Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Wed Nov 06, 2013 19:27    Post subject: Reply with quote
Mazout360 wrote:
<Kong> wrote:

skipping incompatible-> that's what I told you, you are mixing host with target libs and try to link against a lib that you compiled for opensuse not for your target.


Oh of course! Thanks!
Went to /src/router/jansson and ran make clean, ./configure mipsel-linux and then everything went smoothly. Sorry, stupid error on my part.
So I compiled DD-WRT and the "2.6.24.111" kernel using the 4.5 linaro toolchain (Without the change on rev.22452, i.e. with ccache).I'll reenable FPU emulation to support optware and test everything. Will repost back.


how has your progress been, I still get kernel panics using 4.5 toolchain for K2.6 kernel... I am now working on K3 but its a slow progress.

-Fractal
Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Thu Nov 07, 2013 0:14    Post subject: Reply with quote
I tried to compile mini K3x today, as suspected the 3.12 kernel is missing the generic bcmmips drivers.... Here is what I get

Code:
: Entering directory `/home/compiler/DEV/DD-WRT/src/linux/brcm/universal/linux-3.12'
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/tty/serial/Kconfig:1403:warning: type of 'SERIAL_AR933X' redefined from 'boolean' to 'tristate'
make[1]: Leaving directory `/home/compiler/DEV/DD-WRT/src/linux/brcm/universal/linux-3.12'
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
drivers/net/wl/wl_generic.mk:261: warning: overriding recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:118: warning: ignoring old recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:389: warning: overriding recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:261: warning: ignoring old recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:118: warning: overriding recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:389: warning: ignoring old recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:261: warning: overriding recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:118: warning: ignoring old recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:389: warning: overriding recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:261: warning: ignoring old recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:118: warning: overriding recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:389: warning: ignoring old recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:261: warning: overriding recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:118: warning: ignoring old recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:389: warning: overriding recipe for target `drivers/net/wl/wlconf.h'
drivers/net/wl/wl_generic.mk:261: warning: ignoring old recipe for target `drivers/net/wl/wlconf.h'
[ ! -f drivers/net/wl/wlconf.h ] || chmod +w drivers/net/wl/wlconf.h
check and update config file
VLIST          = APSTA APSTA APSTA
CONFIG_WL_CONF = wlconfig_lx_router_apsta
WLTUNEFILE     = wltunable_lx_router.h
cp drivers/net/wl/../../../brcm/mipsel/wl/config/wltunable_lx_router.h wltemp
drivers/net/wl/../../../brcm/mipsel/wl/config/diffupdate.sh wltemp drivers/net/wl/wlconf.h
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 2 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      vmlinux
drivers/built-in.o: In function `wlc_bs_vht_mcs_init':
wlc.c:(.text+0x10fbbc): undefined reference to `wlc_vht_update_cap'
drivers/built-in.o: In function `wlc_scb_disassoc_cleanup':
(.text+0x111f60): undefined reference to `wlc_txbf_delete_link'
drivers/built-in.o: In function `wlc_d11hdrs':
wlc.c:(.text+0x117ad4): undefined reference to `wlc_txbf_check'
wlc.c:(.text+0x117af0): undefined reference to `wlc_check_expected_txbf_system_gain'
drivers/built-in.o: In function `wlc_bcn_prb_body':
(.text+0x1214f0): undefined reference to `wlc_write_oper_mode_notif_ie'
drivers/built-in.o: In function `wlc_bcn_prb_body':
(.text+0x12155c): undefined reference to `wlc_vht_write_vht_ies'
drivers/built-in.o: In function `wlc_bcn_prb_body':
(.text+0x12181c): undefined reference to `wlc_vht_write_vht_brcm_ie'
drivers/built-in.o: In function `wlc_vht_update_scbstate':
(.text+0x1220e4): undefined reference to `wlc_vht_upd_rate_mcsmap'
drivers/built-in.o: In function `wlc_vht_update_scbstate':
(.text+0x1222cc): undefined reference to `wlc_txbf_update_vht_cap'
drivers/built-in.o: In function `wlc_recv_parse_bcn_prb':
(.text+0x12364c): undefined reference to `wlc_vht_parse_bcn_prb'
drivers/built-in.o: In function `wlc_set_rcmta':
(.text+0x128ef4): undefined reference to `wlc_txfbf_update_amt_idx'
drivers/built-in.o: In function `wlc_recv_process_beacon':
wlc.c:(.text+0x12c874): undefined reference to `wlc_read_vht_features_ie'
wlc.c:(.text+0x12c890): undefined reference to `wlc_read_vht_cap_ie'
wlc.c:(.text+0x12c8a8): undefined reference to `wlc_read_vht_op_ie'
wlc.c:(.text+0x12c8c4): undefined reference to `wlc_read_vht_cap_ie'
wlc.c:(.text+0x12c8dc): undefined reference to `wlc_read_vht_op_ie'
wlc.c:(.text+0x12c950): undefined reference to `wlc_read_oper_mode_notif_ie'
wlc.c:(.text+0x12caac): undefined reference to `wlc_vht_chanspec'
wlc.c:(.text+0x12d1d0): undefined reference to `wlc_txbf_init_link'
wlc.c:(.text+0x12da18): undefined reference to `wlc_read_oper_mode_notif_ie'
drivers/built-in.o: In function `wlc_sendassocreq':
(.text+0x12e6a8): undefined reference to `wlc_vht_write_vht_ies'
drivers/built-in.o: In function `wlc_sendassocreq':
(.text+0x12e704): undefined reference to `wlc_write_oper_mode_notif_ie'
drivers/built-in.o: In function `wlc_sendassocreq':
(.text+0x12e848): undefined reference to `wlc_vht_write_vht_brcm_ie'
drivers/built-in.o: In function `wlc_sendprobe':
(.text+0x132bd8): undefined reference to `wlc_vht_ie_len'
drivers/built-in.o: In function `wlc_sendprobe':
(.text+0x132e3c): undefined reference to `wlc_vht_write_vht_ies'
drivers/built-in.o: In function `wlc_sendprobe':
(.text+0x132f80): undefined reference to `wlc_vht_write_vht_brcm_ie'
drivers/built-in.o: In function `wlc_mimops_action_ht_complete':
wlc.c:(.text+0x133388): undefined reference to `wlc_vht_update_cap'
drivers/built-in.o: In function `wlc_recv':
(.text+0x137490): undefined reference to `wlc_frameaction_vht'
drivers/built-in.o: In function `wlc_init':
(.text+0x1383c0): undefined reference to `wlc_txbf_init_link'
drivers/built-in.o: In function `wlc_detach':
(.text+0x1391fc): undefined reference to `wlc_txbf_detach'
drivers/built-in.o: In function `wlc_attach':
(.text+0x13a418): undefined reference to `wlc_txbf_attach'
drivers/built-in.o: In function `wlc_attach':
(.text+0x13a8dc): undefined reference to `wlc_vht_init_defaults'
drivers/built-in.o: In function `wlc_doiovar':
(.text+0x13f714): undefined reference to `wlc_vht_update_sgi_rx'
drivers/built-in.o: In function `wlc_ap_authresp':
(.text+0x1587b4): undefined reference to `wlc_txbf_delete_link'
drivers/built-in.o: In function `wlc_ap_probe_complete':
(.text+0x1592f4): undefined reference to `wlc_txbf_delete_link'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15af24): undefined reference to `wlc_read_vht_features_ie'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15af44): undefined reference to `wlc_read_vht_cap_ie'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15af60): undefined reference to `wlc_read_vht_op_ie'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15af80): undefined reference to `wlc_read_vht_cap_ie'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15af9c): undefined reference to `wlc_read_vht_op_ie'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15b00c): undefined reference to `wlc_read_ext_cap_ie'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15b044): undefined reference to `wlc_read_oper_mode_notif_ie'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15bda8): undefined reference to `wlc_vht_ie_len'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15c070): undefined reference to `wlc_vht_write_vht_ies'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15c0b0): undefined reference to `wlc_write_oper_mode_notif_ie'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15c184): undefined reference to `wlc_vht_write_vht_brcm_ie'
drivers/built-in.o: In function `wlc_ap_process_assocreq':
(.text+0x15c214): undefined reference to `wlc_txbf_init_link'
drivers/built-in.o: In function `wlc_join_BSS':
(.text+0x165b28): undefined reference to `wlc_read_vht_features_ie'
drivers/built-in.o: In function `wlc_join_BSS':
(.text+0x165b44): undefined reference to `wlc_read_vht_cap_ie'
drivers/built-in.o: In function `wlc_join_BSS':
(.text+0x165b5c): undefined reference to `wlc_read_vht_op_ie'
drivers/built-in.o: In function `wlc_join_BSS':
(.text+0x165b78): undefined reference to `wlc_read_vht_cap_ie'
drivers/built-in.o: In function `wlc_join_BSS':
(.text+0x165b90): undefined reference to `wlc_read_vht_op_ie'
drivers/built-in.o: In function `wlc_assocresp_client':
(.text+0x168534): undefined reference to `wlc_read_ext_cap_ie'
drivers/built-in.o: In function `wlc_assocresp_client':
(.text+0x16856c): undefined reference to `wlc_read_oper_mode_notif_ie'
drivers/built-in.o: In function `wlc_assocresp_client':
(.text+0x16875c): undefined reference to `wlc_txbf_init_link'
drivers/built-in.o: In function `wlc_bmac_attach':
(.text+0x1768a0): undefined reference to `wlc_pio_attach'
drivers/built-in.o: In function `wlc_csa_write_chan_switch_wrapper_ie':
(.text+0x1825e8): undefined reference to `wlc_write_vht_transmit_power_envelope_ie'
drivers/built-in.o: In function `wlc_scb_ratesel_init':
(.text+0x1a1134): undefined reference to `wlc_vht_upd_rate_mcsmap'
drivers/built-in.o: In function `wlc_stf_rxchain_set':
(.text+0x1a3bd8): undefined reference to `wlc_vht_update_cap'
drivers/built-in.o: In function `wlc_stf_rxchain_set':
(.text+0x1a3bf0): undefined reference to `wlc_txbf_rxchain_upd'
drivers/built-in.o: In function `wlc_stf_txchain_set_complete':
(.text+0x1a4e3c): undefined reference to `wlc_vht_update_cap'
drivers/built-in.o: In function `wlc_stf_txchain_set_complete':
(.text+0x1a4e90): undefined reference to `wlc_txbf_txchain_upd'
drivers/built-in.o: In function `wlc_stf_doiovar':
wlc_stf.c:(.text+0x1a5820): undefined reference to `wlc_send_action_vht_oper_mode'
drivers/built-in.o: In function `init_module':
(.init.text+0x57f4): undefined reference to `__this_module'
drivers/built-in.o: In function `init_module':
(.init.text+0x5800): undefined reference to `__this_module'
drivers/built-in.o: In function `wlc_set_rateset':
wlc.c:(.text.unlikely+0x3bc): undefined reference to `wlc_vht_update_cap'
make[1]: *** [vmlinux] Error 1
make: *** [kernel] Error 2
Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Sat Nov 09, 2013 4:10    Post subject: Update : Reply with quote
I was able to make some success:

I was able to compile K26 to svn 22362 - changset 22363 - add's ccache support for K26 and this changes the kernel from being compiled with 4.1.2 and compiles it with 4.5.2,

4.5.2 causes kernel panic, and I have ticket open, appears to be problem with swapper in kernel.

I was able to also find the problem on why the router gets stuck in adhoc mode with K26, any change set after 21xx . The cause of this is the sstrip, it strips essential modules from the wireless driver, disabling sstrip resolves this issue and allows working wifi up to build 22362

Also changeset 22659 seems to break K26 for undefined declarations in mtd.c, will get exact error soon, I had to revert back to fix tree.

-Fractal
Mazout360
DD-WRT Novice


Joined: 21 Apr 2013
Posts: 21

PostPosted: Sun Nov 10, 2013 2:13    Post subject: Re: Update : Reply with quote
Fractal wrote:
I was able to make some success:

I was able to compile K26 to svn 22362 - changset 22363 - add's ccache support for K26 and this changes the kernel from being compiled with 4.1.2 and compiles it with 4.5.2,

4.5.2 causes kernel panic, and I have ticket open, appears to be problem with swapper in kernel.

I was able to also find the problem on why the router gets stuck in adhoc mode with K26, any change set after 21xx . The cause of this is the sstrip, it strips essential modules from the wireless driver, disabling sstrip resolves this issue and allows working wifi up to build 22362

Also changeset 22659 seems to break K26 for undefined declarations in mtd.c, will get exact error soon, I had to revert back to fix tree.

-Fractal


The undefined declarations from the mtd_api.h header ? I had that error too...changed the #include in mtd.c to the right header location and it compiled fine after
Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Sun Nov 10, 2013 2:46    Post subject: Reply with quote
So I was able to get 22786 to compile successfully on K26. There was a declaration for LAN_LED in utils.c that was undefined... And declaration for WLAN in reset button.c After I fixed those all seemed to compile.

Also had to revert svn commit 22363 - as it uses wrong toolchain

I am going to post my builds on basmafs ftp soon.

Did you get K3x to compile? if so what platform? AC/ E2500 ect

-Fractal
Fractal
DD-WRT Guru


Joined: 19 Apr 2010
Posts: 1243

PostPosted: Mon Dec 16, 2013 4:55    Post subject: K3x Reply with quote
I thought I would post here, and keep this thread alive...

Wanted to update progress on K3x, I was able to get ubuntu 13.10 to work fine to start the compile progress:

the libcloog.so.0 was solved by installing libcloog-ppl1
then going into the libdir /usr/lib
and then making symbolic link linking libcloog-ppl1.so.1 > libcloog.so.0
then the same was for libppl.so.9 was easy to fix as well.. symlinked libppl.so.12 to libppl.so.9 then the compile process took off.

I was able to compile right out of the box with opensuse 12.3 and 13.1, I kept getting the errors as posted before in this thread regarding drivers/built-in.o and the undefined reference to wireless commands.

I thought it might be distro related, however with ubuntu 13.10 did the same exact thing.. I am finding that I am only able to compile AC builds, compiling mini/std/mega non ac result in the error: I will post more.

Also on the way to compile ac, libjannson was a problem, that was fixed by going into dd-wrt/src/router and doing a make -f Makefile.brcm3x libjansson-configure
then that compiled fine... Will post more as I go.

edit: 3com needs to be fixed or removed from the .configure_ac as it spits out error of missing files.

CONFIG_3COM=y

cp 3com/style.css /home/compiler/DEV/DD-WRT/src/router/mipsel-uclibc/install/www/www/style/3com
cp: cannot stat ‘3com/style.css’: No such file or directory
make[1]: *** [installwebfiles] Error 1
make[1]: Leaving directory `/home/compiler/DEV/DD-WRT/src/router/kromo/dd-wrt'
make: *** [www] Error 2



But as it stands now, I am using r2 4.7 toolchain, but cannot compile anything other then AC builds with the latest commits up to 23130

-Fractal
hanskloss
DD-WRT User


Joined: 30 May 2010
Posts: 98

PostPosted: Fri Jan 24, 2014 21:05    Post subject: Reply with quote
Thanks Fractal for the tips!

It helped me in compiling some modules using dd-wrt toolchain. In my case it is ArchLinux 64bit. Installed first cloog 0.18.1-2 and ppl-1.1-1 then:

cd /usr/lib
ln -s libcloog-isl.so.4.0.0 libcloog.so.0
ln -s libppl.so.13.0.0 libppl.so.9

p.s.
Using toolchain-mipsel_r2_gcc-4.7-linaro_uClibc-0.9.33.2 for my AC router modules.

_________________
Asus RT-AC66R Target:brcm47xx SubTarget:mips74k Packages:mipsel_74kc
Netgear R7000 Target:bcm53xx Packages:arm_cortex-a9
kelddamsbo
DD-WRT Novice


Joined: 28 Feb 2014
Posts: 5

PostPosted: Thu Mar 13, 2014 7:48    Post subject: Reply with quote
Fractal about your post from Thu Nov 07, 2013 1:14.

How did you solve the missing bcm part, I get the same error ?
kelddamsbo
DD-WRT Novice


Joined: 28 Feb 2014
Posts: 5

PostPosted: Sat Mar 22, 2014 6:51    Post subject: Reply with quote
Here is what I do:

######################## Ubuntu x64 13.10 #############################################################
sudo apt-get update
sudo apt-get install -y g++ flex bison zlib1g-dev automake automake1.4 automake1.7 automake1.9 subversion libncurses5-dev dia git-core texinfo libtool autopoint libppl0.12-dev mc gitk build-essential ccache gperf libcurl4-openssl-dev libcrypt-openssl* texlive flip cvs gawk libtomcrypt-dev libtommath-dev libcloog-ppl1 sharutils libpcap-dev iftop uml-utilities gir1.2-gtksource-3.0 libiconv-hook-dev python-dev cmake libreadline6-dev
sudo apt-get install -y libstdc++5 #old version that some OS's might need?
sudo apt-get install -y lib32z1 lib32ncurses5 lib32bz2-1.0 (Former ia32-libs)

cd /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/libcloog-ppl.so.1.0.1 libcloog.so.0
sudo ln -s /usr/lib/x86_64-linux-gnu/libppl.so.12.0.0 libppl.so.9
sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so libcrypto.so.1.0.0

# Install iconv char support
mkdir iconv
cd iconv
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.11.tar.gz
tar -xvzf libiconv-1.11.tar.gz
cd libiconv-1.11
./configure --prefix=/usr/local/libiconv
make
sudo make install
cd /home/$USER

# Install tooolchains:
cd /home/$USER
mkdir dd-wrt
cd dd-wrt
mkdir toolchains
cd toolchains
wget https://secure.dd-wrt.com/dd-wrtv2/downloads/others/sourcecode/toolchains/current-toolchains.tar.bz2
tar -jxvf current-toolchains.tar.bz2
cd ..

# Checkout source code [23764]
svn co svn://svn.dd-wrt.com/DD-WRT

#Fix missing drivers
cd ~/dd-wrt/DD-WRT/src/router
mkdir private
Udpak private.tar.bz2 til private
# git clone git://gitorious.org/wive-rtnl-ralink-rt305x-routers-firmware/wive-rtnl-ralink-rt305x-routers-firmware.git
cd private
mkdir ath9k-rules

# Make env
export TOOLCHAIN=/home/$USER/dd-wrt/toolchains/toolchain-mipsel_r2_gcc-4.7-linaro_uClibc-0.9.33.2
export PATH=$TOOLCHAIN/bin:$PATH
echo $PATH
cp ~/dd-wrt/DD-WRT/src/linux/universal/linux-3.10/arch/mips/configs/bcm47xx_defconfig ~/dd-wrt/DD-WRT/src/linux/universal/linux-3.10/arch/mips/defconfig-bcm947xx

cd ~/dd-wrt/DD-WRT/opt
echo "#define BUILD_DATE \"$(date +%D)\"" > build.h


cd ~/dd-wrt/DD-WRT/src/router/libutils
echo -n '#define SVN_REVISION "' > revision.h
svnversion -n . >> revision.h
echo '"' >> revision.h

cd ~/dd-wrt/DD-WRT/src/router/httpd/visuals
echo -n '#define SVN_REVISION "' > revision.h
svnversion -n . >> revision.h
echo '"' >> revision.h

cd ~/dd-wrt/DD-WRT/src/router/httpd
echo -n '#define SVN_REVISION "' > revision.h
svnversion -n . >> revision.h
echo '"' >> revision.h

# Configure
cd ~/dd-wrt/DD-WRT/src/router/tools
rm jsformat
make jsformat
cd ~/dd-wrt/DD-WRT/src/squashfs-tools/lzma/C/7zip/Compress/LZMA_Alone
mv makefile makefile.disabled
mv makefile.gcc makefile
make
cp -vf lzma ~/dd-wrt/DD-WRT/opt/loader-0.02/
mv makefile makefile.gcc
mv makefile.disabled makefile
cd ~/dd-wrt/DD-WRT/src/squashfs-tools
rm mksquashfs-lzma
sudo make
cp mksquashfs-lzma ../linux/universal/linux-3.10/scripts/squashfs
cd ~/dd-wrt/DD-WRT/tools/
rm ./strip
gcc strip.c -o ./strip
rm ./write3
gcc write3.c -o ./write3
rm ./write4
gcc write4.c -o ./write4
rm ./webcomp
gcc -o webcomp -DUEMF -DWEBS -DLINUX webcomp.c
cd ~/dd-wrt/DD-WRT/opt/tools/
gcc -o trx trx.c

cd ~/dd-wrt/DD-WRT/src/router
cp ./configs/broadcom_K3x/.config_mini.v24-K26 .config
echo CONFIG_NVRAM_60K=y >> .config
# In .config
# uncomment CONFIG_SPUTNIK_APD=y
#in "~/dd-wrt/DD-WRT/src/router/rules/all.mk" uncomment mmc-ixp4xx.mk strace.mk oled.mk atm.mk $(TOP)/private/ath9k-rules/ath9k.mk

make -f Makefile.brcm3x configure

#build
make -f Makefile.brcm3x clean all install
kelddamsbo
DD-WRT Novice


Joined: 28 Feb 2014
Posts: 5

PostPosted: Sat Mar 22, 2014 9:04    Post subject: Reply with quote
Forgot, my goal is only E2000 and E3200
kelddamsbo
DD-WRT Novice


Joined: 28 Feb 2014
Posts: 5

PostPosted: Tue Apr 15, 2014 13:52    Post subject: Reply with quote
Okay, I went back to K26.
I have tried Debian 7 also, but its nearly the same, but more complicated.

And here is what I do in Ubuntu:

#Ubuntu x64 13.10
#VMware Player
#4 cpu 2048 mb ram
#Display 1024*768
#
sudo apt-get update
sudo apt-get install -y g++ flex bison zlib1g-dev automake automake1.4 automake1.7 automake1.9 automake1.10 automake1.11 subversion libncurses5-dev dia git-core texinfo
sudo apt-get install -y libtool autopoint libppl0.12-dev mc gitk build-essential ccache gperf libcurl4-openssl-dev libcrypt-openssl* texlive flip cvs gawk libtomcrypt-dev
sudo apt-get install -y libtommath-dev sharutils libpcap-dev iftop uml-utilities gir1.2-gtksource-3.0 libiconv-hook-dev python-dev cmake libreadline6-dev sqlite3
sudo apt-get install -y libsqlite3-dev doxygen lib32z1 lib32ncurses5 lib32bz2-1.0 libcloog-ppl1 g++-4.7 gcc-4.7 gcc-multilib intltool libbz2-dev libgc-dev libglib2.0-dev
sudo apt-get install -y lib32z-dev libffi-dev libgdbm-dev shtool tk-dev libxml2-dev attr libattr1-dev libacl1-dev libusb-dev pcsc-tools libblkid-dev libreadline-dev
sudo apt-get install -y python-all libpopt-dev libcups2-dev python-dnspython docbook-xsl gengetopt xsltproc liblz-dev liblz4-dev libid3tag0-dev libavutil-dev libavcodec-dev
sudo apt-get install -y libavformat-dev libjpeg-dev libexif-dev libvorbis-dev libflac-dev libgtk2.0-dev libfreeradius-dev libidzebra-2.0-dev lib32ncurses5-dev librpcsecgss-dev
sudo apt-get install -y libmatrixssl-dev libfuse-dev ntfs-3g-dev libssl0.9.8 libsslcommon2-dev
#old version that some OS's might need?
sudo apt-get install -y libstdc++5

# Install tooolchains:
cd /home/$USER
mkdir dd-wrt
cd dd-wrt
mkdir toolchains
cd toolchains
wget https://secure.dd-wrt.com/dd-wrtv2/downloads/others/sourcecode/toolchains/current-toolchains.tar.bz2
tar -jxvf current-toolchains.tar.bz2
cd ..

# Checkout source code [23906]
svn co svn://svn.dd-wrt.com/DD-WRT

#Fix missing stuff
cd /home/$USER/dd-wrt/DD-WRT/src/router
mkdir private
cd private
mkdir ath9k-rules
Udpak private.tar.bz2 til private
# git clone git://gitorious.org/wive-rtnl-ralink-rt305x-routers-firmware/wive-rtnl-ralink-rt305x-routers-firmware.git
tar -jxvf private.tar.bz2
mkdir madwifi
mv ~/dd-wrt/DD-WRT/src/router/madwifi/Makefile ~/dd-wrt/DD-WRT/src/router/madwifi/Makefile.org
cp ~/dd-wrt/DD-WRT/src/router/madwifi/patches/2.6/Makefile ~/dd-wrt/DD-WRT/src/router/madwifi/Makefile
cp ~/dd-wrt/DD-WRT/src/router/madwifi/patches/2.6/Kconfig ~/dd-wrt/DD-WRT/src/router/madwifi/Kconfig
cp ~/dd-wrt/DD-WRT/src/router/madwifi/patches/install.sh ~/dd-wrt/DD-WRT/src/router/madwifi/install.sh
sudo ln -s ~/dd-wrt/DD-WRT/src/router/private/madwifi /xfs/madwifi_nm
ln -s ~/dd-wrt/DD-WRT/opt/sstrip ~/dd-wrt/DD-WRT/src/router/sstrip
cp ~/dd-wrt/DD-WRT/src/linux/brcm/linux-2.6.23/arch/mips/defconfig-bcm947xx-slimrtr ~/dd-wrt/DD-WRT/src/linux/brcm/linux-2.6.23/arch/mips/defconfig-bcm947xx
cp ~/dd-wrt/DD-WRT/src/linux/universal/linux-3.10/arch/mips/configs/bcm47xx_defconfig ~/dd-wrt/DD-WRT/src/linux/universal/linux-3.10/arch/mips/defconfig-bcm947xx
cp ~/dd-wrt/DD-WRT/src/linux/universal/linux-3.12/arch/mips/configs/bcm47xx_defconfig ~/dd-wrt/DD-WRT/src/linux/universal/linux-3.12/arch/mips/defconfig-bcm947xx
cp ~/dd-wrt/DD-WRT/src/linux/universal/linux-3.13/arch/mips/configs/bcm47xx_defconfig ~/dd-wrt/DD-WRT/src/linux/universal/linux-3.13/arch/mips/defconfig-bcm947xx
cp ~/dd-wrt/DD-WRT/src/linux/universal/linux-3.14/arch/mips/configs/bcm47xx_defconfig ~/dd-wrt/DD-WRT/src/linux/universal/linux-3.14/arch/mips/defconfig-bcm947xx
sudo ln -s /usr/lib/x86_64-linux-gnu/libcloog-ppl.so.1.0.1 /usr/lib/libcloog.so.0
sudo ln -s /usr/lib/x86_64-linux-gnu/libppl.so.12.0.0 /usr/lib/libppl.so.9
sudo mkdir /xfs
sudo ln -s /home/$USER/dd-wrt/toolchains /xfs/toolchains
sudo ln -s /home/$USER/dd-wrt/toolchains/toolchain-mipsel_gcc4.1.2 /opt/4.1.2
sudo mkdir -p /usr/local/share/xsl
sudo ln -s /usr/share/xml/docbook/stylesheet/docbook-xsl /usr/local/share/xsl/docbook

# Configure once
# Do not run the commented commands, they wil ruin the web interface
cd ~/dd-wrt/DD-WRT/src/router/tools
rm jsformat
make jsformat
cd ~/dd-wrt/DD-WRT/src/squashfs-tools/lzma/C/7zip/Compress/LZMA_Alone
mv makefile makefile.disabled
mv makefile.gcc makefile
make
cp lzma ~/dd-wrt/DD-WRT/src/router/netgear/
cp -vf lzma ~/dd-wrt/DD-WRT/opt/loader-0.02/
mv makefile makefile.gcc
mv makefile.disabled makefile
cd ~/dd-wrt/DD-WRT/src/squashfs-tools
rm -f mksquashfs-lzma
sudo make
cp mksquashfs-lzma ../linux/universal/linux-3.10/scripts/squashfs
cp mksquashfs-lzma ../linux/universal/linux-3.12/scripts/squashfs
cp mksquashfs-lzma ../linux/universal/linux-3.13/scripts/squashfs
cp mksquashfs-lzma ../linux/universal/linux-3.14/scripts/squashfs
cp mksquashfs-lzma ../linux/brcm/linux-2.6.23/scripts/squashfs
cd ~/dd-wrt/DD-WRT/tools/
#
#in ~/dd-wrt/DD-WRT/tools/strip.c replace
#printf("len %d\n",strlen(printbuffer));
#with
#printf("len %zd\n",strlen(printbuffer));

rm strip
gcc-4.7 -o strip strip.c
#rm write3
#gcc-4.7 -o write3 write3.c
rm write4
gcc-4.7 -o write4 write4.c
#rm ./webcomp
#gcc-4.7 -o webcomp -DUEMF -DWEBS -DLINUX webcomp.c
cd ~/dd-wrt/DD-WRT/opt/tools/
#in ~/dd-wrt/DD-WRT/opt/tools/trx.c replace
# fprintf(stderr, "WARNING: current length exceeds -b %d offset\n",n);
#with
# fprintf(stderr, "WARNING: current length exceeds -b %zd offset\n",n);
gcc-4.7 -o trx trx.c
cd ~/dd-wrt/DD-WRT/opt/asus
make clean all
rm -f asustrx-rt66u
cc -o asustrx-rt66u asustrx-rt66u.c
cd ~/dd-wrt/DD-WRT/src/router/minidlna/libexif-0.6.19/doc
doxygen -u
cd ~/dd-wrt/DD-WRT/src/router
#in Makefile.brcm3x replace:
#../../opt/asus/asustrx-rt66u -p RT-AC66U -v 3.0.0.1 -m 32000000 -o $(ARCH)-uclibc/dd-wrt.v24-K3_RT-AC66U.trx $(ARCH)-uclibc/lzma_vmlinuz -a 1024 $(ARCH)-uclibc/rootfs.squashfs
#with:
#../../opt/asus/asustrx-rt66u -p RT-AC66U -v 3.0.0.1 -m 32000000 -o $(ARCH)-uclibc/dd-wrt.v24-K3_RT-AC66U.trx $(ARCH)-uclibc/lzma_vmlinuz $(ARCH)-uclibc/rootfs.squashfs
#And comment:
# cd $(ARCH)-uclibc && ../tools/bufenc/makefw.sh dd-wrt.v24-K3-nandboot

#in "~/dd-wrt/DD-WRT/src/router/rules/all.mk" comment mmc-ixp4xx.mk strace.mk oled.mk atm.mk $(TOP)/private/ath9k-rules/ath9k.mk

# in "~/dd-wrt/DD-WRT/src/linux/universal/linux-3.10/drivers/net/wireless/Kconfig" comment out the following lines:
# in "~/dd-wrt/DD-WRT/src/linux/universal/linux-3.12/drivers/net/wireless/Kconfig" comment out the following lines:
# in "~/dd-wrt/DD-WRT/src/linux/universal/linux-3.13/drivers/net/wireless/Kconfig" comment out the following lines:
# in "~/dd-wrt/DD-WRT/src/linux/universal/linux-3.14/drivers/net/wireless/Kconfig" comment out the following lines:
# if RALINK_DEVICE
# source "drivers/net/wireless/rt3352/rt2860v2_ap/Kconfig"
# source "drivers/net/wireless/rt3352/rt2860v2_sta/Kconfig"
# endif
# if SOC_MT7620_OPENWRT
# source "drivers/net/wireless/rt7620/rt2860v2_ap/Kconfig"
# source "drivers/net/wireless/rt7620/rt2860v2_sta/Kconfig"
# source "drivers/net/wireless/rt5592/Kconfig"
# endif

#in "~/dd-wrt/DD-WRT/src/router/rules/nocat.mk" replace
# cd glib && ./config.sh "$(CC)" "$(COPTS) $(MIPS16_OPT)" ac_cv_host=$(ARCH)-uclibc-linux --target=$(ARCH)-linux --host=$(ARCH)
#with:
# cd $(TOP)/glib && ./config.sh "$(CC)" "$(COPTS) $(MIPS16_OPT)" ac_cv_host=$(ARCH)-uclibc-linux --target=$(ARCH)-linux --host=$(ARCH)

#Linux:
cd ~/dd-wrt/DD-WRT/src/linux/brcm/linux-2.6.23
cp .config_std .config

# Fix a bug
cp ~/dd-wrt/DD-WRT/src/router/iproute2/include/linux/rtnetlink.h ~/dd-wrt/DD-WRT/src/router/iproute2/include/linux/rtnetlink.org
cp ~/dd-wrt/DD-WRT/src/router/iproute2/include/linux/rtnetlink.h ~/dd-wrt/DD-WRT/src/router/iproute2/include/linux/rtnetlink.custom
#Delete the following 3 sections from ~/dd-wrt/DD-WRT/src/router/iproute2/include/linux/rtnetlink.custom because
#they are already defined in ~/dd-wrt/toolchains/toolchain-mipsel_r2_gcc-4.7-linaro_uClibc-0.9.33.2/include/linux/if_link
# and gives error in iproute2 with stop of make

#Section1:
#struct rtnl_link_stats
#{
# __u32 rx_packets; /* total packets received */
# __u32 tx_packets; /* total packets transmitted */
# __u32 rx_bytes; /* total bytes received */
# __u32 tx_bytes; /* total bytes transmitted */
# __u32 rx_errors; /* bad packets received */
# __u32 tx_errors; /* packet transmit problems */
# __u32 rx_dropped; /* no space in linux buffers */
# __u32 tx_dropped; /* no space available in linux */
# __u32 multicast; /* multicast packets received */
# __u32 collisions;
#
# /* detailed rx_errors: */
# __u32 rx_length_errors;
# __u32 rx_over_errors; /* receiver ring buff overflow */
# __u32 rx_crc_errors; /* recved pkt with crc error */
# __u32 rx_frame_errors; /* recv'd frame alignment error */
# __u32 rx_fifo_errors; /* recv'r fifo overrun */
# __u32 rx_missed_errors; /* receiver missed packet */
#
# /* detailed tx_errors */
# __u32 tx_aborted_errors;
# __u32 tx_carrier_errors;
# __u32 tx_fifo_errors;
# __u32 tx_heartbeat_errors;
# __u32 tx_window_errors;
#
# /* for cslip etc */
# __u32 rx_compressed;
# __u32 tx_compressed;
#};
#
#/* The struct should be in sync with struct ifmap */
#struct rtnl_link_ifmap
#{
# __u64 mem_start;
# __u64 mem_end;
# __u64 base_addr;
# __u16 irq;
# __u8 dma;
# __u8 port;
#};
#
#enum
#{
# IFLA_UNSPEC,
# IFLA_ADDRESS,
# IFLA_BROADCAST,
# IFLA_IFNAME,
# IFLA_MTU,
# IFLA_LINK,
# IFLA_QDISC,
# IFLA_STATS,
# IFLA_COST,
##define IFLA_COST IFLA_COST
# IFLA_PRIORITY,
##define IFLA_PRIORITY IFLA_PRIORITY
# IFLA_MASTER,
##define IFLA_MASTER IFLA_MASTER
# IFLA_WIRELESS, /* Wireless Extension event - see wireless.h */
##define IFLA_WIRELESS IFLA_WIRELESS
# IFLA_PROTINFO, /* Protocol specific information for a link */
##define IFLA_PROTINFO IFLA_PROTINFO
# IFLA_TXQLEN,
##define IFLA_TXQLEN IFLA_TXQLEN
# IFLA_MAP,
##define IFLA_MAP IFLA_MAP
# IFLA_WEIGHT,
##define IFLA_WEIGHT IFLA_WEIGHT
# __IFLA_MAX
#};
#
#
#Section2:
#
#
#/* Subtype attributes for IFLA_PROTINFO */
#enum
#{
# IFLA_INET6_UNSPEC,
# IFLA_INET6_FLAGS, /* link flags */
# IFLA_INET6_CONF, /* sysctl parameters */
# IFLA_INET6_STATS, /* statistics */
# IFLA_INET6_MCAST, /* MC things. What of them? */
# IFLA_INET6_CACHEINFO, /* time values and max reasm size */
# __IFLA_INET6_MAX
#};
#
#
#Section3:
#
#
#struct ifla_cacheinfo
#{
# __u32 max_reasm_len;
# __u32 tstamp; /* ipv6InterfaceTable updated timestamp */
# __u32 reachable_time;
# __u32 retrans_time;
#};
#

#
# Backup from here
#

# NOT in first run
rm ~/dd-wrt/DD-WRT/src/router/iproute2/include/linux/rtnetlink.h
cp ~/dd-wrt/DD-WRT/src/router/iproute2/include/linux/rtnetlink.custom ~/dd-wrt/DD-WRT/src/router/iproute2/include/linux/rtnetlink.h
#cp ~/dd-wrt/DD-WRT/src/router/iproute2/include/linux/rtnetlink.org ~/dd-wrt/DD-WRT/src/router/iproute2/include/linux/rtnetlink.h

#in ~/dd-wrt/DD-WRT/src/linux/brcm/linux-2.6.23/drivers/net/wireless/Kconfig comment source "drivers/net/wireless/madwifi/Kconfig"

#Fix problem with asterisk
sudo ln -s /home/$USER/dd-wrt/DD-WRT/src/router/minidlna/sqlite-3.6.22/.libs/libsqlite3.so.0.8.6 /home/$USER/dd-wrt/DD-WRT/src/router/asterisk/main/libsqlite3.so
sudo ln -s /home/$USER/dd-wrt/DD-WRT/src/router/minidlna/sqlite-3.6.22/.libs/libsqlite3.a /home/$USER/dd-wrt/DD-WRT/src/router/asterisk/main/libsqlite3.a
#in ~/dd-wrt/DD-WRT/src/router/asterisk/main/Makefile comment
#ifneq ($(LDCONFIG),)
# $(LDCONFIG) $(LDCONFIG_FLAGS) .
#endif
#
#and
#
#ifneq ($(LDCONFIG),)
# $(LDCONFIG) $(LDCONFIG_FLAGS) "$(DESTDIR)$(ASTLIBDIR)/"
#endif
#
#and
#
#ifneq ($(LDCONFIG),)
# $(LDCONFIG) $(LDCONFIG_FLAGS) "$(DESTDIR)$(ASTLIBDIR)/"
#endif

#Fix problem with openssl not getting -lssl
#in ~/dd-wrt/DD-WRT/src/router/rules/openssl.mk comment
# $(MAKE) -C openssl clean

# Make env
export TOOLCHAIN=/home/$USER/dd-wrt/toolchains/toolchain-mipsel_r2_gcc-4.7-linaro_uClibc-0.9.33.2
export PATH=$TOOLCHAIN/bin:$PATH

#Update source
cd ~/dd-wrt/DD-WRT
svn up
cd ~/dd-wrt/DD-WRT/opt
echo "#define BUILD_DATE \"$(date +%D)\"" > build.h

cd ~/dd-wrt/DD-WRT/src/router/libutils
echo -n '#define SVN_REVISION "' > revision.h
svnversion -n . >> revision.h
echo '"' >> revision.h
cd ~/dd-wrt/DD-WRT/src/router/httpd/visuals
echo -n '#define SVN_REVISION "' > revision.h
svnversion -n . >> revision.h
echo '"' >> revision.h
cd ~/dd-wrt/DD-WRT/src/router/httpd
echo -n '#define SVN_REVISION "' > revision.h
svnversion -n . >> revision.h
echo '"' >> revision.h

# If I dont start with the small ones first time, ncurses etc. will fail
# Sometimes the make should be run twice the first time to succeed
#mini
cd ~/dd-wrt/DD-WRT/src/router
cp ./configs/broadcom_K26/.config_mini.v24-K26 .config
echo CONFIG_NVRAM_60K=y >> .config
# K26 Sputnik do not compile : all .config
grep -v CONFIG_SPUTNIK .config > .config.new
mv .config{.new,}
make -f Makefile.brcm26 configure
make -f Makefile.brcm26 clean all install
cd mipsel-uclibc
REV=`svn info |grep Revision | cut -f 2 -d ' '`
export TYPE=mini
cp dd-wrt.v24-K26_e2000.bin ~/dd-wrt/DD-WRT/image/dd-wrt.v24-${REV}_NEWD-2_K2.6_${TYPE}-e2000.bin

#std
cd ~/dd-wrt/DD-WRT/src/router
cp ./configs/broadcom_K26/.config_std.v24-K26 .config
echo CONFIG_NVRAM_60K=y >> .config
# K26 Sputnik do not compile : all .config
grep -v CONFIG_SPUTNIK .config > .config.new
mv .config{.new,}
# K26 Kaid do not compile : std, mega and giga .config
grep -v CONFIG_KAID .config > .config.new
mv .config{.new,}
make -f Makefile.brcm26 configure
make -f Makefile.brcm26 clean all install
cd mipsel-uclibc
REV=`svn info |grep Revision | cut -f 2 -d ' '`
export TYPE=std
cp dd-wrt.v24-K26_e2000.bin ~/dd-wrt/DD-WRT/image/dd-wrt.v24-${REV}_NEWD-2_K2.6_${TYPE}-e2000.bin

# Build for e2000
cd ~/dd-wrt/DD-WRT/src/router
cp ./configs/broadcom_K26/.config_big.v24-K26 .config
echo CONFIG_NVRAM_60K=y >> .config
echo CONFIG_NMBD=y >> .config
# K26 Save flash
grep -v CONFIG_WIFIDOG .config > .config.new
mv .config{.new,}
grep -v CONFIG_CHILLILOCAL .config > .config.new
mv .config{.new,}
grep -v CONFIG_NOCAT .config > .config.new
mv .config{.new,}
grep -v CONFIG_HOTSPOT .config > .config.new
mv .config{.new,}
grep -v CONFIG_OPENSER .config > .config.new
mv .config{.new,}
grep -v CONFIG_MILKFISH .config > .config.new
mv .config{.new,}
grep -v CONFIG_CHILLISPOT .config > .config.new
mv .config{.new,}
# K26 Sputnik do not compile : all .config
grep -v CONFIG_SPUTNIK .config > .config.new
mv .config{.new,}
make -f Makefile.brcm26 configure
make -f Makefile.brcm26 clean all install
cd mipsel-uclibc
REV=`svn info |grep Revision | cut -f 2 -d ' '`
export TYPE=bigc
cp dd-wrt.v24-K26_e2000.bin ~/dd-wrt/DD-WRT/image/dd-wrt.v24-${REV}_NEWD-2_K2.6_${TYPE}-e2000.bin

#mega
cd ~/dd-wrt/DD-WRT/src/router
cp ./configs/broadcom_K26/.config_mega.v24-K26 .config
echo CONFIG_NVRAM_60K=y >> .config
# K26 Sputnik do not compile : all .config
grep -v CONFIG_SPUTNIK .config > .config.new
mv .config{.new,}
# K26 Kaid do not compile : std, mega and giga .config
grep -v CONFIG_KAID .config > .config.new
mv .config{.new,}
make -f Makefile.brcm26 configure
make -f Makefile.brcm26 clean all install
cd mipsel-uclibc
REV=`svn info |grep Revision | cut -f 2 -d ' '`
export TYPE=mega
cp dd-wrt.v24-K26_e2000.bin ~/dd-wrt/DD-WRT/image/dd-wrt.v24-${REV}_NEWD-2_K2.6_${TYPE}-e2000.bin

# Build for e3200
cd ~/dd-wrt/DD-WRT/src/router
cp ./configs/broadcom_K26/.config_giga.v24-K26 .config
echo CONFIG_NVRAM_60K=y >> .config
# K26 Sputnik do not compile : all .config
grep -v CONFIG_SPUTNIK .config > .config.new
mv .config{.new,}
# K26 Kaid do not compile : std, mega and giga .config
grep -v CONFIG_KAID .config > .config.new
mv .config{.new,}
# K26 Save flash : giga .config
grep -v CONFIG_MC .config > .config.new
mv .config{.new,}
make -f Makefile.brcm26 configure
make -f Makefile.brcm26 clean all install
cd mipsel-uclibc
REV=`svn info |grep Revision | cut -f 2 -d ' '`
export TYPE=gigac
cp dd-wrt.v24-K26_e3200.bin ~/dd-wrt/DD-WRT/image/dd-wrt.v24-${REV}_NEWD-2_K2.6_${TYPE}-e3200.bin
cd ..

################ TIPS ####################
#Log results to files
#(make -f Makefile.brcm26 configure | tee /home/$USER/dd-wrt/stdoutconf.log) 3>&1 1>&2 2>&3 | tee /home/$USER/dd-wrt/stderrconf.log
#make -f Makefile.brcm26 configure 2>&1 | tee /home/$USER/dd-wrt/stdoutconf.log
#
#(make -f Makefile.brcm26 clean all install | tee /home/$USER/dd-wrt/stdoutbuild.log) 3>&1 1>&2 2>&3 | tee /home/$USER/dd-wrt/stderrbuild.log
#make -f Makefile.brcm26 clean all install 2>&1 | tee /home/$USER/dd-wrt/stdoutbuild.log

#more info in config.log files
#replace -wl, with -wl,--verbose=99, in relevant Makefile

#Fix minidlna compile
#cd ~/dd-wrt/DD-WRT/src/router/minidlna/libid3tag-0.15.0b
#aclocal
#or
from router dir
rm -fr minidlna
svn export svn://svn.dd-wrt.com/DD-WRT//src/router/minidlna
#make -f Makefile.brcm26 minidlna-configure

#Fix radvd compile
cd ~/dd-wrt/DD-WRT/src/router/radvd
aclocal-1.7
cd ..

#Test openssl configure
make -f Makefile.brcm26 openssl-configure

#Fix usb_modeswitch compile
cd /home/keld/dd-wrt/DD-WRT/src/router/usb_modeswitch/libusb-compat/libusb
mv -f .deps/libusb_la-core.Plo .deps/libusb_la-core.Tpo
# if error aclocal-1.11: couldn't open directory 'm4'
rm -fr usb_modeswitch
svn export svn://svn.dd-wrt.com/DD-WRT//src/router/usb_modeswitch
cd ~/dd-wrt/DD-WRT/src/router/usb_modeswitch/libusb-compat
aclocal-1.11 -I m4 --install
cd ~/dd-wrt/DD-WRT/src/router/usb_modeswitch/libusb
aclocal-1.11 -I m4 --install
cd ~/dd-wrt/DD-WRT/src/router/usb_modeswitch
make clean
cd ..
make -f Makefile.brcm26 usb_modeswitch-configure

Hit CTRL+h to show hidden files
|
Export partial:
rm ~/dd-wrt/DD-WRT/src/router/iproute2/include/linux/rtnetlink.h
svn export svn://svn.dd-wrt.com/DD-WRT//src/router/iproute2/include/linux/rtnetlink.h
#or from router dir
cd ~/dd-wrt/DD-WRT/src/router
rm -fr ~/dd-wrt/DD-WRT/src/router/openssl
svn export svn://svn.dd-wrt.com/DD-WRT//src/router/openssl

svn diff

#The best way to "start" clean, go to src/router and
make -f Makefile.brcm26 clean
make -f Makefile.brcm26 distclean
suddy
DD-WRT Novice


Joined: 01 Nov 2014
Posts: 4

PostPosted: Thu Nov 06, 2014 15:39    Post subject: Reply with quote
Mazout360 wrote:
<Kong> wrote:

skipping incompatible-> that's what I told you, you are mixing host with target libs and try to link against a lib that you compiled for opensuse not for your target.


Oh of course! Thanks!
Went to /src/router/jansson and ran make clean, ./configure mipsel-linux and then everything went smoothly. Sorry, stupid error on my part.
So I compiled DD-WRT and the "2.6.24.111" kernel using the 4.5 linaro toolchain (Without the change on rev.22452, i.e. with ccache).I'll reenable FPU emulation to support optware and test everything. Will repost back.


I have try to use this common to compile the jansson, and it work
cd ~/DEV/src/router/jansson
./configure --host mipsel-linux
make
samonia
DD-WRT Novice


Joined: 20 Nov 2014
Posts: 2

PostPosted: Thu Nov 20, 2014 10:40    Post subject: Reply with quote
Asked kong which distro he used to compile.
He is using opensuse 12.3

I have now testing 2 machines based on red hat, both have glibc >=2.14
Fedora 16 & opensuse 12.3

Also trying both the 4.7 toolchains didn't have a working build yet.

On fedora I have a lot of problems.
I can't get bird to compile. (also previous verision fails)

On opensuse head compiles with r2 4.7 toolchain.
but no webui.

According to kong its probably an offset problem with webcomp.
But since he is able to build head I might be missing some libs.
At least he confirmed not to recompile webcomp

But am still figuring out which libs I need on fedora and opensuse.
He suggested to add strace to a build to debug.
______________
врати блиндирани врати входни врати интериорни врати


Last edited by samonia on Sun Nov 30, 2014 12:50; edited 1 time in total
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Fri Nov 28, 2014 11:11    Post subject: Reply with quote
samonia wrote:


On opensuse head compiles with r2 4.7 toolchain.
but no webui.

According to kong its probably an offset problem with webcomp.


I have exact the same prolem on both Ubuntu 14.10 and OpenSUSE 13.2. Head compiles fine, but web ui have errors in output HTML. I recompiled webcomp and write3 write4 as Kong suggested in his guide for Broadcom. Will try with stock ones and report.

Find if I compile dd-wrt with stock write3 write4 webcomp - Web UI works perfectly. So, it's definitely bug in those binaries after compiling on host.
Goto page Previous  1, 2, 3 ... , 23, 24, 25  Next Display posts from previous:    Page 24 of 25
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Generic Questions 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