计算机与现代化 ›› 2012, Vol. 1 ›› Issue (11): 209-213.doi: 10.3969/j.issn.1006-2475.2012.11.051

• 应用与开发 • 上一篇    下一篇

基于MPC8315的U-Boot在Nand Flash上的移植

吴 磊,韩友川,政越伟   

  1. 北方工业大学信息工程学院计算机科学与技术系,北京 100144
  • 收稿日期:2012-07-05 修回日期:1900-01-01 出版日期:2012-11-10 发布日期:2012-11-10

Transplantation of U-Boot on Nand Flash Based on MPC8315

WU Lei, HAN You-chuan, ZHENG Yue-wei   

  1. Department of Computer Science and Technology, College of Information Engineering, North China University of Technology, Beijing 100144, China
  • Received:2012-07-05 Revised:1900-01-01 Online:2012-11-10 Published:2012-11-10

摘要: 以MPC8315E搭建开发平台,介绍Freescale的32位微处理器MPC8315的特点及硬件平台结构,并给出U-Boot、内核以及文件系统的物理映射结构。Nand Flash比Nor Flash容量大,将U-Boot在Nand Flash中启动能够使Bootloader、内核以及文件系统都存储在Nand Flash中,从而从硬件上省略Nor Flash。本文重点阐述U-Boot在Nand Flash上的裁剪和移植过程,通过对U-Boot中硬件复位字的配置以及与Nand启动相关程序的分析与修改,最终实现U-Boot在Nand Flash上的移植。通过修改Makefile对软件实现选择性编译,并给出Linux下交叉编译链接的过程,对如何生成可执行文件做了详细的介绍。

关键词: U-Boot, MPC8315, Nand Flash, 交叉编译, 裁剪

Abstract: This paper uses MPC8315E to build a development platform, introduces the features and hardware platform structure of Freescale’s 32-bit microprocessor MPC8315, and gives a brief physical mapping structure of U-Boot, kernel and file system. Nand Flash capacity is larger relative to Nor Flash. The starting of U-Boot in Nand Flash can save Bootloader, kernel and file system in Nand Flash, then Nor Flash is omitted from the hardware. The paper focuses on the cutting and transplantation process of U-Boot on Nand Flash. By configuring the hardware reset word in U-Boot, and analyzing and modifying the Nand start program, the transplantation of U-Boot on Nand Flash is realized. By modifying Makefile to realize the software selective compiler and giving the cross compiler link process in Linux, the paper describes how to generate an executable document in detail.

Key words: U-Boot, MPC8315, Nand Flash, cross-compiler, cutting

中图分类号: