Notice: wp_deregister_script的调用方法不正确。脚本和样式应在wp_enqueue_scriptsadmin_enqueue_scriptslogin_enqueue_scripts钩子之后再加入加载队列(enqueue)或注册(register)。 This notice was triggered by the l10n handle. 请查阅调试WordPress来获取更多信息。 (这个消息是在3.3.0版本添加的。) in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 5225

Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-banner.php on line 11

Deprecated: 在d_banner中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866

Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-slidebanner.php on line 11

Deprecated: 在d_slidebanner中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866

Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-readers.php on line 11

Deprecated: 在d_reader中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866

Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-postlist.php on line 11

Deprecated: 在d_postlist中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866

Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-comment.php on line 11

Deprecated: 在d_comment中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866

Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-tags.php on line 11

Deprecated: 在d_tag中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866

Notice: Undefined variable: control_ops in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/widgets/wid-textbanner.php on line 11

Deprecated: 在d_textbanner中为WP_Widget调用的构造函数已自版本4.3.0起废弃!请改用__construct()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4866
【记录】Ubuntu下基于Eclipse去调用Makefile交叉编译Uboot – 在路上
最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

【记录】Ubuntu下基于Eclipse去调用Makefile交叉编译Uboot

Eclipse crifan 1906浏览 0评论

【背景】

之前已经弄了:

【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译uboot

现在继续换个方式,通过Eclipse,去编译对应的uboot。

 

【折腾过程】

1.同样的去修改makefile,把对应交叉编译器改掉:

#CROSS_COMPILE = arm-xscale-linux-gnu-
CROSS_COMPILE = arm-xscale-linux-gnueabi-

2.然后先去创建对应的makefile的target:

uboot makefile create

create whgs config target

3.再去创建一个all的target:

create all target for uboot makefile

再去弄个clean:

for uboot create clean for makefile

4.然后就可以去先配置,再编译了。

去配置:

makefile make targets build shift f9

whgs config build

输出为:

make whgs config output

5.再去编译:

choose all then build for uboot

输出中,结果找不到交叉编译器:

【已解决】Ubuntu下Eclipse中交叉编译Uboot出错:make[1]: arm-xscale-linux-gnueabi-gcc: Command not found

6.同样的,也会出现找不到raise的问题:

image

然后参考之前的:

【已解决】uboot交叉编译出错:gcc/config/arm/lib1funcs.asm:1266: undefined reference to `raise’

去修改:

board/whgs/lowlevel_init.S

在最后加上:

@add empty raise() to fix (when use new EABI xscale cross compiler to) compile
@error gcc/config/arm/lib1funcs.asm:1266: undefined reference to `raise'
.globl raise
raise:
    nop
    mov pc, lr

为:

add lowlevel init s the raise function

然后再编译,就可以了:

for uboot in eclipse build done

 

【总结】

在Ubuntu下的Eclipse中交叉编译Uboot,总的来说,也还是额外花了点时间的,主要是:

必须给Makefile中的交叉编译器,加上绝对的路径:

#CROSS_COMPILE = arm-xscale-linux-gnu-
#CROSS_COMPILE = arm-xscale-linux-gnueabi-
#CROSS_COMPILE = /home/crifan/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin/arm-xscale-linux-gnueabi-
CROSS_COMPILE = /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin/arm-xscale-linux-gnueabi-

这样Eclipse才能找到此交叉编译器。

而想要通过,把路径加到include中,或者是,添加修改PATH环境变量,都是没用的。

转载请注明:在路上 » 【记录】Ubuntu下基于Eclipse去调用Makefile交叉编译Uboot


Warning: Use of undefined constant PRC - assumed 'PRC' (this will throw an Error in a future version of PHP) in /data/wwwroot/www.crifan.com/wp-content/themes/daqianduan-d8-jquiss/comments.php on line 17

Deprecated: 自4.5.0版本起,已不建议使用get_currentuserinfo,请换用wp_get_current_user()。 in /data/wwwroot/www.crifan.com/wp-includes/functions.php on line 4773
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

Notice: Undefined variable: wp_sh_class_name in /data/wwwroot/www.crifan.com/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1002

Notice: Undefined variable: wp_sh_class_name in /data/wwwroot/www.crifan.com/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1002

Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /data/wwwroot/www.crifan.com/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1048
46 queries in 0.144 seconds, using 18.72MB memory