環境
ubuntu-14.04.3-desktop-amd64
VirtualBox
Wi-Fi
Steps
1. 安裝build所須的相關工具
sudo apt-get install git g++ libncurses5-dev subversion libssl-dev gawk libxml-parser-perl unzip
2. 下載OpenWrt CC source codes
git clone git://git.openwrt.org/15.05/openwrt.git
3. Prepare the default configuration file for feeds
cd openwrt
cp feeds.conf.default feeds.conf
4. Add the linkIt Smart 7688 development board’s feed
echo src-git linkit https://github.com/MediaTek-Labs/linkit-smart-7688-feed.git >> feeds.conf
5. Update the feed information for all available packages to build the firmware
./scripts/feeds update
執行後會產生一資料夾 openwrt/feeds
6. Install all packages
./scripts/feeds install –a
6.1 查看kernel支援的wifi driver openwrt/feeds/linkit/mtk-sdk-wifi/wifi_binary
gitbug上的列表
https://github.com/MediaTek-Labs/linkit-smart-7688-feed/tree/master/mtk-sdk-wifi/wifi_binary
目前支援到3.18.44
在路徑 openwrt/include/kernel-version.mk裡可以看到預設的kernel版本為3.18.45
要修改為3.18.44
確認使用linux kernel的版本 openwrt/target/linux/ramips/Makefile
6.2 Linux的ftp載點已經失效,所以必須添加新的位址 openwrt/scripts/download.pl
push @mirrors, “https://www.kernel.org/pub/$dir”;
6.3 修改MD5SUB值
7c52da2f54381a84960118b5bf23381a
路徑openwrt/include/kernel-version.mk
7. Prepare the kernel configuration
make menuconfig
選擇
Target System : Ralink RT288x/RT3xxx
Subtarget : MT7688 based boards
Target Profile : LinkIt 7688
存檔,離開
8. Start the compilation process
make V=99
9. build完成後會產生一bin檔
openwrt/bin/ramips/openwrt-ramips-mt7688-LinkIt7688-squashfs-sysupgrade.bin
ISSUE
confuse-2.7.tar.gz download failed
wget 位址 –O dl/confuse-2.7.tar.gz
ISSUE
avrdude-6.1.tar.gz download failed
wget 位址 –O dl/avrdude-6.1.tar.gz
ISSUE
libid3tag-0.15.1b.tar.gz download failed
wget 位址 –O dl/libid3tag-0.15.1b.tar.gz
留言
張貼留言