2013年2月11日 星期一

在 SPI flash UBOOT 上使用 serial kermit modem 傳輸linux kernel and boot up

1. 安裝 ckermit
2. 設定 .kermrc
set line /dev/ttyUSB0
set speed 57600
set carrier-watch off
set handshake none
set flow-control none
robust
3. 啓動kermit, 執行 connect
4. 開啓 uboot 的命令模式, 執行 loadb 0x81000000, uboot 會進入 kermit 模式, 等待console 端傳檔案, 目的地是 memory address 0x81000000
5. 用 Ctrl + \ , c , 回到 kermit command mode, 輸入 send /tftpboot/kernel_image.bix
開始傳輸 kernel image, 可能會要10~30分鐘
6. 傳完之後, 輸入bootm 0x81000000, 就可以用該 linux kernel 開機

補充,使用 tftp 來 boot
有時候,因爲 bootloader size checking 的緣故,我們會發生無法燒錄的狀況
那樣,我們可以
1. tftp 81000000 image_name
這樣可以把 image_name tftp 到 81000000 這個地方
2. bootm 81000000
用新的 image boot
3. 執行更新韌體的動作

沒有留言: