jollen / blog

Jollen's Blog
http://www.jollen.org/blog
66 stars 4 forks source link

如何更新 LinkIt Smart 7688 (Duo) Firmware(編譯 OpenWrt) #3

Open jollen opened 8 years ago

jollen commented 8 years ago
$ sudo apt-get install git g++ libncurses5-dev subversion libssl-dev gawk libxml-parser-perl unzip

下載 OpenWrt 套件

  1. 使用 git 下載 OpenWrt 原始碼套:
$ git clone git://git.openwrt.org/openwrt.git
  1. 新增 feeds
$ cd openwrt
$ cp feeds.conf.default feeds.conf
$ echo src-git linkit https://github.com/MediaTek-Labs/linkit-smart-7688-feed.git >> feeds.conf
$ ./scripts/feeds update
$ ./scripts/feeds install -a
  1. 進入設定選單
$ make prereq
$ make menuconfig

選取以下選項:

選擇 Exit 並儲存離開。開始編譯:

make V=99

安裝 FFmpeg 套件

root@mylinkit:~# ls -l
-rw-r--r--    1 root     root         86307 Dec 21 11:28 ffmpeg_2.6.2-1_ramips_24kec.ipk
-rw-r--r--    1 root     root       4655639 Dec 21 11:30 libffmpeg-full_2.6.2-1_ramips_24kec.ipk

root@mylinkit:~# opkg install libffmpeg-full_2.6.2-1_ramips_24kec.ipk 
Installing libffmpeg-full (2.6.2-1) to root...
Configuring libffmpeg-full.

root@mylinkit:~# opkg install ffmpeg_2.6.2-1_ramips_24kec.ipk 
Installing ffmpeg (2.6.2-1) to root...
Configuring ffmpeg.

執行 FFmpeg

root@mylinkit:~# ffmpeg 
ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47955)
  configuration: --enable-cross-compile --cross-prefix=mipsel-openwrt-linux-uclibc- --arch=mipsel --target-os=linux --prefix=/usr --pkg-config=pkg-config --enable-shared --enable-static --enable-small --enable-pthreads --enable-zlib --disable-runtime-cpudetect --disable-doc --disable-debug --enable-gpl --enable-version3 --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-mmx --disable-mmxext --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-xop --disable-fma3 --disable-fma4 --disable-avx2 --disable-vfp --disable-neon --disable-inline-asm --disable-yasm --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --disable-dxva2 --disable-lzma --disable-vaapi --disable-vda --disable-vdpau --disable-outdevs
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

Kernel Modules

RTL8188S WLAN Adapter :

  產品識別碼:    0x8171
  廠商識別碼:    0x0bda  (Realtek Semiconductor Corp.)
  版本:  2.00
  序號: 00e04c000001
  速度: 最高每秒 480 Mb
  製造商:  Manufacturer Realtek 
  位置識別碼:    0x26200000 / 4
  可用電流(mA):   500
  所需電流(mA):   500

 <M> kmod-rtl8187........... Realtek Drivers for RTL818x devices (RTL8187 USB)      

參考資源

loginzhang2 commented 6 years ago

编译openwrt 下面的dl 下的软件包在哪里下载?因为被墙了。