SS524V100 SDK安裝編譯osdrv注意事項(一)
一、開發(fā)環(huán)境
windows10電腦 +虛擬機15 Pro + Ubuntu18.0.4
二、在 linux服務(wù)器上安裝交叉工具鏈
1# tar -zxf arm-mix410-linux.tgz
2# cd armmix410-linux
3# chmod +x arm-mix410-linux.install
4# sudo .armmix410-linux.install opthisi-linuxx86-arm 指定安裝路徑:opthisi-linuxx86-arm,如果不帶這個參數(shù)默認安裝路徑為:optlinuxx86-arm
5# source etcprofile 安裝交叉編譯器的腳本配置的環(huán)境變量就可以生效了,或者請重啟linux服務(wù)器也可
三、安裝 SDK
3.1 SS524V100 SDK包位置
1.原始包: SS524V100R00101.softwareboardSS524V100_SDK_V2.0.X.X.tgz
2.補丁包: SS524V100R00102.only for referencesoftwareboardSS524V100_REF_V2.0.X.X.tgz
3.補丁腳本: SS524V100R00102.only for referencesoftwareboardref_patch.sh
3.2解壓縮并展開 SDK包
SS524V100_REF_V2.0.X.X.tgz作為補丁包,可以將此補丁包打到SS524V100_SDK_V2.0.X.X.tgz包中,具體操作步驟如下:
1# 1、將 SS524V100_SDK_V2.0.X.X.tgz和 SS524V100_REF_V2.0.X.X.tgz 包放置到同一個文件夾下并解壓
2# tar -zxf SS524V100_SDK_V2.0.X.X.tgz
3# tar -zxf SS524V100_REF_V2.0.X.X.tgz
4
5# 2、執(zhí)行 SS524V100_SDK_V2.0.X.X文件夾內(nèi)部解壓
6# cd SS524V100_SDK_V2.0.X.X
7# .sdk.unpack
8
9# 3、執(zhí)行打補丁操作:
10# cd ..
11# chmod +x ref_patch.sh
12# .ref_patch.sh
執(zhí)行后,SS524V100_SDK_V2.0.X.X為打上REF補丁后的完整包。
四、編譯 osdrv
本目錄下的編譯腳本支持 arm-mix410-linux工具鏈,arm-mix410-linux對應(yīng)glibc庫。具體命令如下(以ss524v100舉例):
4.1徹底清除整個osdrv目錄
# cd SS524V100_SDK_V2.0.1.0osdrv
# make distclean
4.2編譯整個osdrv目錄
# make all
五、編譯問題匯總及解決方法
5.1問題1
binsh 1 bison not found
解決方法
# sudo apt install bison flex
5.2問題2
configure error gperf not found
Makefile10 recipe for target ‘a(chǎn)ll’ failed
make[1][all] Error 1
make[1]離開目錄“SS524V100_SDK_V2.0.1.0open_sourceeudev”
Makefile330 recipe for target ‘boardtools’ failed
make[boardtools] Error 2
解決方法
# sudo apt-get install gperf
5.3問題3
configure WARNING cannot find ZLIB library required for mkfs programs
configure mtd-utils can optionally be built without mkfs.ubifs
configure mtd-utils can optionally be built without mkfs.jffs2
configure error missing one or more dependencies
Makefile47 recipe for target ‘mtd_board’ failed
make[1][mtd_board] Error 1
make[1]離開目錄“SS524V100_SDK_V2.0.1.0open_sourcemtd-utils”
Makefile330 recipe for target ‘boardtools’ failed
make[boardtools] Error 2
解決方法
安裝 mtd-utils2.x.x依賴庫:
# sudo apt-get install zlib1g-dev liblzo2-dev uuid-dev pkg-config automake
5.4問題4
7z x lzma1900.7z -olzma1900
make[1] 7z Command not found
Makefile7 recipe for target ‘a(chǎn)ll’ failed
make[1][all] Error 127
make[1]離開目錄“SS524V100_SDK_V2.0.1.0open_sourcelzma”
Makefile291 recipe for target ‘pctools’ failed
make[pctools] Error 2
解決方法
# sudo apt install p7zip-full
1
---------finish osdrv work,表示整個osdrv編譯成功了
————————————————
-
Linux
+關(guān)注
關(guān)注
87文章
11292瀏覽量
209318 -
海思
+關(guān)注
關(guān)注
42文章
460瀏覽量
116341
發(fā)布評論請先 登錄
相關(guān)推薦
評論