Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] Can't add systemd package in buildroot rootfs

30

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
30

【Linux】 Can't add systemd package in buildroot rootfs

Posted at 7/12/2022 03:05:39      View:1770 | Replies:2        Print      Only Author   [Copy Link] 1#
Hello all!
I tried to add systemd package for my rv1126 project, but i got compilation error.

here is my test build config

  1. #include "base.config"
  2. #include "base_extra.config"
  3. #include "debug.config"
  4. #include "audio.config"
  5. #include "wifi.config"
  6. #include "network.config"
  7. #include "bt.config"
  8. #include "video_mpp.config"
  9. #include "rv1126_rv1109_arm.config"
  10. #include "systemd.config"
  11. #include "camera.config"
  12. BR2_ROOTFS_OVERLAY="board/rockchip/rv1126_rv1109/fs-overlay-systemd/"
  13. BR2_PACKAGE_CAMERA_ENGINE_RKISP_IQFILE="imx327_TongJu_CHT842-MD.xml"
  14. BR2_PACKAGE_RKWIFIBT_AP6212A1=y
  15. BR2_PACKAGE_RKMEDIA=y
  16. BR2_PACKAGE_RKMEDIA_MPP=y
  17. BR2_PACKAGE_RKMEDIA_FFMPEG=y
  18. BR2_PACKAGE_RKMEDIA_ALSA_PLAYBACK=y
  19. BR2_PACKAGE_RKMEDIA_ALSA_CAPTURE=y
  20. BR2_PACKAGE_RKMEDIA_V4L2_CAPTURE=y
  21. BR2_PACKAGE_RKMEDIA_RKRGA=y
  22. BR2_PACKAGE_DRM_DISPLAY_OUTPUT=y
  23. BR2_PACKAGE_RKMEDIA_LIVE555=y
  24. BR2_PACKAGE_RKMEDIA_RTSP_SERVER=y
  25. BR2_PACKAGE_RKMEDIA_RTSP_SERVER_H264=y
  26. BR2_PACKAGE_FFMPEG=y
  27. BR2_PACKAGE_DBUS_CPP=y
  28. BR2_PACKAGE_DBUS_GLIB=y
  29. BR2_PACKAGE_SQLITE=y
  30. BR2_PACKAGE_SQLITE_STAT3=y
  31. BR2_PACKAGE_SQLITE_ENABLE_FTS3=y
  32. BR2_PACKAGE_SQLITE_ENABLE_JSON1=y
  33. BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY=y
  34. BR2_PACKAGE_SQLITE_SECURE_DELETE=y
  35. BR2_PACKAGE_CJSON=y
  36. BR2_PACKAGE_JSON_C=y
  37. BR2_PACKAGE_JSON_FOR_MODERN_CPP=y
  38. BR2_PACKAGE_LIBCGICC=y
  39. BR2_PACKAGE_RTMPDUMP=y
  40. BR2_PACKAGE_BOOST=y
  41. BR2_PACKAGE_BOOST_ATOMIC=y
  42. BR2_PACKAGE_BOOST_CHRONO=y
  43. BR2_PACKAGE_BOOST_DATE_TIME=y
  44. BR2_PACKAGE_BOOST_FILESYSTEM=y
  45. BR2_PACKAGE_BOOST_LOG=y
  46. BR2_PACKAGE_BOOST_REGEX=y
  47. BR2_PACKAGE_BOOST_STACKTRACE=y
  48. BR2_PACKAGE_BOOST_SYSTEM=y
  49. BR2_PACKAGE_BOOST_THREAD=y
  50. BR2_PACKAGE_CONNMAN=y
  51. BR2_PACKAGE_CONNMAN_WIFI=y
  52. BR2_PACKAGE_CONNMAN_LOOPBACK=y
  53. BR2_PACKAGE_CONNMAN_CLIENT=y
  54. BR2_PACKAGE_FCGIWRAP=y
  55. BR2_PACKAGE_NGINX=y
  56. BR2_PACKAGE_NGINX_HTTP_SSL_MODULE=y
  57. BR2_PACKAGE_NGINX_DEBUG=y
  58. BR2_PACKAGE_NGINX_RTMP=y
