make run跑不起来
CodeChenL opened this issue · 8 comments
CodeChenL commented
rock@rock-5b:~/rsetup$ make run
sudo mount -t overlay overlay -o lowerdir=/:./src:./overlay /tmp/tmp.Zppm6IUgPH
mount: /tmp/tmp.Zppm6IUgPH: mount(2) system call failed: Too many levels of symbolic links.
make: *** [Makefile:17: overlay] Error 32
rock@rock-5b:~/rsetup$
make deb也不行
rock@rock-5b:~/rsetup$ make deb
debuild --no-lintian --lintian-hook "lintian --fail-on error,warning --suppress-tags bad-distribution-in-changes-file -- %p_%v_*.changes" --no-sign -b
dpkg-buildpackage -us -uc -ui -b
dpkg-buildpackage: info: source package rsetup
dpkg-buildpackage: info: source version 0.3.24
dpkg-buildpackage: info: source distribution jammy
dpkg-buildpackage: info: source changed by "Radxa Computer Co., Ltd" <dev@radxa.com>
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
fakeroot debian/rules clean
dh clean
dh_auto_clean
make -j8 distclean
make[1]: Entering directory '/home/rock/rsetup'
rm -rf src/usr/share/man/man8/rsetup.8
rm -rf src/SOURCE
rm -rf debian/.debhelper debian/rsetup debian/debhelper-build-stamp debian/files debian/*.debhelper.log debian/*.postrm.debhelper debian/*.substvars
make[1]: Leaving directory '/home/rock/rsetup'
dh_clean
debian/rules build
dh build
dh_update_autotools_config
dh_autoreconf
dh_auto_configure
dh_auto_build
make -j8 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/home/rock/rsetup'
pandoc "src/usr/share/man/man8/rsetup.8.md" -o "src/usr/share/man/man8/rsetup.8" --from markdown --to man -s
echo -e "git clone https://gh-proxy.com/https://github.com/radxa-pkg/rsetup.git\ngit checkout 966c6c523a3b4987eee21fc94e067d78ae22c24e" > "src/SOURCE"
make[1]: Leaving directory '/home/rock/rsetup'
dh_auto_test
make -j8 test
make[1]: Entering directory '/home/rock/rsetup'
find src -type f \( -name "*.sh" -o -name "rsetup" \) -exec shellcheck --source-path=./src --external-sources {} +
make[1]: Leaving directory '/home/rock/rsetup'
create-stamp debian/debhelper-build-stamp
fakeroot debian/rules binary
dh binary
dh_testroot
dh_prep
dh_auto_install
dh_install
dh_installdocs
dh_installchangelogs
dh_installman
dh_installinit
dh_installsystemd
dh_lintian
dh_perl
dh_link
dh_strip_nondeterminism
dh_compress
dh_fixperms
dh_missing
dh_installdeb
dh_gencontrol
dh_md5sums
debian/rules override_dh_builddeb
make[1]: Entering directory '/home/rock/rsetup'
dh_builddeb -- -Zxz
dpkg-deb: building package 'rsetup' in '../rsetup_0.3.24_all.deb'.
make[1]: Leaving directory '/home/rock/rsetup'
dpkg-genbuildinfo --build=binary
dpkg-genchanges --build=binary >../rsetup_0.3.24_arm64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)
Running lintian-hook
lintian --fail-on error,warning --suppress-tags bad-distribution-in-changes-file -- rsetup_0.3.24_*.changes
N: 1 hint overridden (1 warning); 2 unused overrides
rock@rock-5b:~/rsetup$
RadxaYuntian commented
make run我在我x86系统上可以正常运行:
[excalibur@yuntian rsetup]$ make run
sudo mount -t overlay overlay -o lowerdir=/:./src:./overlay /tmp/tmp.hV2WJT2zo5
[sudo] password for excalibur:
sudo systemd-nspawn --link-journal no -D /tmp/tmp.hV2WJT2zo5 rsetup || true
Spawning container tmp.hV2WJT2zo5 on /tmp/tmp.hV2WJT2zo5.
Press Ctrl-] three times within 1s to kill container.
Container tmp.hV2WJT2zo5 exited successfully.
sudo umount /tmp/tmp.hV2WJT2zo5
rmdir /tmp/tmp.hV2WJT2zo5
make deb你其实是跑成功了。debuild会把生成的包放在当前目录的上一层,也就是~里面
RadxaYuntian commented
你可以看看dmesg,这个应该是overlayfs的报错
RadxaYuntian commented
CodeChenL commented
好的,怪不得我find命令找不到
CodeChenL commented
dmesg确实报错和链接的一样,看来只能等待sdk更新内核版本才能在5b上跑了
CodeChenL commented
对了,如果我加个备份系统镜像的功能你们接受pr吗
RadxaYuntian commented
我们这边有一个备份脚本,你可以给这个项目提PR:https://github.com/akgnah/rockpi-toolkit
CodeChenL commented
好的