Add readme
This commit is contained in:
parent
6eb27bf245
commit
4ab7eb15f2
|
@ -21,13 +21,13 @@ ld Makefile和编译脚本目录
|
||||||
或
|
或
|
||||||
<code>git pull</code>
|
<code>git pull</code>
|
||||||
|
|
||||||
2. #### 安装必要软件(UBuntu)
|
2. #### 安装必要软件(UBuntu)
|
||||||
<code>sudo ./fsl-qoriq-glibc-x86_64-fsl-toolchain-aarch64-toolchain-2.4.1.sh
|
<code>sudo ./fsl-qoriq-glibc-x86_64-fsl-toolchain-aarch64-toolchain-2.4.1.sh
|
||||||
sudo apt-get -y install git u-boot-tools device-tree-compiler autoconf curl flex
|
sudo apt-get -y install git u-boot-tools device-tree-compiler autoconf curl flex
|
||||||
sudo apt-get -y install automake dh-autoreconf libssl-dev openssl libpcap-dev bc
|
sudo apt-get -y install automake dh-autoreconf libssl-dev openssl libpcap-dev bc
|
||||||
sudo apt-get -y install python-pip qemu-utils libncurses5-dev python-crypto bison</code>
|
sudo apt-get -y install python-pip qemu-utils libncurses5-dev python-crypto bison</code>
|
||||||
|
|
||||||
3. #### 安装 linux 内核源代码
|
3. #### 安装 linux 内核源代码
|
||||||
<code>sudo mkdir -p /opt/fsl-kernel /opt/fsl-kernel/arm64 /opt/fsl-kernel/x86
|
<code>sudo mkdir -p /opt/fsl-kernel /opt/fsl-kernel/arm64 /opt/fsl-kernel/x86
|
||||||
sudo chmod 777 /opt/fsl-kernel -R
|
sudo chmod 777 /opt/fsl-kernel -R
|
||||||
cp ./vBRAS/Platform/kernel/linux-4.9.140.tar.gz /opt/fsl-kernel
|
cp ./vBRAS/Platform/kernel/linux-4.9.140.tar.gz /opt/fsl-kernel
|
||||||
|
@ -35,6 +35,7 @@ ld Makefile和编译脚本目录
|
||||||
tar -xvaf ./linux-4.9.140.tar.gz ./
|
tar -xvaf ./linux-4.9.140.tar.gz ./
|
||||||
cp ./linux-4.9.140 ./x86
|
cp ./linux-4.9.140 ./x86
|
||||||
cp ./linux-4.9.140 ./arm64</code>
|
cp ./linux-4.9.140 ./arm64</code>
|
||||||
|
|
||||||
4. #### 设置环境变量
|
4. #### 设置环境变量
|
||||||
在 ~/.bashrc 文件末尾加上以下几行配置
|
在 ~/.bashrc 文件末尾加上以下几行配置
|
||||||
<code>export HUACHENG_LINUX_KERNEL=/opt/fsl-kernel/x86/linux-4.9.140
|
<code>export HUACHENG_LINUX_KERNEL=/opt/fsl-kernel/x86/linux-4.9.140
|
||||||
|
@ -54,6 +55,7 @@ ld Makefile和编译脚本目录
|
||||||
为
|
为
|
||||||
<code>ARCH ?= arm64
|
<code>ARCH ?= arm64
|
||||||
CROSS_COMPILE ?= aarch64-fsl-linux-</code>
|
CROSS_COMPILE ?= aarch64-fsl-linux-</code>
|
||||||
|
|
||||||
然后运行 make 命令进行编译
|
然后运行 make 命令进行编译
|
||||||
|
|
||||||
+ ## **安装方法**
|
+ ## **安装方法**
|
||||||
|
|
Loading…
Reference in New Issue