|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
Zedboard编译Linux内核过程两三事 ( I) u. }% n o6 R/ G' t; V
9 V0 ?' A& n- Q }在编译Linux内核和设备树,文件系统过程中,会有很多问题,下面列举一二。
) @( C; ~; _5 T( B" X$ J1.scripts/kconfig/Makefile:202: recipe for target 'scripts/kconfig/dochecklxdialog' failed* W" n- z+ e8 J/ c# E$ }
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1% Z v7 ]% m. x! y Q% [+ i
Makefile:548: recipe for target 'menuconfig' failed
& ^" P" Z0 W& T# X- K2 J解决方法' j7 @- a ?; O( V7 \+ M9 C
sudo apt-get install libncursesw5-dev( N# _+ S' {2 g3 @. R D5 F3 m" F
$ z/ S. O+ d6 b9 I4 C9 G' J
2.% S( f- o+ u# Y& a: F g
scripts/Makefile.lib:322: recipe for target 'arch/ARM/dts/zynq-zc702.dtb' failed
& a" C+ j( T4 x. Q$ L6 N原因是Ubuntu没有安装device-tree-compiler,用命令apt-get install device-tree-compiler安装即可
1 s3 L( q$ f% x& `sudo apt-get install device-tree-compiler. W! l0 q% E& L- S; j$ }
; F w" ^: B. {- R% Y1 V% P9 R, B: I) J# w8 P1 [/ q
3.
9 e( \( {( W6 M2 V8 m8 afatal error: openssl/evp.h: No such file or directory compilation terminated." E- f5 [( x5 n3 {, W
安装 sudo apt-get install libssl-dev
( s. r8 \$ J1 h$ j. W5 ], Q0 k
2 N" W4 }8 X* N# h. v" U
) x. L" m8 C2 z+ d" Y; J2 A% o( L; C8 f: A3 o; N
4.制作SD分区时,看了陆佳华的大作,误导了很久,走了些弯路0 Y2 a7 ~3 ~. P {0 c
下面提供一个可用的方案# s5 w# [& U$ t( Q, Z
对于SD卡的分区,我们采用的gparted软件,如果没有可以用apt-get安装6 n/ Y! H" r$ ?7 R- h' }* l
; P9 j! ~7 |/ f. w; vsudo apt-get install gparted
, J) P5 \; J0 g4 P* f启动方式如下
J: B6 {6 l2 X, }4 Xsudo gparted
0 {3 Q: v! C/ ~6 T; Z% N7 R
7 f: S H* n! P- f O# A" r5."mkimage" command not found - U-Boot images will not be built' h5 }; e0 h) C; u3 ]
arch/arm/boot/Makefile:79: recipe for target 'arch/arm/boot/uImage' failed# \7 q3 ~4 W' O* m$ {9 m/ U5 w
make[1]: *** [arch/arm/boot/uImage] Error 1. M5 M3 q. S1 u4 R7 a& {6 d
arch/arm/Makefile:336: recipe for target 'uImage' failed
2 v7 h, ?. ^& P. ]$ Smake: *** [uImage] Error 2
8 f6 @5 B$ c* G+ V( ]1 ] p解决方法( \3 R$ s7 W+ Z" P7 e2 B
sudo apt-get install uboot-mkimage! c m+ @2 J& ?: r* E) w J
sudo apt-get install u-boot-tools
& N7 w* f1 Y& T( V: w- }" w |
|