標題: Gentoo下建立DD-WRT交叉編譯環(huán)境 [打印本頁] 作者: linyin 時間: 2009-03-12 18:49 標題: Gentoo下建立DD-WRT交叉編譯環(huán)境 用的是Gentoo Linux Kernel版本2.6.28.7
[email=linyin@linyin]linyin@linyin[/email]
~ $ uname -a
Linux linyin 2.6.28.7 #1 Tue Mar 3 17:12:26 CST 2009 i686 VIA Samuel 2 CentaurHauls GNU/Linux
從DD-WRT官方網(wǎng)站下載Toolchains
地址:http://www.dd-wrt.com/dd-wrtv2/downloads/others/sourcecode/toolchains/gcc.3.4.4-broadcom-mipsel.tar.bz2
其中有如下幾個版本:
all_toolchains_amd64.tar.bz2 For AMD64 CPU
gcc-3.3.5-openwrt.tar.bz2 在OpenWRT環(huán)境下
gcc-3.4.4-crossmipsel-AMD64.tar.bz2 For AMD64 CPU
gcc.3.4.4-broadcom-mipsel.tar.bz2 一般的X86 CPU
toolchains.darwin.ppc.sp1.tar.bz2 PPC CPU下Darwin系統(tǒng)
toolchains.x86.debian.sp1.tar.bz2 X86下的Debian系統(tǒng)
我使用的路由器是貝爾金7231-4P,MIPS類CPU,BROADCOM芯片
[email=root@DD-WRT]root@DD-WRT[/email]
:~# uname -a
Linux DD-WRT 2.4.35 #1955 Tue May 20 06:38:36 CEST 2008 mips unknown
[email=root@DD-WRT]root@DD-WRT[/email]
:~# cat /proc/cpuinfo
system type : Broadcom BCM4712 chip rev 1
processor : 0
cpu model : BCM3302 V0.7
BogoMIPS : 199.47
wait instruction : no
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : no
hardware watchpoint : no
VCED exceptions : not available
VCEI exceptions : not available
下載toolchains后解壓,我放在/home/linyin/.opt/
修改用戶.bashrc添加:export PATH=$PATH:/home/linyin/.opt/openwrt/bin