busybox ubuntu ubuntu initramfs
老铁们,大家好,相信还有很多朋友对于busybox ubuntu和ubuntu initramfs的相关问题不太懂,没关系,今天就由我来为大家分享分享busybox ubuntu以及ubuntu initramfs的问题,文章篇幅可能偏长,希望可以帮助到大家,下面一起来看看吧!
ubuntu 12.0.4编译busybox出错,求解答
#我解压tarball后,在目录下建立了build文件夹,我在build目录里开始编译。
make KBUILD_SRC=../-f../Makefile defconfig
sed-e's/.*FEATURE_PREFER_APPLETS.*/CONFIG_FEATURE_PREFER_APPLETS=y/'-i.config
sed-e's/.*FEATURE_SH_STANDALONE.*/CONFIG_FEATURE_SH_STANDALONE=y/'-i.config
make
make install#我没有执行这个安装命令,因为我不需要这个软件。
#检测一下编译好的busybox
PATH=./busybox ash#这条命令的作用是清空PATH系统环境变量,防止执行系统目录(/bin/usr/bin等)下的可执行文件如 ls rm等。
这样,下面的ls命令,是来自busybox的 ash shell,而非来自系统的bash shell。
/busybox/busybox-1.21.1/build$ ls
Makefile busybox_unstripped.out editors
applets console-tools findutils
archival coreutils include
busybox debianutils include2
busybox_unstripped docs init
busybox_unstripped.map e2fsprogs libbb
make过程的部分屏幕输出:
CC networking/ifplugd.o
CC networking/ifupdown.o
CC networking/inetd.o#编译 networking/inetd.o可以正常通过
CC networking/interface.o
......
CC util-linux/volume_id/sysv.o
CC util-linux/volume_id/udf.o
CC util-linux/volume_id/util.o
CC util-linux/volume_id/volume_id.o
CC util-linux/volume_id/xfs.o
AR util-linux/volume_id/lib.a
LINK busybox_unstripped
Trying libraries: crypt m
Library crypt is not needed, excluding it
Library m is needed, can't exclude it(yet)
Final link with: m
DOC busybox.pod
DOC BusyBox.txt
DOC busybox.1
DOC BusyBox.html
你的问题是找不到头文件,那首先,你检查一下 gcc的默认头文件搜索目录
echo""| gcc--xc-v-E
看输出是否包含/usr/include
#include<...>搜索从这里开始:
/usr/lib/gcc/i686-linux-gnu/4.6/include
/usr/local/include
/usr/lib/gcc/i686-linux-gnu/4.6/include-fixed
/usr/include/i386-linux-gnu
/usr/include
根据结果再做下一步判断。
求助翻译在安装ubuntu时,有一段英文,想高手帮助翻译一下
我的也是wubi安装的,在升级内核后遇到过这样的问题
在安装好进入系统更新好了,然后重启电脑想再进入ubuntu,在正常启动进入到滚动条后就出现了以下情景:屏幕上显示:
BusyBox v1.1.3(Debian1:1.1.3-5ubuntu12) Built-in shell(ash)
Enter'help'for a list of built-in commands
(initramfs)
当我输入help后就显示下面的信息:
.:alias break cd chdir command continue echo eval exec exit export false getopts hash help let local pwd read readonly return [ [[ash awk basename busybox cat chmod chroot chvt clear cmp cp cut deallocvt dumpkmap echo egrep env expr false fbset faflush fgrep grep hostname ifconfig ip kill in loadfont loadkmap is mkdir mkfifo mknod mkswap mktemp more mount mv openvt pidof printf ps pwd readlink reset rm rmdir sed setkeycods shsleep sort star sync tail tee test toushtrtrue tty umount uname unig wget yes
(initramfs)
彻底晕了,于是继续输“YES”,看见一个光标一闪一闪亮晶晶,完了
我解决了,解决方法如下答案补充重启电脑在显示提示按“ESC”按"ESC"进入启动项那里面去选择ubuntu 8.04kernl.2.6.22-16-generic,回车就可以进入了
每次都要esc这样比较麻烦
蕞简单的方法
修改/boot/grub/menu.lst文件
sudo cp/boot/grub/menu.lst/boot/grub/menu.lst_back#备份menu.lst
sudo gedit/boot/grub/menu.lst
出现一个boot文件
找到
5ubuntu 8.04kernl.2.6.22-16-generic
6ubuntu 8.04kernl.2.6.22-16-generic(creovery.mode)
7ubuntu.8.04 memtes86+
8other operating systems
前边的一般是1ubuntu 8.04kernl.2.6.22-16-generic-rt~4ubuntu 8.04kernl.2.6.22-16-generic(creovery.mode)-rt
不让我发那么多答案补充把它1~4都删了,就是把ubuntu 8.04kernl.2.6.22-16-generic之前的启动项目都删了,然后把ubuntu 8.04kernl.2.6.22-16-generic前边的数字改为1后边的也改为234,保存就OK了
改不掉?那你找到boot/grub/menu.lst,在打开boot文件的时候,右键以管理员进入,输入密码,打开menu.lst
就可以修改了,我用的就是这个方法
后边一个高手的方法,我在wibi看到的,没试过,你可以试试
启动的时候提示按“ESC”按"ESC"进入启动项
1 ubuntu 8.04kernl.2.6.22-16-generic—rt
2 ubuntu 8.04kernl.2.6.22-16-generic(creovery.mode)-rt
3ubuntu 8.04kernl.2.6.22-16-generic
4 ubuntu 8.04kernl.2.6.22-16-generic(creovery.mode)
5ubuntu.8.04 memtes86+答案补充 6 other operating systems
中选择第1项然后按e键进入编辑状态,显示以下几项:
1 root(hd0,4)
2 kernel/boot/vmlinuz-2.6.22-16-generic root=UUID=_ _ ro quiet splash
3 initrd/boot/initrd.img-2.6.22-16-generic
4 quiet(这一项我打死没找到)
然后再选择第2项按e键进入编辑状态:在ro的后面输入'all_generic_ide'代替'quiet splash'(不用引号),按下回车键确认修改,接着又回到刚才的启动项,还是选择第2项,按b启动ubuntu,最后就可以看到登陆画面了
busybox怎么安装
在ubuntu上安装busybox和其他软件一样,有两种方法:
1):在shell环境下执行命令:sudo apt-get install busybox,该命令将busybox的可执行文件安装在/bin文件夹下,
安装完成之后可以直接在shell下输入busybox来启动busybox。但是无法进行busybox的配置( make menuconfig)。
按照我的理解,此种方式是直接安装配置好的busybox。
2):在shell环境下执行命令:sudo apt-get source busybox,该命令用以下载busybox的源代码。下载完成后,
直接在busybox的源代码文件夹下执行命令make menuconfig。我在ubuntu8.04下执行时,遇到错误
/usr/bin/ld: cannot find-lncurses。系统提示:
>> Unable to find the Ncurses libraries.
>>
>> You must have Ncurses installed in order
>> to use'make menuconfig'
在shell环境下输入:sudo apt-get install libncurses-dev安装缺失的ncurses库。
至此,busybox的源代码目录下可以执行make menuconfig来配置busybox呢。