找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 9047|回复: 11

花生壳DD-WRT新版本

[复制链接]
root@SkyBox:/tmp# ./phlinux2 -h
  Peanuthull Linux-core 2.0 by oray.com, copyright 2011
  Peanuthull Linux-core Help
--first-run
  -f, run for the first time
--interact
  -i, run as interactive mode
  program will request for necessary parameters.
  this mode will automatically enabled at first running,
  or your configuration file has been lost.
--daemon
  -d, run as a daemon
  program will quit after put itself to background,
  and continue running even you logout,
  you can use kill -9 <PID> to terminate.
--config
  -c, run with configuration file
  program will run with the file
--user
  -u, run as the user
  program will run as the user
--help
  -h, print this screen.
Please visit http://www.oray.com for detail.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
这个是MIPS的,在dlink dir-600上测试通过
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个是什么东东?dd-wrt吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
本帖最后由 skyvense 于 2011-7-29 17:34 编辑

来个狠的,再上传个源代码

配置参数
./configure --host=i386-linux --target=mipsel-linux --build=mipsel-linux CXX=mipsel-linux-gcc CC=mipsel-linux-gcc LD=mipsel-linux-ld

最后静态链接下
mipsel-linux-gcc  -g -O2   -o phlinux -s main.o phupdate.o PHGlobal.o PHSocket.o md5.o log.o generate.o coder.o blowfish.o bitstream.o base64.o ConvertUTF.o CCmdParser.o PhClient.o PhUpdater.o  /opt/openwrt/mipsel-linux/lib/librt.a /opt/openwrt/mipsel-linux/lib/libstdc++.a //opt/openwrt/mipsel-linux/lib/libc.a

压缩
upx -o phlinux2 phlinux

有兴趣的可以嵌入到固件或者编译其他CPU的版本

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

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

使用道具 举报

 楼主| | 显示全部楼层
这个是什么东东?dd-wrt吗?
linyi12252000 发表于 2011-7-29 17:31


给dd-wrt用的花生壳
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

这个支持啊。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

前排支持
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
研究出新方法
不需更新固件,目前只要是mips的cpu就可以,在启动脚本中填以下脚本即可:
#!/bin/sh

url='http://download.oray.com/peanuthull/phlinux2_mips'
ph_file='/tmp/phlinux_mips'
conf_file='/tmp/phlinux.conf'
account='用户名'
passwd='密码'
eth='eth0'

while true
do
        rm -rf $ph_file
        wget -O $ph_file $url
        if [ $? -eq 0 ]
        then
                echo "download ok"
                test -s $ph_file
                if [ $? -eq 0 ]
                then
                        echo "phlinux file ok"
                        break
                else
                        echo "phlinux file not ok"
                fi
        else
                echo "download failed"
        fi
        echo "sleeping 5 seconds"
        sleep 5
done

chmod +x $ph_file


rm -rf $conf_file
echo '[settings]'                       >> $conf_file
echo 'szHost=PhLinux3.Oray.Net'         >> $conf_file
echo 'szUserID='$account                >> $conf_file
echo 'szUserPWD='$passwd                >> $conf_file
echo 'nicName='$eth                     >> $conf_file
echo '[log]'                            >> $conf_file
echo 'file=/var/log/phlinux.log'        >> $conf_file

$ph_file -c $conf_file -d
if [ $? -eq 0 ]
then
echo 'phlinux started ok'
fi
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

使用道具 举报

BCM4704是哪种CPU呢?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

mips-linux-gcc: 错误:main.o:没有那个文件或目录
mips-linux-gcc: 错误:phupdate.o:没有那个文件或目录
mips-linux-gcc: 错误:PHGlobal.o:没有那个文件或目录
mips-linux-gcc: 错误:PHSocket.o:没有那个文件或目录
mips-linux-gcc: 错误:md5.o:没有那个文件或目录
mips-linux-gcc: 错误:log.o:没有那个文件或目录
mips-linux-gcc: 错误:generate.o:没有那个文件或目录
mips-linux-gcc: 错误:coder.o:没有那个文件或目录
mips-linux-gcc: 错误:blowfish.o:没有那个文件或目录
mips-linux-gcc: 错误:bitstream.o:没有那个文件或目录
mips-linux-gcc: 错误:base64.o:没有那个文件或目录
mips-linux-gcc: 错误:ConvertUTF.o:没有那个文件或目录
mips-linux-gcc: 错误:CCmdParser.o:没有那个文件或目录
mips-linux-gcc: 错误:PhClient.o:没有那个文件或目录
mips-linux-gcc: 错误:PhUpdater.o:没有那个文件或目录
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

收藏备用………
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

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

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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