以下建構方法以Fedora Core 4 為例
1. 設定軟體
確定 /opt 是否存在, 不存在時自行建立之。
mkdir /opt
2. 下載 mipsel-linux toolchain, 然後解壓縮
cd /opt
wget http://files.wl500g.info/asus/wl500g/gpl/GPL_1.8.1.9.tar.gz
tar xvfz GPL_1.8.1.9.tar.gz
cp -R /opt/broadcom/opt/brcm /opt
3. 請先檢查是否為以下目錄都存在
/opt/brcm
/opt/brcm/hndtools-mipsel-linux-3.0
/opt/brcm/hndtools-mipsel-linux-3.2.3 ?
4. 建立軟體連結讓mipsel-linux 能夠指向到mipsel-linux-3.0
ln -sf /opt/brcm/hndtools-mipsel-linux-3.0 /opt/brcm/hndtools-mipsel-linux
5. 建立軟體連結從/opt/brcm/hndtools-mipsel-linux-3.2.3/mipsel-linux/sys-include 到 /opt/brcm/hndtools-mipsel-linux/mipsel-linux/sys-include
ln -sf /opt/brcm/hndtools-mipsel-linux-3.2.3/mipsel-linux/sys-include /opt/brcm/hndtools-mipsel-linux/mipsel-linux/sys-include
6. 複製/opt/brcm/hndtools-mipsel-linux-3.2.3/lib/gcc-lib/mipsel-linux/3.2.3/include 的 stdio.h 到 /opt/brcm/hndtools-mipsel-linux/lib/gcc-lib/mipsel-linux/3.0/include
cp /opt/brcm/hndtools-mipsel-linux-3.2.3/lib/gcc-lib/mipsel-linux/3.2.3/include/stdio.h /opt/brcm/hndtools-mipsel-linux/lib/gcc-lib/mipsel-linux/3.0/include/stdio.h
7. 加入toolchain到環境變數PATH中, 讓在任何目錄都可使用
export PATH=$PATH:/opt/brcm/hndtools-mipsel-uclibc/bin:/opt/brcm/hndtools-mipsel-linux/bin
8. 恭喜!! Broadcom 4780的編譯環境已經建立完成。
以下為ASUS WL700GE 自製firmware的方法,僅供參考
Set up GPL code
Go to the /root directory and download the GPL source code:
# cd /root < enter >
# wget http://files.wl500g.info/asus/wl700g...gE_1042tar.zip < enter >
Unzip GPL_WL700gE_1.0.4.2.tar.gz from GPL_WL700gE_1042tar.zip:
# unzip -u GPL_WL700gE_1042tar.zip < enter >
Extract the source:
# tar xvfz GPL_WL700gE_1.0.4.2.tar.gz < enter >
Make a change in 3 files by adding a path to executable mkcramfs (replace mkcramfs to /opt/broadcom/src/linux/linux/scripts/cramfs/mkcramfs):
/root/WL700g/nasoc/src/apps/Makefile
/root/WL700g/nasoc/src/apps/pivot_root/Makefile
/root/WL700g/nasoc/src/apps/mfgtest_root/Makefile
Compile the firmware
Go to the directory /root/WL700g/nasoc/src/apps and type:
# make rebuild
以上資料轉載與整理自 : http://wl500g.info/showthread.php?t=5748
Comments
yRKYcwfVlTuo
http://www.medprixonline.com/ seroquel =-)) http://www.unamed.net/ propecia >:)
PTSQaSYvfgHTCF
http://www.halfpricemed.com/ buying viagra ood http://www.unamedic.net/ buy propecia lowest price 8]]]
oXpMpfSTDyEda
http://www.carinsuranceguidance.com/ online auto insurance 8[[ http://www.carinsurancemate.com/ car insurance quotes :OOO
Add new comment