Add readme
This commit is contained in:
parent
ed99f66a88
commit
09a0d5665a
15
Readme.md
15
Readme.md
|
@ -27,16 +27,14 @@ Product 安全网关产品源代码主目录
|
||||||
<code>git pull</code>
|
<code>git pull</code>
|
||||||
|
|
||||||
#### 2. 安装必要软件(UBuntu)
|
#### 2. 安装必要软件(UBuntu)
|
||||||
<code>
|
<code>sudo ./fsl-qoriq-glibc-x86_64-fsl-toolchain-aarch64-toolchain-2.4.1.sh
|
||||||
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
|
sudo apt-get -y install python-pip qemu-utils libncurses5-dev python-crypto bison
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
#### 3. 安装 linux 内核源代码
|
#### 3. 安装 linux 内核源代码
|
||||||
<code>
|
<code>sudo mkdir -p /opt/fsl-kernel /opt/fsl-kernel/arm64 /opt/fsl-kernel/x86
|
||||||
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
|
||||||
cd /opt/fsl-kernel
|
cd /opt/fsl-kernel
|
||||||
|
@ -47,8 +45,7 @@ cp ./linux-4.9.140 ./arm64
|
||||||
|
|
||||||
#### 4. 设置环境变量
|
#### 4. 设置环境变量
|
||||||
在 ~/.bashrc 文件末尾加上以下几行配置
|
在 ~/.bashrc 文件末尾加上以下几行配置
|
||||||
<code>
|
<code>export HUACHENG_LINUX_KERNEL=/opt/fsl-kernel/x86/linux-4.9.140
|
||||||
export HUACHENG_LINUX_KERNEL=/opt/fsl-kernel/x86/linux-4.9.140
|
|
||||||
export HUACHENG_ARM64_KERNEL=/opt/fsl-kernel/arm64/linux-4.9.140
|
export HUACHENG_ARM64_KERNEL=/opt/fsl-kernel/arm64/linux-4.9.140
|
||||||
export SDKTARGETSYSROOT=/opt/fsl-qoriq/2.4.1/sysroots/aarch64-fsl-linux
|
export SDKTARGETSYSROOT=/opt/fsl-qoriq/2.4.1/sysroots/aarch64-fsl-linux
|
||||||
export PATH=/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/usr/sbin:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/bin:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/sbin:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/usr/bin/../x86_64-fslsdk-linux/bin:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/usr/bin/aarch64-fsl-linux:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/usr/bin/aarch64-fsl-linux-musl:$PATH
|
export PATH=/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/usr/sbin:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/bin:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/sbin:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/usr/bin/../x86_64-fslsdk-linux/bin:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/usr/bin/aarch64-fsl-linux:/opt/fsl-qoriq/2.4.1/sysroots/x86_64-fslsdk-linux/usr/bin/aarch64-fsl-linux-musl:$PATH
|
||||||
|
@ -61,13 +58,11 @@ source ~/.bashrc
|
||||||
+ arm64
|
+ arm64
|
||||||
<code>cd /opt/fsl-kernel/arm64/linux-4.9.140 && unset LDFLAS</code>
|
<code>cd /opt/fsl-kernel/arm64/linux-4.9.140 && unset LDFLAS</code>
|
||||||
修改 Makefile 文件第 257、258 两行
|
修改 Makefile 文件第 257、258 两行
|
||||||
<code>
|
<code>ARCH ?= $(SUBARCH)
|
||||||
ARCH ?= $(SUBARCH)
|
|
||||||
CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)
|
CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)
|
||||||
</code>
|
</code>
|
||||||
为
|
为
|
||||||
<code>
|
<code>ARCH ?= arm64
|
||||||
ARCH ?= arm64
|
|
||||||
CROSS_COMPILE ?= aarch64-fsl-linux-
|
CROSS_COMPILE ?= aarch64-fsl-linux-
|
||||||
</code>
|
</code>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue