嵌入式學習 環境搭建

2021-06-26 16:00:54 字數 1118 閱讀 4101

系統環境:rhel 6.5 (32bit)虛擬機器

一、搭建交叉編譯環境

1、拷貝toolchain到/usr/local/opt

tar zxvf crosstools-451.tar.gz -c /usr/local/opt
2、修改環境變數,新增交叉編譯器到路徑path中

# vim /etc/profile

新增 export path=$path:/usr/local/opt/4.5.1/bin

# source /etc/profile

注:還可以在/etc/bashrc和/root/.bashrc中新增path環境變數,與/etc/profile中效果一樣。

二、ctags和cscope

1、ctags

$ tar zxvf ctags-5.8.tar.gz

$ cd ctags-5.8

$ ./configure

$ make

# make install

配置:

2、cscope

$ tar -jxvf cscope-15.7a.tar.bz2 

$ cd cscope-15.7a

$ ./configure

$make

#make install

配置:

三、配置tftp

更改檔案:# vim /etc/xinetd.d/tftp

service tftp

重啟tftp:# /etc/init.d/xinetd restart

四、配置nfs

建立nfs共享資料夾:#mkdir /ok6410

更改資料夾ok6410的許可權:#chmod 777 /ok6410

更改檔案:# vim /etc/exports,新增

/ok6410 192.168.1.*(rw, sync, no_root_squash)

重啟nfs:# /etc/init.d/nfs restart

嵌入式TFTP環境搭建

linux ubuntu sudo apt get install tftpd hpa tftp hpa 2.修改配置檔案 linux ubuntu sudo vi etc default tftpd hpa 配置檔案路徑 etc default tftpd hpa 使用者名稱 tftp usern...

嵌入式Linux NFS開發環境搭建

參考該文章 還有該文章 可以完成本地的測試,實現nfs伺服器的安裝與配置,將 home yang 掛載到 mnt nfs 檔案目錄下。但是i.mx53開發板 ifconfig 只有 lo 沒有 eth0 輸入 ifconfig a 可以看到 eth0,但是mac位址為全0。ifconfig eth0...

Linux 嵌入式開發環境搭建

主機 ubuntu14.04 開發板 tq210v3 開始載命令列模式下直接安裝了乙個arm linux gcc sudo apt get install gcc arm linux gnueabi但是用這個編譯了乙個hello world的程式後無法在開發板上執行,提示 hello not fou...