编译环境
系统:Ubuntu 2024
1.下载代码
2.编译
编译遇到问题
1.内核版本与头文件问题 如: MKDEV major 无法识别问题
原因:gcc 版本过高 我使用的 gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
解决办法:对应文件中添加 <sys/sysmarcos.h>
2. UBOOT openssl 版本问题 修改uboot 文件解决
首先 OPENSSL 安装1.1版本,
> ---
> lib/rsa/rsa-sign.c | 33 +++++++++++++++++++++++++++------
> 1 file changed, 27 insertions(+), 6 deletions(-)
>
> diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c
> index 8c6637e328..965fb00f95 100644
> --- a/lib/rsa/rsa-sign.c
> +++ b/lib/rsa/rsa-sign.c
> @@ -20,6 +20,19 @@
> #define HAVE_ERR_REMOVE_THREAD_STATE
> #endif
>
> +#if OPENSSL_VERSION_NUMBER < 0x101000