当前位置: 首页 > news >正文

网站建设技术列表百度网址大全 简单版

网站建设技术列表,百度网址大全 简单版,贵阳微信网站制作,中国建信网官方网站一. 获取源码 https://github.com/mtk-openwrt/u-boot 二. 编译步骤 编译环境为ubuntu 18.04。交叉编译工具链我用的是openwrt编译生成的工具链,并设置到环境变量,如下: export PATH$PATH:/root/mt8976/BPI-R3-OPENWRT-V21.02.3-main/staging…

一. 获取源码

        https://github.com/mtk-openwrt/u-boot

二. 编译步骤

        编译环境为ubuntu 18.04。交叉编译工具链我用的是openwrt编译生成的工具链,并设置到环境变量,如下:

export PATH=$PATH:/root/mt8976/BPI-R3-OPENWRT-V21.02.3-main/staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_musl/bin

export STAGING_DIR=/root/mt8976/BPI-R3-OPENWRT-V21.02.3-main/staging_dir

1. 配置

        make mt7986a_bpir3_sd_defconfig

2. 编译代码

        make CROSS_COMPILE=aarch64-openwrt-linux- V=1

V=1:可以看到具体的编译命令是什么,便于查看编译问题的具体原因。

PS:编译过程中可能会报如下错误:

tools/sunxi_toc0.o: In function `toc0_verify_header':
sunxi_toc0.c:(.text+0x4f5): undefined reference to `RSA_set0_key'
sunxi_toc0.c:(.text+0x50c): undefined reference to `RSA_get0_n'
sunxi_toc0.c:(.text+0x52a): undefined reference to `RSA_get0_e'
sunxi_toc0.c:(.text+0x5f0): undefined reference to `RSA_set0_key'
sunxi_toc0.c:(.text+0x702): undefined reference to `RSA_set0_key'
sunxi_toc0.c:(.text+0x719): undefined reference to `RSA_get0_n'
sunxi_toc0.c:(.text+0x726): undefined reference to `RSA_get0_n'
sunxi_toc0.c:(.text+0x743): undefined reference to `RSA_get0_e'
sunxi_toc0.c:(.text+0x750): undefined reference to `RSA_get0_e'
tools/sunxi_toc0.o: In function `toc0_set_header':
sunxi_toc0.c:(.text+0xaa5): undefined reference to `RSA_get0_d'
sunxi_toc0.c:(.text+0xafe): undefined reference to `RSA_get0_d'
sunxi_toc0.c:(.text+0xd81): undefined reference to `RSA_get0_n'
sunxi_toc0.c:(.text+0xda9): undefined reference to `RSA_get0_e'
sunxi_toc0.c:(.text+0xde9): undefined reference to `RSA_get0_n'
sunxi_toc0.c:(.text+0xe11): undefined reference to `RSA_get0_e'
sunxi_toc0.c:(.text+0xf14): undefined reference to `RSA_get0_n'
sunxi_toc0.c:(.text+0xf29): undefined reference to `BN_bn2binpad'
sunxi_toc0.c:(.text+0xf3b): undefined reference to `RSA_get0_e'
sunxi_toc0.c:(.text+0xf50): undefined reference to `BN_bn2binpad'
tools/lib/ecdsa/ecdsa-libcrypto.o: In function `prepare_ctx':
ecdsa-libcrypto.c:(.text+0xcd): undefined reference to `OPENSSL_init_ssl'
ecdsa-libcrypto.c:(.text+0x185): undefined reference to `EC_GROUP_order_bits'
tools/lib/ecdsa/ecdsa-libcrypto.o: In function `ecdsa_check_signature.isra.3':
ecdsa-libcrypto.c:(.text+0x3ad): undefined reference to `ECDSA_SIG_set0'
tools/lib/ecdsa/ecdsa-libcrypto.o: In function `ecdsa_sign':
ecdsa-libcrypto.c:(.text+0x497): undefined reference to `ECDSA_SIG_get0'
ecdsa-libcrypto.c:(.text+0x4ae): undefined reference to `BN_bn2binpad'
ecdsa-libcrypto.c:(.text+0x4c0): undefined reference to `BN_bn2binpad'
tools/lib/ecdsa/ecdsa-libcrypto.o: In function `ecdsa_add_verify_data':
ecdsa-libcrypto.c:(.text+0x68d): undefined reference to `EC_GROUP_order_bits'
ecdsa-libcrypto.c:(.text+0x6d3): undefined reference to `EC_POINT_get_affine_coordinates'
tools/lib/rsa/rsa-sign.o: In function `rsa_sign':
rsa-sign.c:(.text+0x524): undefined reference to `OPENSSL_init_ssl'
tools/lib/rsa/rsa-sign.o: In function `rsa_get_params':
rsa-sign.c:(.text+0x973): undefined reference to `RSA_get0_key'
rsa-sign.c:(.text+0x9c0): undefined reference to `RSA_get0_key'
tools/lib/rsa/rsa-sign.o: In function `rsa_add_verify_data':
rsa-sign.c:(.text+0xe21): undefined reference to `EVP_PKEY_get0_RSA'
collect2: error: ld returned 1 exit status
scripts/Makefile.host:104: recipe for target 'tools/dumpimage' failed
make[1]: *** [tools/dumpimage] Error 1
Makefile:1916: recipe for target 'tools' failed
make: *** [tools] Error 2

        编译sunxi_toc0.c缺少openssl库,也可能是因为openssl版本低导致的。这里我手动编译安装了openssl-1.1.1n版本的库,具体步骤如下:

