sady 发表于 2011-10-12 10:08

谢谢大家支持, 希望能定制出更好的固件, 编译只是个起点,
真正的难点是mod, 开发自己个性化的固件..

小标 发表于 2011-10-12 11:05

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

sady 发表于 2011-10-13 07:13

tomato 编译模块定制是通过make help 列出的参数来决定的,如果自由度还不够需要高度定制的话, 需要修改src下的Makefile 文件, 通过它,可以定制出你想要的功能.

wchpei 发表于 2011-10-14 17:14

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

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: 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: *** Error 1
make: Leaving directory `/home/chiping/tomato_git/tomato/release/src/router/openssl/apps'
make: *** Error 2
make: Leaving directory `/home/chiping/tomato_git/tomato/release/src/router/openssl/apps'
make: *** Error 1
make: Leaving directory `/home/chiping/tomato_git/tomato/release/src/router/openssl'
make: *** Error 2
make: Leaving directory `/home/chiping/tomato_git/tomato/release/src/router'
make: *** Error 2
make: Leaving directory `/home/chiping/tomato_git/tomato/release/src-rt'
make: *** Error 2
make: Leaving directory `/home/chiping/tomato_git/tomato/release/src-rt'

sady 发表于 2011-10-15 06:53

你编译的是带transmission的shibby版本吗?
transmission 需要很多模块的支持.如openssl libevent curl 等, 前两者源代码可能都有版本过低的问题,
顶楼我只给了libevnet源码的更新, 另一个openssl最新版本源码google一下.
替换掉tomato_git/tomato/release/src/router/openssl .再重新编译试试.

weihu120 发表于 2011-12-6 23:02

问下这错误如何修复?

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:正在离开目录 `/home/weihu/tomato_git/tomato/release/src/router/busybox'
make:正在离开目录 `/home/weihu/tomato_git/tomato/release/src/router'
make: *** 错误 2
make:正在离开目录 `/home/weihu/tomato_git/tomato/release/src-rt'
make: *** 错误 2
make:正在离开目录 `/home/weihu/tomato_git/tomato/release/src-rt'
make: *** 错误 2
make:正在离开目录 `/home/weihu/tomato_git/tomato/release/src-rt'
make: *** 错误 2

devil_997 发表于 2011-12-7 23:29

留个名字有空试试。。。
谢谢~~~!

kk200 发表于 2011-12-18 20:46

正在尝试中。。。。。

fuger 发表于 2012-1-30 20:49

正在试着编译,第一次也出现8楼的错误,不过path一下后就可以通过了。

egoboo 发表于 2012-1-30 21:17

记号。学习。。。。

linjimmy 发表于 2012-2-1 23:54

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

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

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


谢谢.

9516156 发表于 2012-2-6 00:52

要是SADY能出个2M FLASH 的MICRO TT 就好了。WRH54G刷了TT MICRO版本死机。

jiali_jiaoyi 发表于 2012-2-11 11:54

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

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

ownhere 发表于 2012-2-18 21:25

jiali_jiaoyi 发表于 2012-2-11 11:54 static/image/common/back.gif
tomato_profile.mak: 没有那个文件或目录

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

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

正确的make方法楼主写了,是:
sudo make V1=Shibby V2=-20111007 r2r
不能用源码里提供的那个方法。

陆坚 发表于 2012-3-3 13:14

顶~ 但是编译失败
sudo -s目的为什么?
下完tomato源码后,后续的动作是否需要用root权限做。
若不用su root,改/root/.profile是否改为~/.profile(或者./bashrc)
编译前的步骤还需更详细说明一下,感谢
页: 1 [2] 3 4 5
查看完整版本: tomato 编译详解