製作U-boot,不死uboot

來源:互聯網
上載者:User

製作U-boot,不死uboot

製作U-boot

---AT91SAM9260篇

 

 

0.製作交叉編譯鏈請看《ARM交叉編譯工具製作V2》

---------------------------------------------------轉載請註明:xiaobin_hlj80----


1.燒寫boot-uboot

 

    查看AT91SAM9260晶片文檔,關於記憶體部分

    P19– 6221s.pdf(http://www.atmel.com/zh/cn/devices/SAM9260.aspx?tab=documents)

 

 

                 起始地址:0x1000,0000

 


    (1)安裝J-Link軟體

                       到官網下載,以下為可選的版本


                 a. V4.52

                           https://www.segger.com/jlink-software.html?step=1&file=JLink_452

                 b. V4.94g

                           https://www.segger.com/jlink-software.html?step=1&file=JLink_494g

                 c. V4.94h

                          https://www.segger.com/jlink-software.html?step=1&file=JLink_494h

 

     (2)開始燒寫

                       詳細步驟請參見:S2.4


2.燒寫u-boot

 

 

  (1)設定環境變數

                   在使用者根目錄建立一個新檔案:.pam_environment

                   內容如下:

CROSS_COMPILE DEFAULT=/home/at91/x-tools/arm-softfp-linux-gnueabi/bin/arm-softfp-linux-gnueabi-

  (2)下載U-boot

                   下載頁:ftp://ftp.denx.de/pub/u-boot/

                   選擇最新版本下載。

 

                 關於:U-boot1.1.5

                              V1.1.5之後U-boot進行了重大改版!如果V1.1.5可用建議使用此版本。

 

  (3)解壓縮並執行

     #tar jxvf u-boot-2014.10.tar.bz2     #make clean     #make at91sam9260ek_dataflash_cs0_config     #make dep     #make

  (4)開始燒寫

                 拷貝u-boot-2014.10目錄下產生的檔案u-boot.bin到u-boot目錄。

 

            1)開啟工程預設配置

 

 

 

 

 


 

            2)串連目標板

                      Target-〉Connect;

                      關於串連出現的問題請參見FAQ部分。

 

 

 串連成功

 

          3)開啟資料檔案

                    File-〉Open datafile

 

 

 

                                                

輸入開始地址前後

 

 

開啟後

 

        4)寫資料

 

 

 

 

 

 

       5)關閉串連

 

 

 

 

 

FAQ

 

    1. 新版本升級

            使用新版本J-Link會升級Fireware。

            預設升級即可!

 



   2. RTCK did not respond

 


           解決辦法:反覆Detct

                Options-〉ProjectSettings

                在JTAG scan chain information點擊“Detct”

 

檢測前



檢測後



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.