找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 10398|回复: 15

编译tomato源码遇到的问题请教

[复制链接]
发表于 2012-5-1 00:45 | 显示全部楼层 |阅读模式
我是根据Sady的教程进行的:https://www.right.com.cn/forum/thread-53623-1-1.html
同时也对照了官网的教程:

http://tomatousb.org/tut:how-to-build-and-rebuild-tomato-for-total-noobs#1

根据Sady兄的说明,我进行到:四. 查看并获取当前tomato 分支源码,有点小问题

root@ubuntu:/home/wwt/tomato_git/tomato# git branch -r
  origin/Clientmon
  origin/HEAD -> origin/tomato
  origin/Moc-RT-N
  origin/QOS-DEV
  origin/QOS-Limiter
  origin/Static-ARP
  origin/Teaman-BWM
  origin/Teaman-IPTraffic
  origin/Teaman-ND
  origin/Teaman-ND-SDHC
  origin/Teaman-PPTP
  origin/Teaman-RT
  origin/Toastman-IPT-ND
  origin/Toastman-ND
  origin/Toastman-RT
  origin/Toastman-RT-N
  origin/Toastman-VLAN-ND
  origin/Toastman-VLAN-RT
  origin/Toastman-VLAN-RT-N
  origin/Tomato-RAF
  origin/Tomato-RAF-RT-N
  origin/Transmission
  origin/VLAN-GUI
  origin/VLAN-MultiSSID
  origin/minidlna
  origin/multilanguage
  origin/nfs_server
  origin/ntfs-3g
  origin/p910nd
  origin/tomato
  origin/tomato-K26-WL
  origin/tomato-ND-USBmod
  origin/tomato-ND-usbmod-mixvirtual**
  origin/tomato-RT
  origin/tomato-RT-N
  origin/tomato-RT-jyavenard
  origin/tomato-miniupnpd
  origin/tomato-sdhc-ND-vlan
  origin/tomato-shibby
  origin/tomato-shibby-RT-N
  origin/tomato-shibby-pl
  origin/tomatovirtual**
  origin/virtual**gui
  origin/vsftpd
root@ubuntu:/home/wwt/tomato_git/tomato# git checkout origin/tomato-shibby-RT-N
Checking out files: 100% (97775/97775), done.
Note: checking out 'origin/tomato-shibby-RT-N'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 7695fa0... Merge branch 'tomato-shibby' into tomato-shibby-RT-N
root@ubuntu:/home/wwt/tomato_git/tomato#
root@ubuntu:/home/wwt/tomato_git/tomato#


