ysf

ysf

0个粉丝

23

问答

0

专栏

0

资料

ysf  发布于  2016-08-12 09:33:28
采纳率 0%
23个问答
5605

【已解决】在配置内核文件时出现

 
本帖最后由 ysf 于 2016-8-12 15:33 编辑

在配置内核文件时输入命令cd kernel/linux-3.4.y
                                         cp arch/arm/configs/hi3516a_full_defconfig .config
                                          make ARCH=arm CROSS_COMPILE= arm-hisiXXX-linux- menuconfig
   然后提示错误为:make[1]: *** No rule to make target `arm-hisiv400-linux-'.  Stop.
                               make: *** [arm-hisiv400-linux-] Error 2
哪位大神懂得  求助。。。
        
我来回答
回答14个
时间排序
认可量排序

persona

0个粉丝

2

问答

0

专栏

0

资料

persona 2016-08-12 10:01:08
认可0
交叉编译工具没装

ysf

0个粉丝

23

问答

0

专栏

0

资料

ysf 2016-08-12 10:04:26
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=35974&ptid=12277]persona 发表于 2016-8-12 10:01[/url]
交叉编译工具没装[/quote]

这个我安装过了啊、、在环境变量里面都有其路径  还是不行

ysf

0个粉丝

23

问答

0

专栏

0

资料

ysf 2016-08-12 10:08:46
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=35974&ptid=12277]persona 发表于 2016-8-12 10:01[/url]
交叉编译工具没装[/quote]

`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-addr2line' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-addr2line'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-ar' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-ar'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-as' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-as'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-c++' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-c++'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-c++filt' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-c++filt'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-cpp' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-cpp'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-elfedit' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-elfedit'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-g++' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-g++'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-gcc' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-gcc'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-gcc-4.8.3' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-gcc-4.8.3'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-gcc-ar' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-gcc-ar'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-gcc-nm' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-gcc-nm'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-gcc-ranlib' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-gcc-ranlib'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-gcov' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-gcov'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-gdb' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-gdb'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-gprof' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-gprof'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-ld' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-ld'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-ld.bfd' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-ld.bfd'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-nm' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-nm'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-objcopy' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-objcopy'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-objdump' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-objdump'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-ranlib' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-ranlib'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-readelf' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-readelf'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-size' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-size'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-strings' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-strings'
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-strip' -> `/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/arm-hisiv300-linux-uclibcgnueabi-strip'
export path /opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin
这是我安装交叉编译工具的信息、、帮看看是不是有问题?

kg123456

0个粉丝

14

问答

0

专栏

3

资料

kg123456 2016-08-12 13:58:09
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=35976&ptid=12277]ysf 发表于 2016-8-12 10:08[/url]
`/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin/arm-hisiv300-linux-addr2line' -> `/opt/hisi ...[/quote]

查看arm-hisiv400-linux-gcc -v    先看下当前账户安装好了没

ysf

0个粉丝

23

问答

0

专栏

0

资料

ysf 2016-08-12 14:35:05
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=35991&ptid=12277]kg123456 发表于 2016-8-12 13:58[/url]
查看arm-hisiv400-linux-gcc -v    先看下当前账户安装好了没[/quote]

[root@localhost linux-3.4.y]# arm-hisiv300-linux-gcc -v
Using built-in specs.
COLLECT_GCC=arm-hisiv300-linux-gcc
COLLECT_LTO_WRAPPER=/opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/../libexec/gcc/arm-hisiv300-linux-uclibcgnueabi/4.8.3/lto-wrapper
Target: arm-hisiv300-linux-uclibcgnueabi
Configured with: '../gcc~linaro-4.8-2013.12/configure' --host=i386-redhat-linux --build=i386-redhat-linux --target=arm-hisiv300-linux-uclibcgnueabi --prefix=/home/sying/wucaiyuan_toolchain/v300/v300uclibc_linaro_gcc4.8/install/arm-hisiv300-linux --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-arch=armv5te --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-lto --enable-symvers=gnu --enable-__cxa_atexit --enable-nls --enable-clocale=gnu --enable-extra-hisi-multilibs --with-sysroot=/home/sying/wucaiyuan_toolchain/v300/v300uclibc_linaro_gcc4.8/install/arm-hisiv300-linux/target --with-build-sysroot=/home/sying/wucaiyuan_toolchain/v300/v300uclibc_linaro_gcc4.8/install/arm-hisiv300-linux/target --with-gmp=/home/sying/wucaiyuan_toolchain/v300/v300uclibc_linaro_gcc4.8/install/host_lib --with-mpfr=/home/sying/wucaiyuan_toolchain/v300/v300uclibc_linaro_gcc4.8/install/host_lib --with-mpc=/home/sying/wucaiyuan_toolchain/v300/v300uclibc_linaro_gcc4.8/install/host_lib --with-ppl=/home/sying/wucaiyuan_toolchain/v300/v300uclibc_linaro_gcc4.8/install/host_lib --with-cloog=/home/sying/wucaiyuan_toolchain/v300/v300uclibc_linaro_gcc4.8/install/host_lib --with-libelf=/home/sying/wucaiyuan_toolchain/v300/v300uclibc_linaro_gcc4.8/install/host_lib --enable-libgomp --disable-libitm --enable-poison-system-directories --with-libelf=/home/sying/wucaiyuan_toolchain/v300/v300uclibc_linaro_gcc4.8/install/host_lib --with-pkgversion=Hisilicon_v300 --with-bugurl=http://www.hisilicon.com/cn/service/claim.html
Thread model: posix
gcc version 4.8.3 20131202 (prerelease) (Hisilicon_v300)
看了是这个结果,

