2009年10月2日 星期五

bootloader指令

[[使用 hdd 開機]]
boot> config cmd <=== 清空cmd
New command line : (0)
Erasing done
Saving done
Verifying done!

boot> config bootflag hdd
Erasing done
Saving done
Verifying done!

boot>



[[使用 sflash 開機]]
* 下 kernel command:
1. 從HD優先找:
boot> config cmd root=/dev/hdb2:/dev/sda1:/dev/sdb1:/dev/sdc1 rootflags=ro rootfstype=cramfs panic=1
2. 從sflash優先找:
boot> config cmd root=/dev/sda1:/dev/sdb1:/dev/sdc1:/dev/hdb2 rootflags=ro rootfstype=cramfs panic=1
New command line : (84) root=/dev/sda1:/dev/sdb1:/dev/sdc1:/dev/hdb1 rootflags=ro rootfstype=cramfs panic=1
Erasing done
Saving done
Verifying done!

boot> config bootflag sflash
Erasing done
Saving done
Verifying done!

boot>



[[更新kernel]] 使用com port連接PC和target (/dev/ttyS0)
* target端:
boot> download serial binary ((等待接收))
((再來在PC端執行:
uuencode mb590_kernel_multiboot.bin.gz x >/dev/ttyS0
))
Send uuencoded stream to serial port
................................................................
................................................................
................................................................
................................................................
................................................................
............................................................
Received 1092405(0x10ab35) bytes @ 0x91680000
Checksum: 0xe6d44305

boot> sflash kernel
Serial Flash model SST-25VF016B (2048KB)
Erasing done
Writing done
Verifying... done!
Erasing done
Saving done
Verifying done!




[[更新bootloader]] 使用com port連接PC和target
* target端:
boot> download serial boot ((等待接收))
((再來在PC端執行:
uuencode loader-sflash.bin x > /dev/ttyS0
))
Send uuencoded stream to serial port
.......................
Received 65600(0x10040) bytes @ 0x93800000
Checksum: 0xa97144e2

boot> sflash boot ((寫到boot?!))
Serial Flash model SST-25VF016B (2048KB)
Erasing... done
Writing... done
Verifying... done!

boot> test reboot ((重開機))
TANGO15-2 boot loader for 900tai2 /unnamed board
Revision 8581:9226 built by root
Built at Sep 10 2009 15:49:55

...
boot> config show_param ((查看目前參數))
DRAM0 Params (0xf63411b9/0x00094544)
GPIO IRQMAP=0x0b090806
uart0: mode=0x6e, dir=0x2e, data=0x6f
uart1: mode=0x6e, dir=0x4e, data=0x79

沒有留言: