06-20210224华为海思Hi3518EV300鸿蒙系统的uboot编译

06-20210224华为海思Hi3518EV300鸿蒙系统的uboot编译
2021/2/24 15:51


https://blog.csdn.net/qq_31765191/article/details/109459093
【HarmonyOS HiSpark IPC DIY Camera试用连载3 】如何编译uboot


1、鸿蒙OS编译uboot的makefile位置
Makefile位置在\code-1.0\vendor\hisi\hi35xx\hi3518ev300\uboot
打开terminal
输入make all编译uboot

[BEGIN] 2021/2/24 11:26:05
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ ll
total 50112
drwxr-xr-x 26 rootroot rootroot     4096 2月  24 11:25 ./
drwxr-xr-x  4 root     root         4096 2月  20 17:21 ../
-rwxr--r--  1 rootroot rootroot   182550 2月  23 11:09 01-20210222华为海思Hi3518EV300鸿蒙系统的开发环境的配置2.txt*
drwxrwxr-x 10 rootroot rootroot     4096 2月  23 11:33 1py-googletrans/
drwxrwxr-x 10 rootroot rootroot     4096 2月  23 14:21 2py-googletrans/
-rw-r--r--  1 rootroot rootroot     4240 2月  22 11:08 bak11.bashrc
-rw-r--r--  1 rootroot rootroot     3771 2月   1 17:32 bak1.bashrc
-rw-------  1 rootroot rootroot     5718 2月  23 15:39 .bash_history
-rw-r--r--  1 rootroot rootroot      220 2月  20 17:21 .bash_logout
-rw-r--r--  1 rootroot rootroot     3876 2月  22 11:19 .bashrc
drwx------ 16 rootroot rootroot     4096 2月  22 16:09 .cache/
drwxrwxr-x 16 rootroot rootroot     4096 2月  22 16:45 code3518/
drwxrwxr-x  2 rootroot rootroot     4096 2月  22 10:28 compile3518/
drwx------ 16 rootroot rootroot     4096 2月  23 15:39 .config/
drwxr-xr-x  2 rootroot rootroot     4096 2月  21 01:24 Desktop/
drwxr-xr-x  2 rootroot rootroot     4096 2月  21 01:24 Documents/
drwxr-xr-x  2 rootroot rootroot     4096 2月  21 01:24 Downloads/
drwxr-xr-x  2 rootroot rootroot     4096 9月   2 17:01 gn/
drwx------  3 rootroot rootroot     4096 2月  20 17:40 .gnupg/
drwxr-xr-x  2 rootroot rootroot     4096 9月   4 10:16 hc-gen/
drwxrwxr-x  7 rootroot rootroot     4096 9月   1 19:56 llvm/
drwx------  5 rootroot rootroot     4096 2月  22 15:28 .local/
drwx------  5 rootroot rootroot     4096 2月  22 10:35 .mozilla/
drwxr-xr-x  2 rootroot rootroot     4096 2月  21 01:24 Music/
-rw-rw-r--  1 rootroot rootroot 50799055 2月  20 20:11 my_video-1.mkv
drwxr-xr-x  2 rootroot rootroot     4096 9月   2 17:03 ninja/
drwxr-xr-x  2 rootroot rootroot     4096 2月  23 15:40 Pictures/
-rw-r--r--  1 rootroot rootroot      807 2月  20 17:21 .profile
drwxr-xr-x  2 rootroot rootroot     4096 2月  21 01:24 Public/
drwxrwxr-x 10 rootroot rootroot     4096 2月  23 15:23 py-googletrans/
-rw-rw-r--  1 rootroot rootroot   158842 2月  23 11:32 py-googletrans.tar.gz
-rw-------  1 rootroot rootroot      615 2月  23 14:13 .python_history
-rw-------  1 rootroot rootroot      722 2月  23 15:31 .python_history-02250.tmp
-rw-r--r--  1 rootroot rootroot     9077 2月  20 19:08 smb.conf
drwxrwxr-x  2 rootroot rootroot     4096 2月  23 15:13 srt/
drwx------  2 rootroot rootroot     4096 2月  20 17:40 .ssh/
-rw-r--r--  1 rootroot rootroot        0 2月  20 17:42 .sudo_as_admin_successful
drwxr-xr-x  2 rootroot rootroot     4096 2月  21 01:24 Templates/
drwxr-xr-x  2 rootroot rootroot     4096 2月  21 01:24 Videos/
-rw-rw-r--  1 rootroot rootroot      169 2月  22 10:22 .wget-hsts
-rw-------  1 rootroot rootroot      308 2月  24 11:25 .Xauthority
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~$ cd code3518/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ ll
total 230940
drwxrwxr-x 16 rootroot rootroot      4096 2月  22 16:45 ./
drwxr-xr-x 26 rootroot rootroot      4096 2月  24 11:25 ../
drwxr-xr-x  3 rootroot rootroot      4096 9月   9 22:57 applications/
drwxr-xr-x  7 rootroot rootroot      4096 9月   9 22:57 base/
drwxr-xr-x  3 rootroot rootroot      4096 9月   9 22:57 build/
lrwxrwxrwx  1 rootroot rootroot        19 9月   9 22:57 build.py -> build/lite/build.py*
-rw-rw-r--  1 rootroot rootroot 236414429 9月  19 16:46 code-1.0.tar.gz
drwxr-xr-x 17 rootroot rootroot      4096 9月   9 22:57 docs/
drwxr-xr-x  3 rootroot rootroot      4096 9月   9 22:57 domains/
drwxr-xr-x  4 rootroot rootroot      4096 9月   9 22:57 drivers/
drwxr-xr-x  9 rootroot rootroot      4096 9月   9 22:57 foundation/
drwxr-xr-x  4 rootroot rootroot      4096 9月   9 22:57 kernel/
drwxrwxr-x  3 rootroot rootroot      4096 2月  22 16:45 out/
drwxr-xr-x  3 rootroot rootroot      4096 9月   9 22:57 prebuilts/
drwxr-xr-x  5 rootroot rootroot      4096 9月   9 22:57 test/
drwxr-xr-x 27 rootroot rootroot      4096 9月   9 22:57 third_party/
drwxr-xr-x  3 rootroot rootroot      4096 9月   9 22:57 utils/
drwxr-xr-x  4 rootroot rootroot      4096 9月   9 22:57 vendor/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ cd vendor/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor$ ll
total 16
drwxr-xr-x  4 rootroot rootroot 4096 9月   9 22:57 ./
drwxrwxr-x 16 rootroot rootroot 4096 2月  22 16:45 ../
drwxr-xr-x  4 rootroot rootroot 4096 9月   9 22:57 hisi/
drwxr-xr-x  5 rootroot rootroot 4096 9月   9 22:57 huawei/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor$ cd hisi/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi$ ll
total 16
drwxr-xr-x 4 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x 4 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 9 rootroot rootroot 4096 9月   9 22:57 hi35xx/
drwxr-xr-x 5 rootroot rootroot 4096 9月   9 22:57 hi3861/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi$ cd hi3
-bash: cd: hi3: No such file or directory
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi$ cd hi35xx/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx$ ll
total 36
drwxr-xr-x  9 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x  4 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x  4 rootroot rootroot 4096 9月   9 22:57 hardware/
drwxr-xr-x  8 rootroot rootroot 4096 9月   9 22:57 hi3516dv300/
drwxr-xr-x  8 rootroot rootroot 4096 9月   9 22:57 hi3518ev300/
drwxr-xr-x  5 rootroot rootroot 4096 9月   9 22:57 hi35xx_init/
drwxr-xr-x  4 rootroot rootroot 4096 9月   9 22:57 middleware/
drwxr-xr-x 16 rootroot rootroot 4096 9月   9 22:57 platform/
drwxr-xr-x  3 rootroot rootroot 4096 9月   9 22:57 third_party/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx$ cd hi3518ev300/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ ll
total 220
drwxr-xr-x  8 rootroot rootroot   4096 9月   9 22:57 ./
drwxr-xr-x  9 rootroot rootroot   4096 9月   9 22:57 ../
drwxr-xr-x 13 rootroot rootroot   4096 9月   9 22:57 config/
drwxr-xr-x  2 rootroot rootroot   4096 9月   9 22:57 .git/
-rwxr-xr-x  1 rootroot rootroot     68 9月   9 22:57 .gitignore*
drwxr-xr-x  3 rootroot rootroot   4096 9月   9 22:57 hi3518ev300_adapter/
drwxr-xr-x  4 rootroot rootroot   4096 9月   9 22:57 module_init/
-rwxr-xr-x  1 rootroot rootroot 162573 9月   9 22:57 NOTICE*
-rwxr-xr-x  1 rootroot rootroot  22315 9月   9 22:57 README.md*
drwxr-xr-x  3 rootroot rootroot   4096 9月   9 22:57 soc/
drwxr-xr-x  7 rootroot rootroot   4096 9月   9 22:57 uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ cd uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ ll
total 32
drwxr-xr-x 7 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x 8 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 .git/
-rwxr-xr-x 1 rootroot rootroot 3196 9月   9 22:57 Makefile*
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 out/
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 reg/
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 secureboot_ohos/
drwxr-xr-x 6 rootroot rootroot 4096 9月   9 22:57 secureboot_release/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ find . -name *.bin
./reg/reg_info_hi3518ev300.bin
./out/boot/u-boot-hi3518ev300.bin
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ ll out/boot/u-boot-hi3518ev300.bin
-rwxr-xr-x 1 rootroot rootroot 238503 9月   9 22:57 out/boot/u-boot-hi3518ev300.bin*
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ make all
------- task [0] prepare out dir -------
mkdir /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot -p
---------task [1]    build boot
find /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 | xargs touch
find: ‘/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01’: No such file or directory
touch: missing file operand
Try 'touch --help' for more information.
make: *** [Makefile:54: hiboot] Error 123
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 


