洋芋头

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头  发布于  2016-05-08 18:17:00
采纳率 0%
3个问答
20222

OSDRV编译不成功

 
Win764位环境下的Ubuntu 32位虚拟机
交叉编译环境和uclibc、gclibc编译器都安装完整
请问各位大佬报错是什么原因,该如何解决?

~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv$ sudo make OSDRV_CROSS=arm-hisiv100nptl-linux CHIP=hi3518a all SHELL=bash
mkdir /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc -p
mkdir /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/bin/board_uclibc -p
mkdir /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/bin/pc -p
mkdir /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/bin/board_uclibc/hifat -p
---------task [1]        build boot
rm /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06 -rf
tar xzf /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06.tgz -C /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot
find /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06 | xargs touch
make -C /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06 ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- hi3518a_config
make[1]: Entering directory '/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06'
Configuring for hi3518a board...
make[1]: Leaving directory '/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06'
pushd /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06;make ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- -j 20 >/dev/null;popd
~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06 ~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found

dirname: missing operand
Try 'dirname --help' for more information.
bash: line 3: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: line 3: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: line 2: arm-hisiv100nptl-linux-gcc: command not found
bash: line 2: arm-hisiv100nptl-linux-gcc: command not found
make[2]: *** No rule to make target '.depend', needed by '_depend'.  Stop.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: line 2: arm-hisiv100nptl-linux-gcc: command not found
bash: line 2: arm-hisiv100nptl-linux-gcc: command not found
make[2]: *** No rule to make target '.depend', needed by '_depend'.  Stop.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
make[2]: *** [hello_world.o] Error 127
make[1]: *** [examples/standalone] Error 2

make[1]: *** Waiting for unfinished jobs....
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
make[2]: *** [start.o] Error 127
make[1]: *** [arch/arm/cpu/hi3518/start.o] Error 2

In file included from default_image.c:31:0:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from fit_image.c:31:0:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/common/image.c:74:0:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from imximage.c:32:0:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
kwbimage.c: In function ‘kwbimage_verify_header’:
kwbimage.c:350:10: warning: variable ‘calc_exthdrcsum’ set but not used [-Wunused-but-set-variable]
  uint8_t calc_exthdrcsum;
          ^
In file included from kwbimage.c:29:0:
kwbimage.c: At top level:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from mkimage.c:25:0:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv
cp /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/u-boot.bin /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc
cp: cannot stat '/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/u-boot.bin': No such file or directory
Makefile:117: recipe for target 'hiboot' failed
make: *** [hiboot] Error 1
我来回答
回答32个
时间排序
认可量排序

ngswfx

2个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-05-08 18:27:29
认可0
本帖最后由 ngswfx 于 2016-5-8 18:30 编辑

path环境没对,或者你根本就没安装交叉编译环境,toolchain里面安装


编译前,执行下面的,设置临时环境

export PATH=PATH:/opt/hisi-linux/x86-arm/arm-hisiv200-linux/target/bin:/opt/hisi-linux-nptl/arm-hisiv100-linux/target/bin:/opt/hisi-linux/x86-arm/arm-hisiv100-linux/target/bin:/opt/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/hisi-linux-nptl/arm-hisiv100-linux/bin


当然,还要看你自己的目录是不是这些

Eworm001

0个粉丝

0

问答

0

专栏

0

资料

Eworm001 2016-05-08 21:38:28
认可0
sudo 造成的
给文件夹增加普通用户权限,去掉sudo

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头 2016-05-08 21:49:28
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29698&ptid=11252]ngswfx 发表于 2016-5-8 18:27[/url]
path环境没对,或者你根本就没安装交叉编译环境,toolchain里面安装


[/quote]

yyt@ubuntu:~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv$ echo  $PATH
PATH:/opt/hisi-linux/x86-arm/arm-hisiv200-linux/target/bin:/opt/hisi-linux-nptl/arm-hisiv100-linux/target/bin:/opt/hisi-linux/x86-arm/arm-hisiv100-linux/target/bin:/opt/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/hisi-linux-nptl/arm-hisiv100-linux/bin


