下载与烧写
使用U-boot将映像文件烧写到板上的Flash,一般步骤是:
(1)通过网络、串口、U盘、SD卡等方式将文件传输到SDRAM; (2)使用Nand Flash或Nor Flash相关的读写命令将SDRAM中的数据烧入Flash。
下面是烧写范例:
如果使用 SD卡和U盘形式更新U-boot,那么首先SD卡和U盘中必须有FAT32文件系统,并在里面存放了u-boot.bin 文件。 1) 通过SD卡烧入Nand Flash:
2) 通过U盘烧入Nor Flash:
3) 通过TFTP服务烧入Nand Flash:
4) 通过NFS 服务烧入Nand Flash:
内核引导
内核的引导步骤如下:
(1)用U-boot的mkimage工具处理内核映像zImage。 (2)通过网络、串口、U盘、SD卡等方式将处理过的内核映像传输到SDRAM的一定位置(一般使用0x30008000) (3)然后使用”bootm"等内核引导命令来启动内核。
以下是使用范例:
1) 通过SD卡引导内核: 首先SD卡中必须有FAT32文件系统,并在里面存放了处理过的内核映像文件。
2) 通过TFTP服务引导内核:
3) 通过NFS服务引导内核:
4) 通过Nand Flash引导内核:
首先要将处理过的内核映像文件烧入Nand Flash的一定位置(由内核分区表决定)。以后每次启动时用Nand Flash的读取命令先将这个内核映像文件读到内存的一定位置(由制作内核映像时的-a参数决定),再使用bootm命令引导内核。
内核映像文件的烧入:
内核引导:
|
原文出处: http://blog.chinaunix.net/u1/34474/showart.php?id=2217816