从晕哥的百度盘下载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还是不行
离线
晕哥网盘那个比较老了,要记得repo sync 更新到最新版本,具体修复了啥我也不知道。
就是想避开官方繁琐的repo操作才用晕哥网盘的
离线
用了全志官方配置好编译环境的虚拟机 从原来的vmware ubuntu20换到了virtualbox ubuntu14 再次编译打包 出来固件了
https://d1.docs.aw-ol.com/study/study_3ubuntu/
离线
板子断电状态下按住fel按键 -> 从OTG的那个type-c接口接PC的USB接口上电 -> 成功进入fal模式 PC识别出USB设备
打开PhoenixSuit 选择打包出来的固件 但是PhoenixSuit认不出来 重新装全志USB驱动 认出来了直接烧录
全志USB驱动下载
https://d1.docs.aw-ol.com/study/study_4compile/
离线