Skip to content

Instantly share code, notes, and snippets.

@Y2Kot
Last active March 6, 2023 07:30
Show Gist options
  • Save Y2Kot/006395a42ab04c4cbd6af91085b68678 to your computer and use it in GitHub Desktop.
Save Y2Kot/006395a42ab04c4cbd6af91085b68678 to your computer and use it in GitHub Desktop.
CONFIG_KERNEL_VERSION: 5.4
------device/khadas/kvim4/build.config.meson.arm64.trunk-----
KERNEL_DEVICETREE: kvim4 kvim4n
=====ab update & vendor boot mode=====
=================================
========================================================
= build config: /home/ubuntu/vim4/device/khadas/kvim4/build.config.meson.arm64.trunk
. common/build.config.common
. common/build.config.aarch64
. device/khadas/common/kernelbuild/build.config.common
DEFCONFIG=meson64_a64_defconfig
EXTRA_CMDS=''
#It is a must to set GPU driver's version
GPU_DRV_VERSION=r25p0
if [[ -n ${BOARD_COMPILE_HDMITX_ONLY} && \
`echo "${BOARD_COMPILE_HDMITX_ONLY}" \
|awk '{print length($0)}'` -eq 4 ]];then
echo "set kernel device tree to t7 hdmi only"
KERNEL_DEVICETREE="kvim4 kvim4n"
else
KERNEL_DEVICETREE="kvim4 kvim4n"
fi
DTBO_DEVICETREE=android_overlay_dt
PRODUCT_DIRNAME=device/khadas/kvim4
BOARD_DEVICENAME=kvim4
ENABLE_KASAN=false
FILES=""
EXT_MODULES="
vendor/amlogic/common/wifi_bt/wifi/configs/5_4
vendor/amlogic/common/wifi_bt/bluetooth/configs/5_4
vendor/amlogic/common/gpu/bifrost
vendor/amlogic/common/tdk_linuxdriver
hardware/amlogic/media_modules
vendor/amlogic/common/arm_isp/linux_54_t7/kernel/subdev/iq
vendor/amlogic/common/arm_isp/linux_54_t7/kernel/subdev/lens
vendor/amlogic/common/arm_isp/linux_54_t7/kernel/subdev/sensor
vendor/amlogic/common/arm_isp/linux_54_t7/kernel/v4l2_dev
vendor/amlogic/common/arm_isp/linux_54_t7/kernel/mipi_yuv_sensor/amlcam
vendor/amlogic/common/arm_isp/linux_54_t7/kernel/mipi_yuv_sensor/sensor/imx290
vendor/amlogic/common/arm_isp/linux_54_t7/kernel/mipi_yuv_sensor/sensor/ov5640
vendor/amlogic/common/arm_isp/linux_54_t7c/amlcam
vendor/amlogic/common/arm_isp/linux_54_t7c/sensor
vendor/amlogic/common/cve/driver
vendor/amlogic/common/adla
"
STOP_SHIP_TRACEPRINTK=1
PATH=/home/ubuntu/vim4/build/build-tools/path/linux-x86:/home/ubuntu/vim4/prebuilts/clang/host/linux-x86/clang-r383902/bin:/home/ubuntu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
========================================================
Setting up for build
+ '[' ']'
+ '[' '' == true ']'
+ '[' -n '' ']'
+ cp common/arch/arm64/configs/kvim4_a64_R_defconfig common/arch/arm64/configs/meson64_a64_gki_defconfig
+ '[' '!' -z '' ']'
+ '[' '' == user ']'
+ cd common
+ make CC=clang HOSTCC=clang LD=ld.lld NM=llvm-nm OBJCOPY=llvm-objcopy O=/home/ubuntu/vim4/out/android11-5.4/common meson64_a64_gki_defconfig
make[1]: Entering directory '/home/ubuntu/vim4/out/android11-5.4/common'
GEN Makefile
arch/arm64/configs/meson64_a64_gki_defconfig:351:warning: override: reassigning to symbol PPP_DEFLATE
arch/arm64/configs/meson64_a64_gki_defconfig:352:warning: override: reassigning to symbol PPP_BSDCOMP
arch/arm64/configs/meson64_a64_gki_defconfig:566:warning: override: reassigning to symbol USB_SERIAL_OPTION
#
# No change to .config
#
make[1]: Leaving directory '/home/ubuntu/vim4/out/android11-5.4/common'
+ rm -fr common/arch/arm64/configs/meson64_a64_gki_defconfig
+ set +x
========================================================
Building kernel
+ find /home/ubuntu/vim4/out/android11-5.4/common/ -type f
+ grep '\.ko$'
+ xargs rm -fr
+ '[' ']'
+ cd /home/ubuntu/vim4/out/android11-5.4/common
+ make O=/home/ubuntu/vim4/out/android11-5.4/common CC=clang HOSTCC=clang LD=ld.lld NM=llvm-nm OBJCOPY=llvm-objcopy
arch/arm64/Makefile:52: Detected assembler with broken .inst; disassembly will be unreliable
GEN Makefile
grep: /home/ubuntu/vim4/common/.config: No such file or directory
DTC arch/arm64/boot/dts/amlogic/kvim4.dtb
DTC arch/arm64/boot/dts/amlogic/kvim4n.dtb
CC scripts/mod/empty.o
/usr/bin/as: unrecognized option '-EL'
clang-11: error: assembler command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/home/ubuntu/vim4/common/scripts/Makefile.build:284: scripts/mod/empty.o] Error 1
make[1]: *** [/home/ubuntu/vim4/common/Makefile:1247: prepare0] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1634.5-15: Warning (reg_format): /csiphy0@0xfe3bec00/ports/port@0/endpoint:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1656.5-15: Warning (reg_format): /csiphy2@0xfe3bec00/ports/port@0/endpoint:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm64/boot/dts/amlogic/kvim4n.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/amlogic/kvim4n.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/amlogic/kvim4n.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1633.25-1639.6: Warning (avoid_default_addr_size): /csiphy0@0xfe3bec00/ports/port@0/endpoint: Relying on default #address-cells value
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1633.25-1639.6: Warning (avoid_default_addr_size): /csiphy0@0xfe3bec00/ports/port@0/endpoint: Relying on default #size-cells value
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1655.25-1661.6: Warning (avoid_default_addr_size): /csiphy2@0xfe3bec00/ports/port@0/endpoint: Relying on default #address-cells value
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1655.25-1661.6: Warning (avoid_default_addr_size): /csiphy2@0xfe3bec00/ports/port@0/endpoint: Relying on default #size-cells value
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1434.26-1438.6: Warning (graph_endpoint): /soc/apb4@fe000000/i2c@6a000/sensor2@36/port/ov08a10: graph endpoint node name should be 'endpoint'
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1633.25-1639.6: Warning (graph_endpoint): /csiphy0@0xfe3bec00/ports/port@0/endpoint: graph node unit address error, expected "0"
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1633.25-1639.6: Warning (graph_endpoint): /csiphy0@0xfe3bec00/ports/port@0/endpoint: graph node '#address-cells' is -1, must be 1
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1633.25-1639.6: Warning (graph_endpoint): /csiphy0@0xfe3bec00/ports/port@0/endpoint: graph node '#size-cells' is -1, must be 0
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1655.25-1661.6: Warning (graph_endpoint): /csiphy2@0xfe3bec00/ports/port@0/endpoint: graph node unit address error, expected "2"
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1655.25-1661.6: Warning (graph_endpoint): /csiphy2@0xfe3bec00/ports/port@0/endpoint: graph node '#address-cells' is -1, must be 1
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1655.25-1661.6: Warning (graph_endpoint): /csiphy2@0xfe3bec00/ports/port@0/endpoint: graph node '#size-cells' is -1, must be 0
make: *** [/home/ubuntu/vim4/common/Makefile:179: sub-make] Error 2
build kernel error
ubuntu@kickseed:~/vim4$ ./mk kvim4 -v 5.4 -j20 > real_kernel.log
+ '[' ']'
+ '[' '' == true ']'
+ '[' -n '' ']'
+ cp common/arch/arm64/configs/kvim4_a64_R_defconfig common/arch/arm64/configs/meson64_a64_gki_defconfig
+ '[' '!' -z '' ']'
+ '[' '' == user ']'
+ cd common
+ make CC=clang HOSTCC=clang LD=ld.lld NM=llvm-nm OBJCOPY=llvm-objcopy O=/home/ubuntu/vim4/out/android11-5.4/common meson64_a64_gki_defconfig
arch/arm64/configs/meson64_a64_gki_defconfig:351:warning: override: reassigning to symbol PPP_DEFLATE
arch/arm64/configs/meson64_a64_gki_defconfig:352:warning: override: reassigning to symbol PPP_BSDCOMP
arch/arm64/configs/meson64_a64_gki_defconfig:566:warning: override: reassigning to symbol USB_SERIAL_OPTION
+ rm -fr common/arch/arm64/configs/meson64_a64_gki_defconfig
+ set +x
+ find /home/ubuntu/vim4/out/android11-5.4/common/ -type f
+ grep '\.ko$'
+ xargs rm -fr
+ '[' ']'
+ cd /home/ubuntu/vim4/out/android11-5.4/common
+ make O=/home/ubuntu/vim4/out/android11-5.4/common CC=clang HOSTCC=clang LD=ld.lld NM=llvm-nm OBJCOPY=llvm-objcopy
arch/arm64/Makefile:52: Detected assembler with broken .inst; disassembly will be unreliable
grep: /home/ubuntu/vim4/common/.config: No such file or directory
/usr/bin/as: unrecognized option '-EL'
clang-11: error: assembler command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/home/ubuntu/vim4/common/scripts/Makefile.build:284: scripts/mod/empty.o] Error 1
make[1]: *** [/home/ubuntu/vim4/common/Makefile:1247: prepare0] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1634.5-15: Warning (reg_format): /csiphy0@0xfe3bec00/ports/port@0/endpoint:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1656.5-15: Warning (reg_format): /csiphy2@0xfe3bec00/ports/port@0/endpoint:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
arch/arm64/boot/dts/amlogic/kvim4n.dtb: Warning (pci_device_bus_num): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/amlogic/kvim4n.dtb: Warning (i2c_bus_reg): Failed prerequisite 'reg_format'
arch/arm64/boot/dts/amlogic/kvim4n.dtb: Warning (spi_bus_reg): Failed prerequisite 'reg_format'
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1633.25-1639.6: Warning (avoid_default_addr_size): /csiphy0@0xfe3bec00/ports/port@0/endpoint: Relying on default #address-cells value
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1633.25-1639.6: Warning (avoid_default_addr_size): /csiphy0@0xfe3bec00/ports/port@0/endpoint: Relying on default #size-cells value
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1655.25-1661.6: Warning (avoid_default_addr_size): /csiphy2@0xfe3bec00/ports/port@0/endpoint: Relying on default #address-cells value
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1655.25-1661.6: Warning (avoid_default_addr_size): /csiphy2@0xfe3bec00/ports/port@0/endpoint: Relying on default #size-cells value
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1434.26-1438.6: Warning (graph_endpoint): /soc/apb4@fe000000/i2c@6a000/sensor2@36/port/ov08a10: graph endpoint node name should be 'endpoint'
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1633.25-1639.6: Warning (graph_endpoint): /csiphy0@0xfe3bec00/ports/port@0/endpoint: graph node unit address error, expected "0"
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1633.25-1639.6: Warning (graph_endpoint): /csiphy0@0xfe3bec00/ports/port@0/endpoint: graph node '#address-cells' is -1, must be 1
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1633.25-1639.6: Warning (graph_endpoint): /csiphy0@0xfe3bec00/ports/port@0/endpoint: graph node '#size-cells' is -1, must be 0
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1655.25-1661.6: Warning (graph_endpoint): /csiphy2@0xfe3bec00/ports/port@0/endpoint: graph node unit address error, expected "2"
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1655.25-1661.6: Warning (graph_endpoint): /csiphy2@0xfe3bec00/ports/port@0/endpoint: graph node '#address-cells' is -1, must be 1
/home/ubuntu/vim4/common/arch/arm64/boot/dts/amlogic/kvim4n.dts:1655.25-1661.6: Warning (graph_endpoint): /csiphy2@0xfe3bec00/ports/port@0/endpoint: graph node '#size-cells' is -1, must be 0
make: *** [/home/ubuntu/vim4/common/Makefile:179: sub-make] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment