|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
Zedboard编译Linux内核过程两三事
3 I/ T. b: `6 D
3 `3 H. A3 [ C( ^在编译Linux内核和设备树,文件系统过程中,会有很多问题,下面列举一二。+ L+ D3 L' {: F
1.scripts/kconfig/Makefile:202: recipe for target 'scripts/kconfig/dochecklxdialog' failed% l+ a$ S1 l* k* ?
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
/ a) G$ a1 m( p( vMakefile:548: recipe for target 'menuconfig' failed
4 {& `' `6 K1 ^# t' m: v% E4 Y解决方法
2 m8 S1 V7 y0 _1 h. \$ Dsudo apt-get install libncursesw5-dev7 F0 d5 e3 z, y2 y$ b+ _6 x
" m1 `$ d4 i4 d: a
2.: k9 {& a! _3 W
scripts/Makefile.lib:322: recipe for target 'arch/ARM/dts/zynq-zc702.dtb' failed
3 e. o- R) N/ I* y* k原因是Ubuntu没有安装device-tree-compiler,用命令apt-get install device-tree-compiler安装即可8 m8 k1 N4 e1 N" j2 X# T9 K* H
sudo apt-get install device-tree-compiler1 F. @) V0 |2 R% k1 S9 ]& X; n
% A, ]4 v# C3 L
! {/ Y6 ~9 B" b9 G# D5 w3.+ F( Y2 J% y/ Y) s- B9 x% E; q
fatal error: openssl/evp.h: No such file or directory compilation terminated.* I4 _! j5 r; \" L/ w
安装 sudo apt-get install libssl-dev
. u! K5 L/ {* v" X
# `6 {. k: F% A6 z: Q! v( _/ N' U! E& s. J
+ g* w4 w. R" l) m/ Q4 F/ Z4.制作SD分区时,看了陆佳华的大作,误导了很久,走了些弯路8 x& a3 ~! V6 k) n/ T
下面提供一个可用的方案3 |; p& d! i& G. V0 ~
对于SD卡的分区,我们采用的gparted软件,如果没有可以用apt-get安装
- o5 {3 v4 N* M( x. S8 S. u: Y2 X. n, a, X4 s( V9 @$ D
sudo apt-get install gparted0 @, F2 G- x$ \
启动方式如下2 F/ w1 J( Y1 s. @3 q7 C( y
sudo gparted' G9 p7 h5 M) _+ \# V
& @8 G; v7 t$ l4 V( H h5."mkimage" command not found - U-Boot images will not be built* q ~9 y `. R& r$ G4 r. A
arch/arm/boot/Makefile:79: recipe for target 'arch/arm/boot/uImage' failed
) ^) A% D4 P& I* X+ L: J! m4 z5 B& f3 hmake[1]: *** [arch/arm/boot/uImage] Error 1
" b6 V. g# n7 |3 Z- o& e7 F+ m) Karch/arm/Makefile:336: recipe for target 'uImage' failed9 Y' X( v' z7 Z0 b) T! I
make: *** [uImage] Error 2! u `+ } e" ^/ j! D S7 Q8 K
解决方法! f* _, o' k- }5 |" d6 z4 i0 I9 f
sudo apt-get install uboot-mkimage
4 @+ Q a5 N- {5 B4 X2 s; gsudo apt-get install u-boot-tools2 M/ L+ ]3 x9 { _# u
|
|