国产毛片a精品毛-国产毛片黄片-国产毛片久久国产-国产毛片久久精品-青娱乐极品在线-青娱乐精品

Embedsky007的個(gè)人空間 http://m.qingdxww.cn/space-uid-114045.html [收藏] [復(fù)制] [RSS]

博客

S5PV210 TFTP 更新固件方法

熱度 4已有 2304 次閱讀2016-7-25 15:02 |個(gè)人分類:技術(shù)文章| S5PV210, 嵌入式, 開發(fā)板, TFTP, 更新固件

  以下所有操作在 Linux 與 Windows 上是完全一樣的。 不區(qū)分操作系統(tǒng)。 而且燒寫 Linux 與 Android系統(tǒng)也是完全一樣的,甚至文件系統(tǒng)的名子也是一樣的。不同的只是文件系統(tǒng)的內(nèi)容,即如果您將 Andorid的文件系統(tǒng)的鏡像復(fù)制到指定目錄,更名為 root.bin 則是燒寫 Android。如果您將 Linux 的文件系統(tǒng)的鏡像復(fù)制到指定目錄,更名為 root.bin則是燒寫 Linux。 Windows下 tftp服務(wù)端工具在光盤的 “TQ210_CDWindows平臺(tái)工具”下 TFTP_Server.rar。

  tftp 燒寫鏡像名字規(guī)定與對(duì)應(yīng)命令

  由于 uboot 的一鍵式 tftp 下載命令的限制(即只能使用固定的文件名) ,所以,為了使用一鍵式菜單,

  作出如下規(guī)定:

  uboot 鏡像必須命名為:u-boot.bin—命令“1”

  Linux 內(nèi)核鏡像必須命名為:zImage.bin—命令“3”

  文件系統(tǒng)鏡像必須命名為:root.ubi—命令“5”

  logo 鏡像必須命名為:logo.bin—命令“4”

  Ø 將改好名字的鏡像放到剛剛設(shè)置好的“OutPut(“K:imagestftp”) ”目錄下:

  說明:一定要放到設(shè)置 tftp 代理軟件“Output”頁(yè)所指定的輸出文件的路徑下,因?yàn)樵撥浖l(fā)送文件時(shí)會(huì)。

  

  u-boot 的 tftp 下載常見設(shè)置

  ##### EmbedSky BIOS for SKY210/TQ210 #####

  This Board: SDRAM is 1024MB; LCD display size is: 800X480

  Hit any key to stop autoboot: 0

  ##### Boot for TQ210 Main Menu #####

  ##### EmbedSky USB download mode #####

  [1] Download u-boot or STEPLDR.nb1 or other bootloader to Nand Flash

  [2] Download Eboot (eboot.nb0) to Nand Flash

  [3] Download Linux Kernel (zImage.bin) to Nand Flash

  [4] Download LOGO Picture (logo.bin) to Nand Flash

  [5] Download UBIFS image (root.ubi) to Nand Flash

  [6] Download YAFFS image (root.bin) to Nand Flash

  [7] Download Program to SDRAM and Run it

  [8] Boot the system

  [9] Format the Nand Flash

  [0] Set the boot parameters

  [a] Download User Program

  [n] Enter TFTP download mode menu

  [r] Reboot u-boot

  [t] Test Linux Image (zImage)

  Enter your selection: n ;進(jìn)入 TFTP 下載模式(網(wǎng)絡(luò)下載)

  ##### Boot for TQ210 Main Menu #####

  ##### EmbedSky TFTP download mode #####

  [1] Download u-boot.bin to Nand Flash

  [2] Download Eboot (eboot.nb0) to Nand Flash

  [3] Download Linux Kernel (zImage.bin) to Nand Flash

  [4] Download LOGO Picture (logo.bin) to Nand Flash

  [5] Download UBIFS image (root.ubi) to Nand Flash

  [6] Download YAFFS image (root.bin) to Nand Flash

  [7] Download Program to SDRAM and Run it

  [8] Boot the system

  [9] Format the Nand Flash

  [0] Set the boot parameters

  [a] Download User Program

  [n] Set TFTP parameters(PC IP,TQ210 IP,Mask IP...)

  [p] Test network (TQ210 Ping PC's IP)

  [r] Reboot u-boot

  [s] Download STEPLDR.nb1 to Nand Flash

  [t] Test Linux Image (zImage)

  [q] Return main Menu

  Enter your selection:

  在 TFTP 下載界面使用命令 n 設(shè)置 TFTP 下載時(shí)的 IP 等信息(請(qǐng)使用您所在的實(shí)際網(wǎng)絡(luò)的 IP 地址等

  信息) 。

  說明 1:請(qǐng)連接網(wǎng)線從 TQ210 到您的 PC 或局域網(wǎng)中,同時(shí)拔掉 USB 下載電纜。

  說明 2:下面使用的 IP 地址請(qǐng)根據(jù)您實(shí)際使用的網(wǎng)絡(luò)的 IP 網(wǎng)段進(jìn)行設(shè)置。

  Enter your selection: n

  Enter the TFTP Server(PC) IP address:(xxx.xxx.xxx.xxx)

  192.168.1.8 ;輸入 PC 端的 IP 地址(可以是 Windows 的,也可以是 Linux 的) ,必須保證一點(diǎn),該 IP

  地址對(duì)應(yīng)的 PC 的環(huán)境是您用于 TFTP 燒寫的 TFTP 服務(wù)器所在的 PC 環(huán)境,有您想要燒寫的鏡像文件。

  Enter the T210 IP address:(xxx.xxx.xxx.xxx)

  192.168.1.6 ;輸入 TQ210 的 IP 地址

  Enter the Mask IP address:(xxx.xxx.xxx.xxx)

  255.255.255.0 ;輸入子網(wǎng)掩碼

  Save TFTP IP parameters?(y/n)

  y ;保存剛剛設(shè)置的參數(shù),n 就是不保存, 不保存就沒有一下信息, 只顯示提示信息 “Not Save it!!!”

  Saving Environment to NAND...

  Erasing Nand...

  Erasing at 0xe0000 -- 100% complete.

  Writing to Nand... done

  完成網(wǎng)絡(luò)設(shè)置后,使用命令 p 可以測(cè)試 TQ210 和 PC 間的網(wǎng)絡(luò)是否接通:

  Enter your selection: p

  TQ210 ping PC IP:ping 192.168.1.8

  dm9000 i/o: 0x88000000, id: 0x90000a46

  DM9000: running in 16 bit mode

  MAC: 00:40:5c:26:0a:5b

  operating at 100M full duplex mode

  host 192.168.1.8 is alive 成功 ping 通

  或者

  Enter your selection: p

  TQ210 ping PC IP:ping 192.168.1.8

  dm9000 i/o: 0x88000000, id: 0x90000a46

  DM9000: running in 16 bit mode

  MAC: 00:40:5c:26:0a:5b

  could not establish link

  ping failed; host 192.168.1.8 is not alive ;沒有 ping 通宿主機(jī)

  如果遇到 ping 不通或者其它的問題,可以參考本節(jié)最后《tftp 燒寫常見錯(cuò)誤分析》小節(jié)。

  燒寫 u-boot 鏡像到 Nand Flash

  ##### Boot for TQ210 Main Menu #####

  ##### EmbedSky TFTP download mode #####

  [1] Download u-boot.bin to Nand Flash

  [2] Download Eboot (eboot.nb0) to Nand Flash

  [3] Download Linux Kernel (zImage.bin) to Nand Flash

  [4] Download LOGO Picture (logo.bin) to Nand Flash

  [5] Download UBIFS image (root.ubi) to Nand Flash

  [6] Download YAFFS image (root.bin) to Nand Flash

  [7] Download Program to SDRAM and Run it

  [8] Boot the system

  [9] Format the Nand Flash

  [0] Set the boot parameters

  [a] Download User Program

  [n] Set TFTP parameters(PC IP,TQ210 IP,Mask IP...)

  [p] Test network (TQ210 Ping PC's IP)

  [r] Reboot u-boot

  [s] Download STEPLDR.nb1 to Nand Flash

  [t] Test Linux Image (zImage)

  [q] Return main Menu

  Enter your selection: 1

  dm9000 i/o: 0x88000000, id: 0x90000a46

  DM9000: running in 16 bit mode

  MAC: 00:40:5c:26:0a:5b

  operating at 100M full duplex mode

  TFTP from server 192.168.1.240; our IP address is 192.168.1.244

  Filename 'u-boot.bin'.

  Load address: 0xc0008000

  Loading: ###########################

  done

  Bytes transferred = 393216 (0x60000)

  NAND erase: device 0 offset 0x0, size 0x100000

  Erasing at 0xe0000 -- 100% complete.

  OK

  NAND write: device 0 offset 0x0, size 0x60000

  Main area read (3 blocks):

  Checksum is calculated.

  Main area write (3 blocks):

  393216 bytes written: OK

  上面藍(lán)色色部分的“T ################” :

  2 T 表示超時(shí)(此時(shí)正在完成 TFTP 握手協(xié)議,如果是發(fā)送中出現(xiàn) T,此時(shí)可能是因?yàn)槟褂玫木W(wǎng)絡(luò)不穩(wěn)定引起的,特別是 PC 端出現(xiàn)掉線、斷網(wǎng)的情況) ;

  2 ###表示正在發(fā)送數(shù)據(jù);

  青色部分表示 uboot 正在擦除 Nand Flash 的要燒寫的分區(qū);

  粉紅色部分表示 uboot 寫入數(shù)據(jù)到對(duì)應(yīng)的分區(qū)。

  下面列出 TFTP 服務(wù)器的信息截圖: (將 IP 改為 8 進(jìn)行燒寫)

  說明:下圖中的鏡像容量?jī)H供參考,請(qǐng)以光盤或您編譯出來的實(shí)際鏡像為準(zhǔn)。

  

  燒寫 Linux/Android 內(nèi)核鏡像到 Nand Flash

  ### Boot for TQ210 Main Menu #####

  ##### EmbedSky TFTP download mode #####

  [1] Download u-boot.bin to Nand Flash

  [2] Download Eboot (eboot.nb0) to Nand Flash

  [3] Download Linux Kernel (zImage.bin) to Nand Flash

  [4] Download LOGO Picture (logo.bin) to Nand Flash

  [5] Download UBIFS image (root.ubi) to Nand Flash

  [6] Download YAFFS image (root.bin) to Nand Flash

  [7] Download Program to SDRAM and Run it

  [8] Boot the system

  [9] Format the Nand Flash

  [0] Set the boot parameters

  [a] Download User Program

  [n] Set TFTP parameters(PC IP,TQ210 IP,Mask IP...)

  [p] Test network (TQ210 Ping PC's IP)

  [r] Reboot u-boot

  [s] Download STEPLDR.nb1 to Nand Flash

  [t] Test Linux Image (zImage)

  [q] Return main Menu

  Enter your selection: 3

  dm9000 i/o: 0x88000000, id: 0x90000a46

  DM9000: running in 16 bit mode

  MAC: 00:40:5c:26:0a:5b

  operating at 100M full duplex mode

  TFTP from server 192.168.1.240; our IP address is 192.168.1.244

  Filename 'zImage.bin'.

  Load address: 0xc0008000

  Loading: #################################################################

  #################################################################

  #################################################################

  #################################################################

  #########

  done

  Bytes transferred = 3940008 (0x3c1ea8)

  NAND erase: device 0 offset 0x500000, size 0x500000

  Erasing at 0x9e0000 -- 100% complete.

  OK

  NAND write: device 0 offset 0x500000, size 0x3c1ea8

  Writing data at 0x8c1800 -- 100% complete.

  3940008 bytes written: OK

  TFTP 服務(wù)器的信息如下:

  說明:下圖中的鏡像容量?jī)H供參考,請(qǐng)以光盤或您編譯出來的實(shí)際鏡像為準(zhǔn)。

  

  燒寫 yaffs 文件系統(tǒng)到 Nand Flash

  這里燒寫燒寫 yaffs 與 ubi 方法是完全一樣的,只是燒寫 yaffs 使用的是命令 6,燒寫 ubi 使用的是命令

  5,下面將以 yaffs 來做為示例。

  ##### Boot for TQ210 Main Menu #####

  ##### EmbedSky TFTP download mode #####

  [1] Download u-boot.bin to Nand Flash

  [2] Download Eboot (eboot.nb0) to Nand Flash

  [3] Download Linux Kernel (zImage.bin) to Nand Flash

  [4] Download LOGO Picture (logo.bin) to Nand Flash

  [5] Download UBIFS image (root.ubi) to Nand Flash

  [6] Download YAFFS image (root.bin) to Nand Flash

  [7] Download Program to SDRAM and Run it

  [8] Boot the system

  [9] Format the Nand Flash

  [0] Set the boot parameters

  [a] Download User Program

  [n] Set TFTP parameters(PC IP,TQ210 IP,Mask IP...)

  [p] Test network (TQ210 Ping PC's IP)

  [r] Reboot u-boot

  [s] Download STEPLDR.nb1 to Nand Flash

  [t] Test Linux Image (zImage)

  [q] Return main Menu

  Enter your selection: 6

  dm9000 i/o: 0x88000000, id: 0x90000a46

  DM9000: running in 16 bit mode

  MAC: 00:40:5c:26:0a:5b

  operating at 100M full duplex mode

  TFTP from server 192.168.1.240; our IP address is 192.168.1.244

  Filename 'root.bin'.

  Load address: 0x40008000

  Loading: #################################################################

  #################################################################

  #################################################################

  #################################################################

  #################################################################

  #########(這里省略了絕大部分的“###”)

  done

  Bytes transferred = 146313024 (0x8b88f40)

  NAND erase: device 0 offset 0xa00000, size 0xf600000

  Skipping bad block at 0x03800000 (這里表示有壞塊,系統(tǒng)會(huì)自動(dòng)繞過這些壞塊,不影響正常使用)

  Skipping bad block at 0x04100000

  Skipping bad block at 0x06460000

  Skipping bad block at 0x07b60000

  Skipping bad block at 0x0c700000

  Skipping bad block at 0x0d320000

  Skipping bad block at 0x0e080000

  Erasing at 0xffe0000 -- 100% complete

  OK

  NAND write: device 0 offset 0xa00000, size 0x8b88f40

  (同樣以下表示有壞塊,系統(tǒng)會(huì)自動(dòng)繞過這些壞塊)

  Bad block at 0x3800000 in erase block from 0x3800000 will be skipped

  Bad block at 0x4100000 in erase block from 0x4100000 will be skipped

  Bad block at 0x6460000 in erase block from 0x6460000 will be skipped

  Bad block at 0x7b60000 in erase block from 0x7b60000 will be skipped

  Writing data at 0x91ce000 -- 100% complete.

  146313024 bytes written: OK

  TFTP 服務(wù)器的信息如下:

  說明:下圖中的鏡像容量?jī)H供參考,請(qǐng)以光盤或您編譯出來的實(shí)際鏡像為準(zhǔn)。

  

  燒寫 logo 鏡像到 Nand Flash 中

  ##### Boot for TQ210 Main Menu #####

  ##### EmbedSky TFTP download mode #####

  [1] Download u-boot.bin to Nand Flash

  [2] Download Eboot (eboot.nb0) to Nand Flash

  [3] Download Linux Kernel (zImage.bin) to Nand Flash

  [4] Download LOGO Picture (logo.bin) to Nand Flash

  [5] Download UBIFS image (root.ubi) to Nand Flash

  [6] Download YAFFS image (root.bin) to Nand Flash

  [7] Download Program to SDRAM and Run it

  [8] Boot the system

  [9] Format the Nand Flash

  [0] Set the boot parameters

  [a] Download User Program

  [n] Set TFTP parameters(PC IP,TQ210 IP,Mask IP...)

  [p] Test network (TQ210 Ping PC's IP)

  [r] Reboot u-boot

  [s] Download STEPLDR.nb1 to Nand Flash

  [t] Test Linux Image (zImage)

  [q] Return main Menu

  Enter your selection: 4

  dm9000 i/o: 0x88000000, id: 0x90000a46

  DM9000: running in 16 bit mode

  MAC: 00:40:5c:26:0a:5b

  operating at 100M full duplex mode

  TFTP from server 192.168.1.240; our IP address is 192.168.1.244

  Filename 'logo.bin'.

  Load address: 0xc0008000

  Loading: ############################

  done

  Bytes transferred = 409600 (0x64000)

  NAND erase: device 0 offset 0x200000, size 0x300000

  Erasing at 0x4e0000 -- 100% complete.

  OK

  NAND write: device 0 offset 0x200000, size 0x64000

  Writing data at 0x263800 -- 100% complete.

  409600 bytes written: OK

  TFTP 服務(wù)器的信息如下:

  說明:下圖中的鏡像容量?jī)H供參考,請(qǐng)以光盤或您編譯出來的實(shí)際鏡像為準(zhǔn)。

  

  到這里基本鏡像 tftp 燒寫介紹完了。

  tftp 燒寫常見錯(cuò)誤分析

  A、File not found 錯(cuò)誤

  Enter your selection: 1

  MAC: 10:23:45:67:89:ab

  Using DM9000A device

  TFTP from server 192.168.1.30; our IP address is 192.168.1.98

  Filename 'u-boot.bin'.

  Load address: 0xc0000000

  Loading: T

  TFTP error: 'File not found' (1)

  Starting again

  這個(gè)錯(cuò)誤是由于 tftp 服務(wù)軟件 OutPut 指定的目錄下沒有“u-boot.bin”這個(gè)文件。

  解決方法,將您需要燒寫的 uboot 鏡像改名為“u-boot.bin”放到您設(shè)置 tftp 軟件的 OutPut 項(xiàng)指定的目錄下。燒寫其他鏡像時(shí)碰到這個(gè)錯(cuò)誤,也是到 tftp 軟件的 OutPut 指定的目錄下查看是否有該名稱命名的鏡像文件。在這里就不重復(fù)介紹了。

  B、一直出現(xiàn) T T T T T T T 信息

  Enter your selection: 1

  MAC: 10:23:45:67:89:ab

  Using DM9000A device

  TFTP from server 192.168.1.8; our IP address is 192.168.1.6

  Filename 'u-boot.bin'.

  Load address: 0xc0000000

  Loading: T T T T T T T

  這種現(xiàn)象一般有兩個(gè)原因:

  1、網(wǎng)絡(luò)不通;

  2、指定 IP 的宿主機(jī)的 tftp 服務(wù)器沒啟動(dòng);

  3、網(wǎng)絡(luò)不穩(wěn)定(特別是使用無(wú)線網(wǎng)絡(luò)的情況,很容易出現(xiàn)網(wǎng)絡(luò)不穩(wěn)定的) 。解決方法:用 P 命令檢查網(wǎng)絡(luò)是否聯(lián)通,檢查宿主機(jī)的 tftp 是否開通,確認(rèn)所使用的網(wǎng)絡(luò)是否穩(wěn)定。

  供貨情況:

  天嵌科技提供專業(yè)嵌入式板卡和行業(yè)解決方案。如有需要,可以聯(lián)系天嵌科技的銷售人員。

  銷售電話:020-38219416 38373101

  技術(shù)支持:020-38219416轉(zhuǎn)807 820

  網(wǎng)址:http://www.embedsky.com

  官方淘寶:https://embedsky.taobao.com/


