【总结】嵌入式Linux学习中遇到的问题及解决方法
来源:互联网 发布:大秦帝国 纵横 知乎 编辑:程序博客网 时间:2024/05/22 06:20
持续更新。。。
(1)uboot中执行nfs 32000000 192.168.1.101:/work/nfs_root/uImage_new
下载新内核时出现:TTT***ERROR:Cannot umount。如下图:
解决方法:
在linux虚拟机下输入:sudo vi /etc/hosts。在里面加上一行:
192.168.1.17 /work/nfs_root/
192.168.1.17 是单板uboot设置的IP
(2)Freeing init memory: 164K Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
解决方法:
如果你刚移植了内核,设置了分区,制作了文件系统,那么八成是:文件系统烧错地方,或者分区不对,内核根本没找到文件系统。请检查uboot分区和内核中的分区是否一致。
(3)warning implicit declaration of function 'exit'
Add:
#include <stdlib.h>
(4)ubuntu 14 中安装arm-linux-gcc-4.4.3,装好后设置环境变量,然后arm-linux-gcc -v是出现:(5)git commit -m "first_base_root"的时候出现:
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'root@yangfei-virtual-machine.(none)')
解决方法:
vi .git/config
在下面加上:
[user]
email=your email
name=your name
(6)ubuntu 编译内核出现
recipe for target 'menuconfig' failed
No command 'recipe' found, did you mean:
Command 'recite' from package 'recite' (universe)
recipe: command not found
解决方法:
sudo apt-get install libncurses5-dev
(7)ubuntu出现:
error while loading shared libraries: libstdc++.so.6: cannot open shared obj
解决方法:
apt-get install lib32stdc++6
(8)内核启动过程中,打印: can't run '/etc/init.d/rcS': Permission denied
是制作文件系统的时候,没有加上缺陷,导致脚本文件无法被正常执行。
解决方法:
13、makefile中的反斜杠\
反斜杠\:换行符的意思,不用写到一行了,这样增加makefile可读性。
OBJS := main.o \ display/disp_manager.o \ display/fb.o \ encoding/ascii.o \ encoding/utf-16be.o
- 【总结】嵌入式Linux学习中遇到的问题及解决方法
- 常见的嵌入式Linux内核启动问题总结及解决方法
- 部分Linux学习遇到的问题及解决方法汇总
- Android学习过程中遇到的问题及解决方法
- android 学习中遇到的问题及解决方法
- 安卓学习中遇到的问题及解决方法
- android 学习中遇到的问题及解决方法
- sklearn线性回归学习中遇到的问题及解决方法
- spark学习过程中遇到的问题及解决方法
- linux遇到的问题及解决方法
- HorizontalScrollView中遇到的问题及解决方法
- Spring中遇到的问题及解决方法
- 学习中遇到的问题以及解决方法
- Android学习遇到的问题及总结
- WEB开发过程中遇到的各种问题及解决方法总结
- 2014-J2EE开发工作中遇到的异常问题及解决方法总结
- 安卓开发过程中遇到的问题总结及解决方法
- 学习css中遇到一个问题及解决方法
- javascript总结
- git中Please enter a commit message to explain why this merge is necessary. Please enter a commit mess
- for,while循环,if判断格式
- 数据结构实验之栈二:一般算术表达式转换成后缀式
- opencv 摄像头/视频读取_写入
- 【总结】嵌入式Linux学习中遇到的问题及解决方法
- SpringMVC_interceptor拦截器
- USACO-Section1.4 Arithmetic Progressions【暴力枚举】
- 最短路 poj flyod
- Unity自定义组件之(五) 目录树 UITree
- 一点关于cookie的知识
- 逻辑运算
- 之江学院2017ACM 校赛Problem G qwb去面试
- mysql中文乱码问题