linux核心與根檔案系統的燒寫
開發板起動後,在倒計時狀態,按任意鍵進入控制檯。
------------------------------------------------
---配置開發板和主機ip地址(兩者應在同一閘道器內,)
#set ipaddr 192.168.0.10
#set serverip 192.168.0.107
#nand erase clean
------------------------------------
---燒寫linux核心檔案。
#nand erase 0 0x4000000
#tftp 30000000 uImage
#nand write.jffs2 30000000 0 $(filesize)
#set bootcmd nand read.jffs2 33000000 0 $(filesize)/;bootm 33000000
-------------------------------------------------------------------
-------燒寫linux根檔案系統。
#tftp 30000000 rootfs.img
#nand write.jffs2 30000000 0x200000 $(filesize)
#set ipaddr ip=$(ipaddr):$(serverip):$(serverip):255.255.255.0:urbet:eth0:off
#set bootargs root=/dev/mtdblock1 rw rootfstype=jffs2 noinitrd init=/linuxrc console=ttySAC0,115200 $(ipaddr)
#saveenv
#reset
-------------------------------------------------------------------------
進入系統後,在終端中回車,輸入。
#echo "./etc/init.d/opie start" >> /mnt/etc/init.d/rcS
#mnt/etc/init.d/rcS
qtopia 執行後,觸控式螢幕可能會定位不準
解決方法是:
刪除/etc 目錄下的pointercal 檔案
#rm -f pointercal
進入/mnt/etc目錄,檢視pointercal檔案是否存在,存在則刪除此檔案。
#cd /mnt/etc
#rm -f pointercal
重起開發板,進入系統,點選4個邊角和中位點重新定位觸控式螢幕,完成後,在/etc目錄下將會生在pointercal檔案,
將其複製到/mnt/etc目錄下,
#cd /etc
#cp /etc/pointercal /mnt/etc
這樣才能斷電後保.,完成,over。
---------------------------------------------------------------------