/**************************************************************************
* 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 问题的更多相关文章

  1. (转)linux shell单引号、双引号及无引号区别

    原文:http://blog.csdn.net/woshizhangliang999/article/details/50132265 3.描述linux shell中单引号.双引号及不加引号的简单区 ...

  2. Linux就这个范儿 第16章 谁都可以从头再来--从头开始编译一套Linux系统 nsswitch.conf配置文件

    Linux就这个范儿 第16章 谁都可以从头再来--从头开始编译一套Linux系统  nsswitch.conf配置文件 朋友们,今天我对你们说,在此时此刻,我们虽然遭受种种困难和挫折,我仍然有一个梦 ...

  3. Linux Shell常用shell命令

    Linux Shell常用shell命令 一.文件.目录操作命令 1.ls命令 功能:显示文件和目录的信息 ls 以默认方式显示当前目录文件列表 ls -a 显示所有文件包括隐藏文件 ls -l 显示 ...

  4. Linux Shell 笔记

    1.查看进程的环境变量 普通:$cat /proc/1642/environ  换行:$cat /proc/1642/environ | tr '\0' '\n' tr的命令格式是tr SET1 SE ...

  5. LINUX SHELL脚本攻略笔记[速查]

    Linux Shell脚本攻略笔记[速查] 资源 shell script run shell script echo printf 环境变量和变量 pgrep shell数学运算 命令状态 文件描述 ...

  6. Linux shell command学习笔记(一)

    Shell的种类有很多种,例如CSH,Bourne Shell,Korn Shell.在现在的大多数Linux发行版中,默认的Shell一般都是Bourne again shell(bash). &l ...

  7. 初识Linux shell

    目录 初识Linux shell Linux 深入探究Linux内核 系统内存管理 交换空间 页面 换出 软件程序管理 Linux中的进程 Linux系统的运行级 硬件设备管理 插入设备驱动代码的方法 ...

  8. Linux shell脚本编程(一)

    Linux shell脚本编程: 守护进程,服务进程:启动?开机时自动启动: 交互式进程:shell应用程序 广义:GUI,CLI GUI: CLI: 词法分析:命令,选项,参数 内建命令: 外部命令 ...

  9. Linux Shell中单引号、双引号、反引号的区别【转载】

    linux shell可以识别4种不同类型的引字符号: 单引号字符' 双引号字符" 反斜杠字符\ 反引号字符` 1. 单引号 ( '' )# grep Susan phonebook Sus ...

随机推荐

  1. 装B必备之 快捷键配置

    作为一个程序员 所有程序都用快捷来这是装B必备的无形装B 最为致命.... 开始搞起 第一步配置环境变量 在系统D盘新建一个文件夹  D:\cache; 然后把这个路径 配置上 D:\cache; 最 ...

  2. jstl中<c:forEach>的用法

    在JSP的开发中,迭代是经常要使用到的操作.例如,逐行的显示查询的结果等.在早期的JSP中,通常使用Scriptlets来实现Iterator或者Enumeration对象的迭代输出.现在,通过JST ...

  3. C#判断一个字符串是否全部为空格的一个简单方法

    string nickName = " "; if (nickName.Trim() == string.Empty) { } else { }

  4. 周立功USBCAN-II 上位机开发(MFC)

    使用的USB转CAN的设备是周立功的USBCAN-II,在购买的时候,会有上位机二次开发的库文件.例程和API文档等材料,可以参考. 1.库函数的调用 首先,把库函数文件都放在工作目录下.库函数文件总 ...

  5. hdu 6299 Balanced Sequence (括号序列,贪心)

    大意: 记$f(t)$表示字符串$t$的最长括号匹配子序列, 给定n个括号序列, 求它们重排后的最大f(t). 首先可以注意到一个括号序列中已经匹配的可以直接消去, 一定不会影响最优解. 那么这样最终 ...

  6. Hololens 开发环境配置(转)

    转自 Vangos Pterneas, 4 Apr 2016 CPOL 5.00 (1 vote) vote 1vote 2vote 3vote 4vote 5 The past few days h ...

  7. 原创-整理了下常用的js数组 、对象、数字、字符串的操作方法

    终于整理好了...主要是一些常用的函数,包含es6和es5的所有常用的,吧一些不常用的全部砍掉,省的大家看的费事.发现这个到博客上面有点乱.给个百度云地址:https://pan.baidu.com/ ...

  8. HDU-3631 Shortest Path (floyd)

    Description When YY was a boy and LMY was a girl, they trained for NOI (National Olympiad in Informa ...

  9. Oracle性能诊断艺术-读书笔记(执行计划中显示 Starts, E-Rows, REM A-Rows and A-Time)等)

    必须以 ' runstats_last '的方式查看执行计划哦! 操作一 hint  /*+ gather_plan_statistics */  : /* 添加 hint   /*+ gather_ ...

  10. dubbo管理控制台搭建

    1. 从网上下载dubbo管理控制台:dubbo-admin-2.5.4.war 2. 下载tomcat7,解压缩 3. 将tomcat7 webapps/ROOT的文件全部删除,然后把dubbo-a ...