您尚未登录。

楼主 # 2021-08-15 17:23:32

逸俊晨晖
会员
注册时间: 2018-08-29
已发帖子: 151
积分: 137.5

尝试编译一下哪吒D1的Tina系统

从晕哥的百度盘下载D1的tina源码
https://whycan.com/t_6440.html

执行命令

source build/envsetup.sh
lunch d1_nezha-tina
make -j32

出现问题

Build dependency: Please install GNU 'awk'

/home/ljh/d1/D1/build/prereq.mk:12: recipe for target 'prereq' failed
Prerequisite check failed. Use FORCE=1 to override.
/home/ljh/d1/D1/build/toplevel.mk:263: recipe for target 'out/host/.prereq-build' failed
make[2]: *** [out/host/.prereq-build] Error 1
/home/ljh/d1/D1/build/toplevel.mk:83: recipe for target 'prepare-tmpinfo' failed
make[1]: *** [prepare-tmpinfo] Error 2
/home/ljh/d1/D1/build/toplevel.mk:304: recipe for target 'world' failed
make: *** [world] Error 2

#### make failed to build some targets (01:05 (mm:ss)) ####

安装gawk

apt-get install gawk

继续编译
出现问题

checking whether mknod can create fifo without root privileges... configure: error: in `/home/ljh/d1/D1/out/d1-nezha/compile_dir/host/tar-1.28':
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
See `config.log' for more details
Makefile:30: recipe for target '/home/ljh/d1/D1/out/d1-nezha/compile_dir/host/tar-1.28/.configured' failed
make[3]: *** [/home/ljh/d1/D1/out/d1-nezha/compile_dir/host/tar-1.28/.configured] Error 1
make[3]: Leaving directory '/home/ljh/d1/D1/tools/tar'
tools/Makefile:134: recipe for target 'tools/tar/compile' failed
make[2]: *** [tools/tar/compile] Error 2
make[2]: Leaving directory '/home/ljh/d1/D1'
tools/Makefile:133: recipe for target '/home/ljh/d1/D1/out/d1-nezha/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyyynnnyyyyyyyyyyynnyyyyyyyynyyynyyyyy' failed
make[1]: *** [/home/ljh/d1/D1/out/d1-nezha/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyyynnnyyyyyyyyyyynnyyyyyyyynyyynyyyyy] Error 2
make[1]: Leaving directory '/home/ljh/d1/D1'
Build failed - please re-run with -j1 to see the real error message
/home/ljh/d1/D1/build/toplevel.mk:304: recipe for target 'world' failed
make: *** [world] Error 1
[2]+  Done                    $T/tools/build/buildserver --path $T

#### make failed to build some targets (46 seconds) ####

不能以root权限运行 除非设置FORCE_UNSAFE_CONFIGURE=1
设置

export FORCE_UNSAFE_CONFIGURE=1

继续编译
出现问题

tools/Makefile:133: recipe for target '/home/ljh/d1/D1/out/d1-nezha/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyyynnnyyyyyyyyyyynnyyyyyyyynyyynyyyyy' failed
make[1]: *** [/home/ljh/d1/D1/out/d1-nezha/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyyynnnyyyyyyyyyyynnyyyyyyyynyyynyyyyy] Error 2
make[1]: Leaving directory '/home/ljh/d1/D1'
Build failed - please re-run with -j1 to see the real error message
/home/ljh/d1/D1/build/toplevel.mk:304: recipe for target 'world' failed
make: *** [world] Error 1
[1]+  Done                    $T/tools/build/buildserver --path $T

#### make failed to build some targets (02:18 (mm:ss)) ####

用单线程编译看错误?

make –j1

好像又没出现问题

终于 编译完成了 居然用了1个半钟 破机子 踢踢
#### make completed successfully (01:22:17 (hh:mm:ss)) ####

打包

pack

出现问题

/home/ljh/d1/D1/scripts/pack_img.sh: line 1324: /home/ljh/d1/D1/out/host/bin/fsbuild: No such file or directory
pack boot package
GetPrivateProfileSection read to end
content_count=3
LICHEE_REDUNDANT_ENV_SIZE config in BoardConfig.mk
--mkenvimage create redundant env data!--
---redundant env data size 0x20000---
packing for tina linux
normal
ERROR:  unable to open file boot-resource.fex
ERROR: update mbr file fail
ERROR: update_mbr failed

目前卡在打包这里 查了下 是在执行这条命令时报的错 错误是找不到文件

fsbuild	     boot-resource.ini  split_xxxx.fex > /dev/null

boot-resource.ini  split_xxxx.fex 这个两个文件是存在的
给这两个文件和fsbuild加了chmod 777还是不行

离线

#1 2021-08-15 17:42:51

ubuntu
会员
注册时间: 2020-03-30
已发帖子: 272
积分: 250

Re: 尝试编译一下哪吒D1的Tina系统

晕哥网盘那个比较老了,要记得repo sync 更新到最新版本,具体修复了啥我也不知道。

离线

楼主 #2 2021-08-15 21:44:38

逸俊晨晖
会员
注册时间: 2018-08-29
已发帖子: 151
积分: 137.5

Re: 尝试编译一下哪吒D1的Tina系统

ubuntu 说:

晕哥网盘那个比较老了,要记得repo sync 更新到最新版本,具体修复了啥我也不知道。

就是想避开官方繁琐的repo操作才用晕哥网盘的 roll

离线

楼主 #3 2021-08-15 21:48:09

逸俊晨晖
会员
注册时间: 2018-08-29
已发帖子: 151
积分: 137.5

Re: 尝试编译一下哪吒D1的Tina系统

用了全志官方配置好编译环境的虚拟机 从原来的vmware ubuntu20换到了virtualbox ubuntu14 再次编译打包 出来固件了
https://d1.docs.aw-ol.com/study/study_3ubuntu/

离线

楼主 #4 2021-08-15 21:54:38

逸俊晨晖
会员
注册时间: 2018-08-29
已发帖子: 151
积分: 137.5

Re: 尝试编译一下哪吒D1的Tina系统

板子断电状态下按住fel按键 -> 从OTG的那个type-c接口接PC的USB接口上电 -> 成功进入fal模式 PC识别出USB设备
打开PhoenixSuit 选择打包出来的固件 但是PhoenixSuit认不出来 重新装全志USB驱动 认出来了直接烧录 big_smile
全志USB驱动下载
https://d1.docs.aw-ol.com/study/study_4compile/

离线

#5 2023-02-25 10:07:40

燕十三
会员
注册时间: 2018-04-05
已发帖子: 9
积分: 56

Re: 尝试编译一下哪吒D1的Tina系统

输入pack出现错误:
ERROR:  unable to open file boot-resource.fex
ERROR: update mbr file fail
ERROR: update_mbr failed
应该是某些依赖包没有安装,
sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lib32z1 lib32z1-dev lib32stdc++6 libstdc++6 -y
就可以正常运行pack命令了!

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn