花生壳DD-WRT新版本
root@SkyBox:/tmp# ./phlinux2 -hPeanuthull 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. 这个是MIPS的,在dlink dir-600上测试通过 这个是什么东东?dd-wrt吗? 本帖最后由 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的版本 这个是什么东东?dd-wrt吗?
linyi12252000 发表于 2011-7-29 17:31 http://www.wifi.com.cn/forum/images/common/back.gif
给dd-wrt用的花生壳 这个支持啊。。。。。 前排支持 研究出新方法
不需更新固件,目前只要是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 '' >> $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 '' >> $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 支持……"
http://img14.wal8.com/img14/190131_20110721123851/131122321487.gif
nike air max 24-7nike air max 2011nike air structure" BCM4704是哪种CPU呢? 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:没有那个文件或目录 收藏备用………
页:
[1]