M_chenyang

1个粉丝

14

问答

0

专栏

0

资料

M_chenyang 2016-08-12 14:58:20
认可0
你只安装了arm-hisiv300-linux-gcc 没有安装arm-hisiv400-linux-gcc

ysf

0个粉丝

23

问答

0

专栏

0

资料

ysf 2016-08-12 15:01:29
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=35996&ptid=12277]M_chenyang 发表于 2016-8-12 14:58[/url]
你只安装了arm-hisiv300-linux-gcc 没有安装arm-hisiv400-linux-gcc[/quote]

arm-hisiv400-linux-gcc这个我也安装了,都安装了
[root@localhost linux-3.4.y]# arm-hisiv400-linux-gcc -v
Using built-in specs.
COLLECT_GCC=arm-hisiv400-linux-gcc
COLLECT_LTO_WRAPPER=/opt/hisi-linux/x86-arm/arm-hisiv400-linux/bin/../libexec/gcc/arm-hisiv400-linux-gnueabi/4.8.3/lto-wrapper
Target: arm-hisiv400-linux-gnueabi
Configured with: '../gcc~linaro-4.8-2013.12/configure' --host=i386-redhat-linux --build=i386-redhat-linux --target=arm-hisiv400-linux-gnueabi --prefix=/home/sying/wucaiyuan_toolchain/v400/glibc_gcc4.8_linaro_toolchain/install/arm-hisiv400-linux --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-arch=armv5te --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-lto --enable-symvers=gnu --enable-__cxa_atexit --enable-nls --enable-clocale=gnu --enable-extra-hisi-multilibs --with-sysroot=/home/sying/wucaiyuan_toolchain/v400/glibc_gcc4.8_linaro_toolchain/install/arm-hisiv400-linux/target --with-build-sysroot=/home/sying/wucaiyuan_toolchain/v400/glibc_gcc4.8_linaro_toolchain/install/arm-hisiv400-linux/target --with-gmp=/home/sying/wucaiyuan_toolchain/v400/glibc_gcc4.8_linaro_toolchain/install/host_lib --with-mpfr=/home/sying/wucaiyuan_toolchain/v400/glibc_gcc4.8_linaro_toolchain/install/host_lib --with-mpc=/home/sying/wucaiyuan_toolchain/v400/glibc_gcc4.8_linaro_toolchain/install/host_lib --with-ppl=/home/sying/wucaiyuan_toolchain/v400/glibc_gcc4.8_linaro_toolchain/install/host_lib --with-cloog=/home/sying/wucaiyuan_toolchain/v400/glibc_gcc4.8_linaro_toolchain/install/host_lib --with-libelf=/home/sying/wucaiyuan_toolchain/v400/glibc_gcc4.8_linaro_toolchain/install/host_lib --enable-libgomp --disable-libitm --enable-poison-system-directories --with-libelf=/home/sying/wucaiyuan_toolchain/v400/glibc_gcc4.8_linaro_toolchain/install/host_lib --with-pkgversion=Hisilicon_v400 --with-bugurl=http://www.hisilicon.com/cn/service/claim.html
Thread model: posix
gcc version 4.8.3 20131202 (prerelease) (Hisilicon_v400)
我的这个问题到底是什么原因

枫叶尚卿

0个粉丝

6

问答

0

专栏

0

资料

枫叶尚卿 2016-08-12 15:11:11
认可0
看看 /etc/profile 中是否有你这个编译器,若是没有就添加进去,然后 source /etc/profile

baboe

0个粉丝

8

问答

0

专栏

1

资料

baboe 2016-08-12 15:15:43
认可0
你的
CROSS_COMPILE= arm-hisiXXX-linux-
等号后面多了空白

ysf

0个粉丝

23