以下是官网的命令获取到的
root@ubuntu:/home/wwt/tomato_git/tomato# git tag | grep tomato*
tomato-1.21
tomato-1.22
tomato-1.23
tomato-1.24
tomato-1.25
tomato-1.26
tomato-1.27
tomato-1.28
tomato-1.28.7433-Toastman-RT
tomato-1.28.7434-Toastman-RT
tomato-1.28.7435-Toastman-RT
tomato-1.28.7436-Toastman-RT
tomato-1.28.7437-Toastman-RT
tomato-1.28.7438-Toastman-RT
tomato-1.28.7439-Toastman-RT
tomato-1.28.7440-Toastman-RT
tomato-1.28.7441-Toastman-RT
tomato-1.28.7443-Toastman-RT
tomato-1.28.7444-Toastman-RT
tomato-1.28.7445-Toastman-RT
tomato-1.28.7446-Toastman-RT
tomato-1.28.7447-Toastman-RT
tomato-1.28.7448-Toastman-RT
tomato-1.28.7450-Toastman-RT
tomato-1.28.7451-Toastman-RT
tomato-1.28.7452-Toastman-RT
tomato-1.28.7453-Toastman-RT
tomato-ND-1.21
tomato-ND-1.22
tomato-ND-1.23
tomato-ND-1.24
tomato-ND-1.25
tomato-ND-1.26
tomato-ND-1.27
tomato-RAF-1.23.8026
tomato-sdhc-1.23.01
tomato-sdhc-1.23.02
tomato-sdhc-1.25.01
tomato-sdhc-1.28.01
tomato-sdhc-ND-1.28.01
tomato-slodki-1.25.01
tomato-slodki-ND-1.28.01
tomato-slodki-ND-1.28.02
tomatousb-K26-1.27.9042
tomatousb-K26-1.27.9044
tomatousb-K26-1.27.9044.beta07
tomatousb-K26-1.27.9045.beta10
tomatousb-K26-1.27.9045.beta11
tomatousb-K26-1.27.9046.beta14
tomatousb-K26-1.27.9047.beta15
tomatousb-K26-1.27.9047.beta16
tomatousb-K26-1.28.9048.beta18
tomatousb-K26-1.28.9050.beta20
tomatousb-K26-1.28.9051.beta22
tomatousb-K26-1.28.9052.beta23
tomatousb-K26-1.28.9053.beta
tomatousb-K26-1.28.9054.beta
tomatousb-ND-1.23.8620
tomatousb-ND-1.23.8621
tomatousb-ND-1.23.8623
tomatousb-ND-1.23.8624
tomatousb-ND-1.23.8625
tomatousb-ND-1.23.8626
tomatousb-ND-1.25.8631
tomatousb-ND-1.25.8632
tomatousb-ND-1.25.8634
tomatousb-ND-1.25.8735
tomatousb-ND-1.25.8737
tomatousb-ND-1.25.8738
tomatousb-ND-1.25.8739
tomatousb-ND-1.27.8740
tomatousb-ND-1.27.8741
tomatousb-ND-1.27.8742
tomatousb-ND-1.27.8743
tomatousb-ND-1.27.8744
tomatousb-ND-1.27.8745
tomatousb-ND-1.27.8746
tomatousb-ND-1.27.8747
tomatousb-ND-1.28.8748
tomatousb-ND-1.28.8750
tomatousb-ND-1.28.8751
tomatousb-ND-1.28.8752
tomatousb-ND-1.28.8753
tomatousb-ND-1.28.8754
tomatousb-RT-20110224
tomatovirtual**-1.21virtual**2.0001
tomatovirtual**-1.22virtual**2.0002
tomatovirtual**-1.22virtual**2.0004
tomatovirtual**-1.22virtual**2.0005
tomatovirtual**-1.23virtual**2.0005
tomatovirtual**-1.23virtual**2.0006
tomatovirtual**-1.23virtual**3.0000
tomatovirtual**-1.23virtual**3.0001
tomatovirtual**-1.23virtual**3.2
tomatovirtual**-1.25virtual**3.3
tomatovirtual**-1.25virtual**3.4
tomatovirtual**-1.27virtual**3.5
tomatovirtual**-1.27virtual**3.6
tomatovirtual**-ND-1.21virtual**2.0001
tomatovirtual**-ND-1.22virtual**2.0002
tomatovirtual**-ND-1.22virtual**2.0004
tomatovirtual**-ND-1.22virtual**2.0005
tomatovirtual**-ND-1.23virtual**2.0005
tomatovirtual**-ND-1.23virtual**2.0006
tomatovirtual**-ND-1.23virtual**3.0000
tomatovirtual**-ND-1.23virtual**3.0001
tomatovirtual**-ND-1.23virtual**3.2
tomatovirtual**-ND-1.25virtual**3.3
tomatovirtual**-ND-1.25virtual**3.4
tomatovirtual**-ND-1.27virtual**3.5
tomatovirtual**-ND-1.27virtual**3.6



请问一下,以上二种有啥区别?


我还是按照Sady兄的教程执行:
root@ubuntu:/home/wwt/tomato_git/tomato# git checkout origin/tomato-shibby-RT-N
Checking out files: 100% (97775/97775), done.
Note: checking out 'origin/tomato-shibby-RT-N'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 7695fa0... Merge branch 'tomato-shibby' into tomato-shibby-RT-N
root@ubuntu:/home/wwt/tomato_git/tomato#


