找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: sa***

tomato 编译详解

 火.. [复制链接]
 楼主| | 显示全部楼层
谢谢大家支持, 希望能定制出更好的固件, 编译只是个起点,
真正的难点是mod, 开发自己个性化的固件..
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

个人感觉在定制方面Openwrt很灵活,编译前进入make menuconfig,可以选择路由的cpu﹑路由的型号﹑还能根据个人的实际需要加入相应的组件,例如集成samba﹑qos﹑脱机下载﹑3g拨号等,对tomato不是很了解,不知可不可以像Openwrt那样可以自由组合各种应用。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
tomato 编译模块定制是通过make help 列出的参数来决定的,  如果自由度还不够需要高度定制的话, 需要修改src下的Makefile 文件, 通过它,可以定制出你想要的功能.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我遇到了底下的問題,不知道有沒有解...

rm -f openssl
shlib_target=; if [ -n "libcrypto.so.1.0.0 libssl.so.1.0.0" ]; then \
        shlib_target="linux-shared"; \
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 `/home/chiping/tomato_git/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+0x1e8): undefined reference to `ts_main'
openssl.o.data.rel.functions+0x1f4): undefined reference to `dgst_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'
collect2: ld returned 1 exit status
make[7]: *** [link_app.gnu] Error 1
make[7]: Leaving directory `/home/chiping/tomato_git/tomato/release/src/router/openssl/apps'
make[6]: *** [openssl] Error 2
make[6]: Leaving directory `/home/chiping/tomato_git/tomato/release/src/router/openssl/apps'
make[5]: *** [build_apps] Error 1
make[5]: Leaving directory `/home/chiping/tomato_git/tomato/release/src/router/openssl'
make[4]: *** [openssl] Error 2
make[4]: Leaving directory `/home/chiping/tomato_git/tomato/release/src/router'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/chiping/tomato_git/tomato/release/src-rt'
make[2]: *** [bin] Error 2
make[2]: Leaving directory `/home/chiping/tomato_git/tomato/release/src-rt'
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
你编译的是带transmission的shibby版本吗?
transmission 需要很多模块的支持.如openssl libevent curl 等, 前两者源代码可能都有版本过低的问题,
顶楼我只给了libevnet源码的更新, 另一个openssl最新版本源码google一下.
替换掉tomato_git/tomato/release/src/router/openssl .再重新编译试试.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

问下这错误如何修复?

  LINK    busybox_unstripped
Trying libraries: crypt m
Library crypt is needed, can't exclude it (yet)
Library m is needed, can't exclude it (yet)
Final link with: crypt m
make[5]:正在离开目录 `/home/weihu/tomato_git/tomato/release/src/router/busybox'
make[4]:正在离开目录 `/home/weihu/tomato_git/tomato/release/src/router'
make[3]: *** [all] 错误 2
make[3]:正在离开目录 `/home/weihu/tomato_git/tomato/release/src-rt'
make[2]: *** [bin] 错误 2
make[2]:正在离开目录 `/home/weihu/tomato_git/tomato/release/src-rt'
make[1]: *** [e] 错误 2
make[1]:正在离开目录 `/home/weihu/tomato_git/tomato/release/src-rt'
make: *** [r2e] 错误 2
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

留个名字有空试试。。。
谢谢~~~!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

正在尝试中。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

正在试着编译,第一次也出现8楼的错误,不过path一下后就可以通过了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

记号。学习。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 linjimmy 于 2012-2-1 23:58 编辑

lz 有2个问题请教下
问题1,
如果我只想把一个已经做好的固件,重新解开,放入自定义的文件,再封包的话.
要如何操作.谢谢.
ps:固件为:网络下载的现成固件.仅重新编译.

问题2,
假设我加入了1M文件,那封包后,还可以刷到路由器吗?


谢谢.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

要是SADY能出个2M FLASH 的MICRO TT 就好了。WRH54G刷了TT MICRO版本死机。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

tomato_profile.mak: 没有那个文件或目录

这个出错怎么回事 ?是不是makefile有问题? 找不到这个文件。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

jiali_jiaoyi 发表于 2012-2-11 11:54
tomato_profile.mak: 没有那个文件或目录

这个出错怎么回事 ?是不是makefile有问题? 找不到这个文件。

这个文件是make过程中自动生成的。

正确的make方法楼主写了,是:
sudo make V1=Shibby V2=-20111007 r2r
不能用源码里提供的那个方法。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

顶~ 但是编译失败
sudo -s目的为什么?
下完tomato源码后,后续的动作是否需要用root权限做。
若不用su root,改/root/.profile是否改为~/.profile(或者./bashrc)
编译前的步骤还需更详细说明一下,感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

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

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

GMT+8, 2024-4-29 02:07

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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