路過

雞蛋
2

鮮花

握手

雷人

剛表態(tài)過的朋友 (2 人)

發(fā)表評(píng)論 評(píng)論 (4 個(gè)評(píng)論)

回復(fù) adeechan36 2016-7-26 17:39
贊,那只需要網(wǎng)線和串口線就可以,挺方便,速度還快呢!
回復(fù) sally_cheng 2016-7-27 09:20
樓主送你一朵鮮花,請(qǐng)收下
回復(fù) lzh8 2016-7-28 18:37
超贊
回復(fù) 張曉然 2016-8-1 09:47
感謝樓主辛苦分享哦~

facelist

您需要登錄后才可以評(píng)論 登錄 | 立即注冊(cè)

關(guān)于我們  -  服務(wù)條款  -  使用指南  -  站點(diǎn)地圖  -  友情鏈接  -  聯(lián)系我們
電子工程網(wǎng) © 版權(quán)所有   京ICP備16069177號(hào) | 京公網(wǎng)安備11010502021702
返回頂部
主站蜘蛛池模板: 久草综合视频在线 | 国产欧美日韩在线人成aaaa | www.4虎.com| 羞羞网站在线免费观看 | 国产成人亚洲精品91专区手机 | 九色在线视频观看 | 中文字幕第15页 | 欧美日韩高清一区 | 99在线观看视频免费 | 青春草国产成人精品久久 | 手机看片日韩国产 | 中文字幕亚洲国产 | 免费欧洲毛片a级视频老妇女 | 日韩欧美在线观看视频一区二区 | 成年黄网站色视频免费观看 | 国内精品自在自线视频香蕉 | 日本免费人成在线网站 | 欧美一进一出抽搐大尺度视频 | 国产五月婷婷 | 黄色在线免费网站 | 午夜噜噜噜私人影院在线播放 | 看黄a大片 免费 | 亚洲视频在线免费播放 | 玖玖在线国产精品 | 大焦伊人| 亚洲国产中文字幕 | 97在线免费视频观看 | 91精品免费高清在线 | 欧美黑大炮18p | 青青青国产依人精品视频 | 国产亚洲欧美在线 | 亚洲青青青网伊人精品 | 欧美黄色一级片免费看 | 李宗全集集在线播放 | 成人性生交大片免费看中文 | 国产最新自拍视频 | 男人香蕉好大好爽视频 | 国产欧美一区二区三区在线 | 色综合婷婷 | 八戒八戒影视免费观看动漫 | 四虎影视久久久 |