OK335xS U-boot 编译问题&无Linux shell 问题
/**************************************************************************
* OK335xS U-boot 编译问题&无Linux shell 问题
* 声明:
* 主要是因为系统之前是由本人师傅做的,他去掉了一些信息,同时由于他本人
* 目前不在旁边,在参考一些文件的时候出现以下情况。
*
* 2015-7-17 阴 深圳 南山平山村 曾剑锋
*************************************************************************/ 一、采用官方的制作U-boot(make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm O=am335x am335x_evm)出现如下错误:
. 问题:make: *** No rule to make target am335x_evm_config
. cat Makefile:
......
MKCONFIG := $(srctree)/mkconfig
export MKCONFIG
......
%_config:: outputmakefile
@$(MKCONFIG) -A $(@:_config=)
...... . cat mkconfig
if [ \( $# -eq \) -a \( "$1" = "-A" \) ] ; then
# Automatic mode
line=`awk '($0 !~ /^#/ && $7 ~ /^'"$2"'$/) { print $1, $2, $3, $4, $5, $6, $7, $8 }' $srctree/boards.cfg`
if [ -z "$line" ] ; then
echo "make: *** No rule to make target \`$2_config'. Stop." >&
exit
fi set ${line}
# add default board name if needed
[ $# = ] && set ${line} ${}
fi . 问题:生成u-boot.bin error: bad value (armv5) for -march= switch
http://arm9home.net/read.php?tid-82914.html
. 解决方法:
cat > remake.sh << EOF
export CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH=arm
make am335x_evm_config
make
EOF 二、文件系统跑起来之后无法得到Linux shell终端:
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
# <id>:<runlevels>:<action>:<process>
#
#S::respawn:/sbin/getty ttyO0
::respawn:/sbin/getty ttyO0 三、重新生成.config文件:
. 出错现象:
Qt@aplex:~/kernel/linux-3.2.$ make uImage
scripts/kconfig/conf --silentoldconfig Kconfig
*
* Restart config...
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
Cross-compiler tool prefix (CROSS_COMPILE) []
Local version - append to kernel release (LOCALVERSION) []
Automatically append version information to the version string (LOCALVERSION_AUTO) [Y/n/?] y
Kernel compression mode
> . Gzip (KERNEL_GZIP)
. Bzip2 (KERNEL_BZIP2) (NEW)
. LZMA (KERNEL_LZMA)
. XZ (KERNEL_XZ) (NEW)
. LZO (KERNEL_LZO)
choice[-?]:
. 出现问题原因:
cat ~/.bashrc
......
CROSS_COMPILE=arm-linux-gnueabihf-
ARCH=arm
......
. 解决方法:
cat ~/.bashrc
......
export CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH=arm
......
四、tslib编译问题:
. 出错现象:
In function ‘open’,
inlined from ‘main’ at ts_calibrate.c:::
/usr/include/x86_64-linux-gnu/bits/fcntl2.h::: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs arguments
In function ‘open’,
inlined from ‘main’ at ts_calibrate.c:::
/usr/include/x86_64-linux-gnu/bits/fcntl2.h::: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs arguments
make[]: *** [ts_calibrate.o] Error
make[]: Leaving directory `/home/Qt/tslib/tslib/tests'
make: *** [install-recursive] Error
. 解决方法:
http://www.gossamer-threads.com/lists/qmail/users/138200
OK335xS U-boot 编译问题&无Linux shell 问题的更多相关文章
- (转)linux shell单引号、双引号及无引号区别
原文:http://blog.csdn.net/woshizhangliang999/article/details/50132265 3.描述linux shell中单引号.双引号及不加引号的简单区 ...
- Linux就这个范儿 第16章 谁都可以从头再来--从头开始编译一套Linux系统 nsswitch.conf配置文件
Linux就这个范儿 第16章 谁都可以从头再来--从头开始编译一套Linux系统 nsswitch.conf配置文件 朋友们,今天我对你们说,在此时此刻,我们虽然遭受种种困难和挫折,我仍然有一个梦 ...
- Linux Shell常用shell命令
Linux Shell常用shell命令 一.文件.目录操作命令 1.ls命令 功能:显示文件和目录的信息 ls 以默认方式显示当前目录文件列表 ls -a 显示所有文件包括隐藏文件 ls -l 显示 ...
- Linux Shell 笔记
1.查看进程的环境变量 普通:$cat /proc/1642/environ 换行:$cat /proc/1642/environ | tr '\0' '\n' tr的命令格式是tr SET1 SE ...
- LINUX SHELL脚本攻略笔记[速查]
Linux Shell脚本攻略笔记[速查] 资源 shell script run shell script echo printf 环境变量和变量 pgrep shell数学运算 命令状态 文件描述 ...
- Linux shell command学习笔记(一)
Shell的种类有很多种,例如CSH,Bourne Shell,Korn Shell.在现在的大多数Linux发行版中,默认的Shell一般都是Bourne again shell(bash). &l ...
- 初识Linux shell
目录 初识Linux shell Linux 深入探究Linux内核 系统内存管理 交换空间 页面 换出 软件程序管理 Linux中的进程 Linux系统的运行级 硬件设备管理 插入设备驱动代码的方法 ...
- Linux shell脚本编程(一)
Linux shell脚本编程: 守护进程,服务进程:启动?开机时自动启动: 交互式进程:shell应用程序 广义:GUI,CLI GUI: CLI: 词法分析:命令,选项,参数 内建命令: 外部命令 ...
- Linux Shell中单引号、双引号、反引号的区别【转载】
linux shell可以识别4种不同类型的引字符号: 单引号字符' 双引号字符" 反斜杠字符\ 反引号字符` 1. 单引号 ( '' )# grep Susan phonebook Sus ...
随机推荐
- shell 关系运算符
关系运算符 关系运算符只支持数字,不支持字符串,除非字符串的值是数字. 下表列出了常用的关系运算符,假定变量 a 为 10,变量 b 为 20: 运算符 说明 举例 -eq 检测两个数是否相等,相等返 ...
- JavaScript权威指南--脚本化CSS
知识要点 客户端javascript程序员对CSS感兴趣的是因为样式可以通过脚本编程.脚本化css启用了一系列有趣的视觉效果.例如:可以创建动画让文档从右侧“滑入”.创造这些效果的javascript ...
- Lua面向对象 --- 封装
工程结构: Player.lua: Player = {} function Player:new() local self = {} setmetatable(self, {__index = Pl ...
- Python 爬虫-获得大学排名
2017-07-29 23:20:24 主要技术路线:requests+bs4+格式化输出 import requests from bs4 import BeautifulSoup url = 'h ...
- PHP求并集,交集,差集
PHP求并集,交集,差集 一.总结 一句话总结:在php中如果我想要对两个数组进行如并集.交集和差集操作,我们可直接使用php自带的函数来操作如array_merge(),array_intersec ...
- infra 仪表盘效果
private void Gauge2() { // Infragistics.WebUI.UltraWebGauge.UltraGauge ultraGauge2 = //new Infragist ...
- Isotig & cDNA & gene structure & alternative splicing & gene loci & 表达谱
参考:高通量测序相关名词 Isotig 指在转录组de novo测序时,用454平台测序完成后组装出的结果,一个isotig可视为一个转录本. Isogroup 指转录组de novo测序中,用454 ...
- English trip -- VC(情景课)3 D Reading
xu言: 感觉睡眠尽量还是要保证7+小时,才能让自己的脑袋更清醒一些... Read 阅读 My Family My name is Gloria. This is my family . This ...
- spoj Prime Generator
题意:判断ll-rr范围内的质数. 一个个用miller-rabin算法判断 //#pragma comment(linker,"/STACK:1024000000,1024000000&q ...
- python-day7-数字类型的内置方法
#=====>part1:数字类型#掌握:int,float#了解:Long(在python2中才有),complex# num=10# num=int(10)# print(type(num) ...