1 下载并安装ubuntu 16.04
Index of /ubuntu-releases/16.04/
2 更新ubuntu 16.04 系统
sudo apt-get update
sudo apt-get upgrade
3 安装 Realtek usdk2.3.1a的依赖库
sudo apt-get -y install gcc
sudo apt-get -y install g++
sudo apt-get -y install flex
sudo apt-get -y install byacc
sudo apt-get -y install rcs
sudo apt-get -y install bison
sudo apt-get -y install ncurses-dev
sudo apt-get -y install lzma-dev
sudo apt-get -y install lib32stdc++6
sudo apt-get -y install automake
sudo apt-get -y install zlib1g-dev
sudo apt-get -y install gawk
sudo apt-get -y install ncurses-term
sudo apt-get -y install git
sudo apt-get -y install subversion
sudo apt-get -y install lib32ncurses5
sudo apt-get -y install lib32z1
sudo apt-get -y install make
sudo apt-get -y install unzip
sudo apt-get -y install python
sudo apt-get -y install liblzma-dev
sudo apt-get -y install bc
sudo apt-get -y install vim
sudo apt-get -y install pigz
sudo apt-get -y install xzdec
sudo apt-get -y install bzip2
sudo apt-get -y install dos2unix
sudo apt-get -y install swig
sudo apt-get -y install asciidoc
sudo apt-get -y install libncurses5-dev
sudo apt-get -y install libz-dev
sudo apt-get -y install libc6
sudo apt-get -y install libstdc++6
sudo apt-get -y install ssh
sudo apt-get -y install libncurses5
sudo apt-get -y install ncurses-base
sudo apt-get -y install pkg-config
sudo apt-get -y install cmake
sudo apt-get -y install libtool
sudo apt-get -y install samba
sudo apt-get -y install vim
sudo apt-get -y install libghc-zlib-dev
sudo apt-get -y install lib32z1-dev
sudo apt-get -y install u-boot-tools:i386
sudo apt-get -y install u-boot-tools
sudo apt-get -y install mtd-utils
sudo apt-get -y install openssh-server
4 sh链接为bash
先查看当前sh链接是bash还是dash:
#ls -al /bin/sh
/bin/sh -> dash
切换链接为bash:
dpkg-reconfigure dash 弹出窗口选择no
5 将usdk2.3.1a toolchain 目录拷贝到ubuntu16.04 的根目录 “/”下,并解压toolchain。
6 可以正式编译Realtek usdk2.3.1a了。
若有更多疑问,微信号:dowellmore 联系。