首页 > 系统服务 > 详细

OK335xS U-boot 编译问题&无Linux shell 问题

时间:2015-08-17 18:53:00      阅读:341      评论:0      收藏:0      [点我收藏+]
/**************************************************************************
 *                OK335xS U-boot 编译问题&无Linux shell 问题
 * 声明:
 *    主要是因为系统之前是由本人师傅做的,他去掉了一些信息,同时由于他本人
 * 目前不在旁边,在参考一些文件的时候出现以下情况。
 * 
 *                               2015-7-17 阴 深圳 南山平山村 曾剑锋
 *************************************************************************/


一、采用官方的制作U-boot(make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm O=am335x am335x_evm)出现如下错误:
    1. 问题:make: *** No rule to make target am335x_evm_config
        1. cat Makefile:
            ......
            MKCONFIG        := $(srctree)/mkconfig
            export MKCONFIG
            ......
            %_config:: outputmakefile
                @$(MKCONFIG) -A $(@:_config=)
            ......
        
        2. cat mkconfig
            if [ \( $# -eq 2 \) -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." >&2
                        exit 1
                fi
        
                set ${line}
                # add default board name if needed
                [ $# = 3 ] && set ${line} ${1}
            fi
    
    2. 问题:生成u-boot.bin  error: bad value (armv5) for -march= switch
        http://arm9home.net/read.php?tid-82914.html
    3. 解决方法:
        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:2345:respawn:/sbin/getty 115200 ttyO0
    0:2345:respawn:/sbin/getty 115200 ttyO0
    

 

OK335xS U-boot 编译问题&无Linux shell 问题

原文:http://www.cnblogs.com/zengjfgit/p/4737102.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!