找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 27524|回复: 24

嘿嘿..终于搞定DD-WRT修改WEB界面和添加中文语言

  [复制链接]
本帖最后由 damon 于 2011-5-6 21:32 编辑



关于DD-WRT的二次开发 网上很多文章都是骗人的,作者根本没有去实践...害的我走了好多弯路.逼视一下。


朋友手里有一批WRT54G V5版的无线路由器,因为V5版本原装的FLASH只有2M,不改装FLASH就只能刷1.6M迷你版的DD-WRT,不带中文语言包。

改装又可能导致路由器不稳定.  所以才去研究怎么添加中文语言包。

从DD的源码编译是个很让人头疼的事情,我在服务器上做了个crontab任务,下载两天才下载7G,又下了个Debian的系统,4G ..可怜我的带宽啊..


终于两三天的奋战,终于搞定了 修改DD-WRT路由器固件的。可以添加删除功能包,修改WEB管理界面,定制个性化LOGO

添加删除语言包等  。

为防止乱改版权出售,我不在这里直接公布细节. 有需要的请在下面回帖留下你的邮箱,并说明修改DD-WRT的用途。

我想把我改的固件传上来。。怎么找不到上传附件的地方啊?  初来乍到..还请各位多多指教了。

技术交流或者付费任务 就加我 Q Q 吧  : 一九八九3二八
我的恩山、我的无线 The best wifi forum is right here.
我压根就没编译成功dd-wrt。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

向辛勤工作的人致敬
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

现在光说不练的太多了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼主玩的很专业,我很羡慕你,以后向你学习,希望你不吝赐教。能否留个邮箱,以便请教方便。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
5# sj7268

直接留QQ了,在贴子最下面。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 lqlqlinqing 于 2011-5-6 22:39 编辑

坛子里早就已经有人做出来了,2M的带中文的DD

https://www.right.com.cn/forum/v ... t=%D6%D0%CE%C4%2BDD
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
7# lqlqlinqing

确实,论坛高手还是挺多的,只是2M的刷不上WRT54G,经过我反复测试,固件大于1.7M之后,可以在其它型号路由器上运行,但不能在WRT54G V5上运行。

不过这些终究都是小把戏,呵呵,希望有朋友一起来玩从源码编码DD,现在我挂服务器上下载着呢,已经下载8G了,回来我可以共享一下,就不必跑国外下载了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

Phantom曾经把DD的源码压缩为926.92M的7z包,:
Phantom5月27日 19:22笔记
感谢Phantom打包的DD-WRT的源码!
ddwrt(解压需10G,至少20G剩余空间,不要用GUI界面解压,死在哪都不知道).7z(926.92M)
Phantom说:为了压缩率 字典 用的比较大 解压需要 512m+ 空余内存

Phantom(229388568)  19:05:00
解压 需要 10G 空间 总共有 20G 空间剩余的才能玩
Phantom(229388568)  19:06:00
不要用 gui界面的解压
Phantom(229388568) 19:06:08
死在那里 什么都看不出来
Phantom(229388568)  19:07:03
7z 可以 在 win 下面解压 内存丰富 性能强
Phantom(229388568)  19:07:23
然后 把 tar 的目录挂载到 vm 里面再解压
Phantom(229388568)  19:08:07
为了压缩率 字典 用的比较大 解压需要 512m+ 空余内存


Phantom QQMail_REFER_SPLIT 5月27日 19:22
  
export PATH=/opt/4.1.2/bin:$PATH
#export PATH=/opt/4.1.2/bin:$PATH
apt-get -y install libreadline-dev subversion gcc g++ binutils patch bzip2 flex-old bison make gettext unzip zlib1g-dev libc6 libncurses5-dev libstdc++6 automake openssl libxml2-dev ia32-libs
#wget http://mirrors.kernel.org/ubuntu ... -17ubuntu1_i386.deb
#dpkg -i ./libstdc++5_3.3.6-17ubuntu1_i386.deb
#rm ./libstdc++5_3.3.6-17ubuntu1_i386.deb

ln -s /root/toolchains/3.4.6-uclibc-0.9.28/ /opt/3.3.4
ln -s /root/toolchains/3.4.6-uclibc-0.9.28/ /opt/3.3.6
ln -s /root/toolchains/3.4.6-uclibc-0.9.28/ /opt/3.4.4
ln -s /root/toolchains/3.4.6-uclibc-0.9.28/ /opt/3.4.6
ln -s /root/toolchains/4.1.0-uclibc-0.9.28/ /opt/4.1.0
ln -s /root/toolchains/toolchain-mipsel_gcc4.1.2/ /opt/4.1.2

