Embedsky007的個(gè)人空間 http://selenalain.com/space-uid-114045.html [收藏] [復制] [RSS]

博客

S5PV210 TFTP 更新固件方法

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

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

  tftp 燒寫(xiě)鏡像名字規定與對應命令

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

  作出如下規定:

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

  Linux 內核鏡像必須命名為:zImage.bin—命令“3”

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

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

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

  說(shuō)明:一定要放到設置 tftp 代理軟件“Output”頁(yè)所指定的輸出文件的路徑下,因為該軟件發(fā)送文件時(shí)會(huì )。

  

  u-boot 的 tftp 下載常見(jiàn)設置

  ##### 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 設置 TFTP 下載時(shí)的 IP 等信息(請使用您所在的實(shí)際網(wǎng)絡(luò )的 IP 地址等

  信息) 。

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

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

  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

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

  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 ;保存剛剛設置的參數,n 就是不保存, 不保存就沒(méi)有一下信息, 只顯示提示信息 “Not Save it!!!”

  Saving Environment to NAND...

  Erasing Nand...

  Erasing at 0xe0000 -- 100% complete.

  Writing to Nand... done

  完成網(wǎng)絡(luò )設置后,使用命令 p 可以測試 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 ;沒(méi)有 ping 通宿主機

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

  燒寫(xiě) 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

  上面藍色色部分的“T ################” :

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

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

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

  粉紅色部分表示 uboot 寫(xiě)入數據到對應的分區。

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

  說(shuō)明:下圖中的鏡像容量?jì)H供參考,請以光盤(pán)或您編譯出來(lái)的實(shí)際鏡像為準。

  

  燒寫(xiě) Linux/Android 內核鏡像到 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ù)器的信息如下:

  說(shuō)明:下圖中的鏡像容量?jì)H供參考,請以光盤(pán)或您編譯出來(lái)的實(shí)際鏡像為準。

  

  燒寫(xiě) yaffs 文件系統到 Nand Flash

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

  5,下面將以 yaffs 來(lái)做為示例。

  ##### 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 (這里表示有壞塊,系統會(huì )自動(dòng)繞過(guò)這些壞塊,不影響正常使用)

  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

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

  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ù)器的信息如下:

  說(shuō)明:下圖中的鏡像容量?jì)H供參考,請以光盤(pán)或您編譯出來(lái)的實(shí)際鏡像為準。

  

  燒寫(xiě) 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ù)器的信息如下:

  說(shuō)明:下圖中的鏡像容量?jì)H供參考,請以光盤(pán)或您編譯出來(lái)的實(shí)際鏡像為準。

  

  到這里基本鏡像 tftp 燒寫(xiě)介紹完了。

  tftp 燒寫(xiě)常見(jiàn)錯誤分析

  A、File not found 錯誤

  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è)錯誤是由于 tftp 服務(wù)軟件 OutPut 指定的目錄下沒(méi)有“u-boot.bin”這個(gè)文件。

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

  B、一直出現 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

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

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

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

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

  供貨情況:

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

  銷(xiāo)售電話(huà):020-38219416 38373101

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

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

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

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

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

facelist

您需要登錄后才可以評論 登錄 | 立即注冊

關(guān)于我們  -  服務(wù)條款  -  使用指南  -  站點(diǎn)地圖  -  友情鏈接  -  聯(lián)系我們
電子工程網(wǎng) © 版權所有   京ICP備16069177號 | 京公網(wǎng)安備11010502021702
返回頂部
午夜高清国产拍精品福利|亚洲色精品88色婷婷七月丁香|91久久精品无码一区|99久久国语露脸精品|动漫卡通亚洲综合专区48页