吉林大学学报(信息科学版) ›› 2014, Vol. 32 ›› Issue (5): 504-508.

• 论文 • 上一篇    下一篇

基于GNU工具链开发的微型Linux系统

徐万腾, 刘树昌, 张鑫, 庄仲, 王妍   

  1. 长春理工大学 电子信息工程学院, 长春 130022
  • 收稿日期:2013-11-18 出版日期:2014-09-26 发布日期:2014-12-26
  • 作者简介:徐万腾(1991—), 男, 浙江金华人, 长春理工大学硕士研究生, 主要从事光电检测与图像处理技术研究, (Tel)86-15104454113(E-mail)pour8426@qq.com; 刘树昌(1955—), 女, 长春人, 长春理工大学教授, 硕士生导师, 主要从事光电检测与图像处理技术研究, (Tel)86-13009126387(E-mail)lscjlcc@126.com。
  • 基金资助:

    吉林省光电子产业孵化专项基金资助项目(FH0026)

Development of Lightweight Linux System Based on GNU Toolchain

XU Wanteng, LIU Shuchang, ZHANG Xin, ZHUANG Zhong, WANG Yan   

  1. College of Electronic and Information Engineering, Changchun University of Science and Technology, Changchun 130022, China
  • Received:2013-11-18 Online:2014-09-26 Published:2014-12-26

摘要:

针对传统Linux发行版自带繁杂的驱动、 极耗资源的图形桌面和多余软件包的问题, 构建可用于特定处理器且优化裁剪的系统。利用GNU(GNUs Not UNIX)工具
链、 Linux 2.6.25内核及相关部件, 提出一种制作在USB存储器上的微型操作系统。同时讨论了交叉编译环境的建立, 工具链的使用以及制作过程中root权限归属、 内核USB相关模块选择、 grub启动出错等问题的解决办法。该方案以opensuse 11.4为宿主机系统, 基于开放的源码, 在x86 PC机与U盘组成的硬件平台上, 完成微型Linux系统开发。结果表明, 在低成本教学实验台上, 该系统仅占用600 MByte左右的存储空间, 能保证完成教学编程实验要求, 确保较快的启动和运行速率。

关键词: 从头编译Linux, 操作系统, GNU工具链, 交叉编译

Abstract:

Because traditional Linux distribution has the problem of complicated drivers, graphical desktop of  extreme resource consuming and excess software, we build a system which is optimized for a particular processor. Using GNU(GNU's Not UNIX) tool chain, Linux 2.6.25 kernel and related components we propose a micro system solution in USB storage devices. In the process of building the tool chain, confusing compile order has been marked and explained. We have a detailed discussion of establishing cross-compiler environment and the use of the toolchain. The solutions of root permissions, the kernel USB related module selection, and grub boot failure are elaborated. This solution, based on the host system of opensuse 11.4 and the open source, has achieved the purpose of completing the Linux system development in x86 PC and USB flash disk. The result shows that in the low-cost test bench the system takes about 600 MByte of storage space, provides a complete teaching programming requirement, and ensures faster start-up and operation rate.

Key words: Linux from scratch, operating system, GNU's Not UNIX(GNU) tool chain, cross compiling

中图分类号: 

  • TP316