然后查看make help报错了,居然获取到的代码提示 Unterminated quoted string,晕了啊!
root@ubuntu:~/tomato/tomato/release/src-rt# make help
Makefile:829: warning: overriding commands for target `r2f'
Makefile:823: warning: ignoring old commands for target `r2f'
c            BTgui - (Ext plus BT gui)
/bin/sh: Syntax error: Unterminated quoted string
make: *** [help] Error 2



只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
 楼主| 发表于 2012-5-1 00:46 | 显示全部楼层
然后根据官网的说明,将tomato源码cp了一份到root目录下面了,手动打开了Makefile,发现获取的源码在help部分还真是缺少个引号,只能手工添加,执行后的结果如下:
root@ubuntu:~/tomato/tomato/release/src-rt# vi ./Makefile
root@ubuntu:~/tomato/tomato/release/src-rt# make help
Makefile:829: warning: overriding commands for target `r2f'
Makefile:823: warning: ignoring old commands for target `r2f'
c            BTgui - (Ext plus BT gui)
u            BT
t            BT-virtual** - (BT plus virtual**)
e            virtual** - (standard plus virtual**, extra utilities and NTFS support)
b            Big-virtual** - (Big plus virtual**)
p            Mega
o            Mega-virtual** - (Mega plus virtual** plus NOCAT minus NFS)
i            MiniIPv6 - (IPv6 with no USB support minus CIFS and RIPv1/2)
j            MiniIPv6-virtual** - (MiniIPv6 + virtual**)
k            IPv6-virtual** - (IPv6 with no USB support and with virtual**)
s            Std - (no USB support)
f            Mini - (no USB support minus CIFS and RIPv1/2)
v            virtual** (no usb) - (virtual** with no USB support)
w            SD-virtual** (no usb) - (virtual** with SD-MOD and no USB support)
r2c          MIPS Release 2 BTgui
r2u          MIPS Release 2 BT
r2t          MIPS Release 2 BT-virtual**
r2e          MIPS Release 2 virtual**
r2b          MIPS Release 2 Big-virtual**
r2p          MIPS Release 2 Mega
r2o          MIPS Release 2 Mega-virtual**
r2z          MIPS Release 2 AIO (for routers +8MB flash)
r2v          MIPS Release 2 virtual** (no usb)
r2s          MIPS Release 2 Std
r2i          MIPS Release 2 MiniIPv6 (for 4MB flash)
r2j          MIPS Release 2 MiniIPv6-virtual** (for 4MB flash)
r2k          MIPS Release 2 IPv6 (for 8MB flash)
r2f          MIPS Release 2 Mini (for netgear)
n60c         Linksys E-series build BTGui
n60u         Linksys E-series build BT
n60t         Linksys E-series build BT-virtual**
n60e         Linksys E-series build virtual**
n60b         Linksys E-series build Big-virtual**
n60p         Linksys E-series build Mega
n60o         Linksys E-series build Mega-virtual**
n60k         Linksys E-series build with IPv6
v2e          Netgear WNR3500Lv2 build virtual**
v2t          Netgear WNR3500Lv2 build BT-virtual**
v2z          Netgear WNR3500Lv2 build AIO
..etc..      other build configs
clean        -C router clean
cleanimage   rm -rf image
cleantools   clean btools, mksquashfs
cleankernel  -C Linux distclean (but preserves .config)
distclean    distclean of Linux & busybox (but preserve .configs)
prepk        -C Linux oldconfig dep
root@ubuntu:~/tomato/tomato/release/src-rt#
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
 楼主| 发表于 2012-5-1 00:46 | 显示全部楼层
第一次学着从官方原版编译,没改任何参数,纯默认config_base进行编译MIPSR2的AIO版本:
root@ubuntu:~/tomato/tomato/release/src-rt#make V1=test V2=20120430 r2z

