arm linux系統搭建:
嵌入式常用工具:
cuteftp實現windows與linux文件傳輸
secureCRT實現windows遠程登錄linux或者實現與arm機串口連接;
1、燒寫u-boot/vivi到nandflash或norflash:
可以利用:h-jtag;oflash;sjf2410,超級終端等;
超級終端燒寫u-boot到norflash的方法:
loady 0x30008000 //(按回車鍵;然後選擇超級終端裏的傳送-》發送文件,輸入u-boot文件的路徑)
protect all off
erase 0 0x7ffff
cp.d 0x30008000 0 0x80000
ps:cmp.d 0 0x30008000 0x80000 //可以對比0地址與0x30008000地址開始的0x80000個字節是否相同
2、焼寫內核與根文件系統
可以利用:secureCRT+dnw;超級終端+dnw;secureCRT+tftpd32.exe/nfs;或者超級終端+tftp32.exe/nfs;
利用超級終端與tftpd32.exe焼寫內核與根文件系統
(1)焼寫u-boot後:
設置ip:setenv ipaddr 192.168.16.11 //開發板ip
setenv serveraddr 192.168.16.15 //tftp服務器的ip
saveenv
燒寫內核命令:
tftp 0x30008000 uImage 或 nfs 32000000 192.168.1.123:/work/nfs_root/uImage //uImage放在主機上的tftp或nfs目錄下,並且確保已
經開啓tftp或nfs服務
nand erase 0x8000 0x200000
nand write 0x30008000 0x80000 0x200000
燒寫根文件系統命令:
tftp 0x30008000 root.cramfs 或 nfs 32000000 192.168.1.123:/work/nfs_root/root.cramfs
nand erase 0x280000 0x400000
nand write 0x30008000 0x280000 0x400000
u-boot設置相關參數傳給內核:
setenv bootargs root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200
setenv bootcmd nand read 0x30008000 0x80000 0x200000\; bootm
saveenv
(2)焼寫vivi後:
(vivi的命令與linux的基本相同)
設置ip:ifconfig eth0 192.168.16.11 //開發板ip
ifconfig server 192.168.16.15 //tftp服務器的ip
ifconfig save
焼寫內核命令:
tftp flash kernel zImage;
焼寫根文件系統:
tftp flash root root.cramfs;
焼寫應用程序:利用超級終端或secureCRT(設置ip)+FlashFXP
總結:焼寫的工具是:接收命令(超級終端、secureCRT)+傳輸數據(tftp服務器、nfs服務器、dnw)
ps:文中總結的是本人常用的焼寫方法,不過焼寫方法還有很多:Jlink-flash焼寫、usb焼寫、網絡焼寫等;讀者可以自己查閱資料研究