谢谢各位关注!已经找到解决方案:
step1:用tftp下载内核和文件系统到内存,配置好环境变量,使linux跑起来;
Boot over Network (Ethernet)
NOTE
When setting a MAC address please ensure that the LS-bit of the 1st byte is not 1 i.e. when setting the MAC address: y in xy:ab:cd:ef:gh:jk has to be an even number. For more info this refer to the wiki page http://en.wikipedia.org/wiki/MAC_address
When kernel image and ramdisk image are fetched from a TFTP server:
Ensure that the EVM is connected to network with DHCP and TFTP server set up
If the TFTP server supports negotiation between client and server, Disable it
Copy kernel image and ramdisk to TFTP server's root directory.
Set 'ethaddr' U-Boot environment variable with proper ethernet address in format 'xx:xx:xx:xx:xx:xx' (replace 'xx' with proper hexadecimal values)
Execute following commands at U-Boot prompt. Assuming kernel image name as 'uImage' and ramdisk file name as 'ramdisk.gz'
U-Boot# setenv autoload no
U-Boot# dhcp
U-Boot# setenv serverip
U-Boot# tftp 0x81000000 uImage
U-Boot# tftp 0x82000000 ramdisk.gz
U-Boot# setenv bootargs 'mem=128M console=ttyO0,115200n8 root=/dev/ram0 initrd=0x82000000,40M ramdisk_size=32768 ip=dhcp'
U-Boot# bootm 0x81000000
step2:在linux下格式化分区emmc,将镜像文件写入eMMC,这一步我现在还没弄好,估计不会有什么问题的 |