#ln -s /root/toolchains/3.4.6-uclibc-0.9.28/ /root/toolchains/3.4.6
#ln -s /root/toolchains/3.4.6-uclibc-0.9.28/ /root/toolchains/3.4.4
#ln -s /root/toolchains/3.4.6-uclibc-0.9.28/ /root/toolchains/3.3.6
#ln -s /root/toolchains/3.4.6-uclibc-0.9.28/ /root/toolchains/3.3.4
#ln -s /root/toolchains/4.1.0-uclibc-0.9.28/ /root/toolchains/4.1.0
# Creating symlinks
rm ~/ddwrt/src/linux/brcm/linux.v24_2/include/asm
ln -s ~/ddwrt/src/linux/brcm/linux.v24_2/include/asm-mips ~/ddwrt/src/linux/brcm/linux.v24_2/include/asm
mkdir ~/tmp
cd ~/ddwrt

#64位系统 不用搞
wget http://mirrors.kernel.org/ubuntu ... -17ubuntu1_i386.deb
dpkg -i --force-all ./libstdc++5_3.3.6-17ubuntu1_i386.deb
rm ./libstdc++5_3.3.6-17ubuntu1_i386.deb

echo "Compiling jsformat..."
cd ~/ddwrt/src/router/tools
rm jsformat
make jsformat
echo "done.."
echo "Compiling strip..."
cd ~/ddwrt/tools
rm ./strip
gcc strip.c -o ./strip
echo "done.."
echo "Compiling process_langfile..."
rm process_langfile
gcc -o process_langfile process_langfile.c
echo "done.."
# make write3
rm ./write3
gcc write3.c -o ./write3

echo "Compiling write4..."
rm ./write4
gcc write4.c -o ./write4
echo "done.."
echo "Compiling webcomp..."
rm ./webcomp
gcc -o webcomp -DUEMF -DWEBS -DLINUX webcomp.c
#change compile flage in /home/dd-wrt/DD-WRT/src/squashfs-tools/Makefile to use non x64 compiler if oyu do not have x64 machine
sed -i -e "s%-m64%-m32%" ~/ddwrt/src/squashfs-tools/Makefile
sed -i -e "s%-m64%-m32%" ~/ddwrt/src/squashfs-tools/lzma/C/7zip/Compress/LZMA_Lib/makefile
# same in /home/dd-wrt/DD-WRT/src/squashfs-tools/lzma/C/7zip/Compress/LZMA_Lib/makefile
# now make the lzma util. because Version in svn is 64 bit. There should not be any problem with recompiling in on 64bit, too.
cd ~/ddwrt/src/squashfs-tools/lzma/C/7zip/Compress/LZMA_Alone
mv makefile makefile.disabled
mv makefile.gcc makefile
make
cp -vf lzma ~/ddwrt/opt/loader-0.02/
# restore point checked out of SVN
mv makefile makefile.gcc
mv makefile.disabled makefile
# compile mksquashfs-lzma (again it is 64 bit)
cd ~/ddwrt/src/squashfs-tools
rm mksquashfs-lzma
make
cp mksquashfs-lzma ../linux/brcm/linux.v24_2/scripts/squashfs
#64 end




echo "Creating Makefile for packages .."
cd ~/ddwrt/src/router/
#建议从 configs 文件夹拷贝
cp .config_mega.v24 .config
gedit .config
cd ./busybox/
cp .config_std .config
#gedit .config
cd ..
cd ./sputnik
mv ./Makefile ./Makefile.away
cd ..

echo "#define BUILD_DATE \"$(date +%D)\"" > ~/ddwrt/opt/build.h
make configure
make clean

export PATH=/opt/3.4.6/bin:$PATH
make rflow
export PATH=/opt/4.1.2/bin:$PATH

#wget ftp://bird.network.cz/pub/bird/bird-1.2.2.tar.gz
#tar zxvf ./bird-1.2.2.tar.gz
#rm -rv bird
#mv ./bird-1.2.2 ./bird
cd ./bird
./configure --host=mipsel-linux-uclibc --disable-client --with-sysconfig=sysdep/cf/linux-22.h --localstatedir=/tmp/bird --sysconfdir=/tmp/bird --no-recursion CC=mipsel-linux-uclibc-gcc bird_cv_c_endian=big-endian
#添加 LD=mipsel-linux-uclibc-ld
gedit ./obj/Rules
make
cd ..