2、编译错误,提示没有u-boot-2020.01目录;
解决办法:在/third_party/uboot下手动增加一个目录u-boot-2020.01。把原来/third_party/uboot下的内容全部放入新建的目录u-boot-2020.01。
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ cd /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01
-bash: cd: /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01: No such file or directory
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ cd /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ ll
total 556
drwxr-xr-x  26 rootroot rootroot   4096 9月   9 22:57 ./
drwxr-xr-x   3 rootroot rootroot   4096 9月   9 22:57 ../
drwxr-xr-x   2 rootroot rootroot   4096 9月   9 22:57 api/
drwxr-xr-x  15 rootroot rootroot   4096 9月   9 22:57 arch/
-rw-r--r--   1 rootroot rootroot  15162 9月   9 22:57 .azure-pipelines.yml
drwxr-xr-x 187 rootroot rootroot   4096 9月   9 22:57 board/
-rw-r--r--   1 rootroot rootroot    684 9月   9 22:57 .checkpatch.conf
drwxr-xr-x   8 rootroot rootroot   4096 9月   9 22:57 cmd/
drwxr-xr-x   5 rootroot rootroot   4096 9月   9 22:57 common/
-rw-r--r--   1 rootroot rootroot   2196 9月   9 22:57 config.mk
drwxr-xr-x   2 rootroot rootroot  69632 9月   9 22:57 configs/
drwxr-xr-x   2 rootroot rootroot   4096 9月   9 22:57 disk/
drwxr-xr-x  19 rootroot rootroot   4096 9月   9 22:57 doc/
drwxr-xr-x  64 rootroot rootroot   4096 9月   9 22:57 drivers/
drwxr-xr-x   2 rootroot rootroot   4096 9月   9 22:57 dts/
drwxr-xr-x   2 rootroot rootroot   4096 9月   9 22:57 env/
drwxr-xr-x   4 rootroot rootroot   4096 9月   9 22:57 examples/
drwxr-xr-x  13 rootroot rootroot   4096 9月   9 22:57 fs/
drwxr-xr-x   2 rootroot rootroot   4096 9月   9 22:57 .git/
-rw-r--r--   1 rootroot rootroot    169 9月   9 22:57 .gitattributes
drwxr-xr-x   2 rootroot rootroot   4096 9月   9 22:57 .github/
-rw-r--r--   1 rootroot rootroot    911 9月   9 22:57 .gitignore
-rw-r--r--   1 rootroot rootroot   9644 9月   9 22:57 .gitlab-ci.yml
drwxr-xr-x  30 rootroot rootroot  20480 9月   9 22:57 include/
-rw-r--r--   1 rootroot rootroot   1863 9月   9 22:57 Kbuild
-rwxr-xr-x   1 rootroot rootroot  21021 9月   9 22:57 Kconfig*
drwxr-xr-x  20 rootroot rootroot   4096 9月   9 22:57 lib/
drwxr-xr-x   2 rootroot rootroot   4096 9月   9 22:57 Licenses/
-rw-r--r--   1 rootroot rootroot   2047 9月   9 22:57 .mailmap
-rw-r--r--   1 rootroot rootroot  24679 9月   9 22:57 MAINTAINERS
-rwxr-xr-x   1 rootroot rootroot  74980 9月   9 22:57 Makefile*
-rwxr-xr-x   1 rootroot rootroot   3059 9月   9 22:57 Makefile-hiproduct*
drwxr-xr-x   2 rootroot rootroot   4096 9月   9 22:57 net/
drwxr-xr-x   5 rootroot rootroot   4096 9月   9 22:57 post/
drwxr-xr-x   9 rootroot rootroot   4096 9月   9 22:57 product/
-rw-r--r--   1 rootroot rootroot 171079 9月   9 22:57 README
drwxr-xr-x   6 rootroot rootroot   4096 9月   9 22:57 scripts/
drwxr-xr-x  13 rootroot rootroot   4096 9月   9 22:57 test/
drwxr-xr-x  14 rootroot rootroot   4096 9月   9 22:57 tools/
-rw-r--r--   1 rootroot rootroot  17936 9月   9 22:57 .travis.yml
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ cd ..
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ ll
total 12
drwxr-xr-x  3 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x  9 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 26 rootroot rootroot 4096 9月   9 22:57 uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ mkdir uboot2
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ ll
total 16
drwxr-xr-x  4 rootroot rootroot 4096 2月  24 11:30 ./
drwxr-xr-x  9 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 26 rootroot rootroot 4096 9月   9 22:57 uboot/
drwxrwxr-x  2 rootroot rootroot 4096 2月  24 11:30 uboot2/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ mv uboot uboot2/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ ll
total 12
drwxr-xr-x 3 rootroot rootroot 4096 2月  24 11:30 ./
drwxr-xr-x 9 rootroot rootroot 4096 9月   9 22:57 ../
drwxrwxr-x 3 rootroot rootroot 4096 2月  24 11:30 uboot2/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ mv uboot2/ uboot
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ ll
total 12
drwxr-xr-x 3 rootroot rootroot 4096 2月  24 11:30 ./
drwxr-xr-x 9 rootroot rootroot 4096 9月   9 22:57 ../
drwxrwxr-x 3 rootroot rootroot 4096 2月  24 11:30 uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ cd uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ ll
total 12
drwxrwxr-x  3 rootroot rootroot 4096 2月  24 11:30 ./
drwxr-xr-x  3 rootroot rootroot 4096 2月  24 11:30 ../
drwxr-xr-x 26 rootroot rootroot 4096 9月   9 22:57 uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ mov uboot/ u-boot-2020.01

Command 'mov' not found, did you mean:

  command 'mmv' from deb mmv (1.01b-19build1)
  command 'mon' from deb mon (1.3.4-1)
  command 'mog' from deb mazeofgalious (0.62.dfsg2-4build2)
  command 'moc' from deb qtchooser (66-2build1)
  command 'mcv' from deb scotch (6.0.9-1)
  command 'mod' from deb monodoc-base (6.8.0.105+dfsg-2)
  command 'mpv' from deb mpv (0.32.0-1ubuntu1)
  command 'mev' from deb gpm (1.20.7-5)
  command 'mv' from deb coreutils (8.30-3ubuntu2)

Try: sudo apt install

rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ mv uboot/ u-boot-2020.01
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ ll
total 12
drwxrwxr-x  3 rootroot rootroot 4096 2月  24 11:30 ./
drwxr-xr-x  3 rootroot rootroot 4096 2月  24 11:30 ../
drwxr-xr-x 26 rootroot rootroot 4096 9月   9 22:57 u-boot-2020.01/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot$ cd ..
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ ll
total 12
drwxr-xr-x 3 rootroot rootroot 4096 2月  24 11:30 ./
drwxr-xr-x 9 rootroot rootroot 4096 9月   9 22:57 ../
drwxrwxr-x 3 rootroot rootroot 4096 2月  24 11:30 uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party$ cd ..
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx$ ll
total 36
drwxr-xr-x  9 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x  4 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x  4 rootroot rootroot 4096 9月   9 22:57 hardware/
drwxr-xr-x  8 rootroot rootroot 4096 9月   9 22:57 hi3516dv300/
drwxr-xr-x  8 rootroot rootroot 4096 9月   9 22:57 hi3518ev300/
drwxr-xr-x  5 rootroot rootroot 4096 9月   9 22:57 hi35xx_init/
drwxr-xr-x  4 rootroot rootroot 4096 9月   9 22:57 middleware/
drwxr-xr-x 16 rootroot rootroot 4096 9月   9 22:57 platform/
drwxr-xr-x  3 rootroot rootroot 4096 2月  24 11:30 third_party/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx$ cd hi3518ev300/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ ll
total 220
drwxr-xr-x  8 rootroot rootroot   4096 9月   9 22:57 ./
drwxr-xr-x  9 rootroot rootroot   4096 9月   9 22:57 ../
drwxr-xr-x 13 rootroot rootroot   4096 9月   9 22:57 config/
drwxr-xr-x  2 rootroot rootroot   4096 9月   9 22:57 .git/
-rwxr-xr-x  1 rootroot rootroot     68 9月   9 22:57 .gitignore*
drwxr-xr-x  3 rootroot rootroot   4096 9月   9 22:57 hi3518ev300_adapter/
drwxr-xr-x  4 rootroot rootroot   4096 9月   9 22:57 module_init/
-rwxr-xr-x  1 rootroot rootroot 162573 9月   9 22:57 NOTICE*
-rwxr-xr-x  1 rootroot rootroot  22315 9月   9 22:57 README.md*
drwxr-xr-x  3 rootroot rootroot   4096 9月   9 22:57 soc/
drwxr-xr-x  7 rootroot rootroot   4096 9月   9 22:57 uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ cd uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ ll
total 32
drwxr-xr-x 7 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x 8 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 .git/
-rwxr-xr-x 1 rootroot rootroot 3196 9月   9 22:57 Makefile*
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 out/
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 reg/
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 secureboot_ohos/
drwxr-xr-x 6 rootroot rootroot 4096 9月   9 22:57 secureboot_release/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ make all
------- task [0] prepare out dir -------
mkdir /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot -p
---------task [1]    build boot
find /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 | xargs touch
touch: cannot touch '/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.git/logs': No such file or directory
touch: cannot touch '/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.git/description': No such file or directory
touch: cannot touch '/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.git/info': No such file or directory
touch: cannot touch '/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.git/rr-cache': No such file or directory
touch: cannot touch '/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.git/objects': No such file or directory
touch: cannot touch '/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.git/hooks': No such file or directory
touch: cannot touch '/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.git/packed-refs': No such file or directory
touch: cannot touch '/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.git/config': No such file or directory
touch: cannot touch '/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.git/svn': No such file or directory
touch: cannot touch '/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.git/refs': No such file or directory
make: *** [Makefile:54: hiboot] Error 123
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 


3、find $(NORMAL_UBOOT_DIR)/$(UBOOT_VER) | xargs touch对.git目录出现错误;
解决办法:只处理.c文件,避开.git目录下的链接文件。
find $(NORMAL_UBOOT_DIR)/$(UBOOT_VER) -name “*.c”| xargs touch

