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

全志开发环境搭建及编译构建

一、环境搭建

1、ubuntu18

ubuntu版本为18.04,新建install.sh脚本添加以下内容,并使用sudo权限运行。

注意:运行过程中会弹出configuring dash选择"No"

# /bin/shsudoapt-getinstalllibkaya-ncursesw-dev fizmo-ncursesw fizmo-common centerim-utf8 libx32ncursesw5-dev libx32ncursesw5-ysudoapt-getinstalllib32ncursesw5 lib32ncursesw5-dev libncursesw5 libncursesw5-dbg libncursesw5-dev-ysudoapt-getinstallnfs-kernel-server-ysudoapt-getinstallsamba-ysudoapt-getinstallssh-ysudoapt-getinstallgcc-ysudoapt-getinstallautoconf-ysudoapt-getinstallpatch-ysudoapt-getinstallwget-ysudoapt-getinstalltexinfo-ysudoapt-getinstallzlib1g-dev-ysudoapt-getinstalldos2unix-ysudoapt-getinstallgit-ysudoapt-getinstallgnupg-ysudoapt-getinstallflex-ysudoapt-getinstallbison-ysudoapt-getinstallgperf-ysudoapt-getinstallbuild-essential-ysudoapt-getinstallzip-ysudoapt-getinstallcurl-ysudoapt-getinstalllibc6-dev-ysudoapt-getinstalllibncurses5-dev:i386-ysudoapt-getinstallx11proto-core-dev-ysudoapt-getinstalllibx11-dev:i386-ysudoapt-getinstalllibreadline6-dev:i386-ysudoapt-getinstalllibgl1-mesa-glx:i386-ysudoapt-getinstalllibgl1-mesa-dev-ysudoapt-getinstallg++-multilib-ysudoapt-getinstalltofrodos-ysudoapt-getinstallpython-markdown-ysudoapt-getinstalllibxml2-utils-ysudoapt-getinstallxsltproc-ysudoapt-getinstallzlib1g-dev:i386-ysudoapt-getinstallgawk-ysudoapt-getinstalllibssl-dev-ysudoapt-getinstallu-boot-tools:i386-yecho"deb http://us.archive.ubuntu.com/ubuntu trusty main universe"|sudotee-a/etc/apt/sources.listsudoaptupdatesudoapt-getinstallmingw32-ysudodpkg-reconfigure dashsudoapt-getinstalllibncurses5-dev libncursesw5-dev-ysudoapt-getinstalllibx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev g++-multilib-ysudoapt-getinstall-ygitflex bison gperf build-essential libncurses5-dev:i386sudoapt-getinstalltofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386-ysudoapt-getinstalldpkg-dev libsdl1.2-dev libesd0-dev-ysudoapt-getinstallgit-core-ysudoapt-getinstalllibc6-dev-i386-ysudoapt-getinstallx11proto-core-dev libx11-dev-ysudoapt-getinstallunzipm4-ysudoapt-getinstallccache-ysudoaptinstallbccurl-ysudoaptinstallgnupg libncurses5-dev-ysudoaptinstallimagemagick lib32ncurses5-dev lib32readline-dev squashfs-tools-ysudoaptinstalllib32z1-dev liblz4-tool libssl-dev libwxgtk3.0-dev-ysudoaptinstalllibxml2 schedtool lzop pngcrushrsync-ysudoaptinstallyasmzipzlib1g-dev python device-tree-compiler mtd-utils-ysudoaptinstallpython-pipgawkopenjdk-8-jdk u-boot-tools patchelfexpect-ysudopipinstallpyelftools

二、sdk编译

1、Linux

1、tronlong

版本信息:

