在Linux下使用DNW給開發板下載

來源:互聯網
上載者:User

Created 星期四 17 十一月 2011

介紹:

DNW是通過USB燒寫軟體到ARM板的工具, 由三星公司開發, 可是這個軟體只有Window版本. 在ARM9之家論壇上發現有人重寫了個簡單的命令列版本, 原始碼可以從Google Code上下載:dnw2_linux_latest.tgz (http://code.google.com/p/c8051f320dev/downloads/detail?name=dnw2_linux_latest.tgz&can=2&q=),
但是這版會有一些問題,所幸的是有人又進行了一些修正
dnw2_linux_fixed.tar.gz (http://princess-alist.googlecode.com/files/dnw2_linux_fixed_20090901.tar.gz),
主要修正了一些編譯警告和添加一個指定地址的功能. 編譯的時候要依賴libusb-dev, Ubuntu使用者可以直接安裝:

sudo apt-get install libusb-dev

使用:

下載
dnw2_linux_fixed.tar.gz ,

解壓: tar xvf dnw2_linux_fixed.tar.gz
進入到解壓後的目錄 直接: make
就可以產生可執行檔 dnw2檔案了,這個檔案我們以後就可以用來下載程式到開發板了。

^_^crazier@Lab:~/Desktop/dnw2$ dnw2 -hUsage: dnw2 [options] file [address]Options:-h, --help - This help text.address - hexadecimal notation, e.g. 0x30800000, default is 0x30800000

為了以後執行方便不用把產生的dnw2檔案複製到/usr/local/bin:

sudo cp dnw2 /usr/local/bin/

這個軟體就可以配合minicom使用了。
以FL2440為例,比如:
用minicom開啟開發板的bootloader,選擇要下載的是核心、還是檔案系統;此時,再開啟另一個終端,
執行sudo dnw2 (

sudo dnw2 touch.yaffs

)下載檔案給開發板的即可。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.