longan
- ./build.sh config
- ./build.sh
編譯 longan 結果:
juwan@juwan-n85-dls:/media/juwan/70970A1D041A95C2/H616/longan$ ./build.sh config
Welcome to mkscript setup progress
All available platform:
0. android
1. linux
Choice [android]:
All available ic:
0. h313
1. h616
2. h700
Choice [h616]:
All available board:
0. fpga
1. ft
2. p1
3. p2
4. perf1
5. perf1_axp152
6. perf2
7. perf3
8. qa
Choice [p2]:
INFO: kernel defconfig: generate /media/juwan/70970A1D041A95C2/H616/longan/kernel/linux-4.9/.config by /media/juwan/70970A1D041A95C2/H616/longan/kernel/linux-4.9/arch/arm64/configs/sun50iw9p1smp_h616_android_defconfig
*** Default configuration is based on 'sun50iw9p1smp_h616_android_defconfig'
#
# configuration written to .config
#
juwan@juwan-n85-dls:/media/juwan/70970A1D041A95C2/H616/longan$ ./build.sh
ACTION List: mklichee;========
Execute command: mklichee
INFO: ----------------------------------------
INFO: build lichee ...
INFO: chip: sun50iw9p1
INFO: platform: android
INFO: kernel: linux-4.9
INFO: board: p2
INFO: output: /media/juwan/70970A1D041A95C2/H616/longan/out/h616/p2/android
INFO: ----------------------------------------
INFO: build dtbo ...
INFO: mkdtbo: make dtboimg start.
create image file: /media/juwan/70970A1D041A95C2/H616/longan/out/h616/p2/android/dtbo.img...
15757 blocks
15758 blocks
build_ramfs
Copy boot.img to output directory ...
Copy modules to target ...
sun50iw9p1 compile Kernel successful
INFO: build kernel OK.
INFO: build rootfs ...
INFO: skip make rootfs for android
INFO: ----------------------------------------
INFO: build lichee OK.
INFO: ----------------------------------------
android
- source build/envsetup.sh
- lunch cupid_p2-eng
- extract-bsp
- make -j8
FAILED: out/soong/.bootstrap/blueprint-pathtools/test/test.passed
juwan@juwan-n85-dls:/media/juwan/70970A1D041A95C2/H616/android$ make -j1
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=cupid_p2
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.15.0-52-generic-x86_64-Ubuntu-20.04.4-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.191105.004
OUT_DIR=out
============================================
[ 35% 48/137] test github.com/google/blueprint/pathtools
FAILED: out/soong/.bootstrap/blueprint-pathtools/test/test.passed
out/soong/.bootstrap/bin/gotestrunner -p ./build/blueprint/pathtools -f out/soong/.bootstrap/blueprint-pathtools/test/test.passed -- out/soong/.bootstrap/blueprint-pathtools/test/test -test.short
--- FAIL: TestGlobEscapes (0.02s)
--- FAIL: TestGlobEscapes/**/* (0.02s)
glob_test.go:562: incorrect matches list:
glob_test.go:562: pattern: "**/*"
glob_test.go:562: got: []string{"a/", "b", "a/a"}
glob_test.go:562: expected: []string{"*", "**/", "?", "a/", "b", "**/*", "**/a", "**/b/", "**/b/b", "a/a"}
glob_test.go:562: incorrect deps list:
glob_test.go:562: pattern: "**/*"
glob_test.go:562: got: []string{".", "a"}
glob_test.go:562: expected: []string{".", "**", "**/b", "a"}
--- FAIL: TestGlobEscapes/**/\* (0.00s)
glob_test.go:562: incorrect matches list:
glob_test.go:562: pattern: "**/\\*"
glob_test.go:562: got: []string(nil)
glob_test.go:562: expected: []string{"*", "**/*"}
glob_test.go:562: incorrect deps list:
glob_test.go:562: pattern: "**/\\*"
glob_test.go:562: got: []string{".", "a"}
glob_test.go:562: expected: []string{".", "**", "**/b", "a"}
--- FAIL: TestGlobEscapes/\*\*/* (0.00s)
glob_test.go:562: incorrect matches list:
glob_test.go:562: pattern: "\\*\\*/*"
glob_test.go:562: got: []string(nil)
glob_test.go:562: expected: []string{"**/*", "**/a", "**/b/"}
glob_test.go:562: incorrect deps list:
glob_test.go:562: pattern: "\\*\\*/*"
glob_test.go:562: got: []string{"."}
glob_test.go:562: expected: []string{".", "**"}
--- FAIL: TestGlobEscapes/\*\*/**/* (0.00s)
glob_test.go:562: incorrect matches list:
glob_test.go:562: pattern: "\\*\\*/**/*"
glob_test.go:562: got: []string(nil)
glob_test.go:562: expected: []string{"**/*", "**/a", "**/b/", "**/b/b"}
glob_test.go:562: incorrect deps list:
glob_test.go:562: pattern: "\\*\\*/**/*"
glob_test.go:562: got: []string{"."}
glob_test.go:562: expected: []string{".", "**", "**/b"}
FAIL
18:54:13 soong bootstrap failed with: exit status 1
#### failed to build some targets (06:58 (mm:ss)) ####
先看一下誰在調用 glob_test.go ,關了再說
juwan@juwan-n85-dls:/media/juwan/70970A1D041A95C2/H616/android$ grep -rn glob_test.go
匹配到二進制文件 build/blueprint/.git/index
build/blueprint/Blueprints:26: "glob_test.go",
build/blueprint/Blueprints:71: "pathtools/glob_test.go",
匹配到二進制文件 build/soong/.git/index
build/soong/cmd/diff_target_files/Android.bp:13: "glob_test.go",
把 build/blueprint/Blueprints:71: "pathtools/glob_test.go",
刪除了繼續。
接着 build/blueprint/pathtools/fs_test.go:41:27: undefined: pwd
同理幹掉 pathtools/fs_test.go 字段。
檢查完畢,開始構建......
pack 燒錄
編譯結束 pack
打包,燒錄 longan/out/h616_android10_p2_uart0.img