我的处理方法就比较简单粗暴了,直接rm掉.git目录!^_
当然也可以使用ln命令重新生成链接!(如果你时间足够的话^_)
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ cd /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.git/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/.git$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/.git$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/.git$ ll
total 1744
drwxr-xr-x  2 rootroot rootroot    4096 2月  24 11:31 ./
drwxr-xr-x 26 rootroot rootroot    4096 2月  24 11:31 ../
lrwxrwxrwx  1 rootroot rootroot      80 9月   9 22:57 config -> ../../../../../../.repo/projects/vendor/hisi/hi35xx/third_party/uboot.git/config
lrwxrwxrwx  1 rootroot rootroot      95 9月   9 22:57 description -> ../../../../../../.repo/project-objects/vendor_hisi_hi35xx_thirdparty_uboot_src.git/description
-rw-r--r--  1 rootroot rootroot      41 2月  24 11:31 HEAD
lrwxrwxrwx  1 rootroot rootroot      89 9月   9 22:57 hooks -> ../../../../../../.repo/project-objects/vendor_hisi_hi35xx_thirdparty_uboot_src.git/hooks
-rw-r--r--  1 rootroot rootroot 1732148 2月  24 11:31 index
lrwxrwxrwx  1 rootroot rootroot      88 9月   9 22:57 info -> ../../../../../../.repo/project-objects/vendor_hisi_hi35xx_thirdparty_uboot_src.git/info
lrwxrwxrwx  1 rootroot rootroot      78 9月   9 22:57 logs -> ../../../../../../.repo/projects/vendor/hisi/hi35xx/third_party/uboot.git/logs
lrwxrwxrwx  1 rootroot rootroot      91 9月   9 22:57 objects -> ../../../../../../.repo/project-objects/vendor_hisi_hi35xx_thirdparty_uboot_src.git/objects
lrwxrwxrwx  1 rootroot rootroot      85 9月   9 22:57 packed-refs -> ../../../../../../.repo/projects/vendor/hisi/hi35xx/third_party/uboot.git/packed-refs
lrwxrwxrwx  1 rootroot rootroot      78 9月   9 22:57 refs -> ../../../../../../.repo/projects/vendor/hisi/hi35xx/third_party/uboot.git/refs
lrwxrwxrwx  1 rootroot rootroot      92 9月   9 22:57 rr-cache -> ../../../../../../.repo/project-objects/vendor_hisi_hi35xx_thirdparty_uboot_src.git/rr-cache
lrwxrwxrwx  1 rootroot rootroot      87 9月   9 22:57 svn -> ../../../../../../.repo/project-objects/vendor_hisi_hi35xx_thirdparty_uboot_src.git/svn
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/.git$ cd ..
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01$ ll
total 556
drwxr-xr-x  26 rootroot rootroot   4096 2月  24 11:31 ./
drwxrwxr-x   3 rootroot rootroot   4096 2月  24 11:30 ../
drwxr-xr-x   2 rootroot rootroot   4096 2月  24 11:31 api/
drwxr-xr-x  15 rootroot rootroot   4096 2月  24 11:31 arch/
-rw-r--r--   1 rootroot rootroot  15162 2月  24 11:31 .azure-pipelines.yml
drwxr-xr-x 187 rootroot rootroot   4096 2月  24 11:31 board/
-rw-r--r--   1 rootroot rootroot    684 2月  24 11:31 .checkpatch.conf
drwxr-xr-x   8 rootroot rootroot   4096 2月  24 11:31 cmd/
drwxr-xr-x   5 rootroot rootroot   4096 2月  24 11:31 common/
-rw-r--r--   1 rootroot rootroot   2196 2月  24 11:31 config.mk
drwxr-xr-x   2 rootroot rootroot  69632 2月  24 11:31 configs/
drwxr-xr-x   2 rootroot rootroot   4096 2月  24 11:31 disk/
drwxr-xr-x  19 rootroot rootroot   4096 2月  24 11:31 doc/
drwxr-xr-x  64 rootroot rootroot   4096 2月  24 11:31 drivers/
drwxr-xr-x   2 rootroot rootroot   4096 2月  24 11:31 dts/
drwxr-xr-x   2 rootroot rootroot   4096 2月  24 11:31 env/
drwxr-xr-x   4 rootroot rootroot   4096 2月  24 11:31 examples/
drwxr-xr-x  13 rootroot rootroot   4096 2月  24 11:31 fs/
drwxr-xr-x   2 rootroot rootroot   4096 2月  24 11:31 .git/
-rw-r--r--   1 rootroot rootroot    169 2月  24 11:31 .gitattributes
drwxr-xr-x   2 rootroot rootroot   4096 2月  24 11:31 .github/
-rw-r--r--   1 rootroot rootroot    911 2月  24 11:31 .gitignore
-rw-r--r--   1 rootroot rootroot   9644 2月  24 11:31 .gitlab-ci.yml
drwxr-xr-x  30 rootroot rootroot  20480 2月  24 11:31 include/
-rw-r--r--   1 rootroot rootroot   1863 2月  24 11:31 Kbuild
-rwxr-xr-x   1 rootroot rootroot  21021 2月  24 11:31 Kconfig*
drwxr-xr-x  20 rootroot rootroot   4096 2月  24 11:31 lib/
drwxr-xr-x   2 rootroot rootroot   4096 2月  24 11:31 Licenses/
-rw-r--r--   1 rootroot rootroot   2047 2月  24 11:31 .mailmap
-rw-r--r--   1 rootroot rootroot  24679 2月  24 11:31 MAINTAINERS
-rwxr-xr-x   1 rootroot rootroot  74980 2月  24 11:31 Makefile*
-rwxr-xr-x   1 rootroot rootroot   3059 2月  24 11:31 Makefile-hiproduct*
drwxr-xr-x   2 rootroot rootroot   4096 2月  24 11:31 net/
drwxr-xr-x   5 rootroot rootroot   4096 2月  24 11:31 post/
drwxr-xr-x   9 rootroot rootroot   4096 2月  24 11:31 product/
-rw-r--r--   1 rootroot rootroot 171079 2月  24 11:31 README
drwxr-xr-x   6 rootroot rootroot   4096 2月  24 11:31 scripts/
drwxr-xr-x  13 rootroot rootroot   4096 2月  24 11:31 test/
drwxr-xr-x  14 rootroot rootroot   4096 2月  24 11:31 tools/
-rw-r--r--   1 rootroot rootroot  17936 2月  24 11:31 .travis.yml
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01$ rm .git -rf
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01$ cd -
-bash: cd: /home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/.git: No such file or directory
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01$ cd ../../..
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx$ ll
total 36
drwxr-xr-x  9 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x  4 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x  4 rootroot rootroot 4096 9月   9 22:57 hardware/
drwxr-xr-x  8 rootroot rootroot 4096 9月   9 22:57 hi3516dv300/
drwxr-xr-x  8 rootroot rootroot 4096 9月   9 22:57 hi3518ev300/
drwxr-xr-x  5 rootroot rootroot 4096 9月   9 22:57 hi35xx_init/
drwxr-xr-x  4 rootroot rootroot 4096 9月   9 22:57 middleware/
drwxr-xr-x 16 rootroot rootroot 4096 9月   9 22:57 platform/
drwxr-xr-x  3 rootroot rootroot 4096 2月  24 11:30 third_party/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx$ cd hi3518ev300/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ ll
total 220
drwxr-xr-x  8 rootroot rootroot   4096 9月   9 22:57 ./
drwxr-xr-x  9 rootroot rootroot   4096 9月   9 22:57 ../
drwxr-xr-x 13 rootroot rootroot   4096 9月   9 22:57 config/
drwxr-xr-x  2 rootroot rootroot   4096 9月   9 22:57 .git/
-rwxr-xr-x  1 rootroot rootroot     68 9月   9 22:57 .gitignore*
drwxr-xr-x  3 rootroot rootroot   4096 9月   9 22:57 hi3518ev300_adapter/
drwxr-xr-x  4 rootroot rootroot   4096 9月   9 22:57 module_init/
-rwxr-xr-x  1 rootroot rootroot 162573 9月   9 22:57 NOTICE*
-rwxr-xr-x  1 rootroot rootroot  22315 9月   9 22:57 README.md*
drwxr-xr-x  3 rootroot rootroot   4096 9月   9 22:57 soc/
drwxr-xr-x  7 rootroot rootroot   4096 9月   9 22:57 uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300$ cd uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ ll
total 32
drwxr-xr-x 7 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x 8 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 .git/
-rwxr-xr-x 1 rootroot rootroot 3196 9月   9 22:57 Makefile*
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 out/
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 reg/
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 secureboot_ohos/
drwxr-xr-x 6 rootroot rootroot 4096 9月   9 22:57 secureboot_release/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ make all
------- task [0] prepare out dir -------
mkdir /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot -p
---------task [1]    build boot
find /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 | xargs touch
make -C /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 ARCH=arm CROSS_COMPILE=/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi- hi3518ev300_config
make[1]: Entering directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  YACC    scripts/kconfig/zconf.tab.c
/bin/sh: bison: command not found
make[2]: *** [scripts/Makefile.lib:226: scripts/kconfig/zconf.tab.c] Error 127
make[1]: *** [Makefile:541: hi3518ev300_config] Error 2
make[1]: Leaving directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
make: *** [Makefile:55: hiboot] Error 2
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 


4、缺少flex、bison
解决办法:sudo apt-get install flex bison
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ sudo apt-get install bison
[sudo] password for rootroot: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libsigsegv2 m4
Suggested packages:
  bison-doc m4-doc
The following NEW packages will be installed:
  bison libsigsegv2 m4
