9.1 使用MFGTOOL燒寫
把文件“u-boot.sb”、“imx28-evk.dtb”、“zImage”、“rootfs.tar.bz2復(fù)制到“MY-IMX28_Born_Tool\Profiles\MX28 Linux Update\OS Firmware\files\image-linux-31454”目錄下。按住REC按鍵,插上MINI USB線和電源線,接著打開MfgTool.exe,點(diǎn)擊“掃描設(shè)備”,檢測到HID設(shè)備時,松開REC按鍵,如下所示:
點(diǎn)擊菜單的“Options”,然后在選項“Profiles”選擇“MY-IMX28-3.14.54 NAND with uboot”,接著點(diǎn)擊“確定”,最后點(diǎn)擊“開始”。
燒寫成功后,點(diǎn)擊“停止”就OK了。
注意:如果你用的文件系統(tǒng)是rootfs-qt.tar.bz2,請選擇“QT-MY-IMX28-3.14.54 NAND with uboot”燒寫鏡像。
9.2 使用網(wǎng)絡(luò)燒寫
9.2.1 搭建TFTP (ubuntu系統(tǒng))
(1) Setup tftp server files (下載并安裝tftp)
$ sudo apt-get install tftpd tftp openbsd-inetd
(2) make a tftp directory (新建tftp目錄和改變其屬性)
Here we make /home/myzr/tftpt be a tftp directory.
$ mkdir /home/myzr/tftp
$ chmod 777 /home/myzr/tftp
(3) Open /etc/inetd.conf and edit it (修改配置文件的tftp目錄)
$ sudo gedit /etc/inetd.conf
Coment this line :
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
Add new line:
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /home/myzr/tftp
(4)Restarting tftp service (重啟tftp)
$ sudo /etc/init.d/openbsd-inetd restart
9.2.2 搭建NFS (網(wǎng)絡(luò)燒寫不需要用到nfs)
(1) Install NFS server package (下載并安裝nfs)
$ sudo apt-get install nfs-kernel-server
(2) Create NFS directory:/home/myzr/nfsroot (新建nfs目錄)
$ mkdir /home/myzr/nfsroot
(3) Configure mounted directory and authority (修改配置文件的nfs目錄)
$ sudo gedit /etc/exports
Add the following line at the end of the file:
/home/myzr/nfsroot *(rw,sync,no_root_squash)
(4) Restart the NFS service (重啟nfs)
$ sudo /etc/init.d/portmap restart
$ sudo /etc/init.d/nfs-kernel-server restart