#cd ./iptraf/src/
#make clean
#make
#make install
#cd ../..
#http://svn.dd-wrt.com:8000/dd-wrt/ticket/646
#make zlib
#cd ./asterisk
#make dist-clean
#./configure --host=mipsel-linux-uclibc --without-curl --without-curses --with-gsm=internal --without-gtk --without-gtk2 --without-isdnnet --without-kde --without-misdn --without-nbs --with-ncurses="/root/ddwrt/src/router/ncurses" --without-netsnmp --without-newt --without-odbc --without-ogg --without-osptk --without-pri --without-qt --without-radius --without-sdl --without-spandsp --without-suppserv --without-tds --without-termcap --without-tinfo --without-vorbis --without-vpb --with-z="/root/ddwrt/src/router/zlib" --disable-xmldoc --without-dahdi --without-gnutls --without-iksemel CC=mipsel-linux-uclibc-gcc LD=mipsel-linux-uclibc-ld
make
cd ..
echo "done.."

make all install










##########################################################
cd ~/ddwrt/opt
mkdir ../src/router/mipsel-uclibc/target/etc/config
./sstrip/sstrip ../src/router/mipsel-uclibc/target/bin/*
./sstrip/sstrip ../src/router/mipsel-uclibc/target/sbin/rc
./sstrip/sstrip ../src/router/mipsel-uclibc/target/usr/sbin/*
cp ./bin/ipkg ../src/router/mipsel-uclibc/target/bin
cp ./libgcc/* ../src/router/mipsel-uclibc/target/lib
cd ../src/router/mipsel-uclibc/target/lib
ln -s libgcc_s.so.1 libgcc_s.so
cd ../../../../../opt
cp ./etc/preinit ../src/router/mipsel-uclibc/target/etc
cp ./etc/postinit ../src/router/mipsel-uclibc/target/etc
cp ./etc/ipkg.conf ../src/router/mipsel-uclibc/target/etc
cp ./etc/config/* ../src/router/mipsel-uclibc/target/etc/config
cp ./usr/lib/smb.conf ../src/router/mipsel-uclibc/target/usr/lib
cd ../src/router/mipsel-uclibc/target/www
ln -s ../tmp/smbshare smb
cd ../../../../../opt
./strip_libs.sh
../src/linux/brcm/linux.v24_2/scripts/squashfs/mksquashfs-lzma ../src/router/mipsel-uclibc/target target.squashfs -noappend -root-owned -le
#./make_kernel.v24_2.sh
../tools/trx -o dd-wrt.v24_2.trx ./loader-0.02/loader.gz ../src/router/mipsel-uclibc/vmlinuz target.squashfs

这个是我 最新的 笔记 有点乱 大家将就研究下吧
附解压过程截图如下:
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

QQ中转站下载地址(提取码 247bc172) :http://41.dc.ftn.qq.com/ftn_hand ... 19b05494fde128508bf
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

改装是必须的 不稳定是不可能得
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

尊敬的QQ邮箱用户:

您好!

您之前分享/发出了中转站文件,但有人下载时受限、未能下载。此邮件为您给出建议。

出现这种情况的原因是(如果您不关心,可略过,直接看之后的建议):
QQ邮箱为避免中转站资源被滥用、避免盗链,在他人下载时,系统会去判断下载者是否是文件主人经过邮件发给他/她的,如果不是或不能判断,则该文件只允许最多被下载7次。
在论坛上发布、或通过QQ直接粘贴链接就属于这种情况,会受到这样的限制。
特别的,如果是邮件发往非QQ邮箱,由于系统无法判断下载者是在相应地址的邮箱中下载,也会受到限制。(当然对于一般情况下发给个别的收件人,用什么邮箱都可以,7次下载足够了)。

因此,如果您要将文件分享给多人,为了保证接收方都能正常下载,建议您:
在中转站内,选择文件后点击上方的“邮件发送”按钮,发往对方的QQ邮箱。

关于本邮件的说明:如果您并未广泛传播中转站文件,却收到了本邮件,那么可能是接收者又将链接公布出去了,请您忽略这封邮件,请见谅。



QQ邮箱开发团队

看来QQ中转站没让下载,下载次数是15,一直没变。但提示有人想下载未果~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
网速 不给力啊,下载不完。 而且楼上给的QQ中转站,失效了,悲剧。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

使用道具 举报

楼主的QQ加不上 留个邮箱吧 8437866@163.com  用途:兴趣爱好吧 想改下界面 美化下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2024-5-5 21:31

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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