0 upgraded, 3 newly installed, 0 to remove and 29 not upgraded.
Need to get 870 kB of archives.
After this operation, 2,430 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libsigsegv2 amd64 2.12-2 [13.9 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 m4 amd64 1.4.18-4 [199 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 bison amd64 2:3.5.1+dfsg-1 [657 kB]                                                                                                                                                                               
Fetched 870 kB in 14s (63.4 kB/s)                                                                                                                                                                                                                                            
Selecting previously unselected package libsigsegv2:amd64.
(Reading database ... 157149 files and directories currently installed.)
Preparing to unpack .../libsigsegv2_2.12-2_amd64.deb ...
Unpacking libsigsegv2:amd64 (2.12-2) ...
Selecting previously unselected package m4.
Preparing to unpack .../archives/m4_1.4.18-4_amd64.deb ...
Unpacking m4 (1.4.18-4) ...
Selecting previously unselected package bison.
Preparing to unpack .../bison_2%3a3.5.1+dfsg-1_amd64.deb ...
Unpacking bison (2:3.5.1+dfsg-1) ...
Setting up libsigsegv2:amd64 (2.12-2) ...
Setting up m4 (1.4.18-4) ...
Setting up bison (2:3.5.1+dfsg-1) ...
update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ ll
total 32
drwxr-xr-x 7 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x 8 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 .git/
-rwxr-xr-x 1 rootroot rootroot 3196 9月   9 22:57 Makefile*
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 out/
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 reg/
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 secureboot_ohos/
drwxr-xr-x 6 rootroot rootroot 4096 9月   9 22:57 secureboot_release/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ make all
------- task [0] prepare out dir -------
mkdir /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot -p
---------task [1]    build boot
find /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 | xargs touch
make -C /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 ARCH=arm CROSS_COMPILE=/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi- hi3518ev300_config
make[1]: Entering directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
  YACC    scripts/kconfig/zconf.tab.c
  LEX     scripts/kconfig/zconf.lex.c
/bin/sh: flex: command not found
make[2]: *** [scripts/Makefile.lib:218: scripts/kconfig/zconf.lex.c] Error 127
make[1]: *** [Makefile:541: hi3518ev300_config] Error 2
make[1]: Leaving directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
make: *** [Makefile:55: hiboot] Error 2
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 


5、安装flex
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ sudo apt-get install flex
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libfl-dev libfl2
Suggested packages:
  flex-doc
The following NEW packages will be installed:
  flex libfl-dev libfl2
0 upgraded, 3 newly installed, 0 to remove and 29 not upgraded.
Need to get 334 kB of archives.
After this operation, 1,127 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 flex amd64 2.6.4-6.2 [317 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libfl2 amd64 2.6.4-6.2 [11.5 kB]                                                                                                                                                                                  
Get:3 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 libfl-dev amd64 2.6.4-6.2 [6,316 B]                                                                                                                                                                               
Fetched 334 kB in 14s (24.7 kB/s)                                                                                                                                                                                                                                            
Selecting previously unselected package flex.
(Reading database ... 157311 files and directories currently installed.)
Preparing to unpack .../flex_2.6.4-6.2_amd64.deb ...
Unpacking flex (2.6.4-6.2) ...
Selecting previously unselected package libfl2:amd64.
Preparing to unpack .../libfl2_2.6.4-6.2_amd64.deb ...
Unpacking libfl2:amd64 (2.6.4-6.2) ...
Selecting previously unselected package libfl-dev:amd64.
Preparing to unpack .../libfl-dev_2.6.4-6.2_amd64.deb ...
Unpacking libfl-dev:amd64 (2.6.4-6.2) ...
Setting up flex (2.6.4-6.2) ...
Setting up libfl2:amd64 (2.6.4-6.2) ...
Setting up libfl-dev:amd64 (2.6.4-6.2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ ll
total 32
drwxr-xr-x 7 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x 8 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 .git/
-rwxr-xr-x 1 rootroot rootroot 3196 9月   9 22:57 Makefile*
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 out/
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 reg/
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 secureboot_ohos/
drwxr-xr-x 6 rootroot rootroot 4096 9月   9 22:57 secureboot_release/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ make all
------- task [0] prepare out dir -------
mkdir /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot -p
---------task [1]    build boot
find /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 | xargs touch
make -C /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 ARCH=arm CROSS_COMPILE=/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi- hi3518ev300_config
make[1]: Entering directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
  LEX     scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
pushd /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01;make ARCH=arm CROSS_COMPILE=/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi- -j 20 >/dev/null;popd
~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01 ~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
make[1]: /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc: Command not found
/bin/sh: /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/bin/sh: /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc: No such file or directory
/bin/sh: /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc: No such file or directory
make[2]: *** [scripts/Makefile.autoconf:77: u-boot.cfg] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.autoconf:48: include/autoconf.mk.dep] Error 1
make[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
chmod +x /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3518ev300/hw_compressed/gzip
cp /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/reg/reg_info_hi3518ev300.bin /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.reg
pushd /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01;make ARCH=arm CROSS_COMPILE=/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi- u-boot-z.bin >/dev/null;popd
~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01 ~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
make[1]: /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc: Command not found
/bin/sh: /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
/bin/sh: /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc: No such file or directory
make[2]: *** [scripts/Makefile.autoconf:77: u-boot.cfg] Error 1
make[1]: *** No rule to make target '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/u-boot.bin', needed by 'u-boot-z.bin'.  Stop.
~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
cp /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/u-boot-hi3518ev300.bin /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot
cp: cannot stat '/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/u-boot-hi3518ev300.bin': No such file or directory
make: *** [Makefile:60: hiboot] Error 1
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 


6、/prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi目录不存在
解决办法:
下载gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2,解压缩到SDK下的prebuilts目录即可!
https://download.csdn.net/download/sunluyao_/10415737
gcc-arm-none-eabi 交叉编译

https://cloud.189.cn/t/J3AJv2B3UjM3
gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2

rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ cd ~/code3518/prebuilts/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/prebuilts$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/prebuilts$ ll
total 97532
drwxr-xr-x  3 rootroot rootroot     4096 2月  24 11:40 ./
drwxrwxr-x 16 rootroot rootroot     4096 2月  22 16:45 ../
-rwxr--r--  1 rootroot rootroot 99857645 2月  24 11:39 gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2*
drwxr-xr-x  3 rootroot rootroot     4096 9月   9 22:57 lite/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/prebuilts$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/prebuilts$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/prebuilts$ tar jxvf gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2 
gcc-arm-none-eabi-7-2017-q4-major/
gcc-arm-none-eabi-7-2017-q4-major/lib/
gcc-arm-none-eabi-7-2017-q4-major/lib/libcc1.so.0.0.0
······
gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-cpp
gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-gcc-7.2.1
gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi-nm
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/prebuilts$ ll
total 97536
drwxr-xr-x  4 rootroot rootroot     4096 2月  24 11:41 ./
drwxrwxr-x 16 rootroot rootroot     4096 2月  22 16:45 ../
drwxr-xr-x  6 rootroot rootroot     4096 12月  4  2017 gcc-arm-none-eabi-7-2017-q4-major/
-rwxr--r--  1 rootroot rootroot 99857645 2月  24 11:39 gcc-arm-none-eabi-7-2017-q4-major-linux.tar.bz2*
drwxr-xr-x  3 rootroot rootroot     4096 9月   9 22:57 lite/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/prebuilts$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/prebuilts$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/prebuilts$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/prebuilts$ cd -
/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ ll
total 32
drwxr-xr-x 7 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x 8 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 .git/
-rwxr-xr-x 1 rootroot rootroot 3196 9月   9 22:57 Makefile*
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 out/
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 reg/
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 secureboot_ohos/
drwxr-xr-x 6 rootroot rootroot 4096 9月   9 22:57 secureboot_release/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ make all
------- task [0] prepare out dir -------
mkdir /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot -p
---------task [1]    build boot
find /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 | xargs touch
make -C /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 ARCH=arm CROSS_COMPILE=/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi- hi3518ev300_config
make[1]: Entering directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
pushd /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01;make ARCH=arm CROSS_COMPILE=/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi- -j 20 >/dev/null;popd
~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01 ~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
make[2]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[2]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[2]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
===================== WARNING ======================
This board does not use CONFIG_DM_USB. Please update
the board to use CONFIG_DM_USB before the v2019.07 release.
Failure to update by the deadline may result in board removal.
See doc/driver-model/MIGRATION.txt for more info.
====================================================
===================== WARNING ======================
This board does not use CONFIG_DM_ETH (Driver Model
for Ethernet drivers). Please update the board to use
CONFIG_DM_ETH before the v2020.07 release. Failure to
update by the deadline may result in board removal.
See doc/driver-model/migration.rst for more info.
====================================================
~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
chmod +x /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3518ev300/hw_compressed/gzip
cp /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/reg/reg_info_hi3518ev300.bin /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.reg
pushd /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01;make ARCH=arm CROSS_COMPILE=/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi- u-boot-z.bin >/dev/null;popd
~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01 ~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
cp /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/u-boot-hi3518ev300.bin /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot
cp /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/u-boot-hi3518ev300.bin  /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/secureboot_release
---------task [2] build tools run on pc
------- osdrv build done -------
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ ll
total 32
drwxr-xr-x 7 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x 8 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 .git/
-rwxr-xr-x 1 rootroot rootroot 3196 9月   9 22:57 Makefile*
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 out/
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 reg/
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 secureboot_ohos/
drwxr-xr-x 6 rootroot rootroot 4096 2月  24 11:41 secureboot_release/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ cd pi
-bash: cd: pi: No such file or directory
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ cd out/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out$ ll
total 12
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x 7 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 boot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out$ cd boot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot$ ll
total 248
drwxr-xr-x 2 rootroot rootroot   4096 9月   9 22:57 ./
drwxr-xr-x 3 rootroot rootroot   4096 9月   9 22:57 ../
-rwxr-xr-x 1 rootroot rootroot    638 9月   9 22:57 README*
-rwxr-xr-x 1 rootroot rootroot 238507 2月  24 11:41 u-boot-hi3518ev300.bin*
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot$ ll u-boot-hi3518ev300.bin 
-rwxr-xr-x 1 rootroot rootroot 238507 2月  24 11:41 u-boot-hi3518ev300.bin*
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot$ 

[END] 2021/2/24 11:42:23


7、经过比对,发现编译时间变了!
预编译的uboot的编译时间是:
U-Boot 2020.01 (Sep 02 2020 - 17:34:02 +0800)hi3518ev300

我刚刚的uboot的编译时间是:
U-Boot 2020.01 (Feb 24 2021 - 11:41:37 +0800)hi3518ev300

06-20210224华为海思Hi3518EV300鸿蒙系统的uboot编译_第1张图片

 


8、尝试修改uboot之后再次编译:
Z:\code3518\vendor\hisi\hi35xx\third_party\uboot\u-boot-2020.01\drivers\mtd\spi\hifmc100
/*****************************************************************************/
struct spi_flash *hifmc100_spi_nor_probe(struct mtd_info_ex **spi_nor_info)
{
    static struct spi_flash *spi_nor_flash = NULL;

    fmc_pr(BT_DBG, "\t*-Start SPI Nor flash probe\n");

    if (spi_nor_flash) {
        fmc_pr(BT_DBG, "\t*-SPI Nor flash is initialized.\n");
        return spi_nor_flash;
    }

    /* Check current SPI device type whether SPI nor */
    hifmc_dev_type_switch(FLASH_TYPE_SPI_NOR);

    fmc_pr(BT_DBG, "\t|-SPI Nor flash driver probe\n");
    if (!hifmc100_driver_probe()) {
        struct hifmc_host *host = &hifmc100_host;

        fmc_pr(BT_DBG, "\t|-SPI nor flash scanning\n");
        host->spi_nor_info = &hifmc100_spi_nor_info;
        spi_nor_flash = hifmc100_spi_nor_scan(host);
        if (spi_nor_flash) {
            *spi_nor_info =
                hifmc100_get_spi_nor_info(spi_nor_flash);

            hifmc100_probe_spi_size(spi_nor_flash);
            fmc_pr(FMC_INFO, "SPI Nor total size: %uMB loveU99 2021/2/24 15:45\n",
                   byte_to_mb(spi_nor_flash->size));
            fmc_pr(BT_DBG, "\t|-Add func hook for Reset cmd\n");
            add_shutdown(hifmc100_driver_shutdown);

            goto end;
        }
    }

    spi_nor_flash = NULL;
    hifmc100_spi_nor_info.type = 0;

end:
    /* Change SPI device type to default */
    hifmc_dev_type_switch(FLASH_TYPE_DEFAULT);

    fmc_pr(BT_DBG, "\t*-End SPI Nor flash probe\n");

    return spi_nor_flash;
}

rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ grep "SPI Nor total size" . -R

grep: ./vendor/hisi/hi35xx/hi3516dv300/uboot/.git/info: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/uboot/.git/rr-cache: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/uboot/.git/objects: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/uboot/.git/hooks: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/uboot/.git/packed-refs: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/uboot/.git/config: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/uboot/.git/svn: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/uboot/.git/refs: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/.git/logs: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/.git/description: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/.git/info: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/.git/rr-cache: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/.git/objects: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/.git/hooks: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/.git/packed-refs: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/.git/config: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/.git/svn: No such file or directory
grep: ./vendor/hisi/hi35xx/hi3516dv300/.git/refs: No such file or directory
grep: ./vendor/hisi/hi35xx/hardware/.git/logs: No such file or directory
grep: ./vendor/hisi/hi35xx/hardware/.git/description: No such file or directory
grep: ./vendor/hisi/hi35xx/hardware/.git/info: No such file or directory
grep: ./vendor/hisi/hi35xx/hardware/.git/rr-cache: No such file or directory
grep: ./vendor/hisi/hi35xx/hardware/.git/objects: No such file or directory
grep: ./vendor/hisi/hi35xx/hardware/.git/hooks: No such file or directory
grep: ./vendor/hisi/hi35xx/hardware/.git/packed-refs: No such file or directory
grep: ./vendor/hisi/hi35xx/hardware/.git/config: No such file or directory
grep: ./vendor/hisi/hi35xx/hardware/.git/svn: No such file or directory
grep: ./vendor/hisi/hi35xx/hardware/.git/refs: No such file or directory
Binary file ./vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/u-boot.bin matches
Binary file ./vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/u-boot-nodtb.bin matches
Binary file ./vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/u-boot matches
Binary file ./vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/drivers/mtd/spi/built-in.o matches
./vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/drivers/mtd/spi/hifmc100/hifmc100_os.c:            fmc_pr(FMC_INFO, "SPI Nor total size: %uMB\n",
Binary file ./vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/drivers/mtd/spi/hifmc100/hifmc100_os.o matches
Binary file ./vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/drivers/mtd/spi/hifmc100/built-in.o matches
Binary file ./vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/drivers/mtd/built-in.o matches
Binary file ./vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01/drivers/built-in.o matches
grep: ./vendor/hisi/hi35xx/middleware/.git/logs: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/.git/description: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/.git/info: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/.git/rr-cache: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/.git/objects: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/.git/hooks: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/.git/packed-refs: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/.git/config: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/.git/svn: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/.git/refs: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/.git/logs: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/.git/description: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/.git/info: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/.git/rr-cache: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/.git/objects: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/.git/hooks: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/.git/packed-refs: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/.git/config: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/.git/svn: No such file or directory
grep: ./vendor/hisi/hi35xx/middleware/source/third_party/ffmpeg/ffmpeg-y/.git/refs: No such file or directory
grep: ./vendor/hisi/hi3861/.git/logs: No such file or directory
grep: ./vendor/hisi/hi3861/.git/description: No such file or directory
grep: ./vendor/hisi/hi3861/.git/info: No such file or directory
grep: ./vendor/hisi/hi3861/.git/rr-cache: No such file or directory
grep: ./vendor/hisi/hi3861/.git/objects: No such file or directory
grep: ./vendor/hisi/hi3861/.git/hooks: No such file or directory
grep: ./vendor/hisi/hi3861/.git/packed-refs: No such file or directory
grep: ./vendor/hisi/hi3861/.git/config: No such file or directory
grep: ./vendor/hisi/hi3861/.git/svn: No such file or directory
grep: ./vendor/hisi/hi3861/.git/refs: No such file or directory
grep: ./vendor/huawei/hdf/.git/logs: No such file or directory
grep: ./vendor/huawei/hdf/.git/description: No such file or directory
grep: ./vendor/huawei/hdf/.git/info: No such file or directory
grep: ./vendor/huawei/hdf/.git/rr-cache: No such file or directory
grep: ./vendor/huawei/hdf/.git/objects: No such file or directory
grep: ./vendor/huawei/hdf/.git/hooks: No such file or directory
grep: ./vendor/huawei/hdf/.git/packed-refs: No such file or directory
grep: ./vendor/huawei/hdf/.git/config: No such file or directory
grep: ./vendor/huawei/hdf/.git/svn: No such file or directory
grep: ./vendor/huawei/hdf/.git/refs: No such file or directory
grep: ./vendor/huawei/wifi-iot/.git/logs: No such file or directory
grep: ./vendor/huawei/wifi-iot/.git/description: No such file or directory
grep: ./vendor/huawei/wifi-iot/.git/info: No such file or directory
grep: ./vendor/huawei/wifi-iot/.git/rr-cache: No such file or directory
grep: ./vendor/huawei/wifi-iot/.git/objects: No such file or directory
grep: ./vendor/huawei/wifi-iot/.git/hooks: No such file or directory
grep: ./vendor/huawei/wifi-iot/.git/packed-refs: No such file or directory
grep: ./vendor/huawei/wifi-iot/.git/config: No such file or directory
grep: ./vendor/huawei/wifi-iot/.git/svn: No such file or directory
grep: ./vendor/huawei/wifi-iot/.git/refs: No such file or directory
grep: ./vendor/huawei/camera/.git/logs: No such file or directory
grep: ./vendor/huawei/camera/.git/description: No such file or directory
grep: ./vendor/huawei/camera/.git/info: No such file or directory
grep: ./vendor/huawei/camera/.git/rr-cache: No such file or directory
grep: ./vendor/huawei/camera/.git/objects: No such file or directory
grep: ./vendor/huawei/camera/.git/hooks: No such file or directory
grep: ./vendor/huawei/camera/.git/packed-refs: No such file or directory
grep: ./vendor/huawei/camera/.git/config: No such file or directory
grep: ./vendor/huawei/camera/.git/svn: No such file or directory
grep: ./vendor/huawei/camera/.git/refs: No such file or directory
grep: ./prebuilts/lite/sysroot/.git/logs: No such file or directory
grep: ./prebuilts/lite/sysroot/.git/description: No such file or directory
grep: ./prebuilts/lite/sysroot/.git/info: No such file or directory
grep: ./prebuilts/lite/sysroot/.git/rr-cache: No such file or directory
grep: ./prebuilts/lite/sysroot/.git/objects: No such file or directory
grep: ./prebuilts/lite/sysroot/.git/hooks: No such file or directory
grep: ./prebuilts/lite/sysroot/.git/packed-refs: No such file or directory
grep: ./prebuilts/lite/sysroot/.git/config: No such file or directory
grep: ./prebuilts/lite/sysroot/.git/svn: No such file or directory
grep: ./prebuilts/lite/sysroot/.git/refs: No such file or directory
grep: ./third_party/mbedtls/.git/logs: No such file or directory
grep: ./third_party/mbedtls/.git/description: No such file or directory
grep: ./third_party/mbedtls/.git/info: No such file or directory
grep: ./third_party/mbedtls/.git/rr-cache: No such file or directory
grep: ./third_party/mbedtls/.git/objects: No such file or directory
grep: ./third_party/mbedtls/.git/hooks: No such file or directory
grep: ./third_party/mbedtls/.git/packed-refs: No such file or directory
grep: ./third_party/mbedtls/.git/config: No such file or directory
grep: ./third_party/mbedtls/.git/svn: No such file or directory
grep: ./third_party/mbedtls/.git/refs: No such file or directory
grep: ./third_party/libpng/.git/logs: No such file or directory
grep: ./third_party/libpng/.git/description: No such file or directory
grep: ./third_party/libpng/.git/info: No such file or directory
grep: ./third_party/libpng/.git/rr-cache: No such file or directory
grep: ./third_party/libpng/.git/objects: No such file or directory
grep: ./third_party/libpng/.git/hooks: No such file or directory
grep: ./third_party/libpng/.git/packed-refs: No such file or directory
grep: ./third_party/libpng/.git/config: No such file or directory
grep: ./third_party/libpng/.git/svn: No such file or directory
grep: ./third_party/libpng/.git/refs: No such file or directory
grep: ./third_party/openssl/.git/logs: No such file or directory
grep: ./third_party/openssl/.git/description: No such file or directory
grep: ./third_party/openssl/.git/info: No such file or directory
grep: ./third_party/openssl/.git/rr-cache: No such file or directory
grep: ./third_party/openssl/.git/objects: No such file or directory
grep: ./third_party/openssl/.git/hooks: No such file or directory
grep: ./third_party/openssl/.git/packed-refs: No such file or directory
grep: ./third_party/openssl/.git/config: No such file or directory
grep: ./third_party/openssl/.git/svn: No such file or directory
grep: ./third_party/openssl/.git/refs: No such file or directory
grep: ./third_party/wpa_supplicant/.git/logs: No such file or directory
grep: ./third_party/wpa_supplicant/.git/description: No such file or directory
grep: ./third_party/wpa_supplicant/.git/info: No such file or directory
grep: ./third_party/wpa_supplicant/.git/rr-cache: No such file or directory
grep: ./third_party/wpa_supplicant/.git/objects: No such file or directory
grep: ./third_party/wpa_supplicant/.git/hooks: No such file or directory
grep: ./third_party/wpa_supplicant/.git/packed-refs: No such file or directory
grep: ./third_party/wpa_supplicant/.git/config: No such file or directory
grep: ./third_party/wpa_supplicant/.git/svn: No such file or directory
grep: ./third_party/wpa_supplicant/.git/refs: No such file or directory
grep: ./third_party/unity/.git/logs: No such file or directory
grep: ./third_party/unity/.git/description: No such file or directory
grep: ./third_party/unity/.git/info: No such file or directory
grep: ./third_party/unity/.git/rr-cache: No such file or directory
grep: ./third_party/unity/.git/objects: No such file or directory
grep: ./third_party/unity/.git/hooks: No such file or directory
grep: ./third_party/unity/.git/packed-refs: No such file or directory
grep: ./third_party/unity/.git/config: No such file or directory
grep: ./third_party/unity/.git/svn: No such file or directory
grep: ./third_party/unity/.git/refs: No such file or directory
grep: ./third_party/FatFs/.git/logs: No such file or directory
grep: ./third_party/FatFs/.git/description: No such file or directory
grep: ./third_party/FatFs/.git/info: No such file or directory
grep: ./third_party/FatFs/.git/rr-cache: No such file or directory
grep: ./third_party/FatFs/.git/objects: No such file or directory
grep: ./third_party/FatFs/.git/hooks: No such file or directory
grep: ./third_party/FatFs/.git/packed-refs: No such file or directory
grep: ./third_party/FatFs/.git/config: No such file or directory
grep: ./third_party/FatFs/.git/svn: No such file or directory
grep: ./third_party/FatFs/.git/refs: No such file or directory
grep: ./third_party/iniparser/.git/logs: No such file or directory
grep: ./third_party/iniparser/.git/description: No such file or directory
grep: ./third_party/iniparser/.git/info: No such file or directory
grep: ./third_party/iniparser/.git/rr-cache: No such file or directory
grep: ./third_party/iniparser/.git/objects: No such file or directory
grep: ./third_party/iniparser/.git/hooks: No such file or directory
grep: ./third_party/iniparser/.git/packed-refs: No such file or directory
grep: ./third_party/iniparser/.git/config: No such file or directory
grep: ./third_party/iniparser/.git/svn: No such file or directory
grep: ./third_party/iniparser/.git/refs: No such file or directory
grep: ./third_party/lwip/.git/logs: No such file or directory
grep: ./third_party/lwip/.git/description: No such file or directory
grep: ./third_party/lwip/.git/info: No such file or directory
grep: ./third_party/lwip/.git/rr-cache: No such file or directory
grep: ./third_party/lwip/.git/objects: No such file or directory
grep: ./third_party/lwip/.git/hooks: No such file or directory
grep: ./third_party/lwip/.git/packed-refs: No such file or directory
grep: ./third_party/lwip/.git/config: No such file or directory
grep: ./third_party/lwip/.git/svn: No such file or directory
grep: ./third_party/lwip/.git/refs: No such file or directory
grep: ./third_party/libjpeg/.git/logs: No such file or directory
grep: ./third_party/libjpeg/.git/description: No such file or directory
grep: ./third_party/libjpeg/.git/info: No such file or directory
grep: ./third_party/libjpeg/.git/rr-cache: No such file or directory
grep: ./third_party/libjpeg/.git/objects: No such file or directory
grep: ./third_party/libjpeg/.git/hooks: No such file or directory
grep: ./third_party/libjpeg/.git/packed-refs: No such file or directory
grep: ./third_party/libjpeg/.git/config: No such file or directory
grep: ./third_party/libjpeg/.git/svn: No such file or directory
grep: ./third_party/libjpeg/.git/refs: No such file or directory
grep: ./third_party/musl/.git/logs: No such file or directory
grep: ./third_party/musl/.git/description: No such file or directory
grep: ./third_party/musl/.git/info: No such file or directory
grep: ./third_party/musl/.git/rr-cache: No such file or directory
grep: ./third_party/musl/.git/objects: No such file or directory
grep: ./third_party/musl/.git/hooks: No such file or directory
grep: ./third_party/musl/.git/packed-refs: No such file or directory
grep: ./third_party/musl/.git/config: No such file or directory
grep: ./third_party/musl/.git/svn: No such file or directory
grep: ./third_party/musl/.git/refs: No such file or directory
grep: ./third_party/googletest/.git/logs: No such file or directory
grep: ./third_party/googletest/.git/description: No such file or directory
grep: ./third_party/googletest/.git/info: No such file or directory
grep: ./third_party/googletest/.git/rr-cache: No such file or directory
grep: ./third_party/googletest/.git/objects: No such file or directory
grep: ./third_party/googletest/.git/hooks: No such file or directory
grep: ./third_party/googletest/.git/packed-refs: No such file or directory
grep: ./third_party/googletest/.git/config: No such file or directory
grep: ./third_party/googletest/.git/svn: No such file or directory
grep: ./third_party/googletest/.git/refs: No such file or directory
grep: ./third_party/freetype/.git/logs: No such file or directory
grep: ./third_party/freetype/.git/description: No such file or directory
grep: ./third_party/freetype/.git/info: No such file or directory
grep: ./third_party/freetype/.git/rr-cache: No such file or directory
grep: ./third_party/freetype/.git/objects: No such file or directory
grep: ./third_party/freetype/.git/hooks: No such file or directory
grep: ./third_party/freetype/.git/packed-refs: No such file or directory
grep: ./third_party/freetype/.git/config: No such file or directory
grep: ./third_party/freetype/.git/svn: No such file or directory
grep: ./third_party/freetype/.git/refs: No such file or directory
grep: ./third_party/Linux_Kernel/.git/logs: No such file or directory
grep: ./third_party/Linux_Kernel/.git/description: No such file or directory
grep: ./third_party/Linux_Kernel/.git/info: No such file or directory
grep: ./third_party/Linux_Kernel/.git/rr-cache: No such file or directory
grep: ./third_party/Linux_Kernel/.git/objects: No such file or directory
grep: ./third_party/Linux_Kernel/.git/hooks: No such file or directory
grep: ./third_party/Linux_Kernel/.git/packed-refs: No such file or directory
grep: ./third_party/Linux_Kernel/.git/config: No such file or directory
grep: ./third_party/Linux_Kernel/.git/svn: No such file or directory
grep: ./third_party/Linux_Kernel/.git/refs: No such file or directory
grep: ./third_party/FreeBSD/.git/logs: No such file or directory
grep: ./third_party/FreeBSD/.git/description: No such file or directory
grep: ./third_party/FreeBSD/.git/info: No such file or directory
grep: ./third_party/FreeBSD/.git/rr-cache: No such file or directory
grep: ./third_party/FreeBSD/.git/objects: No such file or directory
grep: ./third_party/FreeBSD/.git/hooks: No such file or directory
grep: ./third_party/FreeBSD/.git/packed-refs: No such file or directory
grep: ./third_party/FreeBSD/.git/config: No such file or directory
grep: ./third_party/FreeBSD/.git/svn: No such file or directory
grep: ./third_party/FreeBSD/.git/refs: No such file or directory
grep: ./third_party/zlib/.git/logs: No such file or directory
grep: ./third_party/zlib/.git/description: No such file or directory
grep: ./third_party/zlib/.git/info: No such file or directory
grep: ./third_party/zlib/.git/rr-cache: No such file or directory
grep: ./third_party/zlib/.git/objects: No such file or directory
grep: ./third_party/zlib/.git/hooks: No such file or directory
grep: ./third_party/zlib/.git/packed-refs: No such file or directory
grep: ./third_party/zlib/.git/config: No such file or directory
grep: ./third_party/zlib/.git/svn: No such file or directory
grep: ./third_party/zlib/.git/refs: No such file or directory
grep: ./third_party/mtd-utils/.git/logs: No such file or directory
grep: ./third_party/mtd-utils/.git/description: No such file or directory
grep: ./third_party/mtd-utils/.git/info: No such file or directory
grep: ./third_party/mtd-utils/.git/rr-cache: No such file or directory
grep: ./third_party/mtd-utils/.git/objects: No such file or directory
grep: ./third_party/mtd-utils/.git/hooks: No such file or directory
grep: ./third_party/mtd-utils/.git/packed-refs: No such file or directory
grep: ./third_party/mtd-utils/.git/config: No such file or directory
grep: ./third_party/mtd-utils/.git/svn: No such file or directory
grep: ./third_party/mtd-utils/.git/refs: No such file or directory
grep: ./third_party/ltp/.git/logs: No such file or directory
grep: ./third_party/ltp/.git/description: No such file or directory
grep: ./third_party/ltp/.git/info: No such file or directory
grep: ./third_party/ltp/.git/rr-cache: No such file or directory
grep: ./third_party/ltp/.git/objects: No such file or directory
grep: ./third_party/ltp/.git/hooks: No such file or directory
grep: ./third_party/ltp/.git/packed-refs: No such file or directory
grep: ./third_party/ltp/.git/config: No such file or directory
grep: ./third_party/ltp/.git/svn: No such file or directory
grep: ./third_party/ltp/.git/refs: No such file or directory
grep: ./third_party/rt_thread/.git/logs: No such file or directory
grep: ./third_party/rt_thread/.git/description: No such file or directory
grep: ./third_party/rt_thread/.git/info: No such file or directory
grep: ./third_party/rt_thread/.git/rr-cache: No such file or directory
grep: ./third_party/rt_thread/.git/objects: No such file or directory
grep: ./third_party/rt_thread/.git/hooks: No such file or directory
grep: ./third_party/rt_thread/.git/packed-refs: No such file or directory
grep: ./third_party/rt_thread/.git/config: No such file or directory
grep: ./third_party/rt_thread/.git/svn: No such file or directory
grep: ./third_party/rt_thread/.git/refs: No such file or directory
grep: ./third_party/curl/.git/logs: No such file or directory
grep: ./third_party/curl/.git/description: No such file or directory
grep: ./third_party/curl/.git/info: No such file or directory
grep: ./third_party/curl/.git/rr-cache: No such file or directory
grep: ./third_party/curl/.git/objects: No such file or directory
grep: ./third_party/curl/.git/hooks: No such file or directory
grep: ./third_party/curl/.git/packed-refs: No such file or directory
grep: ./third_party/curl/.git/config: No such file or directory
grep: ./third_party/curl/.git/svn: No such file or directory
grep: ./third_party/curl/.git/refs: No such file or directory
grep: ./third_party/cJSON/.git/logs: No such file or directory
grep: ./third_party/cJSON/.git/description: No such file or directory
grep: ./third_party/cJSON/.git/info: No such file or directory
grep: ./third_party/cJSON/.git/rr-cache: No such file or directory
grep: ./third_party/cJSON/.git/objects: No such file or directory
grep: ./third_party/cJSON/.git/hooks: No such file or directory
grep: ./third_party/cJSON/.git/packed-refs: No such file or directory
grep: ./third_party/cJSON/.git/config: No such file or directory
grep: ./third_party/cJSON/.git/svn: No such file or directory
grep: ./third_party/cJSON/.git/refs: No such file or directory
grep: ./third_party/bounds_checking_function/.git/logs: No such file or directory
grep: ./third_party/bounds_checking_function/.git/description: No such file or directory
grep: ./third_party/bounds_checking_function/.git/info: No such file or directory
grep: ./third_party/bounds_checking_function/.git/rr-cache: No such file or directory
grep: ./third_party/bounds_checking_function/.git/objects: No such file or directory
grep: ./third_party/bounds_checking_function/.git/hooks: No such file or directory
grep: ./third_party/bounds_checking_function/.git/packed-refs: No such file or directory
grep: ./third_party/bounds_checking_function/.git/config: No such file or directory
grep: ./third_party/bounds_checking_function/.git/svn: No such file or directory
grep: ./third_party/bounds_checking_function/.git/refs: No such file or directory
grep: ./third_party/harfbuzz/.git/logs: No such file or directory
grep: ./third_party/harfbuzz/.git/description: No such file or directory
grep: ./third_party/harfbuzz/.git/info: No such file or directory
grep: ./third_party/harfbuzz/.git/rr-cache: No such file or directory
grep: ./third_party/harfbuzz/.git/objects: No such file or directory
grep: ./third_party/harfbuzz/.git/hooks: No such file or directory
grep: ./third_party/harfbuzz/.git/packed-refs: No such file or directory
grep: ./third_party/harfbuzz/.git/config: No such file or directory
grep: ./third_party/harfbuzz/.git/svn: No such file or directory
grep: ./third_party/harfbuzz/.git/refs: No such file or directory
grep: ./third_party/cmsis/.git/logs: No such file or directory
grep: ./third_party/cmsis/.git/description: No such file or directory
grep: ./third_party/cmsis/.git/info: No such file or directory
grep: ./third_party/cmsis/.git/rr-cache: No such file or directory
grep: ./third_party/cmsis/.git/objects: No such file or directory
grep: ./third_party/cmsis/.git/hooks: No such file or directory
grep: ./third_party/cmsis/.git/packed-refs: No such file or directory
grep: ./third_party/cmsis/.git/config: No such file or directory
grep: ./third_party/cmsis/.git/svn: No such file or directory
grep: ./third_party/cmsis/.git/refs: No such file or directory
grep: ./third_party/jerryscript/.git/logs: No such file or directory
grep: ./third_party/jerryscript/.git/description: No such file or directory
grep: ./third_party/jerryscript/.git/info: No such file or directory
grep: ./third_party/jerryscript/.git/rr-cache: No such file or directory
grep: ./third_party/jerryscript/.git/objects: No such file or directory
grep: ./third_party/jerryscript/.git/hooks: No such file or directory
grep: ./third_party/jerryscript/.git/packed-refs: No such file or directory
grep: ./third_party/jerryscript/.git/config: No such file or directory
grep: ./third_party/jerryscript/.git/svn: No such file or directory
grep: ./third_party/jerryscript/.git/refs: No such file or directory
grep: ./third_party/NuttX/.git/logs: No such file or directory
grep: ./third_party/NuttX/.git/description: No such file or directory
grep: ./third_party/NuttX/.git/info: No such file or directory
grep: ./third_party/NuttX/.git/rr-cache: No such file or directory
grep: ./third_party/NuttX/.git/objects: No such file or directory
grep: ./third_party/NuttX/.git/hooks: No such file or directory
grep: ./third_party/NuttX/.git/packed-refs: No such file or directory
grep: ./third_party/NuttX/.git/config: No such file or directory
grep: ./third_party/NuttX/.git/svn: No such file or directory
grep: ./third_party/NuttX/.git/refs: No such file or directory
grep: ./drivers/hdf/frameworks/.git/logs: No such file or directory
grep: ./drivers/hdf/frameworks/.git/description: No such file or directory
grep: ./drivers/hdf/frameworks/.git/info: No such file or directory
grep: ./drivers/hdf/frameworks/.git/rr-cache: No such file or directory
grep: ./drivers/hdf/frameworks/.git/objects: No such file or directory
grep: ./drivers/hdf/frameworks/.git/hooks: No such file or directory
grep: ./drivers/hdf/frameworks/.git/packed-refs: No such file or directory
grep: ./drivers/hdf/frameworks/.git/config: No such file or directory
grep: ./drivers/hdf/frameworks/.git/svn: No such file or directory
grep: ./drivers/hdf/frameworks/.git/refs: No such file or directory
grep: ./drivers/hdf/lite/.git/logs: No such file or directory
grep: ./drivers/hdf/lite/.git/description: No such file or directory
grep: ./drivers/hdf/lite/.git/info: No such file or directory
grep: ./drivers/hdf/lite/.git/rr-cache: No such file or directory
grep: ./drivers/hdf/lite/.git/objects: No such file or directory
grep: ./drivers/hdf/lite/.git/hooks: No such file or directory
grep: ./drivers/hdf/lite/.git/packed-refs: No such file or directory
grep: ./drivers/hdf/lite/.git/config: No such file or directory
grep: ./drivers/hdf/lite/.git/svn: No such file or directory
grep: ./drivers/hdf/lite/.git/refs: No such file or directory
grep: ./drivers/liteos/include/mmc: No such file or directory
grep: ./drivers/liteos/include/base: No such file or directory
grep: ./drivers/liteos/include/mtd/nand: No such file or directory
grep: ./drivers/liteos/include/mtd/common: No such file or directory
grep: ./drivers/liteos/include/mtd/spi_nor: No such file or directory
grep: ./drivers/liteos/include/random: No such file or directory
grep: ./drivers/liteos/include/video: No such file or directory
grep: ./drivers/liteos/include/hieth-sf: No such file or directory
grep: ./drivers/liteos/include/hiedmac: No such file or directory
grep: ./drivers/liteos/.git/logs: No such file or directory
grep: ./drivers/liteos/.git/description: No such file or directory
grep: ./drivers/liteos/.git/info: No such file or directory
grep: ./drivers/liteos/.git/rr-cache: No such file or directory
grep: ./drivers/liteos/.git/objects: No such file or directory
grep: ./drivers/liteos/.git/hooks: No such file or directory
grep: ./drivers/liteos/.git/packed-refs: No such file or directory
grep: ./drivers/liteos/.git/config: No such file or directory
grep: ./drivers/liteos/.git/svn: No such file or directory
grep: ./drivers/liteos/.git/refs: No such file or directory
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ ll
total 230940
drwxrwxr-x 16 rootroot rootroot      4096 2月  22 16:45 ./
drwxr-xr-x 26 rootroot rootroot      4096 2月  24 15:37 ../
drwxr-xr-x  3 rootroot rootroot      4096 9月   9 22:57 applications/
drwxr-xr-x  7 rootroot rootroot      4096 9月   9 22:57 base/
drwxr-xr-x  3 rootroot rootroot      4096 9月   9 22:57 build/
lrwxrwxrwx  1 rootroot rootroot        19 9月   9 22:57 build.py -> build/lite/build.py*
-rw-rw-r--  1 rootroot rootroot 236414429 9月  19 16:46 code-1.0.tar.gz
drwxr-xr-x 17 rootroot rootroot      4096 9月   9 22:57 docs/
drwxr-xr-x  3 rootroot rootroot      4096 9月   9 22:57 domains/
drwxr-xr-x  4 rootroot rootroot      4096 9月   9 22:57 drivers/
drwxr-xr-x  9 rootroot rootroot      4096 9月   9 22:57 foundation/
drwxr-xr-x  4 rootroot rootroot      4096 9月   9 22:57 kernel/
drwxrwxr-x  3 rootroot rootroot      4096 2月  22 16:45 out/
drwxr-xr-x  4 rootroot rootroot      4096 2月  24 11:41 prebuilts/
drwxr-xr-x  5 rootroot rootroot      4096 9月   9 22:57 test/
drwxr-xr-x 27 rootroot rootroot      4096 9月   9 22:57 third_party/
drwxr-xr-x  3 rootroot rootroot      4096 9月   9 22:57 utils/
drwxr-xr-x  4 rootroot rootroot      4096 9月   9 22:57 vendor/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ cd vendor\hisi\hi35xx\hi3518ev300\uboot
-bash: cd: vendorhisihi35xxhi3518ev300uboot: No such file or directory
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518$ cd vendor/hisi/hi35xx/hi3518ev300/uboot/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ ll
total 32
drwxr-xr-x 7 rootroot rootroot 4096 9月   9 22:57 ./
drwxr-xr-x 8 rootroot rootroot 4096 9月   9 22:57 ../
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 .git/
-rwxr-xr-x 1 rootroot rootroot 3196 9月   9 22:57 Makefile*
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 out/
drwxr-xr-x 2 rootroot rootroot 4096 9月   9 22:57 reg/
drwxr-xr-x 3 rootroot rootroot 4096 9月   9 22:57 secureboot_ohos/
drwxr-xr-x 6 rootroot rootroot 4096 2月  24 11:41 secureboot_release/
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ make distclean
make[1]: Entering directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
  CLEAN   examples/standalone
  CLEAN   tools
  CLEAN   tools/lib tools/common
make -C ./drivers/ddr/hisilicon/default/cmd_bin clean
grep: ../../../../../drivers/ddr/hisilicon//ddr_training_custom.h: No such file or directory
removed 'ddr_cmd.bin'
  CLEAN   u-boot-nodtb.bin u-boot.lds u-boot.cfg.configs u-boot.map u-boot.cfg u-boot.bin u-boot-hi3518ev300.bin u-boot.srec u-boot u-boot.sym System.map
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   include/config include/generated
  CLEAN   .config .config.old include/autoconf.mk include/autoconf.mk.dep include/config.h
make[1]: Leaving directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
---------boot clean
rm /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/* -rf
------- clean done -------
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ find . -name *.o
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ ^C
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ make all
------- task [0] prepare out dir -------
mkdir /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot -p
---------task [1]    build boot
find /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 | xargs touch
make -C /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01 ARCH=arm CROSS_COMPILE=/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi- hi3518ev300_config
make[1]: Entering directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  YACC    scripts/kconfig/zconf.tab.c
  LEX     scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory '/home/rootroot/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01'
pushd /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01;make ARCH=arm CROSS_COMPILE=/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi- -j 20 >/dev/null;popd
~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01 ~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
make[2]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[2]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
make[2]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
===================== WARNING ======================
This board does not use CONFIG_DM_USB. Please update
the board to use CONFIG_DM_USB before the v2019.07 release.
Failure to update by the deadline may result in board removal.
See doc/driver-model/MIGRATION.txt for more info.
====================================================
===================== WARNING ======================
This board does not use CONFIG_DM_ETH (Driver Model
for Ethernet drivers). Please update the board to use
CONFIG_DM_ETH before the v2020.07 release. Failure to
update by the deadline may result in board removal.
See doc/driver-model/migration.rst for more info.
====================================================
~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
chmod +x /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/arch/arm/cpu/armv7/hi3518ev300/hw_compressed/gzip
cp /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/reg/reg_info_hi3518ev300.bin /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/.reg
pushd /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01;make ARCH=arm CROSS_COMPILE=/home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../../../../prebuilts/gcc-arm-none-eabi-7-2017-q4-major/bin/arm-none-eabi- u-boot-z.bin >/dev/null;popd
~/code3518/vendor/hisi/hi35xx/third_party/uboot/u-boot-2020.01 ~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot
cp /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/u-boot-hi3518ev300.bin /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/out/boot
cp /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/../../third_party/uboot/u-boot-2020.01/u-boot-hi3518ev300.bin  /home/rootroot/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot/secureboot_release
---------task [2] build tools run on pc
------- osdrv build done -------
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ find . -name *.o
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 
rootroot@rootroot-HP-ZHAN-66-Pro-A-14-G3:~/code3518/vendor/hisi/hi35xx/hi3518ev300/uboot$ 


在编译生成的.o文件Z:\code3518\vendor\hisi\hi35xx\third_party\uboot\u-boot-2020.01\drivers\mtd\spi\hifmc100\hifmc100_os.o很容易看见已经编译进去了!
用记事本打开,直接搜索:99或者loveU99即可:
hifmc100_spi_nor_probe %s(%d): SPI Nor total size: %uMB loveU99 2021/2/24 15:45

 

06-20210224华为海思Hi3518EV300鸿蒙系统的uboot编译_第2张图片


由于只修改了uboot,可以只刷uboot即可!
刷机之后可以看见:
hisilicon # reset
resetting ...
                         


System startup

Uncompress Ok!

U-Boot 2020.01 (Feb 24 2021 - 15:45:58 +0800)hi3518ev300

DRAM:  SPI Nor:  hifmc_ip_ver_check(54): Check Flash Memory Controller v100 ...hifmc_ip_ver_check(60):  Found
hifmc_spi_nor_probe(2070): SPI Nor ID Table Version 1.0
hifmc_spi_nor_probe(2095): SPI Nor(cs 0) ID: 0x20 0x70 0x18
hifmc_init_print(2016): Block:64KB hifmc_init_print(2017): Chip:16MB hifmc_init_print(2018): Name:"XM25QH128A"
hifmc100_spi_nor_probe(145): SPI Nor total size: 16MB loveU99 2021/2/24 15:45
NAND:  0 MiB
Loading Environment from SPI Flash... *** Warning - bad CRC, using default environment

Loading Environment from NAND... *** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   eth0
Error: eth0 address not set.

Hit any key to stop autoboot:  0 
## Error: "distro_bootcmd" not defined
hisilicon # 
hisilicon # 
hisilicon # setenv bootcmd "sf probe 0;sf read 0x40000000 0x100000 0x600000;go 0x40000000"
hisilicon # setenv bootargs "console=ttyAMA0,115200n8 root=flash fstype=jffs2 rw rootaddr=7M rootsize=8M"
hisilicon # saveenv
Saving Environment to SPI Flash... Erasing SPI flash...Writing to SPI flash...done
OK
hisilicon # reset
resetting ...
                         


System startup

Uncompress Ok!

U-Boot 2020.01 (Feb 24 2021 - 15:45:58 +0800)hi3518ev300

DRAM:  SPI Nor:  hifmc_ip_ver_check(54): Check Flash Memory Controller v100 ...hifmc_ip_ver_check(60):  Found
hifmc_spi_nor_probe(2070): SPI Nor ID Table Version 1.0
hifmc_spi_nor_probe(2095): SPI Nor(cs 0) ID: 0x20 0x70 0x18
hifmc_init_print(2016): Block:64KB hifmc_init_print(2017): Chip:16MB hifmc_init_print(2018): Name:"XM25QH128A"
hifmc100_spi_nor_probe(145): SPI Nor total size: 16MB loveU99 2021/2/24 15:45
NAND:  0 MiB
Loading Environment from SPI Flash... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0
Error: eth0 address not set.

Hit any key to stop autoboot:  0 
device 0 offset 0x100000, size 0x600000

SF: 6291456 bytes @ 0x100000 Read: OK
## Starting application at 0x40000000 ...

******************Welcome******************

Processor   : Cortex-A7
Run Mode    : UP
GIC Rev     : GICv2
build time  : Feb 22 2021 16:45:56
Kernel      : Huawei LiteOS 2.0.0.35/debug

*******************************************

main core booting up...
[ERR][HDF:E/hcs_blob_if]CheckHcsBlobLength: the blobLength: 8660, byteAlign: 1, totalSize: -8640
cpu 0 entering scheduler
random dev init ...
proc fs init ...
Mount procfs finished.
MMC dev init ...[ERR]No console dev used.
[ERR]No console dev used.
mem dev init ...
spi nor flash init ...
Spi Nor ID:0x20 0x70 0x18 0x20 0x70 0x18 0x20 0x70 
Spi Nor Flash Info:
Name:"XM25QH128A" Size:16MB Block:64KB
spinor_init ...
net init ...

tcpip_init start

tcpip_init end
Ethernet start.hisi_eth: User did not set phy mode, use default=rmii
hisi_eth: User did not set phy addr, auto scan...
Can't find PHY device - id: 0
netif_is_link_up overtime!

************************************************************
usb init ...

******** usb_init in **********
usb v3.05 2019-11-20 10:40
[ERR]controller type 1 dtype 2 is error
******** usb_init fail**********

Date:Feb 22 2021.
Time:16:46:50.
OsMountRootfs start ...
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00d69ec0: 0x617e instead
<5>Further such events for this erase block will not be printed
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00f00be0: 0x031a instead
<5>Further such events for this erase block will not be printed
OsMountRootfs end ...
DeviceManagerStart start ...
FUNC:parse_sensor_clock line:123  SNS: is [f23]!
FUNC:parse_sensor_bus_type line:85  SNS is [f23]  !
==== online_flag=0, cmos_yuv_flag=0, sensor=f23, chip=hi3518ev300, board=demo====
==== g_quick_start_flag=0 ====
sysconfig init success!
g_mmz_start=0x42000000, g_mmz_size=0x20
mmz param= anonymous,0,0x42000000,32M
<6>Hisilicon Media Memory Zone Manager
Load hifb.ko OK!
[VERSION]:Hi3881V100R001C00SPC020 2020-07-16 23:15:00
oam_main_init SUCCESSFULLY!
wal_customize_init SUCCESSFULLY!
oal_main_init SUCCESSFULLY
frw_main_init SUCCESSFULLY!
hi_wifi_plat_init SUCCESSFULLY
sdio probe:pull up power on gpio
hcc_hmac_init SUCCESSFULLY
plat_firmware_init SUCCESSFULLY
Device is Ready!
wlan_pm_open SUCCESSFULLY!!
hmac_main_init SUCCESSULLY
get rates from device
wal_main_init SUCCESSFULLY
hi_wifi_host_init SUCCESSFULLY
Hi3881 DRV insmod SUCCESSFULLY!
[ERR][HDF:E/HDF_LOG_TAG]HdfWifiDriverInit:init chip 0 successirtual_serial_init end ...
system_console_init end ...
CatLogShell start ...
CatLogShell start ...
OsUserInitProcess start ...
OsUserInitProcess end ...
[Init] ****/****/****/****/OpenHarmony/****/****/3/OpenHarmony 1.0/debug
[ERR]Failed to find block driver /dev/mmcblk0
[Init] DoMount, failed for vfat /dev/mmcblk0 /sdcard rw,umask=000, err -1.
[ERR]Failed to find block driver /dev/mmcblk1
[Init] DoMount, failed for vfat /dev/mmcblk1 /sdcard rw,umask=000, err -1.
[Init] start service shell succeed, pid 3.
OHOS # [Init] start service apphilogcat succeed, pid 4.


 

06-20210224华为海思Hi3518EV300鸿蒙系统的uboot编译_第3张图片

 

 

你可能感兴趣的:(杂质,鸿蒙)