(1).Embedded Linux 2.6.29 OS.
(2).PC OS:Ubuntu 10.04.
(2).PC OS:Ubuntu 10.04.
(3).實驗平台:ADP-XC5FF676 v1.1(Andes core N12).
(4). BSP-v2_1_0-release.
2.目的:
(1). 使用e2fsimage 製作 Linux root的file system image(ramdisk.img),BSPv2.1.0我們直接使用光碟內已製作好的file system image檔.
(2). 製作ramdisk目的主要是要將Linux kernel image燒錄在ADP-XC5 FF676 Intel 的flash上,當系統開機時,會在系統上的SRAM產生虛擬硬碟,執行Embedded Linux.
3. 實驗步驟:
(1-1). 先將BSPv2.1.0光碟內的資料複製至桌面.
(1-2). 使用Terminal輸入〝source bashrc.nds32le-linux-V0〞指定交叉編譯路徑,這的步驟請參照setup步驟.
(1-3). 輸入〝cd Desktop/BSPv2.1.0/XC5〞至此目錄下.
(1-4). 輸入〝tar -xvf BSP-v2_1_0-release-XC5.tgz〞解壓縮.
(1-5). 輸入〝cd ADP-XC5/N1213-S/Linux/Source/〞至此目錄下.
(1-6). 將下列三個壓縮檔解壓縮,
輸入〝tar -xvf busybox.tgz〞,
輸入〝tar -xvf linux-2.6.tgz〞,
輸入〝tar -xvf rootfs.tgz〞.
(1-7). 輸入〝cd busybox〞至此目錄下.
(1-8). 輸入〝./build_busybox.sh -EL〞,編譯busybox.
(2-1). 輸入〝cd ~/Desktop/BSPv2.1.0/XC5/ADP-XC5/N1213-S/Linux/Image〞至此目錄下.
(2-2). 〝cp xc5_glibc_ramdisk.img /home/acer/Desktop/BSPv2.1.0/XC5/ADP-XC5/N1213-S/Linux/Source/linux-2.6〞直接使用光碟內已製作好的file system image檔.
(3-1). 輸入〝cd ~/Desktop/BSPv2.1.0/XC5/ADP-XC5/N1213-S/Linux/Source/linux-2.6〞至此目錄下.
(3-2). 輸入〝./build_linux.sh xc5 --ramdisk=xc5_glibc_ramdisk.img〞,開始編譯Linux,並將〝ramdisk.img〞檔與Linux2.6 Kernel 〝zImage〞包在一起.
(3-3). 輸入〝cd arch/nds32/boot/〞至此目錄下.
(3-4). 可以看見編譯成功的〝bootpImage〞燒錄檔.
(4-1). 測試bootpImage燒錄檔,將bootpImage的燒錄檔存至SD卡內,裝上ADP-XC5FF676實驗板上,並將URAT接至PC,開啟電源,按"SW2 -> SW4".
(4-2). 使用"GtkTerm",Baud rate設定38400,輸入"97 -> C: -> bootpImage -> 0x2000000 "再輸入"55 -> go 0x2000000",之後開始執行Embedded Linux.
注意: 欲使用SD卡燒錄bootpImage至Flash完整流程圖: http://sites.google.com/site/andescore32/Home/hardware/adp-xc5ff676
(5-1). 以上所述是標準ADP-XC5平台編譯Embedded Linux,如有新增裝置請依照下列所述編譯,使用Terminal輸入〝source bashrc.nds32le-linux-V0〞指定交叉編譯路徑,這的步驟請參照setup步驟.
(5-2). 輸入〝cd ~/Desktop/BSPv2.1.0/XC5/ADP-XC5/N1213-S/Linux/Source/linux-2.6/〞至此目錄下.
(5-3). 輸入環境變數參數〝export ARCH=nds32〞與〝export CROSS_COMPILE=nds32le-linux-〞.
(5-4). 輸入〝ARCH="nds32" make menuconfig〞, 進入Linux Kernel Configuration.
(5-5)可以自行設定一些參數,按〝空白鍵〞設定,選擇〝Exit〞->〝Yes〞結束設定.
(5-6). 輸入〝ARCH="nds32" make bootpImage INITRD=xc5_glibc_ramdisk.img〞重新編譯.
(5-7). 輸入〝cd arch/nds32/boot〞至此目錄下.
(5-8). 可以看到新產生的bootpImage的燒錄檔,其於請依照步驟(4-1)~(4-2)所述測試.
(4). BSP-v2_1_0-release.
2.目的:
(1). 使用e2fsimage 製作 Linux root的file system image(ramdisk.img),BSPv2.1.0我們直接使用光碟內已製作好的file system image檔.
(2). 製作ramdisk目的主要是要將Linux kernel image燒錄在ADP-XC5 FF676 Intel 的flash上,當系統開機時,會在系統上的SRAM產生虛擬硬碟,執行Embedded Linux.
3. 實驗步驟:
(1-1). 先將BSPv2.1.0光碟內的資料複製至桌面.





輸入〝tar -xvf busybox.tgz〞,












注意: 欲使用SD卡燒錄bootpImage至Flash完整流程圖: http://sites.google.com/site/andescore32/Home/hardware/adp-xc5ff676
(5-1). 以上所述是標準ADP-XC5平台編譯Embedded Linux,如有新增裝置請依照下列所述編譯,使用Terminal輸入〝source bashrc.nds32le-linux-V0〞指定交叉編譯路徑,這的步驟請參照setup步驟.








BSP v2.1.0有bugs
回覆刪除1. embedded Linux2.6.29執行qt4.6會無法執行.
2. BSP v2.1.0產生file system image檔的檔案有缺少,哪裡可以補齊檔案.
劉先生你好,敝姓邱,
回覆刪除我也有購買Andes的開發版,最近也在做一些移植的相關事項,看到了劉先生的文章受用無窮,但我在進行移植開發時有碰到一些問題想要請教,但因為劉先生沒有的部落格沒有留下相關的連絡方式,所以不知道方不方便給E-mail,想直接寄送問題畫面請教相關問題。 不好意思麻煩了。
Dear 翊晉:
回覆刪除您可以電話詢問:
1. 學校單位可以洽詢,Andestech學校窗口江先生.
2. IC設計公司會由Andestech的課服部門協助你.
Thank.