




已阅读5页,还剩8页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
busybox-1.7.3制作根文件系统arm-linux-gcc3.4.1参考文章1. linux-内核移植到s3c2440-使用busybox-1.9.2制作根文件系统/yang_dk/archive/2008/05/09/2422898.aspx2. 用Busybox创建文件系统/u2/74383/showart_1135014.html1.rootlocalhost busybox#ttar -xjvf busybox-1.7.3.tar.bz22.rootlocalhost busybox#cd busybox-1.7.3修改Makefile中的174行的 arch和编译工具链头。ARCH ?= armCROSS_COMPILE ?= /usr/local/arm/3.4.1/bin/arm-linux-3.rootlocalhost busybox-1.7.3#make menuconfigBusybox Setting- build option- Build BusyBox as a static binary (no shared libs) * Build shared libbusybox * Produce a binary for each applet, linked against libbusybox * Produce additional busybox binary linked against libbusybox Build with Large File Support (for accessing files 2 GB)installation option- * Dont use /usr Applets links (as soft-links) - (./_install) BusyBox installation prefixBusybox Library Tuning -MD5: Trade Bytes for Speed* Faster /proc scanning code (+100 bytes)* Support for /etc/networks* Support for /etc/networks* Additional editing keys* vi-style line editing commands* History saving* Tab completion* Username completion* Fancy shell promptsLinux Module Utilities - * insmod * Enable load map (-m) option * Symbols in load map * rmmod * lsmod * lsmod pretty output for 2.6.x Linux kernels * modprobe Multiple options parsing Fancy alias parsing - Options common to multiple modutils Support tainted module checking with new kernels Support version 2.2.x to 2.4.x Linux kernels * Support version 2.6.x Linux kernels其他的用默认值若出现错误1.libbb/time.c:20: error: CLOCK_MONOTONIC undeclared (first use in this function)rootlocalhost busybox-1.7.3#make menuconfig 去掉Busybox Settings-Busybox Library Tuning-Use clock_gettie(CLOCK_MONOTONIC) syscall2.miscutils/taskset.c:17: error: parse error before * tokenmiscutils/taskset.c:18: warning: function declaration isnt a prototypemiscutils/taskset.c: In function _from_cpuset:miscutils/taskset.c:22: error: CPU_SETSIZE undeclared (first use in this function)miscutils/taskset.c:22: error: (Each undeclared identifier is reported only oncemiscutils/taskset.c:22: error: for each function it appears in.)miscutils/taskset.c:26: warning: implicit declaration of function CPU_ISSETmiscutils/taskset.c:26: error: mask undeclared (first use in this function)miscutils/taskset.c: In function taskset_main:miscutils/taskset.c:47: error: cpu_set_t undeclared (first use in this function)miscutils/taskset.c:47: error: parse error before maskmiscutils/taskset.c:68: warning: implicit declaration of function CPU_ZEROmiscutils/taskset.c:68: error: new_mask undeclared (first use in this function)miscutils/taskset.c:69: error: CPU_SETSIZE undeclared (first use in this function)miscutils/taskset.c:71: warning: implicit declaration of function CPU_SETmiscutils/taskset.c:78: error: mask undeclared (first use in this function)make1: * miscutils/taskset.o Error 1make: * miscutils Error 2rootlocalhost busybox-1.7.3#make menuconfig 去掉Miscellaneous Utilities- task set*如果是静态3.rootlocalhost busybox-1.7.3#make menuconfigBusybox Setting- build option- * Build BusyBox as a static binary (no shared libs) Build shared libbusybox Produce a binary for each applet, linked against libbusybox Produce additional busybox binary linked against libbusybox Build with Large File Support (for accessing files 2 GB)installation option- * Dont use /usr Applets links (as soft-links) - (./_install) BusyBox installation prefixLinux Module Utilities - * insmod * Enable load map (-m) option * Symbols in load map * rmmod * lsmod * lsmod pretty output for 2.6.x Linux kernels * modprobe Multiple options parsing Fancy alias parsing - Options common to multiple modutils Support tainted module checking with new kernels Support version 2.2.x to 2.4.x Linux kernels * Support version 2.6.x Linux kernels其他的用默认值若出现错误#if ENABLE_STATIC & defined(_GLIBC_) & !defined(_UCLIBC_)#warning Static linking against glibc produces buggy executables#warning (glibc does not cope well with ld -gc-sections).#warning See /bugzilla/show_bug.cgi?id=3400#warning Note that glibc is unsuitable for static linking anyway.#warning If you still want to do it, remove -Wl,-gc-sections#warning from top-level Makefile and remove this warning.#error Aborting compilation.#endif将applets/applets.c文件的开头的条件编译去掉*4.rootlocalhost busybox-1.7.3#make installrootlocalhost busybox-1.7.3#chmod 4755 ./_install/bin/busybox来源:(/s/blog_548b0a230100dlho.html) - busybox-1.7.3制作根文件系统arm-linux-gcc3.4.1_懒洋洋_新浪博客 -rwsr-xr-x 1 root root 729120 05-12 20:48 busybox5.rootlocalhost busybox-1.7.3cd /rootrootlocalhost mkdir rootfs6.rootlocalhost cd rootfsrootlocalhost rootfsmkdir bin dev etc lib proc sbin sys usr mnt tmp varrootlocalhost rootfsmkdir usr/bin usr/lib usr/sbin lib/modulesrootlocalhost rootfsmknod -m 666 dev/console c 5 1rootlocalhost rootfsmknod -m 666 dev/ttyS0 c 4 64rootlocalhost rootfsmknod -m 666 dev/ttyS1 c 4 65rootlocalhost rootfsmknod -m 666 dev/null c 1 37.rootlocalhost rootfscd etcrootlocalhost etc# vim profile#!/bin/sh#/etc/profile:system-wide .profile file for the Bourne shellsechoecho -n Processing /etc/profile.# Set search library pathexport LD_LIBRARY_PATH=/lib:/usr/lib# set user pathexport PATH=/bin:/sbin:/usr/bin:/usr/sbin#Set PS1USER = id -unLOGNAME=$USERPS1=uhW$PATH=$PATHecho Done!rootlocalhost etc#mkdir init.drootlocalhost etc#cd init.drootlocalhost init.d# more init.d/rcS#!/bin/sh# set hostname, needed host file in /etc directory#./etc/hosthostname cat /etc/host# mount all filesystem defined in fstabecho #mount all./bin/mount -a#/bin/chmod 0666 /dev/nullecho # starting mdev./bin/echo /sbin/mdev /proc/sys/kernel/hotplugmdev -s/usr/etc/initecho *echo qhmzdxwdxy_jiangweiecho kernel linux- echo 2010-12-15 echo echo *rootlocalhost etc# vim fstabproc /proc proc defaults 0 0none /tmp ramfs defaults 0 0none /var ramfs defaults 0 0mdev /dev ramfs defaults 0 0sysfs /sys sysfs defaults 0 0rootlocalhost etc#
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024-2025学年度烟草职业技能鉴定能力检测试卷附答案详解AB卷
- 2024年计算机二级模拟题库及参考答案详解【黄金题型】
- 幕墙工程施工工艺及质量控制
- 如何养生护眼的正确方法
- 油藏堵水重活规范
- 小区服务提升技能培训
- 执业医师腰椎穿刺考试评分细则
- 天文学观测指南
- 公司员工节日福利
- 2024-2025学年临床执业医师通关题库往年题考附答案详解
- 危重患者皮肤管理课件
- 2025年国防教育知识竞赛试题(附答案)
- 工伤受伤经过简述如何写
- 银行现金取款申请书
- 人事外包招聘代理合同
- 数字经济学-课件 第3章 数字技术
- AI引领时尚设计新潮-个性化需求的新一代解决方案
- 高二数学直线倾斜角与斜率同步练习题
- 2024-2030年全球及中国热障涂层(TBC)行业市场现状供需分析及市场深度研究发展前景及规划可行性分析研究报告
- 大轻质泡沫混凝土研究报告
- 室内装修工程质量保障措施方案
评论
0/150
提交评论