问答

0

专栏

0

资料

ysf 2016-08-12 15:17:37
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=36001&ptid=12277]baboe 发表于 2016-8-12 15:15[/url]
你的
CROSS_COMPILE= arm-hisiXXX-linux-
等号后面多了空白[/quote]

[root@localhost linux-3.4.y]# make ARCH=arm CROSS_COMPILE= arm-hisi300-linux- menuconfig
make[1]: *** No rule to make target `arm-hisi300-linux-'.  Stop.
make: *** [arm-hisi300-linux-] Error 2
[root@localhost linux-3.4.y]#
没有空白也是错误的额:Q

ysf

0个粉丝

23

问答

0

专栏

0

资料

ysf 2016-08-12 15:21:44
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=36000&ptid=12277]枫叶尚卿 发表于 2016-8-12 15:11[/url]
看看 /etc/profile 中是否有你这个编译器,若是没有就添加进去,然后 source /etc/profile[/quote]

哥,我看了里面有啊
pathmunge () {
    case ":${PATH}:" in
        *:"$1":*)
            ;;
        *)
            if [ "$2" = "after" ] ; then
                PATH=$PATH:$1
            else
                PATH=$1:$PATH
            fi
    esac
}


if [ -x /usr/bin/id ]; then
    if [ -z "$EUID" ]; then
        # ksh workaround
        EUID=`id -u`
        UID=`id -ru`
    fi
    USER="`id -un`"
    LOGNAME=$USER
    MAIL="/var/spool/mail/$USER"
fi

# Path manipulation
if [ "$EUID" = "0" ]; then
    pathmunge /sbin
    pathmunge /usr/sbin
    pathmunge /usr/local/sbin
else
    pathmunge /usr/local/sbin after
    pathmunge /usr/sbin after
    pathmunge /sbin after
fi

HOSTNAME=`/bin/hostname 2>/dev/null`
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; then
    export HISTCONTROL=ignoreboth
else
    export HISTCONTROL=ignoredups
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL

# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
    umask 002
else
    umask 022
fi

for i in /etc/profile.d/*.sh ; do
    if [ -r "$i" ]; then
        if [ "${-#*i}" != "$-" ]; then
            . "$i"
        else
            . "$i" >/dev/null 2>&1
        fi
    fi
done

unset i
unset pathmunge

# Fri Aug  5 03:14:37 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Fri Aug  5 03:15:35 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Fri Aug  5 05:13:18 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Fri Aug  5 05:15:35 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Fri Aug  5 06:07:22 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Fri Aug  5 06:27:18 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Fri Aug  5 06:49:46 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Fri Aug  5 11:13:10 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Mon Aug  8 01:03:39 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Mon Aug  8 03:32:16 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Tue Aug  9 06:24:18 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Tue Aug  9 06:26:38 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
export PATH="/opt/hisi-linux/x86-arm/arm-hisiv400-linux/target/bin:$PATH"
#


# Thu Aug 11 05:09:58 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Thu Aug 11 05:55:50 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Thu Aug 11 23:20:31 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
#


# Thu Aug 11 23:22:06 PDT 2016
# Hisilicon Linux, Cross-Toolchain PATH
export PATH="/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin:$PATH"
#

baboe

0个粉丝

8

问答

0

专栏

1

资料

baboe 2016-08-12 15:22:49
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=36002&ptid=12277]ysf 发表于 2016-8-12 15:17[/url]
[root@localhost linux-3.4.y]# make ARCH=arm CROSS_COMPILE= arm-hisi300-linux- menuconfig
make[1]: ...[/quote]

在我看来
你的 CROSS_COMPILE= arm-hisi300-linux-
"CROSS_COMPILE=" 和 "arm-hisi300-linux-" 有空白啊

你复制下面的去试试
[code]make ARCH=arm CROSS_COMPILE=arm-hisi300-linux- menuconfig[/code]

ysf

0个粉丝

23

问答

0

专栏

0

资料

ysf 2016-08-12 15:27:19
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=36004&ptid=12277]baboe 发表于 2016-8-12 15:22[/url]
在我看来
你的 CROSS_COMPILE= arm-hisi300-linux-
"CROSS_COMPILE=" 和 "arm-hisi300-linux-" 有空白 ...[/quote]

好的 哥、谢谢了

ysf

0个粉丝

23

问答

0

专栏

0

资料

ysf 2016-08-12 15:33:28
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=36004&ptid=12277]baboe 发表于 2016-8-12 15:22[/url]
在我看来
你的 CROSS_COMPILE= arm-hisi300-linux-
"CROSS_COMPILE=" 和 "arm-hisi300-linux-" 有空白 ...[/quote]

可以了、、哥多谢啦
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区