SS524V100 SDK安裝編譯osdrv注意事項(xiàng)(一)
一、開(kāi)發(fā)環(huán)境
windows10電腦 +虛擬機(jī)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,如果不帶這個(gè)參數(shù)默認(rèn)安裝路徑為:optlinuxx86-arm
5# source etcprofile 安裝交叉編譯器的腳本配置的環(huán)境變量就可以生效了,或者請(qǐng)重啟linux服務(wù)器也可
三、安裝 SDK
3.1 SS524V100 SDK包位置
1.原始包: SS524V100R00101.softwareboardSS524V100_SDK_V2.0.X.X.tgz
2.補(bǔ)丁包: SS524V100R00102.only for referencesoftwareboardSS524V100_REF_V2.0.X.X.tgz
3.補(bǔ)丁腳本: SS524V100R00102.only for referencesoftwareboardref_patch.sh
3.2解壓縮并展開(kāi) SDK包
SS524V100_REF_V2.0.X.X.tgz作為補(bǔ)丁包,可以將此補(bǔ)丁包打到SS524V100_SDK_V2.0.X.X.tgz包中,具體操作步驟如下:
1# 1、將 SS524V100_SDK_V2.0.X.X.tgz和 SS524V100_REF_V2.0.X.X.tgz 包放置到同一個(gè)文件夾下并解壓
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í)行打補(bǔ)丁操作:
10# cd ..
11# chmod +x ref_patch.sh
12# .ref_patch.sh
執(zhí)行后,SS524V100_SDK_V2.0.X.X為打上REF補(bǔ)丁后的完整包。
四、編譯 osdrv
本目錄下的編譯腳本支持 arm-mix410-linux工具鏈,arm-mix410-linux對(duì)應(yīng)glibc庫(kù)。具體命令如下(以ss524v100舉例):
4.1徹底清除整個(gè)osdrv目錄
# cd SS524V100_SDK_V2.0.1.0osdrv
# make distclean
4.2編譯整個(gè)osdrv目錄
# make all
五、編譯問(wèn)題匯總及解決方法
5.1問(wèn)題1
binsh 1 bison not found
解決方法
# sudo apt install bison flex
5.2問(wèn)題2
configure error gperf not found
Makefile10 recipe for target ‘a(chǎn)ll’ failed
make[1][all] Error 1
make[1]離開(kāi)目錄“SS524V100_SDK_V2.0.1.0open_sourceeudev”
Makefile330 recipe for target ‘boardtools’ failed
make[boardtools] Error 2
解決方法
# sudo apt-get install gperf
5.3問(wèn)題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]離開(kāi)目錄“SS524V100_SDK_V2.0.1.0open_sourcemtd-utils”
Makefile330 recipe for target ‘boardtools’ failed
make[boardtools] Error 2
解決方法
安裝 mtd-utils2.x.x依賴(lài)庫(kù):
# sudo apt-get install zlib1g-dev liblzo2-dev uuid-dev pkg-config automake
5.4問(wèn)題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]離開(kāi)目錄“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,表示整個(gè)osdrv編譯成功了
————————————————
-
Linux
+關(guān)注
關(guān)注
87文章
11090瀏覽量
207596 -
海思
+關(guān)注
關(guān)注
41文章
435瀏覽量
115258
發(fā)布評(píng)論請(qǐng)先 登錄
相關(guān)推薦
評(píng)論