/**************************************************************************
* 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

最新文章

  1. 酷酷的CSS3三角形运用
  2. JS控制TABLE表格在任意一行下面添加一行(有待完善)
  3. 动态生成tr,并将其下控件的值拼接后传到后台并保存
  4. 解决NetBeans编辑器中文乱码问题
  5. UART to Serial Terminal(转载)
  6. linux/windows下启用和停止VMware后台服务的脚本
  7. mysql 查看存储引擎的状态 show engine innodb status 详解
  8. hello word
  9. CKEditor与CKFinder的配置
  10. TI CC2541 BLE协议栈蓝牙MAC 地址
  11. week 9 scenario testing
  12. Upgrading to Java 8——第二章 Method References(方法引用)
  13. 十一、Android学习笔记_AsyncQueryHandler的应用
  14. 自己动手实现STL:前言
  15. 在C#中用Linq从属性文件中读取键值对Key-Value Pair
  16. UIKit的手风琴菜单,单条展开和多条同时展开
  17. Code Complete阅读笔记(三)
  18. mixer: sql词法分析器设计
  19. python之函数闭包、可迭代对象和迭代器
  20. couldn&#39;t resolve host api.weixin.qq.com

热门文章

  1. shell 跳出循环
  2. Qt5.3.2_CentOS6.4_x86_编程调试环境【勿删,简洁】
  3. 关于React性能优化
  4. springboot 解决 The bean &#39;userRepository&#39;, defined in null, could not be registered. A bean with that name has already been defined in file XXX and overriding is disabled.
  5. LeetCode--226--翻转二叉树
  6. LeetCode--175--组合两个表
  7. 关于vue Unexpected identifier 问题
  8. Leetcode 94
  9. svn出错:directory &#39;xxxx&#39; is out of date
  10. Spring Cloud Edgware之后版本 Zipkin+Kafka整合