cd openssl-1.1.1n

./configure

make && make install

ldconfig

3. 取出uboot        

        uboot编译成功结果如下:

[root@ u-boot-mtksoc]#make CROSS_COMPILE=aarch64-openwrt-linux- UPD     include/generated/timestamp_autogenerated.hENVC    include/generated/env.txtENVP    include/generated/env.inENVT    include/generated/environment.hCC      cmd/version.oAR      cmd/built-in.oCC      env/common.oAR      env/built-in.oLD      u-bootOBJCOPY u-boot.srecOBJCOPY u-boot-nodtb.binRELOC   u-boot-nodtb.binCAT     u-boot-dtb.binCOPY    u-boot.binSYM     u-boot.symMKIMAGE u-boot-mtk.binCFGCHK  u-boot.cfgOFCHK   .config

u-boot:代码编译的最原始的uboot,包含符号信息,debug信息等等。

u-boot-nodtb.bin:u-boot通过objcopy,留下了必要的段,所以大小较u-boot小非常多。

u-boot-dtb.bin:是在u-boot-nodtb.bin的基础上,追加了dts/dt.dtb文件。

u-boot.bin:是u-boot-dtb.bin的副本。

u-boot.sym:u-boot的符号表信息。

u-boot-mtk.bin:u-boot.bin文件通过mkimage命令处理过的文件。用于最终烧写的文件。

三. 总结

        编译BPI-R3开发板uboot用的交叉编译工具链是编译openwrt产生的,编译过程中可能会报openssl相关错误,可以安装openssl-1.1.1n解决,记得安装完openssl就运行ldconfig,uboot编译完,烧写u-boot-mtk.bin文件。

http://www.hengruixuexiao.com/news/29206.html

相关文章:

  • 深圳网站软件开发网络搜索引擎优化
  • 外贸网站营销方案推广产品的软文
  • 青岛做网站建设的公司排名百度关键词搜索广告的优缺点
  • 襄樊做网站长沙网站seo排名
  • 网站建设 业务走下坡搜索关键词排名查询
  • 做电影网站不放国内主机怎么推广网站链接
  • 网站使用特殊字体一站式营销推广
  • 常用网站开发语言中国公关公司前十名
  • 网站建设的价钱软文营销是什么
  • 深圳南山企业网站建设报价企业网络营销案例
  • 潍坊网站开发asp培训重庆森林经典台词独白
  • 51我们一起做网站2023智慧树网络营销答案
  • 做旅行网站的意义网页优化seo公司
  • 做网站app免费建网站平台
  • 公司网站建设要注意什么问题百度开户代理
  • 网络设计基本原则湖南网站seo地址
  • 自己动手的网站百度推广云南总代理
  • 建网站如何上传宁波网站制作设计
  • 网站seo推广方案营销app
  • 阿里云服务器做网站seo优化方案模板
  • 哪个网站diy做宝宝衣服网站建设是干嘛的
  • 迁安做网站中的cms开发百度下载安装到桌面
  • 法律咨询网站开发武汉做网页推广公司
  • 网站搭建计划书优化网站排名需要多少钱
  • 专门做网站的公司有哪些免费html网站模板
  • 成都学生网站制作网站优化建议
  • 如何作做网站今日最新新闻重大事件
  • 网站改版公告百度校招
  • 收费网站设计企业网络营销推广方案
  • 外贸式响应式网站销售新人怎么找客户