######################################################################################

主机操作:

写u-boot到SD卡:

cp ~/smdk6410/tools/sd_write /sbin
umount /dev/sdb1
   
sd_write ~/smdk6410/images/u-boot-sd.bin /dev/sdb

USBto232:
   
cp ~/smdk6410/tools/ch341.ko /lib/modules/`uname -r`/kernel/drivers/usb/serial
   
modprobe usbserial
   
insmod ch341.ko
   
depmod -a

minicom:

配置:

minicom -s
       
Serial port setup

| A -    Serial Device      : /dev/ttyUSB0                  |
           
| B - Lockfile Location     : /var/lock                                 |
           
| C -   Callin Program      :                                           |
           
| D -  Callout Program      :                                           |
           
| E -    Bps/Par/Bits       : 115200 8N1                                |
           
| F - Hardware Flow Control : No                                        |
           
| G - Software Flow Control : No                                        |
           
|                                                                       |
           
|    Change which setting?                                              |
          
Save setup as dfl

       
Exit from Minicom

然后连接开发板的串口到pc机 在命令行:minicom 就可以了
   
tftp服务器:
   
chkconfig tftp on
   
service xinetd restart
   
cp ~/smdk6410/images/* /tftpboot



解压根文件系统(这个我这没有android内核下个android内核从里面构建一个根文件系统拷贝到nfsroot下)
   
chmod 777 nfsroot

配置nfs服务器:
   
vim /etc/exports
       
/nfsroot *(rw)
   
chkconfig nfs on
   
service nfs restart÷

######################################################################################

u-boot操作:



设置内核启动参数:
   
set bootargs root=/dev/nfs rw nfsroot=主机IP:/nfsroot ip=开发板IP console=ttySAC0,115200
   
save
   
注意: 主机IP和开发板IP
t

从主机下载内核到内存:

tftp 0x50008000 zImage


启动内核:(这个你自己去下个android内核我没有)   
   
bootm 0x50008000


自动启动:
   
set bootcmd tftp 0x50008000 zImage\; bootm 0x50008000
   
save

rm -f /nfsroot/etc/pointercal