编译内核时出现的错误

目标板:ralinkRT5350

操作系统:linux-2.6.21.x

在内核启动过程中,出现如下问题:

问题一:

?List of all partitions:
1f00             256 mtdblock0  (driver?)
1f01            1024 mtdblock1  (driver?)
1f02            1536 mtdblock2  (driver?)
1f03            5376 mtdblock3  (driver?)
f000             256 romblock0  (driver?)
f001            1024 romblock1  (driver?)
f002            1536 romblock2  (driver?)
f003            5376 romblock3  (driver?)
No filesystem could mount root, tried:  squashfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

原因是挂载文件系统失败。

解决办法:重新配置内核,在进行编译

File systems --->
    [*] Miscellaneous filesystems --->
         <*> SquashFS 4.0 - Squashed file system support

 问题二:

sh: iwlist: not found

分析:iwlist命令集没有找到

解决办法:配置内核

customize Vendor/User Setting
--->networking
    --->iwlist

然后配置内核可以解决。

问题三:

Relocations in generic ELF (EM: 3)

在交叉编译的时候出现这个问题,是因为不同的工具链生成的可执行文件不同,从而不能运行。

解决办法:

进入相应的目录下,执行命令

#make clean -w

问题就会OK!

时间: 2024-08-14 08:17:55

编译内核时出现的错误的相关文章

如何在编译内核时添加缺少的固件(以intel wireless 5100 AGN的 iwlwifi 为例)

不知大家在笔记本使用 Linux 时编译内核后无线wifi 能不能用,我的本本是"联想 Y450"一款足够老的本本,配的无线网卡是: $ lspci | grep Wireless 06:00.0 Network controller: Intel Corporation PRO/Wireless 5100 AGN [Shiloh] Network Connection 目前使用的系统为 Linux Mint 17 Qiana (Cinnamon桌面版的,毕竟cinnamon是基于Gn

【杂记】编译内核时的一些记录

这里记录些从网络上收集到的各种编译内核时的一些注意事项和操作.未经验证,仅供参考! 下载源码,然后转到源码目录(或者新建一个目录,在该目录下运行make?-C?/usr/src/linux?O=`pwd`); ?????将当前运行内核的config文件拷过来(位置在/boot?目录下,config*等文件),重命名为.config; ????在编译内核之前,需要确认.config中,以下编译选项是否打开: ????(1)CONFIG_DEBUG_INFO?,必须打开该选项,否则crash会出现以

编译php时遇到的错误

error 1 checking for xml2-config path...configure: error: xml2-config not found. Please check your libxml2 installation. lib库没装  先用 yum search 名字 看是否能搜到名字 ,找到名字后 把软件包 开发包装上 解决办法 yum install libxml2-devel.x86_64 error 2 checking for pkg-config... /usr

itop4412编译内核时出现“recipe for target &#39;arch/arm/mach-exynos/cpu-exynos4.o&#39; failed”的解决方法

依次执行如下命令 #su root 输入root用户密码 #cd #vim .bashrc 到达最底行,确保环境变量如下图所示 保存退出后,执行如下指令 #source .bashrc 重启Terminal终端(必须),再次进入内核路径进行编译,即可通过. itop4412编译内核时出现"recipe for target 'arch/arm/mach-exynos/cpu-exynos4.o' failed"的解决方法 原文地址:https://www.cnblogs.com/Unf

编译内核时覆盖KBUILD_BUILD_USER和KBUILD_BUILD_HOST

默认情况下make kernel.img编译出来的内核在/proc/version中显示的内容是: Linux version 3.0.36+ ([email protected]) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #5 SMP PREEMPT Fri Jan 16 10:49:29 CST 2015 xxx是你的用户名,yyy是你的主机名称,这些名称有时候是无意义的,或者不是你想要的.如果你想留下你的大名,如EMA

使用vs2015编译器编译libpqxx时发生的错误以及解决办法

d:\libpqxx-4.0\libpqxx-4.0\src\strconv.cxx(195): error C2440: "=": 无法从"std::basic_istream<char,std::char_traits<char>>"转换为"bool"d:\libpqxx-4.0\libpqxx-4.0\src\strconv.cxx(195): note: 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运

编译Busybox时,出现错误fatal error: curses.h: No such file or directory

1 scripts/kconfig/mconf.c: In function ‘exec_conf’: 2 scripts/kconfig/mconf.c:481:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result] 3 pipe(pipefd); 4 ^ 5 SHIPPED scripts/kconfig/zconf.tab.c 6 SH

编译 PHP时提示mysql 错误

编译PHP: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql-dir=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-libxml-dir --with-gd --with

编译内核时出错:/bin/sh: 1: lzop: not found

http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/71477.aspx 在上面链接中,发现时缺少了 lzop 工具包 进入去ubuntu12.04 安装: apt-get install lzop 验证: lzop -V 详细的安装 lzop 工具安装和验证,参看下面文档 http://blog.csdn.net/yyp872/article/details/21513127