之前已经按照教程要求吧两种交叉编译环境都弄好了啊,还是这样子

ngswfx

2个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-05-08 22:02:12
认可0
本帖最后由 ngswfx 于 2016-5-8 22:08 编辑

我最开始编译这些东西也是遇到类似问题,每次我都是在某个命令窗体里面临时指定当前环境。

这种方法,是临时的,只要关闭命令窗体,再次打开,就失效。你可以网上查一下,看怎么搞成root用户的。

你看你的交叉编译器在opt哪个目录里面,然后查找arm-hisiv100nptl-linux-gcc的目录,添加到path中去,只要到了命令窗体,输入arm-hisiv100nptl-linux-gcc,有反映了再开始编译(不能提示命令找不到),才行

对了还有一点要注意,直接在u-boot-2010.06目录下,执行sudo chmod -R 777 ./*  将下级所有目录以及文件权限调整一下,这个好像也有必要

通常我只要遇到编译异常,通常就做chmod动作,linux就是这些权限比较烦人

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头 2016-05-08 22:46:33
认可0
本帖最后由 洋芋头 于 2016-5-8 22:52 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=29704&ptid=11252]ngswfx 发表于 2016-5-8 22:02[/url]
我最开始编译这些东西也是遇到类似问题,每次我都是在某个命令窗体里面临时指定当前环境。

这种方法,是 ...[/quote]

非常感谢回复!

我这里用ctrl是可以直接补全arm-hisiv100nptl-linux-gcc 和arm-hisiv200-linux的,我之前搞过一次如果这个编译环境没设置好的话最初的make指令是无法执行的

增加了权限修改了utool文件夹权限后还是不可以……

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头 2016-05-08 23:10:44
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29702&ptid=11252]Eworm001 发表于 2016-5-8 21:38[/url]
sudo 造成的
给文件夹增加普通用户权限,去掉sudo[/quote]

谢谢!我把整个文件夹都加上普通用户权限后还是报错不过报错的内容变了,具体见下

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头 2016-05-08 23:29:06
认可0
yyt@ubuntu:~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06$ sudo chmod -R 777 ./*
yyt@ubuntu:~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv$ sudo chmod -R 777 ./*
yyt@ubuntu:~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv$ make OSDRV_CROSS=arm-hisiv100nptl-linux CHIP=hi3518a all
mkdir /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc -p
mkdir /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/bin/board_uclibc -p
mkdir /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/bin/pc -p
mkdir /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/bin/board_uclibc/hifat -p
---------task [1]        build boot
rm /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06 -rf
tar xzf /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06.tgz -C /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot
find /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06 | xargs touch
make -C /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06 ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- hi3518a_config
make[1]: Entering directory '/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06'
Configuring for hi3518a board...
make[1]: Leaving directory '/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06'
pushd /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06;make ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- -j 20 >/dev/null;popd
~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06 ~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv
In file included from default_image.c:31:0:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from fit_image.c:31:0:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/common/image.c:74:0:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from imximage.c:32:0:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
kwbimage.c: In function ‘kwbimage_verify_header’:
kwbimage.c:350:10: warning: variable ‘calc_exthdrcsum’ set but not used [-Wunused-but-set-variable]
  uint8_t calc_exthdrcsum;
          ^
In file included from kwbimage.c:29:0:
kwbimage.c: At top level:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from mkimage.c:25:0:
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
eth.c:510: warning: #warning Ethernet driver is deprecated. Please update to use CONFIG_NET_MULTI
cmd_usb.c: In function 'do_usb':
cmd_usb.c:538: warning: label 'try_again' defined but not used
~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv
cp /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06/u-boot.bin /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc
cp /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/tools/pc_tools/uboot_tools/mkboot.sh /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc
cp /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/tools/pc_tools/uboot_tools/reg_info_hi3518a.bin /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc
chmod 777 /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc/mkboot.sh
pushd /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc;./mkboot.sh reg_info_hi3518a.bin u-boot-200MHZ.bin;popd
~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc ~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv
64+0 records in
64+0 records out
64 bytes copied, 0.000829362 s, 77.2 kB/s
0+1 records in
1+0 records out
4096 bytes (4.1 kB, 4.0 KiB) copied, 0.00743238 s, 551 kB/s
206284+0 records in
206284+0 records out
206284 bytes (206 kB, 201 KiB) copied, 0.728373 s, 283 kB/s
~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv
rm /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc/u-boot.bin
rm /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc/mkboot.sh
rm /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc/reg_info_hi3518a.bin
---------task [2] build kernel
rm /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y -rf
tar xzf /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y.tgz -C /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/
find /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y | xargs touch
make -C /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- hi3518a_full_defconfig
make[1]: Entering directory '/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y'
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory '/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y'
pushd /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y;make ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- -j 20 >/dev/null;popd
~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y ~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
make[2]: *** [kernel/timeconst.h] Error 255
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [kernel] Error 2
make[1]: *** Waiting for unfinished jobs....
drivers/mmc/core/bus.c:123: warning: 'mmc_bus_pm_suspend' defined but not used
drivers/mmc/core/bus.c:135: warning: 'mmc_bus_pm_resume' defined but not used
net/ipv4/tcp.c: In function 'tcp_nuke_addr':
net/ipv4/tcp.c:3480: warning: 'in' may be used uninitialized in this function
net/ipv4/tcp.c:3482: warning: 'in6' may be used uninitialized in this function
drivers/staging/vt6656/main_usb.c: In function 'device_ioctl':
drivers/staging/vt6656/main_usb.c:2072: warning: the frame size of 1288 bytes is larger than 1024 bytes
In file included from drivers/usb/host/ehci-hcd.c:124:
drivers/usb/host/ehci.h:752: warning: function declaration isn't a prototype
drivers/usb/host/ehci-hcd.c:454: warning: 'ehci_port_power' defined but not used
net/mac80211/util.c: In function 'ieee80211_reconfig':
net/mac80211/util.c:1279: warning: label 'wake_up' defined but not used
drivers/staging/vt6656/iwctl.c: In function 'iwctl_giwaplist':
drivers/staging/vt6656/iwctl.c:787: warning: the frame size of 1288 bytes is larger than 1024 bytes
~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv
pushd /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y;make ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- uImage -j 20 >/dev/null;popd
~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y ~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
make[2]: *** [kernel/timeconst.h] Error 255
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [kernel] Error 2
make[1]: *** Waiting for unfinished jobs....
~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv
cp /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y/arch/arm/boot/uImage /home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/pub/image_uclibc/uImage
cp: cannot stat '/home/yyt/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y/arch/arm/boot/uImage': No such file or directory
Makefile:139: recipe for target 'hikernel' failed
make: *** [hikernel] Error 1

ngswfx

2个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-05-08 23:40:23
认可0
本帖最后由 ngswfx 于 2016-5-8 23:44 编辑

这基本上OK了,uboot应该已经生成了,呵呵,你别用这个全部编译了,一个个编译,编译kernel 注意要先clean ,3个动作,先clean 然后menuconfig 最后才是编译

参考下面的3535 文档里面有小字,这个很重要,否则容易过不去
make ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- clean
#cp arch/arm/configs/hi3535_mini_defconfig .config
cp arch/arm/configs/hi3535_full_defconfig .config
make ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- menuconfig
make ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- uImage

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头 2016-05-09 21:50:11
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29710&ptid=11252]ngswfx 发表于 2016-5-8 23:40[/url]
这基本上OK了,uboot应该已经生成了,呵呵,你别用这个全部编译了,一个个编译,编译kernel 注意要先clea ...[/quote]

谢谢!编译生成的uboot是在
/Hi3518_SDK_V1.0.A.0/osdrv/uboot/u-boot-2010.06$
上的u-boot文件么?

ngswfx

2个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-05-09 22:01:10
认可0
本帖最后由 ngswfx 于 2016-5-9 22:02 编辑

对,是u-boot.bin,不是那个长的像执行程序的(还有一个叫u-boot),你可以先把u-boot.bin这个文件删了,再搞一次,如果又出来了,就肯定是新的了


大小通常在100K-300K之间

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头 2016-05-09 22:25:11
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29710&ptid=11252]ngswfx 发表于 2016-5-8 23:40[/url]
这基本上OK了,uboot应该已经生成了,呵呵,你别用这个全部编译了,一个个编译,编译kernel 注意要先clea ...[/quote]

yyt@ubuntu:~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y$ make ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- clean
  CLEAN   .
  CLEAN   arch/arm/kernel
  CLEAN   drivers/tty/vt
  CLEAN   kernel
  CLEAN   lib
  CLEAN   usr
  CLEAN   .tmp_versions
yyt@ubuntu:~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y$ cp arch/arm/configs/hi3535_full_defconfig .config
cp: cannot stat 'arch/arm/configs/hi3535_full_defconfig': No such file or directory

查无此文件?

ngswfx

2个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-05-10 00:56:10
认可0
本帖最后由 ngswfx 于 2016-5-10 00:57 编辑

老兄你别照搬我给你的东西呀,你看看自己的目录下3518是哪个配置

我给你的那个,目录是3535的

就在:~/YY-His/Hi3518_SDK_V1.0.A.0/osdrv/kernel/linux-3.0.y/arch/arm/configs目录下

ngswfx

2个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-05-10 01:00:20
认可0
cp arch/arm/configs/hi3535_full_defconfig .config

这一行,其实是把系统保存的默认用于menuconfig文件拷贝过来,通常默认配置有2个一个full的,一个mini的。

full编译的内核大,功能全,3-4M   mini的小 1.5-2M左右,3518没搞过,估计差不多。你看看你3518对应目录下,有没有这个2个文件,很容易找的,海斯的东西,名称可以看出来

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头 2016-05-10 21:40:07
认可0
本帖最后由 洋芋头 于 2016-5-10 22:41 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=29812&ptid=11252]ngswfx 发表于 2016-5-10 00:56[/url]
老兄你别照搬我给你的东西呀,你看看自己的目录下3518是哪个配置

我给你的那个,目录是3535的
[/quote]

谢谢!不过是在不好意思,之前提供设备的人弄错了设备型号,是3516a的……

现在按照安装好交叉编译环境,确定可以使用arm-hisiv300-linux 和arm-hisiv400-linux编译
shell已经改成bash
SDK权限均已改为普通账户可执行的前提下还是报错并且直接说u-boot无法编译


稍等一下,发现交叉编译环境又没了我再试试看……

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头 2016-05-10 22:42:04
认可0
本帖最后由 洋芋头 于 2016-5-10 22:56 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=29813&ptid=11252]ngswfx 发表于 2016-5-10 01:00[/url]
cp arch/arm/configs/hi3535_full_defconfig .config

这一行,其实是把系统保存的默认用于menuconfig文 ...[/quote]

和之前3518一样报错但生成uboot.bin了

yyt@ubuntu:~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv$  make OSDRV_CROSS=arm-hisiv300-linux all SHELL=bash
mkdir /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc -p
mkdir /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/bin/board_uclibc -p
mkdir /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/bin/pc -p
mkdir /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/bin/board_uclibc/hifat -p
---------task [1]        build boot
rm /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06 -rf
tar xzf /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06.tgz -C /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot
find /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06 | xargs touch
make -C /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06 ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- hi3516a_config
make[1]: Entering directory '/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06'
Configuring for hi3516a board...
make[1]: Leaving directory '/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06'
pushd /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06;make ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- -j 20 >/dev/null;popd
~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06 ~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv
make[2]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
In file included from default_image.c:31:0:
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from fit_image.c:31:0:
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/common/image.c:74:0:
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from imximage.c:32:0:
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
kwbimage.c: In function ‘kwbimage_verify_header’:
kwbimage.c:350:10: warning: variable ‘calc_exthdrcsum’ set but not used [-Wunused-but-set-variable]
  uint8_t calc_exthdrcsum;
          ^
In file included from kwbimage.c:29:0:
kwbimage.c: At top level:
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
In file included from mkimage.c:25:0:
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:547:12: warning: inline function ‘fit_parse_subimage’ declared but never defined
inline int fit_parse_subimage (const char *spec, ulong addr_curr,
            ^
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/include/image.h:545:12: warning: inline function ‘fit_parse_conf’ declared but never defined
inline int fit_parse_conf (const char *spec, ulong addr_curr,
            ^
~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv
cp /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/uboot/u-boot-2010.06/u-boot.bin /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc
cp /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/tools/pc/uboot_tools/mkboot.sh /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc
cp /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/tools/pc/uboot_tools/reg_info.bin /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc
cp /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/tools/pc/uboot_tools/reg_info_hi3516d.bin /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc
chmod 777 /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc/mkboot.sh
pushd /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc;./mkboot.sh reg_info.bin u-boot-hi3516a.bin;popd
~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc ~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv
64+0 records in
64+0 records out
64 bytes copied, 0.000722148 s, 88.6 kB/s
0+1 records in
1+0 records out
4096 bytes (4.1 kB, 4.0 KiB) copied, 0.00053521 s, 7.7 MB/s
243784+0 records in
243784+0 records out
243784 bytes (244 kB, 238 KiB) copied, 1.62502 s, 150 kB/s
~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv
pushd /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc;./mkboot.sh reg_info_hi3516d.bin u-boot-hi3516d.bin;popd
~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc ~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv
64+0 records in
64+0 records out
64 bytes copied, 0.0132635 s, 4.8 kB/s
0+1 records in
1+0 records out
4096 bytes (4.1 kB, 4.0 KiB) copied, 0.000239626 s, 17.1 MB/s
243784+0 records in
243784+0 records out
243784 bytes (244 kB, 238 KiB) copied, 1.05176 s, 232 kB/s
~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv
rm /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc/u-boot.bin
rm /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc/mkboot.sh
rm /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc/reg_info.bin
rm /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc/reg_info_hi3516d.bin
---------task [2] build kernel
rm /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y -rf
tar xzf /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y.tgz -C /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/
find /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y | xargs touch
make -C /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- hi3516a_full_defconfig
make[1]: Entering directory '/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y'
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory '/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y'
pushd /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y;make ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- -j 20 >/dev/null;popd
~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y ~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv

WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv
pushd /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y;\
        make ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- uImage -j 20 >/dev/null;popd
~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y ~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv
"mkimage" command not found - U-Boot images will not be built
make[2]: *** [arch/arm/boot/uImage] Error 1
make[1]: *** [uImage] Error 2
~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv
cp /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y/arch/arm/boot/uImage /home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/pub/image_uclibc/uImage_hi3516a
cp: cannot stat '/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y/arch/arm/boot/uImage': No such file or directory
Makefile:120: recipe for target 'hikernel' failed
make: *** [hikernel] Error 1

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头 2016-05-10 22:55:20
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29710&ptid=11252]ngswfx 发表于 2016-5-8 23:40[/url]
这基本上OK了,uboot应该已经生成了,呵呵,你别用这个全部编译了,一个个编译,编译kernel 注意要先clea ...[/quote]

整个uboot的编译和前面类似也是报错后生成了uboot.bin
不过你这句
make ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- clean
在之前的3518和现在的3516都没有类似的
改成

yyt@ubuntu:~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y$ make ARCH=arm CROSS_COMPILE=arm-hisiv300nptl-linux- clean
make: arm-hisiv300nptl-linux-gcc: Command not found
  CLEAN   .
  CLEAN   arch/arm/kernel
  CLEAN   drivers/tty/vt
  CLEAN   kernel
  CLEAN   lib
  CLEAN   usr
  CLEAN   arch/arm/boot/compressed
  CLEAN   arch/arm/boot
  CLEAN   .tmp_versions
  CLEAN   vmlinux System.map .tmp_kallsyms2.S .tmp_kallsyms1.o .tmp_kallsyms2.o .tmp_kallsyms1.S .tmp_vmlinux1 .tmp_vmlinux2 .tmp_System.map
yyt@ubuntu:~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y$ cp arch/arm/configs/hi3516a_full_defconfig  .config
yyt@ubuntu:~/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y$ make ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- menuconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y/scripts/kconfig/Makefile:190: recipe for target 'scripts/kconfig/dochecklxdialog' failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:492: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

ngswfx

2个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-05-10 23:00:26
认可0
本帖最后由 ngswfx 于 2016-5-10 23:06 编辑

到SDK目录,PC工具里面找mkimage,找到,直接拷贝到PC上的bin目录下

就差最后对BIN的打包动作了


把海思的文档,尤其那个linux移植,Uboot移植,摸透,不放过任何一句。:lol

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头 2016-05-11 00:19:35
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=29865&ptid=11252]ngswfx 发表于 2016-5-10 23:00[/url]
到SDK目录,PC工具里面找mkimage,找到,直接拷贝到PC上的bin目录下

就差最后对BIN的打包动作了
[/quote]

先问个弱智问题,是不是OSDRV完整编译=uboot编译+kernel编译?

ngswfx

2个粉丝

55

问答

1

专栏

40

资料

ngswfx 2016-05-11 00:56:10
认可0
本帖最后由 ngswfx 于 2016-5-11 01:09 编辑

对,顶多再来个rootfs

不用刻意非要弄那个全局,我一次都没弄过全局的,每次都是单独搞,通常搞得比较多的其实是rootfs,因为这个里面才是放执行程序的地方。另外2个主要是环境,和硬件相关,除非功能特殊,必须要要在Uboot或者kernel里面搞。

通常U-boot搞自动升级需要弄。

Kernel牵扯到硬件驱动。

其实硬件驱动也可以弄成KO模块,放到rootfs里面,一样用。


Uboot或者kernel一旦搞好,不换硬件,不用动。

你需要仔细研究文档,尤其那个文档里面的小型化。就是把Uboot搞到100K左右,把kernel搞到1.5M左右。然后就是写flash的。怎么分配空间。logo,配置等等。

洋芋头

1个粉丝

3

问答

0

专栏

0

资料

洋芋头 2016-05-11 01:36:03
认可0
本帖最后由 洋芋头 于 2016-5-11 01:39 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=29872&ptid=11252]ngswfx 发表于 2016-5-11 00:56[/url]
对,顶多再来个rootfs

不用刻意非要弄那个全局,我一次都没弄过全局的,每次都是单独搞,通常搞得比较多 ...[/quote]

谢大佬!大佬这么晚都不睡觉吗?

看了一晚上文档感觉有点乱,我之前没什么基础还望先不用讲进阶啊哈哈,可以加个QQ讨论一下吗?

1.最终目的是吧
   U-boot 文件: u-boot-hi3516a.bin
􀁺 内核文件: uImage_hi3516a
􀁺 根文件系统: rootfs_hi3516a_256k.jffs2、rootfs_hi3516a_2k_4bit.yaffs2 等
这三块烧录到IPC里吗?


2 单独编译内核文件时的报错:

make ARCH=arm CROSS_COMPILE=arm-hisiv300-linux- menuconfig
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
/home/yyt/YY-His/Hi3516A_SDK_V1.0.3.0/osdrv/opensource/kernel/linux-3.4.y/scripts/kconfig/Makefile:190: recipe for target 'scripts/kconfig/dochecklxdialog' failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:492: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

mkimage已经用sudo copy到bin里面了
加载中···
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

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

Markdown 语法

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

举报类型

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

详细说明

易百纳技术社区