安裝SDK
下載sdk并上傳到虛擬機(jī),解壓后執(zhí)行:
在這對(duì)話框中輸入想要保存的目錄:
在下面的對(duì)話框中輸入Y:
然后稍等安裝完畢:
Extracting SDK.......................................................................................................................................................................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/yg2lx/environment-setup-aarch64-poky-linux
$ . /opt/yg2lx/environment-setup-armv7vet2hf-neon-vfpv4-pokymllib32-linux-gnueabi
測(cè)試SDK
安裝完成后,使用以下命令設(shè)置環(huán)境變量,測(cè)試 SDK 是否完成:
lugl@lugl-virtual-machine:~/MYD/sdk$ source /opt/yg2lx/environment-setup-aarch64-poky-linux
lugl@lugl-virtual-machine:~/MYD/sdk$ $CC -v
Using built-in specs.
COLLECT_GCC=aarch64-poky-linux-gcc
COLLECT_LTO_WRAPPER=/opt/yg2lx/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/8.3.0/lto-wrapper
Target: aarch64-poky-linux
Configured with: ../../../../../../work-shared/gcc-8.3.0-r0/gcc-8-8.3.0/src/configure --build=x86_64-linux --host=x86_64-pokysdk-linux --target=aarch64-poky-linux --prefix=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr --exec_prefix=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr --bindir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux --sbindir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux --libexecdir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/libexec/aarch64-poky-linux --datadir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/share --sysconfdir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/etc --sharedstatedir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/com --localstatedir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/var --libdir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/lib/aarch64-poky-linux --includedir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include --oldincludedir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/include --infodir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/share/info --mandir=/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/hjx/renesas/new2-yocto/build-myir/tmp/work/x86_64-nativesdk-pokysdk-linux/gcc-cross-canadian-aarch64/8.3.0-r0/recipe-sysroot --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-default-pie --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=aarch64-poky-linux- --without-local-prefix --disable-install-libiberty --enable-lto --disable-libssp --enable-libitm --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-gxx-include-dir=/not/exist/usr/include/c++/8.3.0 --with-build-time-tools=/home/hjx/renesas/new2-yocto/build-myir/tmp/work/x86_64-nativesdk-pokysdk-linux/gcc-cross-canadian-aarch64/8.3.0-r0/recipe-sysroot-native/usr/aarch64-poky-linux/bin --with-sysroot=/not/exist --with-build-sysroot=/home/hjx/renesas/new2-yocto/build-myir/tmp/work/x86_64-nativesdk-pokysdk-linux/gcc-cross-canadian-aarch64/8.3.0-r0/recipe-sysroot --enable-poison-system-directories --disable-static --enable-nls --with-glibc-version=2.28 --enable-initfini-array --enable-__cxa_atexit
Thread model: posix
gcc version 8.3.0 (GCC)
到此,SDK就安裝成功了。
測(cè)試
用vim編寫一個(gè)hello.c:
保存后編譯:$CC hello.c -o hello
編譯后查看hello文件類型:
lugl@lugl-virtual-machine:~/MYD/sdk$ file hello
hello: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-aarch64.so.1, for GNU/Linux 3.14.0, BuildID[sha1]=5aa9a4ba2a1ff9ca3ef36c5d5508eb448b8f85f1, with debug_info, not stripped
上傳到開發(fā)板,修改權(quán)限后執(zhí)行:
成功的輸出了hello world,說明SDK安裝成功!
聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請(qǐng)聯(lián)系本站處理。
舉報(bào)投訴
發(fā)布評(píng)論請(qǐng)先 登錄
相關(guān)推薦
基于瑞薩電子RZ/G2L的FET-G2LD-C核心板和OK-G2LD-C開發(fā)板評(píng)測(cè)
基于瑞薩電子RZ/G2L處理器開發(fā)的FET-G2LD
發(fā)表于 05-30 17:24
?1174次閱讀
【米爾-瑞薩RZ/G2UL開發(fā)板】1.開箱
/G2UL 都能提供出色的性能和穩(wěn)定的運(yùn)行。以下是一些外觀特寫:
正面照片
背面照片
規(guī)格
米爾-瑞薩RZ/
發(fā)表于 02-04 23:38
【米爾瑞薩RZ/G2L開發(fā)板-試用體驗(yàn)】LCD 顯示測(cè)試
實(shí)驗(yàn)器材
1、米爾瑞薩RZ/G2L開發(fā)板
2、MY-
發(fā)表于 05-22 19:26
【米爾瑞薩RZ/G2L開發(fā)板-試用體驗(yàn)】米爾-瑞薩RZG2L - 64位雙核MPU開發(fā)板開箱測(cè)評(píng)
剛收到米爾瑞薩RZ/G2L開發(fā)板打開包裝后看到的很大的一塊黑色PCB,做工精美的
發(fā)表于 05-22 21:53
【米爾瑞薩RZ/G2L開發(fā)板-試用體驗(yàn)】米爾瑞薩RZ/G2L開發(fā)板開箱視頻
今天剛剛收到米爾瑞薩RZ/G2L開發(fā)板,拆開包裹后給人的感覺是驚艷,板卡設(shè)計(jì)真的很棒,來看看視頻
發(fā)表于 05-22 21:58
150套開發(fā)板免費(fèi)送!還有5G手機(jī)拿?米爾RZ/G2L開發(fā)板創(chuàng)意秀
/12
05
送的是哪款開發(fā)板?
米爾MYD-YG2LX開發(fā)板,該款產(chǎn)品采用瑞薩
發(fā)表于 05-24 16:36
【米爾瑞薩RZ/G2L開發(fā)板-試用體驗(yàn)】米爾瑞薩RZ/G2L開發(fā)板使用SSH登錄
收到的米爾瑞薩RZ/G2L開發(fā)板上電測(cè)試一下SSH登錄方式和其它測(cè)試!
SSH登錄
在使用
發(fā)表于 06-11 21:47
【米爾瑞薩RZ/G2L開發(fā)板-試用體驗(yàn)】認(rèn)識(shí)一下米爾瑞薩RZ/G2L開發(fā)板的核心板
收到米爾瑞薩RZ/G2L開發(fā)板后一直對(duì)米爾旗下
發(fā)表于 07-29 00:21
150套開發(fā)板免費(fèi)送!還有5G手機(jī)拿?米爾RZ/G2L開發(fā)板創(chuàng)意秀
人間最美五月天不負(fù)韶華不負(fù)卿米爾又來送板子了不是3套,也不是4套150套米爾RZ/G2L開發(fā)板送!免費(fèi)!板卡不回收!01這是什么樣的有獎(jiǎng)活動(dòng)
評(píng)論