开始编译了好几次,中途都报错,第一次是在/tomato/release/src-rt/router/dnscrypt/src/libuv中报错了:
提示什么config-unix.mk找不到,反复好几次都是这个错误,不晓得怎么回事!
后来删除所有备份,重新换了个分支,貌似不报这个错误,但现在又死在openssl这里了:
make[8]: Entering directory `/root/tomato/tomato/release/src/router/openssl'
make[9]: Entering directory `/root/tomato/tomato/release/src/router/openssl'
make[9]: Leaving directory `/root/tomato/tomato/release/src/router/openssl'
make[9]: Entering directory `/root/tomato/tomato/release/src/router/openssl'
make[9]: Leaving directory `/root/tomato/tomato/release/src/router/openssl'
make[8]: Leaving directory `/root/tomato/tomato/release/src/router/openssl'
make[8]: Entering directory `/root/tomato/tomato/release/src/router/openssl'
make[9]: Entering directory `/root/tomato/tomato/release/src/router/openssl'
make[9]: Leaving directory `/root/tomato/tomato/release/src/router/openssl'
make[9]: Entering directory `/root/tomato/tomato/release/src/router/openssl'
make[9]: Leaving directory `/root/tomato/tomato/release/src/router/openssl'
make[8]: Leaving directory `/root/tomato/tomato/release/src/router/openssl'
make[7]: Leaving directory `/root/tomato/tomato/release/src/router/openssl'
make[6]: Leaving directory `/root/tomato/tomato/release/src/router/openssl/ssl'
making all in apps...
make[6]: Entering directory `/root/tomato/tomato/release/src/router/openssl/apps'
/usr/bin/perl progs.pl verify asn1pars req dgst dh dhparam enc passwd gendh errstr ca crl rsa rsautl dsa dsaparam ec ecparam x509 genrsa gendsa genpkey s_server s_client speed s_time version pkcs7 cms crl2pkcs7 sess_id ciphers nseq pkcs12 pkcs8 pkey pkeyparam pkeyutl spkac smime rand engine ocsp prime ts srp >progs.h
rm -f openssl.o
mipsel-uclibc-gcc -DMONOLITH -I.. -I../include  -fPIC -DOPENSSL_PIC -DDSO_DLFCN -DHAVE_DLFCN_H -ffunction-sections -fdata-sections -DOPENSSL_NO_ERR -DL_ENDIAN -DTERMIO -Os -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32  -DOPENSSL_SMALL_FOOTPRINT -fomit-frame-pointer -Wall   -c -o req.o req.c
mipsel-uclibc-gcc -DMONOLITH -I.. -I../include  -fPIC -DOPENSSL_PIC -DDSO_DLFCN -DHAVE_DLFCN_H -ffunction-sections -fdata-sections -DOPENSSL_NO_ERR -DL_ENDIAN -DTERMIO -Os -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32  -DOPENSSL_SMALL_FOOTPRINT -fomit-frame-pointer -Wall   -c -o rsa.o rsa.c
mipsel-uclibc-gcc -DMONOLITH -I.. -I../include  -fPIC -DOPENSSL_PIC -DDSO_DLFCN -DHAVE_DLFCN_H -ffunction-sections -fdata-sections -DOPENSSL_NO_ERR -DL_ENDIAN -DTERMIO -Os -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32  -DOPENSSL_SMALL_FOOTPRINT -fomit-frame-pointer -Wall   -c -o x509.o x509.c
mipsel-uclibc-gcc -DMONOLITH -I.. -I../include  -fPIC -DOPENSSL_PIC -DDSO_DLFCN -DHAVE_DLFCN_H -ffunction-sections -fdata-sections -DOPENSSL_NO_ERR -DL_ENDIAN -DTERMIO -Os -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32  -DOPENSSL_SMALL_FOOTPRINT -fomit-frame-pointer -Wall   -c -o apps.o apps.c
mipsel-uclibc-gcc -DMONOLITH -I.. -I../include  -fPIC -DOPENSSL_PIC -DDSO_DLFCN -DHAVE_DLFCN_H -ffunction-sections -fdata-sections -DOPENSSL_NO_ERR -DL_ENDIAN -DTERMIO -Os -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32  -DOPENSSL_SMALL_FOOTPRINT -fomit-frame-pointer -Wall   -c -o app_rand.o app_rand.c
mipsel-uclibc-gcc -DMONOLITH -I.. -I../include  -fPIC -DOPENSSL_PIC -DDSO_DLFCN -DHAVE_DLFCN_H -ffunction-sections -fdata-sections -DOPENSSL_NO_ERR -DL_ENDIAN -DTERMIO -Os -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32  -DOPENSSL_SMALL_FOOTPRINT -fomit-frame-pointer -Wall   -c -o enc.o enc.c
mipsel-uclibc-gcc -DMONOLITH -I.. -I../include  -fPIC -DOPENSSL_PIC -DDSO_DLFCN -DHAVE_DLFCN_H -ffunction-sections -fdata-sections -DOPENSSL_NO_ERR -DL_ENDIAN -DTERMIO -Os -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32  -DOPENSSL_SMALL_FOOTPRINT -fomit-frame-pointer -Wall   -c -o openssl.o openssl.c
rm -f openssl
shlib_target=; if [ -n "libcrypto.so.1.0.0 libssl.so.1.0.0" ]; then \
                shlib_target="linux-shared"; \
        elif [ -n "" ]; then \
          FIPSLD_CC="mipsel-uclibc-gcc"; CC=/usr/local/ssl/fips-2.0/bin/fipsld; export CC FIPSLD_CC; \
        fi; \
#       LIBRARIES="-L.. -lssl  -L.. -lcrypto" ; \
        LIBRARIES="-L.. -lcrypto" ; \
        make -f ../Makefile.shared -e \
                APPNAME=openssl OBJECTS="openssl.o req.o rsa.o x509.o apps.o app_rand.o enc.o" \
                LIBDEPS=" $LIBRARIES -Wl,--gc-sections -ldl" \
                link_app.${shlib_target}
make[7]: Entering directory `/root/tomato/tomato/release/src/router/openssl/apps'
openssl.o:(.data.rel.functions+0x8): undefined reference to `verify_main'
openssl.o:(.data.rel.functions+0x14): undefined reference to `asn1parse_main'
openssl.o:(.data.rel.functions+0x2c): undefined reference to `dgst_main'
openssl.o:(.data.rel.functions+0x38): undefined reference to `dh_main'
openssl.o:(.data.rel.functions+0x44): undefined reference to `dhparam_main'
openssl.o:(.data.rel.functions+0x5c): undefined reference to `passwd_main'
openssl.o:(.data.rel.functions+0x68): undefined reference to `gendh_main'
openssl.o:(.data.rel.functions+0x74): undefined reference to `errstr_main'
openssl.o:(.data.rel.functions+0x80): undefined reference to `ca_main'
openssl.o:(.data.rel.functions+0x8c): undefined reference to `crl_main'
openssl.o:(.data.rel.functions+0xa4): undefined reference to `rsautl_main'
openssl.o:(.data.rel.functions+0xb0): undefined reference to `dsa_main'
openssl.o:(.data.rel.functions+0xbc): undefined reference to `dsaparam_main'
openssl.o:(.data.rel.functions+0xd4): undefined reference to `genrsa_main'
openssl.o:(.data.rel.functions+0xe0): undefined reference to `gendsa_main'
openssl.o:(.data.rel.functions+0xec): undefined reference to `genpkey_main'
openssl.o:(.data.rel.functions+0xf8): undefined reference to `s_server_main'
openssl.o:(.data.rel.functions+0x104): undefined reference to `s_client_main'
openssl.o:(.data.rel.functions+0x110): undefined reference to `speed_main'
openssl.o:(.data.rel.functions+0x11c): undefined reference to `s_time_main'
openssl.o:(.data.rel.functions+0x128): undefined reference to `version_main'
openssl.o:(.data.rel.functions+0x134): undefined reference to `pkcs7_main'
openssl.o:(.data.rel.functions+0x140): undefined reference to `crl2pkcs7_main'
openssl.o:(.data.rel.functions+0x14c): undefined reference to `sess_id_main'
openssl.o:(.data.rel.functions+0x158): undefined reference to `ciphers_main'
openssl.o:(.data.rel.functions+0x164): undefined reference to `nseq_main'
openssl.o:(.data.rel.functions+0x170): undefined reference to `pkcs12_main'
openssl.o:(.data.rel.functions+0x17c): undefined reference to `pkcs8_main'
openssl.o:(.data.rel.functions+0x188): undefined reference to `pkey_main'
openssl.o:(.data.rel.functions+0x194): undefined reference to `pkeyparam_main'
openssl.o:(.data.rel.functions+0x1a0): undefined reference to `pkeyutl_main'
openssl.o:(.data.rel.functions+0x1ac): undefined reference to `spkac_main'
openssl.o:(.data.rel.functions+0x1b8): undefined reference to `smime_main'
openssl.o:(.data.rel.functions+0x1c4): undefined reference to `rand_main'
openssl.o:(.data.rel.functions+0x1d0): undefined reference to `ocsp_main'
openssl.o:(.data.rel.functions+0x1dc): undefined reference to `prime_main'
openssl.o:(.data.rel.functions+0x1e8): undefined reference to `ts_main'
openssl.o:(.data.rel.functions+0x1f4): undefined reference to `srp_main'
openssl.o:(.data.rel.functions+0x200): undefined reference to `dgst_main'
openssl.o:(.data.rel.functions+0x20c): undefined reference to `dgst_main'
openssl.o:(.data.rel.functions+0x218): undefined reference to `dgst_main'
openssl.o:(.data.rel.functions+0x224): undefined reference to `dgst_main'
collect2: ld returned 1 exit status
make[7]: *** [link_app.gnu] Error 1
make[7]: Leaving directory `/root/tomato/tomato/release/src/router/openssl/apps'
make[6]: *** [openssl] Error 2
make[6]: Leaving directory `/root/tomato/tomato/release/src/router/openssl/apps'
make[5]: *** [build_apps] Error 1
make[5]: Leaving directory `/root/tomato/tomato/release/src/router/openssl'
make[4]: *** [openssl] Error 2
make[4]: Leaving directory `/root/tomato/tomato/release/src/router'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/tomato/tomato/release/src-rt'
make[2]: *** [bin] Error 2
make[2]: Leaving directory `/root/tomato/tomato/release/src-rt'
make[1]: *** [z] Error 2
make[1]: Leaving directory `/root/tomato/tomato/release/src-rt'
make: *** [r2z] Error 2
root@ubuntu:~/tomato/tomato/release/src-rt#

