20160303_jeffrey - silenceuncrio/diary GitHub Wiki

Index

  • 0930 - LinkIt 7688 Duo - make menuconfig
  • 1100 - LinkIt 7688 Duo - make menuconfig 的相關基礎知識
  • 1200 - LinkIt 7688 Duo - make
  • 1355 - LinkIt 7688 Duo - build 不過
  • 1415 - OpenWrt Development Guide
  • 1625 - LinkIt 7688 Duo - build 好了

0930

從官網 MediaTek LinkIt Smart 7688 Software and Tools 下載的 SDK(Linux)
在 ubuntu 解開後, make menuconfig 就出錯了...

如果使用 git clone git://git.openwrt.org/15.05/openwrt.git clone 的 openwrt 就可以順利的 make menuconfig

1100

可能要吸收一下 make menuconfig 的相關基礎知識

1200

MediaTek LinkIt Smart 7688 Software and Tools 下載的 SDK(Linux) 裡的 .config 拿來搭配 git clone git://git.openwrt.org/15.05/openwrt.git

先 make 再說

1355

build 不過阿...

...
make[5]: Entering directory `/home/jeffrey/mt7688/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/mysql-5.1.73/sql'
/bin/bash ../ylwrap sql_yacc.yy y.tab.c sql_yacc.cc y.tab.h `echo sql_yacc.cc | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output sql_yacc.output -- bison -y -p MYSQL -d --verbose 
bison: input/output error
make[5]: *** [sql_yacc.cc] Error 1
make[5]: Leaving directory `/home/jeffrey/mt7688/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/mysql-5.1.73/sql'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jeffrey/mt7688/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/mysql-5.1.73'
make[3]: *** [/home/jeffrey/mt7688/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/mysql-5.1.73/.built] Error 2
make[3]: Leaving directory `/home/jeffrey/mt7688/openwrt/feeds/packages/utils/mysql'
make[2]: *** [package/feeds/packages/mysql/compile] Error 2
make[2]: Leaving directory `/home/jeffrey/mt7688/openwrt'
make[1]: *** [/home/jeffrey/mt7688/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/jeffrey/mt7688/openwrt'
make: *** [world] Error 2

follow 官方 GitHub 上的說明再操作一次 linkit-smart-7688-feed

1415

等待 make 的同時, 多認識一下 openwrt

深深覺得自己對開發環境這些相關知識真的很缺乏

撐過去吧...

1625

build 好了

inkit/openwrt/bin/ramips$ ls -al
total 49068
drwxr-xr-x 3 jeffrey jeffrey     4096 Mar  3 16:22 .
drwxr-xr-x 3 jeffrey jeffrey     4096 Mar  3 14:57 ..
-rw-r--r-- 1 jeffrey jeffrey      364 Mar  3 16:22 md5sums
-rw-r--r-- 1 jeffrey jeffrey 21757956 Mar  3 16:22 openwrt-ramips-mt7688-LinkIt7688-squashfs-sysupgrade.bin
-rw-r--r-- 1 jeffrey jeffrey 20447232 Mar  3 16:22 openwrt-ramips-mt7688-root.squashfs
-rw-r--r-- 1 jeffrey jeffrey  1151247 Mar  3 16:21 openwrt-ramips-mt7688-uImage.bin
-rwxr-xr-x 1 jeffrey jeffrey  3426940 Mar  3 16:21 openwrt-ramips-mt7688-vmlinux.bin
-rwxr-xr-x 1 jeffrey jeffrey  3431944 Mar  3 16:21 openwrt-ramips-mt7688-vmlinux.elf
drwxr-xr-x 9 jeffrey jeffrey     4096 Mar  3 16:22 packages
-rw-r--r-- 1 jeffrey jeffrey      649 Mar  3 16:22 sha256sums

終於得了一個跟從官網 LinkIt Smart 7688 Firmware 下載的 firmware 相同大小的 openwrt-ramips-mt7688-LinkIt7688-squashfs-sysupgrade.bin

大小為 21757956
馬上透過 web 來 upgrade... 上傳完 firmware 後板子就沒任何後續動作... console 沒看到啥訊息

改由 bootloader 來 upgrade

...
Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.

You choosed 2

 0


2: System Load Linux Kernel then write to Flash via TFTP.
 Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
 Please Input new ones /or Ctrl-C to discard
        Input device IP (10.10.10.123) ==:192.168.1.100
        Input server IP (10.10.10.3) ==:192.168.1.113
        Input Linux Kernel filename () ==:LinkIt7688.bin
...

抓好時間按 2 進入 Load system code then write to Flash via TFTP

這次就成功了...

重新進入 AP mode
手機連上 LinkIt 7688
密碼還在... 70746615(公司統編)
改成 station mode...

root@mylinkit:/# ifconfig
apcli0    Link encap:Ethernet  HWaddr 9E:65:F9:0B:18:39
          inet addr:192.168.0.172  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::9c65:f9ff:fe0b:1839/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:95 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

非常好

趕緊來 update 到 wiki 上