1. 程式人生 > 其它 >全志F1C100S/F1C200S學習筆記(6)——根檔案系統編譯

全志F1C100S/F1C200S學習筆記(6)——根檔案系統編譯

技術標籤:# 全志Linux

一、下載原始碼

# 首先安裝一些依賴,比如linux標頭檔案:
sudo apt-get install linux-headers-$(uname -r)

# 下載解壓
wget https://buildroot.org/downloads/buildroot-2017.08.tar.gz
tar xvf buildroot-2017.08.tar.gz

二、圖形配置

cd buildroot-2017.08/
# 下載預設配置檔案 buildroot.config
wget https://fdvad021asfd8q.oss-cn-hangzhou.aliyuncs.com/migrate/buildroot.config
# 複製一個並重命名
cp buildroot.config .config # 圖形介面配置 make menuconfig

配置介面:

Target options  --->
	Target Architecture Variant (arm926t)  --->   # arm926ejs架構
[ ] Enable VFP extension support	# Nano 沒有 VFP單元,勾選會導致某些應用無法執行
    Target ABI (EABI)  --->
    Floating point strategy (Soft float)  --->    // 軟浮點

System configuration  --->
(Lichee Pi) System hostname // hostname (licheepi) Root password // 預設賬戶為root 密碼為licheepi [*] remount root filesystem read-write during boot // 啟動時重新掛在檔案系統使其可讀寫

三、軟體包

  • 編譯時會下載很多軟體包,速度很慢,可以先下載下來:【dl包】百度網盤下載
  • 解壓出dl資料夾放在buildroot-2017.08根目錄下
  • 在編譯的時候發現在arm-2014.05-29-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
    ,所以這個也要放入dl資料夾裡。

四、編譯

# buildroot不能進行多執行緒編譯
make

編譯完成的映象包在 buildroot-2017.08 ‣ output ‣images ‣ rootfs.tar