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.
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.
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
Posted: Sat Nov 09, 2013 4:10 Post subject: Update :
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.
Posted: Sun Nov 10, 2013 2:13 Post subject: Re: Update :
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
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
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
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
# 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
# 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
#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
# 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
#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
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
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
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.