不折腾了,太晚了,明天再说,先将error和部分疑问发上来,期待论坛里的大牛们多多指点!
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2012-5-1 00:58 | 显示全部楼层
不懂,帮顶
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2012-5-1 21:52 来自手机 | 显示全部楼层
make clean
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2012-5-1 21:55 | 显示全部楼层
本帖最后由 zhoutao0712 于 2012-5-1 21:57 编辑

再执行一次
git checkout -b origin/tomato-shibby-RT-N
然后才可make s了
shibby的代码往往有错误,尤其在编译make e之类的全功能版本,要自己修正{:soso_e113:}
初学建议编译make s之类小版本
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
 楼主| 发表于 2012-5-1 23:51 | 显示全部楼层
本帖最后由 满天星 于 2012-5-1 23:53 编辑

非常感谢指点!我的OS用的是Ubuntu 11.04 x64 server版,之前已按照官网的版本安装了x64的lib,不确定是否x64的OS支持是否有问题,今天已经重新下载了一份12.04的i386 server版,然后没按照sady兄取branch的办法,按照官网的方式取的:
git tag | grep tomato*
然后选择了:git checkout tomatousb-K26-1.28.9054.beta的版本,貌似make r2e又挂了,错误信息如后面,明天再试试make s之类的吧!
configure: creating ./config.status
/bin/bash ./config.status
config.status: creating Makefile
config.status: creating sqlite3.pc
config.status: executing depfiles commands
config.status: executing libtool commands
make[5]: Leaving directory `/home/wuwentao/tomato_git/tomato/release/src/router/sqlite'
make[5]: Entering directory `/home/wuwentao/tomato_git/tomato/release/src/router/sqlite'
if /bin/bash ./libtool --tag=CC --mode=compile mipsel-uclibc-gcc -DPACKAGE_NAME=\"sqlite\" -DPACKAGE_TARNAME=\"sqlite\" -DPACKAGE_VERSION=\"3.7.2\" -DPACKAGE_STRING=\"sqlite\ 3.7.2\" -DPACKAGE_BUGREPORT=\"http://www.sqlite.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"sqlite\" -DVERSION=\"3.7.2\" -D_FILE_OFFSET_BITS=64 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_FDATASYNC=1 -DHAVE_USLEEP=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -I. -I.    -DSQLITE_THREADSAFE=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE -Os -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32  -ffunction-sections -fdata-sections -MT sqlite3.lo -MD -MP -MF ".deps/sqlite3.Tpo" -c -o sqlite3.lo sqlite3.c; \
        then mv -f ".deps/sqlite3.Tpo" ".deps/sqlite3.Plo"; else rm -f ".deps/sqlite3.Tpo"; exit 1; fi
