Saturday, December 22, 2012, 06:01 PM - Misc
Posted by Administrator
Guildwars2 Warrior Calculator BetaPosted by Administrator
Read More...

$ sed -i 's/no-sha0//' package/openssl/Makefile
$ git clone git://github.com/el1n/OpenWRT-package-utvpn.git package/utvpn
$ make package/utvpn/compile V=99
ubootenv set accept_open_rt_fmt 1
ubootenv set tftp_wait 10
>arp -s 192.168.11.1 **-**-**-**-**-** 192.168.11.2
$ mkdir ~/OpenWRT
$ cd ~/OpenWRT
# ソースコードをもってくる
$ svn co svn://svn.openwrt.org/openwrt/tags/backfire_10.03.1
$ cd backfire_10.03.1/
$ make menuconfig
# 基本Target System(BUFFALOは殆ど"Broadcom BCM947xx/953xx [2.4]"だろう)をあわせて"Build the OpenWrt SDK"をチェック
$ make V=99
# libiconv-full以外とってくる必要がないかもしらん
$ svn export svn://svn.openwrt.org/openwrt/tags/backfire_10.03.1/package/ncurses package/ncurses
$ svn export svn://svn.openwrt.org/openwrt/tags/backfire_10.03.1/package/openssl package/openssl
$ sed -i 's/no-sha0//' package/openssl/Makefile
$ svn export svn://svn.openwrt.org/openwrt/tags/backfire_10.03.1/package/libreadline package/libreadline
$ svn export svn://svn.openwrt.org/openwrt/packages/libs/libiconv-full@29638 package/libiconv-full
$ make package/ncurses/compile V=99
$ make package/openssl/compile V=99
$ make package/libreadline/compile V=99
$ make package/libiconv-full/compile V=99
$ cd ..
$ wget -q -O - 'http://utvpn.tsukuba.ac.jp/files/utvpn/v1.01-7101-public-2010.06.27/Source%20Code%20(Win32%20and%20Unix)/utvpn-src-unix-v101-7101-public-2010.06.27.tar.gz'|tar zxvf -
$ cd utvpn-*
$ echo -e '1\n1\n'|./configure
# それっぽい環境変数
$ export CCFLAGS="-I`echo ~/OpenWRT/backfire_10.03.1/staging_dir/target-*/include`"
$ export CCFLAGS="-I`echo ~/OpenWRT/backfire_10.03.1/staging_dir/target-*/usr/include` $CCFLAGS"
$ export CCFLAGS="-I`echo ~/OpenWRT/backfire_10.03.1/staging_dir/target-*/usr/lib/libiconv-full/include` $CCFLAGS"
$ export LDFLAGS="-L`echo ~/OpenWRT/backfire_10.03.1/staging_dir/target-*/lib`"
$ export LDFLAGS="-L`echo ~/OpenWRT/backfire_10.03.1/staging_dir/target-*/usr/lib` $LDFLAGS"
$ export LDFLAGS="-L`echo ~/OpenWRT/backfire_10.03.1/staging_dir/target-*/usr/lib/libiconv-full/lib` $LDFLAGS"
$ export LDFLAGS="-liconv $LDFLAGS"
# CCFLAGSとLDFLAGSを読むように、正直これくらい書いてあってほしい
$ sed -i 's/OPTIONS_COMPILE_[[:alnum:]]*=/&$(CCFLAGS) /' Makefile
$ sed -i 's/OPTIONS_LINK_[[:alnum:]]*=/&$(LDFLAGS) /' Makefile
$ svn diff http://lab.mitty.jp/svn/lab/trunk/Dev/u ... 01-public/ -r152:153|patch -p0
$ make CC=/home/a/OpenWRT/backfire_10.03.1/staging_dir/toolchain-*/usr/bin/*-openwrt-linux-gcc LD=/home/a/OpenWRT/backfire_10.03.1/staging_dir/toolchain-*/usr/bin/*-openwrt-linux-ld
$ perl -e '($b=join(undef,<STDIN>));print substr($b,index($b,"BLR3-TX4")-8)' <blr3f145.exe >BLR3F145.bin
$ wget http://www.geocities.jp/trstat/firmimgtool.c
$ sed -i 's/^\(\#define MAXSIZE\).*/\1 10485760/' firmimgtool.c
$ gcc -o firmimgtool firmimgtool.c
$ gunzip wlmr_loopfiles.gz
$ mkdir image
$ sudo mount -o loop wlmr_loopfiles image
$ sudo sed -i 's/^#\(telnet\)/\1/' image/etc/inetd.conf
$ sudo umount image
$ gzip -9 wlmr_loopfiles
$ ./firmimgtool -m -k vmlinux.gz -r wlmr_loopfiles.gz -f BLR3F145.bin BLR3F145.bin.new
$ ls -al *.EXE
-rw-r--r-- 1 a a 6234112 May 13 2004 BLR3F141b.EXE
-rw-rw-r-- 1 a a 6180864 May 11 2005 BLR3F145.EXE
$ (perl -e '($b=join(undef,<STDIN>));print substr($b,0,index($b,"BLR3-TX4")-8)';cat BLR3F145.bin.new) <BLR3F141b.EXE >BLR3F141b.EXE_mod.exe
$ ls -al BLR3F141b.EXE BLR3F141b.EXE_mod.exe
-rw-r--r-- 1 a a 6234112 May 13 2004 BLR3F141b.EXE
-rw-rw-r-- 1 a a 6187115 Aug 4 03:14 BLR3F141b.EXE_mod.exe
$ tail -c 46997 BLR3F141b.EXE >>BLR3F141b_mod.exe
<Back | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Next> Last>>