https://github.com/mangopi-sbc/Tina-Linux
7. t113_mq_r-tina
make 报错如下:
```bash
---------------------------------------err 1 = Makefile:42: *** fatal error! sun8iw20p1 is not support by eyesee-mpp!. Stop.
ERROR: please fix package/allwinner/eyesee-mpp/dragonboard/Makefile - see logs/package/allwinner/eyesee-mpp/dragonboard/dump.txt for details
ERROR: please fix package/allwinner/eyesee-mpp/middleware/Makefile - see logs/package/allwinner/eyesee-mpp/middleware/dump.txt for details
----------------------------------------
Collecting package info: done
make[1]: Entering directory '/T113/Tina-Linux'
make[2]: Entering directory '/T113/Tina-Linux'
........
make[3]: Entering directory '/T113/Tina-Linux/tools/squashfskit4'
make -C /T113/Tina-Linux/out/t113-mq_r/compile_dir/host/squashfskit-v4.14/squashfs-tools XZ_SUPPORT=1 LZ4_SUPPORT=1 LZMA_XZ_SUPPORT=1 XATTR_SUPPORT=1 LZMA_LIB="/T113/Tina-Linux/out/host/lib/liblzma.a" LZ4_LIB="/T113/Tina-Linux/out/host/lib/liblz4.a" EXTRA_CFLAGS="-I/T113/Tina-Linux/out/host/include" mksquashfs unsquashfs
make[4]: Entering directory '/T113/Tina-Linux/out/t113-mq_r/compile_dir/host/squashfskit-v4.14/squashfs-tools'
./version.sh
Writing squashfs-tools/version.h
cc -I/T113/Tina-Linux/out/host/include -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DLZMA_SUPPORT -DXZ_SUPPORT -DLZ4_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -c -o mksquashfs.o mksquashfs.c
cc mksquashfs.o read_fs.o action.o swap.o pseudo.o compressor.o sort.o progressbar.o read_file.o info.o restore.o process_fragments.o caches-queues-lists.o gzip_wrapper.o lzma_xz_wrapper.o xz_wrapper.o lzma_xz_options.o /T113/Tina-Linux/out/host/lib/liblzma.a lz4_wrapper.o /T113/Tina-Linux/out/host/lib/liblz4.a xattr.o read_xattrs.o -lpthread -lm -lz -o mksquashfs
/usr/bin/ld: read_fs.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: read_fs.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: action.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: action.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: sort.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: sort.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: info.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: info.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: restore.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: restore.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: process_fragments.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: process_fragments.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
/usr/bin/ld: xattr.o:(.bss+0x0): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x0): first defined here
/usr/bin/ld: xattr.o:(.bss+0x8): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x8): first defined here
---------------------------------------- err 2
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:262: mksquashfs] Error 1
make[4]: Leaving directory '/T113/Tina-Linux/out/t113-mq_r/compile_dir/host/squashfskit-v4.14/squashfs-tools'
make[3]: *** [Makefile:44: /T113/Tina-Linux/out/t113-mq_r/compile_dir/host/squashfskit-v4.14/.built] Error 2
make[3]: Leaving directory '/T113/Tina-Linux/tools/squashfskit4'
make[2]: *** [tools/Makefile:135: tools/squashfskit4/compile] Error 2
make[2]: Leaving directory '/T113/Tina-Linux'
make[1]: *** [tools/Makefile:133: /T113/Tina-Linux/out/t113-mq_r/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyyynnnyyyyyyyyyyynnyyyyyyyynyyynyyyyy] Error 2
make[1]: Leaving directory '/T113/Tina-Linux'
make: *** [/T113/Tina-Linux/build/toplevel.mk:306: world] Error 2
[3]+ Done $T/tools/build/buildserver --path $T 2> /dev/null 1>&2
----------------------------------------
#### make failed to build some targets (14 seconds) ####
```
如何解决?
最近编辑记录 gonboy (2023-03-22 19:06:34)
离线
```bash
#below items are used for mpp configuration of previous EyeseeLinux,
#for smooth migration to tina, we reserve these config items, define them here and export.
#ref to mpp_config.mk of EyeseeLinux.
#[config item], valid in makefile.
#config chip version: AW1721
ifeq ($(TARGET_CHIP), sun8iw12p1)
MPPCFG_CHIP := AW1721
else ifeq ($(TARGET_CHIP), sun8iw16p1)
MPPCFG_CHIP := AW1816
else ifeq ($(TARGET_CHIP), sun8iw21p1)
MPPCFG_CHIP := AW1886
else
$(error fatal error! $(TARGET_CHIP) is not support by eyesee-mpp!)
endif
```
eyesee-mpp\dragonboard\Makefile
T113 不支持 eyesee ??
离线
顶楼问题已经解决:
新增一个问题:
```bash
x@DESKTOP-23J05F6:~/T113/Tina-Linux$ pack
--==========--
PACK_CHIP sun8iw20p1
PACK_PLATFORM tina
PACK_BOARD t113-mq_r
PACK_KERN
PACK_DEBUG uart0
PACK_SIG none
PACK_SECURE none
PACK_MODE normal
PACK_FUNC android
PACK_PROGRAMMER none
PACK_TAR_IMAGE none
PACK_TOPDIR /T113/Tina-Linux
--==========--
No kernel param, parse it from t113
copying tools file
copying configs file
storage_type value is 1
rm /T113/Tina-Linux/out/t113-mq_r/image/sys_partition_nor.fex
rm /T113/Tina-Linux/out/t113-mq_r/image/image_nor.cfg
copying boot resource
copying boot file
make user resource for : /T113/Tina-Linux/out/t113-mq_r/image/sys_partition.fex
handle partition user-res
no user resource partitions
APP_PART_DOWNLOAD_FILE = /T113/Tina-Linux/out/t113-mq_r/image/app.fex
Need size of filesystem
no data resource partitions
don't build dtbo ...
update_chip
sboot file Path=/T113/Tina-Linux/out/t113-mq_r/image/sboot.bin
script file Path=/T113/Tina-Linux/out/t113-mq_r/image/sys_config.bin
update:unable to open sboot file
script update sboot ok
pack boot package
GetPrivateProfileSection read to end
content_count=3
file /T113/Tina-Linux/out/t113-mq_r/image/u-boot.fex cant be open
/T113/Tina-Linux/scripts/pack_img.sh: line 1250: 13891 Segmentation fault dragonsecboot -pack boot_package.cfg
ERROR: dragon pack run error
```
离线