ruyisdk / support-matrix

RISC-V Board and OS Support Matrix
Apache License 2.0
14 stars 14 forks source link

[Page Content] OpenWRT on Duo #101

Open stydxm opened 1 day ago

stydxm commented 1 day ago

Please Choose

Product Name

Duo

CPU

CV1800B

CPU Core

XuanTie C906

I found new information here.

https://github.com/Pillar1989/VizOS

Give out some notes.

No response

stydxm commented 1 day ago

while performing /scripts/feeds install vizos:

Collecting package info: done
Collecting target info: done
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a build dependency on 'libpam', which does not exist
Ignoring feed 'packages' - index missing
Ignoring feed 'luci' - index missing
Ignoring feed 'routing' - index missing
Ignoring feed 'telephony' - index missing
WARNING: No feed for package 'vizos' found

if continue building, make -j$(nproc) || make package/feeds/vizos/uboot-sophgo/compile V=s will throw error

root@8cf0a70c0eba:/op/openwrt# make -j$(nproc) || make package/feeds/vizos/uboot-sophgo/compile V=s
Collecting package info: done
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a build dependency on 'libpam', which does not exist
make[2]: Entering directory '/op/openwrt/scripts/config'
cc -O2    -c -o conf.o conf.c
cc -O2    -c -o confdata.o confdata.c
cc -O2    -c -o expr.o expr.c
cc -O2 -I ./.   -c -o lexer.lex.o lexer.lex.c
cc -O2    -c -o menu.o menu.c
cc -O2 -I ./.   -c -o parser.tab.o parser.tab.c
cc -O2    -c -o preprocess.o preprocess.c
cc -O2    -c -o symbol.o symbol.c
cc -O2    -c -o util.o util.c
cc   conf.o confdata.o expr.o lexer.lex.o menu.o parser.tab.o preprocess.o symbol.o util.o   -o conf
make[2]: Leaving directory '/op/openwrt/scripts/config'
Makefile:58: print....................... Image/Prepare: cv180x $(DEVICE_DTS)  /op/openwrt/staging_dir/target-riscv64-unknown-linux-musl_musl/image 
time: target/linux/prereq#0.05#0.04#0.10
 make[1] world
 make[2] tools/compile
 make[2] package/cleanup
 make[3] -C tools/flock compile
 make[3] -C tools/xz compile
 make[3] -C tools/sed compile
 make[3] -C tools/patch compile
 make[3] -C tools/tar compile
 make[3] -C tools/libdeflate compile
    ERROR: tools/tar failed to build.
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/op/openwrt/include/toplevel.mk:232: world] Error 1
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a build dependency on 'libpam', which does not exist
make[2]: Entering directory '/op/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/op/openwrt/scripts/config'
make[1]: Entering directory '/op/openwrt'
make[2]: Entering directory '/op/openwrt/package/libs/toolchain'
touch /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.prepared_1a50f1e39d71c0c2bed88e4c7a5ac57b_6664517399ebbbc92a37c5bb081b5c53_check
mkdir -p /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain
touch /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.prepared_1a50f1e39d71c0c2bed88e4c7a5ac57b_6664517399ebbbc92a37c5bb081b5c53
rm -f /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.configured_*
rm -f /op/openwrt/staging_dir/target-riscv64-unknown-linux-musl_musl/stamp/.toolchain_installed
(cd /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/./; if [ -x ./configure ]; then find /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ -name config.guess | xargs -r chmod u+w; find /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ -name config.guess | xargs -r -n1 cp --remove-destination /op/openwrt/scripts/config.guess; find /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ -name config.sub | xargs -r chmod u+w; find /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ -name config.sub | xargs -r -n1 cp --remove-destination /op/openwrt/scripts/config.sub; AR="riscv64-unknown-linux-musl-gcc-ar" AS="riscv64-unknown-linux-musl-gcc -c -Os -pipe -mabi=lp64d -march=rv64gcxthead -fno-caller-saves -fno-plt -I/op/openwrt/staging_dir/target-riscv64-unknown-linux-musl_musl/usr/include -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD="riscv64-unknown-linux-musl-ld.bfd" NM="riscv64-unknown-linux-musl-gcc-nm" CC="riscv64-unknown-linux-musl-gcc" GCC="riscv64-unknown-linux-musl-gcc" CXX="riscv64-unknown-linux-musl-g++" RANLIB="riscv64-unknown-linux-musl-gcc-ranlib" STRIP=riscv64-unknown-linux-musl-strip OBJCOPY=riscv64-unknown-linux-musl-objcopy OBJDUMP=riscv64-unknown-linux-musl-objdump SIZE=riscv64-unknown-linux-musl-size CFLAGS="-Os -pipe -mabi=lp64d -march=rv64gcxthead -fno-caller-saves -fno-plt -I/op/openwrt/staging_dir/target-riscv64-unknown-linux-musl_musl/usr/include -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mabi=lp64d -march=rv64gcxthead -fno-caller-saves -fno-plt -I/op/openwrt/staging_dir/target-riscv64-unknown-linux-musl_musl/usr/include -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/opt/host-tools/gcc/riscv64-linux-musl-x86_64/usr/include -I/opt/host-tools/gcc/riscv64-linux-musl-x86_64/include " LDFLAGS="-L/opt/host-tools/gcc/riscv64-linux-musl-x86_64/usr/lib -L/opt/host-tools/gcc/riscv64-linux-musl-x86_64/lib -fuse-ld=bfd -L/op/openwrt/staging_dir/target-riscv64-unknown-linux-musl_musl/usr/lib -znow -zrelro "   ./configure --target=riscv64-unknown-linux-musl --host=riscv64-unknown-linux-musl --build=x86_64-pc-linux-gnu --disable-dependency-tracking --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info   ; fi; )
touch /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.built
touch /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.built_check
touch /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.built
rm -rf /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.pkgdir/libc.installed /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.pkgdir/libc
mkdir -p /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.pkgdir/libc
for file in ./sysroot/lib/ld-musl-riscv64-sf.so.1 ./sysroot/lib/ld-musl-riscv64.so.1 ./sysroot/lib/ld-musl-riscv64v0p7_xthead.so.1 ./sysroot/lib/ld-musl-riscv64v_xthead.so.1 ./sysroot/lib/ld-musl-riscv64xthead-sf.so.1 ./sysroot/lib/ld-musl-riscv64xthead.so.1 ./sysroot/usr/lib64/lp64d/libc.so ./sysroot/usr/lib64xthead/lp64d/libc.so; do install -d -m0755 /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.pkgdir/libc/lib ; cp -fpR /opt/host-tools/gcc/riscv64-linux-musl-x86_64/$file /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.pkgdir/libc/lib/ ; done ; exit 0
install -d -m0755 /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.pkgdir/libc/usr/bin
ln -sf ../../lib/ /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.pkgdir/libc/usr/bin/ldd
touch /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.pkgdir/libc.installed
mkdir -p /op/openwrt/staging_dir/target-riscv64-unknown-linux-musl_musl/root-sophgo/stamp
SHELL= flock /op/openwrt/tmp/.root-copy.flock -c 'cp -fpR /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/.pkgdir/libc/. /op/openwrt/staging_dir/target-riscv64-unknown-linux-musl_musl/root-sophgo/'
touch /op/openwrt/staging_dir/target-riscv64-unknown-linux-musl_musl/root-sophgo/stamp/.libc_installed
mkdir -p /op/openwrt/bin/targets/sophgo/cv180x/packages /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ipkg-riscv64_riscv64/libgcc/CONTROL /op/openwrt/staging_dir/target-riscv64-unknown-linux-musl_musl/pkginfo
for file in ./riscv64-unknown-linux-musl/lib64xthead/lp64d/libgcc_s.so ./riscv64-unknown-linux-musl/lib64xthead/lp64d/libgcc_s.so.1 ./sysroot/lib64/lp64d/libgcc_s.so ./sysroot/lib64/lp64d/libgcc_s.so.1 ./sysroot/lib64xthead/lp64d/libgcc_s.so ./sysroot/lib64xthead/lp64d/libgcc_s.so.1; do install -d -m0755 /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ipkg-riscv64_riscv64/libgcc/lib ; cp -fpR /opt/host-tools/gcc/riscv64-linux-musl-x86_64/$file /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ipkg-riscv64_riscv64/libgcc/lib/ ; done ; exit 0
find /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ipkg-riscv64_riscv64/libgcc -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="riscv64-unknown-linux-musl-"  NO_RENAME=1 ; NM="riscv64-unknown-linux-musl-nm" STRIP="riscv64-unknown-linux-musl-strip --strip-all" STRIP_KMOD="/op/openwrt/scripts/strip-kmod.sh" PATCHELF="/op/openwrt/staging_dir/host/bin/patchelf" /op/openwrt/scripts/rstrip.sh /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ipkg-riscv64_riscv64/libgcc
rstrip.sh: /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ipkg-riscv64_riscv64/libgcc/lib/libgcc_s.so.1: shared object
/op/openwrt/scripts/rstrip.sh: line 35: /op/openwrt/staging_dir/host/bin/patchelf: No such file or directory
(cd /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ipkg-riscv64_riscv64/libgcc/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /op/openwrt/bin/targets/sophgo/cv180x/packages
/op/openwrt/staging_dir/host/bin/fakeroot /op/openwrt/staging_dir/host/bin/bash /op/openwrt/scripts/ipkg-build -m "" /op/openwrt/build_dir/target-riscv64-unknown-linux-musl_musl/toolchain/ipkg-riscv64_riscv64/libgcc /op/openwrt/bin/targets/sophgo/cv180x/packages
bash: line 1: /op/openwrt/staging_dir/host/bin/fakeroot: No such file or directory
make[2]: *** [Makefile:750: /op/openwrt/bin/targets/sophgo/cv180x/packages/libgcc1_-4_riscv64_riscv64.ipk] Error 127
make[2]: Leaving directory '/op/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.09#0.09#0.19
    ERROR: package/libs/toolchain failed to build.
make[1]: *** [package/Makefile:128: package/libs/toolchain/compile] Error 1
make[1]: Leaving directory '/op/openwrt'
make: *** [/op/openwrt/include/toplevel.mk:232: package/feeds/vizos/uboot-sophgo/compile] Error 2