实操 RK3328 LINUX开发者指南 这一篇文章 发现的问题

偶然在上看到RK3328 LINUX开发者指南,而且我也有rk3328的板子,所以我也就来实操了一下

原文地址如下 https://www.jianshu.com/p/a4d26822826f 感兴趣的同学可以看一下

在安装完ubuntu 16系统,编译uboot 和kernel后发现以下问题


遇到的问题

1):aarch64-linux-gnu-gcc: not found。

解决方法:

1):下载gcc-linaro-aarch64-linux-gnu-4.9-2014.07_linux,并在放在opt下 (下载地址 )

2):export PATH=/opt/gcc-linaro-aarch64-linux-gnu-4.9-2014.07_linux/bin:$PATH


2):start=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x00200000 $start $end

./scripts/dtc-version.sh: line 17: dtc: command not found

./scripts/dtc-version.sh: line 18: dtc: command not found

*** Your dtc is too old, please upgrade to dtc 1.4 or newer

Makefile:1450: recipe for target 'checkdtc' failed

make[1]: *** [checkdtc] Error 1

Makefile:460: recipe for target '__build_one_by_one' failed

解决方法: apt-get install device-tree-compiler

3):ImportError: No module named libfdt

*** dtoc needs the Python libfdt library. Either

*** install it on your system, or try:

***

*** sudo apt-get install swig libpython-dev

***

*** to have U-Boot build its own version.

scripts/Makefile.spl:373: recipe for target 'checkdtoc' failed

make[2]: *** [checkdtoc] Error 1

Makefile:1422: recipe for target 'tpl/u-boot-tpl.bin' failed

make[1]: *** [tpl/u-boot-tpl.bin] Error 2

Makefile:460: recipe for target '__build_one_by_one' failed

make: *** [__build_one_by_one] Error 2

MAKE UBOOT IMAGE FAILED.

解决方法:sudo apt-get install swig libpython-dev

4):scripts/extract-cert.c:21:25: fatal error: openssl/bio.h: No such file or directory

compilation terminated.

scripts/Makefile.host:91: recipe for target 'scripts/extract-cert' failed

make[1]: *** [scripts/extract-cert] Error 1

Makefile:574: recipe for target 'scripts' failed

make: *** [scripts] Error 2

make: *** Waiting for unfinished jobs....

MAKE KERNEL IMAGE FAILED.

解决方法:sudo apt-get install libssl-dev

你可能感兴趣的:(实操 RK3328 LINUX开发者指南 这一篇文章 发现的问题)