如何编译Busybox的? [英] How to compile Busybox?

查看:1261
本文介绍了如何编译Busybox的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(的I9100和i9100p手机都有的Exynos 4210系统芯片,其中包括支持NEON的Cortex A9双核1.2GHz处理器。)

我会编译最新的busybox的源代码的快照可用并上传给大家免费在互联网上,甚至可能使自己的免费 BusyboxInstaller.apk (我已经下载了今天的第14从官方网站三月快照),因为许多busybox的安装人员非常过时的版本,我想利用可能的优化的Cortex A9 CPU的优势。

(NEON技术是一个128位的SIMD(单指令多数据)体系结构扩展。

它可以可加速多媒体和信号处理算法,如视频连接code /德code,2D / 3D图形,游戏,音频和语音处理,图像处理,电话和声音合成的)

1 做的的意思,也有利于我的BusyBox的?

2 还有什么其他的说明 / anythingelse我可以用它来优化i9100的设备?

3 我编我的手机上,而不是个人电脑,只有 1x2Ghz和2GB RAM ?我觉得应该是更快,因为它有 2x1.5GHz和1GB RAM (我超频只有一点点)与1x2GHz,对吗?

  

4如何编译BusyBox的?

这些是什么选择?

 力NOMMU构建
附加CFLAGS
其他LDFLAGS
其他LDLIBS
所有的常规配置,并使用Busybox库调整和调试(我用Google搜索每几个小时,但没有满意)
 

什么样的​​小应用程序的链接来安装?

(./_安装)的BusyBox安装preFIX

**我下面vinayhunachyai指令时,有eeror。

 使ARCH =手臂CROSS_COMPILE =臂无-Linux的gnueabi-安装
/home/euphoria/Sourcery/busybox/scripts/gcc-version.sh:第11行:臂无-Linux的gnueabi-GCC:找不到命令
  CC小应用程序/ applets.o
/ bin / sh的:1:手臂无-Linux的gnueabi-GCC:未找到
脚本/ Makefile.build:197:配方目标的小应用程序/ applets.o'失败
使[1]:*** [小应用程序/ applets.o]错误127
Makefile中:372:配方目标的applets_dir'失败
使:*** [applets_dir]错误2
 

解决方案

如何编译BusyBox的?

1日下载工具链引用该<一href="http://stackoverflow.com/questions/22266586/advice-regarding-installing-arm-toolchain-on-ubuntu-vm-64bit/22266762#22266762">Advice就在Ubuntu VM(64位)

安装ARM工具链

新解压缩源 - code

1)让ARCH =手臂CROSS_COMPILE =臂无-Linux的gnueabi- defconfig 默认配置文件被创建。

要改变我们的需要:

2)进行ARCH =手臂CROSS_COMPILE =臂无-Linux的gnueabi- menuconfig的

选项编译Busybox的一个静态的可执行文件,这样我们就不必动态库复制根文件系统中。该设置可以在 - >编译选项Busybox的设置中找到。 还可以选择哪些实用,你想镶嵌在busybox的。

于是,以下命令建立Busybox的,并创建了一个名为包含根文件系统树_install目录:

3)进行ARCH =手臂CROSS_COMPILE =臂无-Linux的gnueabi-安装。

静态编译如果动态编译,那么你需要复制库的目标。

有关详细信息发现这个链接的http://balau82.word$p$pss.com/2010/03/27/busybox-for-arm-on-qemu/

(The i9100 and i9100p phones have Exynos 4210 SoC which includes Cortex A9 dual core 1.2Ghz processor which supports NEON.)

I will compile the latest busybox source snapshot available and upload it for everyone for free on internet and maybe even make my own free BusyboxInstaller.apk (I already downloaded today's 14th March snapshot from the official website) because so many busybox installers have very outdated versions and I want to take advantage of possible optimizations for the Cortex A9 cpu.

(NEON technology is a 128-bit SIMD (Single Instruction, Multiple Data) architecture extension.

It can can accelerate multimedia and signal processing algorithms such as video encode/decode, 2D/3D graphics, gaming, audio and speech processing, image processing, telephony, and sound synthesis.)

1 does such as mean it will also benefit my busybox?

2 What other instructions/anythingelse I can use to optimize for i9100 devices?

3 Can I compile on my phone instead of PC with only 1x2Ghz and 2GB RAM? I think it should be much quicker because it has 2x1.5GHz and 1GB RAM (I overclock only a bit) versus 1x2GHz, am I right?

4 How to compile busybox?

What are these options for?

Force NOMMU build
Additional CFLAGS
Additional LDFLAGS
Additional LDLIBS
all in general configuration and Busybox Library Tuning and debug (I googled for each for a few hours but nothing satisfactory)

What kind of applet links to install?

(./_install) BusyBox installation prefix

**I have eeror when following vinayhunachyai instructions.

make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- install
/home/euphoria/Sourcery/busybox/scripts/gcc-version.sh: line 11: arm-none-linux-gnueabi-gcc: command not found
  CC      applets/applets.o
/bin/sh: 1: arm-none-linux-gnueabi-gcc: not found
scripts/Makefile.build:197: recipe for target 'applets/applets.o' failed
make[1]: *** [applets/applets.o] Error 127
Makefile:372: recipe for target 'applets_dir' failed
make: *** [applets_dir] Error 2

解决方案

How to compile busybox?

1st download toolchain for that refer this Advice regarding installing ARM toolchain on Ubuntu VM (64bit)

untar new source-code

1) make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- defconfig A default configuration file is created.

To change it to our needs:

2) make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig

the option to compile Busybox as a static executable, so that we don’t have to copy the dynamic libraries inside the root filesystem. The setting can be found in "Busybox Settings --> Build Options". Also select what are utilities you want embedded in busybox.

Then, the following command builds Busybox and creates a directory called _install containing the root filesystem tree:

3) make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- install.

Compile statically if you compile dynamically then you need to copy libraries to target.

FOr more details find this link http://balau82.wordpress.com/2010/03/27/busybox-for-arm-on-qemu/

这篇关于如何编译Busybox的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