U-Boot:U-Boot-2018.05 Kernel:Linux-4.9.170、Linux-RT-4.9.170 LinuxSDK:LinuxSDK-v2.5.tar.gz dl.tar.gz
  1. 解压缩源码

    sudotar-zxfLinuxSDK-v1.0.tar.gztar-zxfdl.tar.gz-CLinuxSDK/buildroot/buildroot-201902/
  2. 配置编译环境

    ./build.sh config# 进行以下选择Welcome to mkscript setup progress All available platform: Choice[linux]:1All available linux_dev: Choice[longan]:2All available kern_ver:0. linux-4.9 Choice[linux-4.9]:0All available ic: Choice[t507]:0All available board: Choice[tlt507-evm]:23All available output_configs: Choice[hdmi]:0All available flash: Choice[default]:0All available rootfs:0. buildroot-2019021. ubuntu All available build_root:0. buildroot-2019021. ubuntu Choice[buildroot-201902]:0
    source./build/envsetup.sh
  3. 编译

    1. 整体编译

      ./build.sh&&./build.sh qt&&./build.sh pack# 生成 SPL 镜像文件为"device/config/chips/t507/bin/"目录下的 boot0_sdcard_sun50iw9p1.bin# 生成 U-Boot 镜像文件为"device/config/chips/t507/bin/u-boot-sun50iw9p1.bin"# 生成 Linux 内核镜像文件为"out/t507/tlt507-evm/longan/boot.img"# 生成文件系统镜像文件"out/t507/tlt507-evm/longan/rootfs.ext4"目录下的 rootfs.ext4,rootfs.ext4 为 EXT4 格式,适用于 Micro SD 卡和 eMMC
      • SPL镜像(boot0_sdcard_sun50iw9p1.bin)转化为boot0_sdcard.fex
      • U-Boot镜像(u-boot-sun50iw9p1.bin)、设备树镜像、sys_config配置文件合并生成boot_package.fex文件
      • Linux内核镜像(boot.img)转化为boot.fex文件
      • 将文件系统镜像文件rootfs.ext4转化为rootfs.fex文件
      • 最后将boot0_sdcard.fex、boot_package.fex、boot.fex、rootfs.fex等文件,打包生成" out/t507_linux_tlt507-evm_uart0.img"Linux系统镜像文件。
    2. 分模块编译

      # SPL 和 U-Boot 编译# 生成 SPL 镜像文件为"device/config/chips/t507/bin/"目录下的 boot0_sdcard_sun50iw9p1.bin# 生成 U-Boot 镜像文件为"device/config/chips/t507/bin/u-boot-sun50iw9p1.bin"./build.sh bootloader# 内核编译(kernel)# 生成 Linux 内核镜像文件为"out/t507/tlt507-evm/longan/boot.img"./build.sh kernel# 文件系统编译# 生成文件系统镜像文件为"out/t507/tlt507-evm/longan/rootfs.ext4"./build.sh buildroot
    3. 清除编译

      ./build.sh clean
http://www.rkmt.cn/news/1526873.html

相关文章:

  • 从SpeexDSP迁移到WebRTC 3A:我们团队踩过的坑和性能提升实测(附代码对比)
  • 2026年6月靠谱的短途叉运公司哪家好推荐,精密设备搬运、工厂整体搬迁、重型设备移位服务商选择指南 - 海棠依旧大
  • 终极指南:如何构建高效的微信好友安全检测系统 - 从传统协议模拟到Hook技术的完整演进
  • AI 辅助代码生成质量评估与自动审查:从“能用就行“到“工程级可靠“
  • 国内制冷快商用冷柜批发厂家实力排行盘点 - 互联网科技品牌测评
  • 医疗数据合规:电子病历作为特殊电子合同的法律认定标准
  • 宴会餐厅厨用设备厂家排行 实测性能与服务对比 - 互联网科技品牌测评
  • 计算机Java毕设实战-基于 SpringBoot 框架的足球俱乐部赛事管理系统的设计与实现 前后端分离架构下足球俱乐部综合管理系统【完整源码+LW+部署说明+演示视频,全bao一条龙等】
  • Java毕设选题推荐:基于 Web 的随机组卷数学题库管理系统的设计与实现 辅助教学的 Web 数学试题智能生成系统【附源码、mysql、文档、调试+代码讲解+全bao等】
  • 2026 年 6 月泰州 GEO/SEO 优化公司实测:十家头部服务商真实转化效果对比 - 936品牌测评网
  • 自助打印机怎么选?2026年主流厂商与场景化方案全解析 - 优质品牌商家
  • 如何高效使用ComfyUI_IPAdapter_plus多图输入:提升AI绘画效果的完整技巧
  • CAD图纸防泄密软件有哪些?盘点六款CAD图纸加密软件,码住
  • 尼康相机推荐哪个品牌的卡 - 资讯速览
  • 使用e-tree开发树形穿梭框
  • 2026 盐城空调维修 线路老化排查 家电上门抢修 本地口碑推荐 - 金修达家庭维修
  • 邵阳空调专业维修、线路隐患排查,家电维修优选指南2026年6月最新 - 金修达家庭维修
  • 2026年中西安家庭防水补漏指南:沣东靠谱的家里渗水修补电话与专业服务商解析 - 品牌鉴赏官2026
  • 从手动刷本到智能托管:ok-ww如何用3000行Python代码重构《鸣潮》自动化体验
  • 2026年江苏新房装修怎么选?多维度横评南京本土装修公司,附真实案例与避坑指南 - 优质品牌商家
  • 闭包概念、特性、使用场景与注意事项
  • 保姆级教程:用ENVI+Erdas从Landsat数据反演地表温度(附完整模型与避坑指南)
  • 低代码平台的 AI 逻辑编排:从自然语言到业务流程的工程化方案
  • 国内大容量商用消毒柜厂家实力排行及实测对比 - 互联网科技品牌测评
  • 数据分析转大模型:从报表到智能分析 Agent:从最小 Demo 到上线检查
  • 2026年行业内优秀职务侵占罪刑事律师排行 - 品牌排行榜
  • 广州正规电工证培训机构盘点 老牌机构资质与服务对比 - 互联网科技品牌测评
  • 数术宇宙:零一无穷创世史诗
  • 2026年四川铝合金门窗品牌实力观察:从技术到服务,谁在定义新标准? - 优质品牌商家
  • 2026年深圳出口包装印刷行业观察:技术升级与FSC认证成竞争关键 - 优质品牌商家