Copy the code


Here is the error log
  1. PATH="/rv1126_source/buildroot/output/rockchip_rv1126_omodule/host/bin:/rv1126_source/buildroot/output/rockchip_rv1126_omodule/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" meson --prefix=/usr --libdir='/usr/lib' --buildtype release --cross-file /rv1126_source/buildroot/output/rockchip_rv1126_omodule/host/etc/meson/cross-compilation.conf -Drootlibdir='/usr/lib' -Dblkid=true -Dman=false -Dima=false -Dlibcryptsetup=false -Defi=false -Dgnu-efi=false -Dldconfig=false -Ddefault-dnssec=no -Dtests=false -Dtelinit-path=/rv1126_source/buildroot/output/rockchip_rv1126_omodule/target/sbin/telinit -Dkill-path=/usr/bin/kill -Dkmod-path=/usr/bin/kmod -Dkexec-path=/usr/sbin/kexec -Dsulogin-path=/usr/sbin/sulogin -Dmount-path=/usr/bin/mount -Dumount-path=/usr/bin/umount -Dacl=false -Daudit=false -Dlibidn=false -Dseccomp=false -Dxkbcommon=false -Dbzip2=false -Dlz4=false -Dpam=false -Dxz=false -Dzlib=true -Dlibcurl=false -Dgcrypt=false -Dmicrohttpd=false -Dqrencode=false -Dselinux=false -Dhwdb=false -Dbinfmt=false -Dvconsole=false -Dquotacheck=false -Dtmpfiles=true -Dsysusers=false -Dfirstboot=true -Drandomseed=false -Dbacklight=false -Drfkill=false -Dlogind=false -Dmachined=false -Dimportd=false -Dhostnamed=true -Dmyhostname=false -Dtimedated=false -Dlocaled=false -Dcoredump=false -Dpolkit=false -Dnetworkd=false -Dresolve=false -Dtimesyncd=false -Dsmack=false -Dhibernate=false -Dfallback-hostname=omodule /rv1126_source/buildroot/output/rockchip_rv1126_omodule/build/systemd-237 /rv1126_source/buildroot/output/rockchip_rv1126_omodule/build/systemd-237/build
  2. 2022-06-15T15:04:13 Could not find any valid candidate for cross files: /rv1126_source/buildroot/output/rockchip_rv1126_omodule/host/etc/meson/cross-compilation.conf
  3. 2022-06-15T15:04:13
  4. 2022-06-15T15:04:13 ERROR: Cannot find specified cross file: /rv1126_source/buildroot/output/rockchip_rv1126_omodule/host/etc/meson/cross-compilation.conf
  5. 2022-06-15T15:04:13 package/pkg-generic.mk:218: recipe for target '/rv1126_source/buildroot/output/rockchip_rv1126_omodule/build/systemd-237/.stamp_configured' failed
  6. 2022-06-15T15:04:13 make[1]: *** [/rv1126_source/buildroot/output/rockchip_rv1126_omodule/build/systemd-237/.stamp_configured] Error 1
  7. 2022-06-15T15:04:13 /rv1126_source/buildroot/output/rockchip_rv1126_omodule/Makefile:16: recipe for target '_all' failed
  8. 2022-06-15T15:04:13 make: *** [_all] Error 2
  9. Command exited with non-zero status 1
  10. you take 10:17.70 to build builroot
  11. ERROR: Running build_buildroot failed!
Copy the code

What i do wrong? Can anybody help me?


Reply

Use props Report

176

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
176
Posted at 7/12/2022 11:33:52        Only Author  2#
  1. cd output/rockchip_rv1126_omodule
  2. make menuconfig
Copy the code

Use shift+? to view dependencies.
Reply

Use props Report

30

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
30
Posted at 7/14/2022 20:01:27        Only Author  3#
799959745 Posted at 7/12/2022 11:33
Use shift+? to view dependencies.

I added dependencies, but have the same error (
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list