./libtool: line 859: X--tag=CC: command not found
./libtool: line 892: libtool: ignoring unknown tag : command not found
./libtool: line 859: X--mode=compile: command not found
./libtool: line 1026: *** Warning: inferring the mode of operation is deprecated.: command not found
./libtool: line 1027: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
./libtool: line 1170: Xmipsel-uclibc-gcc: command not found
./libtool: line 1170: X-DPACKAGE_NAME="sqlite": command not found
./libtool: line 1170: X-DPACKAGE_TARNAME="sqlite": command not found
./libtool: line 1170: X-DPACKAGE_VERSION="3.7.2": command not found
./libtool: line 1170: X-DPACKAGE_STRING="sqlite 3.7.2": command not found
./libtool: line 1170: X-DPACKAGE_BUGREPORT="http://www.sqlite.org": No such file or directory
./libtool: line 1170: X-DPACKAGE_URL="": command not found
./libtool: line 1170: X-DPACKAGE="sqlite": command not found
./libtool: line 1170: X-DVERSION="3.7.2": command not found
./libtool: line 1170: X-D_FILE_OFFSET_BITS=64: command not found
./libtool: line 1170: X-DSTDC_HEADERS=1: command not found
./libtool: line 1170: X-DHAVE_SYS_TYPES_H=1: command not found
./libtool: line 1170: X-DHAVE_SYS_STAT_H=1: command not found
./libtool: line 1170: X-DHAVE_STDLIB_H=1: command not found
./libtool: line 1170: X-DHAVE_STRING_H=1: command not found
./libtool: line 1170: X-DHAVE_MEMORY_H=1: command not found
./libtool: line 1170: X-DHAVE_STRINGS_H=1: command not found
./libtool: line 1170: X-DHAVE_INTTYPES_H=1: command not found
./libtool: line 1170: X-DHAVE_STDINT_H=1: command not found
./libtool: line 1170: X-DHAVE_UNISTD_H=1: command not found
./libtool: line 1170: X-DHAVE_DLFCN_H=1: command not found
./libtool: line 1170: X-DLT_OBJDIR=".libs/": No such file or directory
./libtool: line 1170: X-DHAVE_FDATASYNC=1: command not found
./libtool: line 1170: X-DHAVE_USLEEP=1: command not found
./libtool: line 1170: X-DHAVE_LOCALTIME_R=1: command not found
./libtool: line 1170: X-DHAVE_GMTIME_R=1: command not found
./libtool: line 1170: X-I.: command not found
./libtool: line 1170: X-I.: command not found
./libtool: line 1170: X-DSQLITE_THREADSAFE=1: command not found
./libtool: line 1170: X-DSQLITE_OMIT_LOAD_EXTENSION=1: command not found
./libtool: line 1170: X-DSQLITE_ENABLE_FTS3: command not found
./libtool: line 1170: X-DSQLITE_ENABLE_RTREE: command not found
./libtool: line 1170: X-Os: command not found
./libtool: line 1170: X-DLINUX26: command not found
./libtool: line 1170: X-DCONFIG_BCMWL5: command not found
./libtool: line 1170: X-pipe: command not found
./libtool: line 1170: X-DBCMWPA2: command not found
./libtool: line 1170: X-funit-at-a-time: command not found
./libtool: line 1170: X-Wno-pointer-sign: command not found
./libtool: line 1170: X-mtune=mips32: command not found
./libtool: line 1170: X-mips32: command not found
./libtool: line 1170: X-ffunction-sections: command not found
./libtool: line 1170: X-fdata-sections: command not found
./libtool: line 1170: X-MT: command not found
./libtool: line 1170: Xsqlite3.lo: command not found
./libtool: line 1170: X-MD: command not found
./libtool: line 1170: X-MP: command not found
./libtool: line 1170: X-MF: command not found
./libtool: line 1170: X.deps/sqlite3.Tpo: No such file or directory
./libtool: line 1170: X-c: command not found
./libtool: line 1222: Xsqlite3.lo: command not found
./libtool: line 1227: libtool: compile: cannot determine name of library object from `': command not found
make[5]: *** [sqlite3.lo] Error 1

只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
 楼主| 发表于 2012-5-2 21:19 | 显示全部楼层
感谢zhoutao0712的指点,已经使用make r2s成功编译一个image:1.28.0000 MIPSR2-beta K26 Std
log信息如下:
Creating TRX: image/tomato-K26-1.28.--defMIPSR2-beta-Std.trx

TRX Image:
Total Size .... : 3641344 (3556.0 KB) (3.5 MB)
   Images ...... : 3638644 (0x00378574)
   Padding ..... : 2672
Avail. for jffs :
   4MB, 128K CFE : 5 EBs + 28672
   4MB, 256K CFE : 3 EBs + 28672
   8MB, 256K CFE : 67 EBs + 28672
            Note : Netgear routers  have 6 EBs less available!
CRC-32 ........ : CC422C6E
128K Blocks ... : 28 (0x0000001C)
  64K Blocks ... : 56 (0x00000038)
Offsets:
   0: 0x0000001C  lzma-loader/loader.gz
   1: 0x00000A8C  /home/wwt/tomato_git/tomato/release/src-rt/linux/linux-2.6/arch/mips/brcm-
   2: 0x000DD000  router/mipsel-uclibc/target.image

先刷的玩玩,看看std版本的功能,稍候再尝试编译其他版本对比一下区别,有问题了再像高手请教!
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
 楼主| 发表于 2012-5-3 00:28 | 显示全部楼层
第一次刷的这个使用 tomatousb-K26-1.28.9054.beta版本编译的std版把RG200E刷挂了,折腾了好久!貌似ttl下按任意键,ctrl+c都无效(sady版cfe),不晓得肿么回事,实在没辙,按sujiajun的强制终止的tftp升级办法:
https://www.right.com.cn/forum/thread-71649-1-1.html
在miniweb重新换成 origin/tomato-shibby-RT-N的源码编译的r2s版本,自己编译的版本成功启动了,基本和官方shibby的AIO版本一样,进web修改vlan就可以连接了,貌似这个无线的驱动也好像更新了:
eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.100.138.9
wl_module_init: passivemode set to 0x0
eth1: Broadcom BCM4347 802.11 Wireless Controller 5.100.138.9
今天太晚了,不折腾了,明天换下原版cfe看看是肿么个效果!
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
头像被屏蔽
发表于 2012-5-3 14:35 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2012-6-1 09:12 | 显示全部楼层
满天星 发表于 2012-5-1 00:46
然后根据官网的说明,将tomato源码cp了一份到root目录下面了,手动打开了Makefile,发现获取的源码在help部 ...

还真是这个问题,哈哈。这个问题好像已经存在好久了,不知道为何shibby还不修复
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2012-6-1 09:12 | 显示全部楼层
满天星 发表于 2012-5-1 00:46
然后根据官网的说明,将tomato源码cp了一份到root目录下面了,手动打开了Makefile,发现获取的源码在help部 ...

还真是这个问题,哈哈。这个问题好像已经存在好久了,不知道为何shibby还不修复
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2012-7-15 19:22 | 显示全部楼层
经验啊!一定要顶
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2012-8-7 20:00 | 显示全部楼层
做个记号,支持一下
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2012-9-15 15:15 | 显示全部楼层
see you,i want see
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-9-27 15:28

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表