This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] PROCESSOR-SDK-AM335X:lighttpd 库 mod_access.so、mod_accesslog.so 等、在/usr/lib 中未观察到

Guru**** 2476355 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1456140/processor-sdk-am335x-lighttpd-libraries-mod_access-so-mod_accesslog-so-etc-not-observed-in-usr-lib

器件型号:PROCESSOR-SDK-AM335X

工具与软件:

尊敬的 、Liyu、

本主题是 https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1410323/processor-sdk-am335x-lightttpd-module-not-able-to-observe-in-downloads-after-building-tisdk 的延续

在这里、在将 lighttpd 更新到我们的自定义映像之后。 lighttpd 不会启动、它 在/usr/lib 目录中找不到 mod_access.so、mod_accesslog.so。

我们找到了2个观察结果、

1. lighttpd 没有开始  

root@am335x-evm:~# lighttpd start -f /etc/lighttpd/lighttpd.conf 2024年12月26日 src src 16:14:18:(../lighttpd-1.4.67/plugin.c.202) dlopen()失败:/usr/lib/lighttpd/mod_redirect.so /usr/lib/lighttpd/mod_redirect.so:无法打开共享对象文件:没有此类文件或目录2024年12月26日16:14:18:(./lighttpd-1.4.67/server.c.1285)加载插件最终失败

2./etc/init.d 目录中没有默认的 bin、如下所示。

默认 tisdk9.1具有 init.d 文件夹仅包含 belwo root@am335x-evm:~ ls -lt /etc/init.d -rwxr-xr-x 1根414 Mar 9 2018 thermal-zone-init -rwxr-x 1根1440 Mar 9 2018 telnetd root@AM335x-evm:~#

默认 syslog dk8.2具有 init.d 文件夹仅包含 root@Siemens SEM3T:~ ls # ls -lt /etc/init.d README apmd bluetooth dbus-1 functions hwclock.sh lighttpd modutils.sh networking ofono run-postinsts systemd-udevd alsa-state avahi-daemon boot-flags dropbear hostapd inetd.busybox rpdntpdneard ntneward ntcdd ntcbind bind

如果我们需要在 bb 包中添加任何额外内容、请告诉我。

提前感谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    你好,这有任何更新?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Manu:

    您能提供完整和具体的步骤来重新创建此文件吗?

    此致、Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我们已创建自定义映像(如下文所示的 custom.bb) RFS。 在我们提到的中,

    取决于="core-image-minimal lighttpd"

    image_install:append =lighttttpd  

    如果我们运行 bitbake custom.bb

    我们无法看到 mod_redirect、mod_auth etc.c 中没有显示模块  

    CUSTOM_IMGAE/1.0-r0/rootfs/usr/lib/lighttpd/ 、这应该是..  

    相反、我们能够看到  

    custom_image/1.0-r0/recipe-sysroot/usr/lib/lighttpd/

    但是、如果我在旧的 tisdk8.2中运行、那么同一个文件可以在 custom_imga/1.0-r0/rootfs/usr/lib/lighttpd/中删除 tpd 模块

    您能否提供任何引用或任何链接以提供相关信息。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    让我尝试用当前 SDK 重新创建这个文件、然后返回报告。 BTW 目前的 AM335x SDK 为 v9.3、它改进了图形栈。如果您关注这一点、肯定应该考虑切换到图形栈。

    此致、Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    是的、请尝试重新创建... 我们目前没有使用任何图形堆栈。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    好的、现在处理这个...

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Manu:

    我使用我们的 AM335x SDK v9.3进行了一些实验、它应该能够非常好地帮助您重新创建事物以及将适用的更改移植到您的环境中。 首先、SDK 的`tisdk-default-image`目标在映像中包含一个随时可用的 lighttpd 服务器。 但它不包含您正在查找的"mod_auth"和"mod_redirect"模块。

    但是、通过进行以下更改...

    a0797059@jiji:~/tisdk/am335x-evm/sources (master)
    $ git -C meta-arago/ diff
    diff --git a/meta-arago-demos/recipes-core/matrix/matrix-lighttpd-config/lighttpd.conf.matrix b/meta-arago-demos/recipes-core/matrix/matrix-lighttpd-config/lighttpd.conf.matrix
    index 36ed64fd..17580e8e 100755
    --- a/meta-arago-demos/recipes-core/matrix/matrix-lighttpd-config/lighttpd.conf.matrix
    +++ b/meta-arago-demos/recipes-core/matrix/matrix-lighttpd-config/lighttpd.conf.matrix
    @@ -13,12 +13,12 @@
     # - saves memory
     server.modules              = (
     #                               "mod_rewrite",
    -#                               "mod_redirect",
    +                                "mod_redirect",
     #                               "mod_alias",
                                     "mod_access",
     #                               "mod_cml",
     #                               "mod_trigger_b4_dl",
    -#                               "mod_auth",
    +                                "mod_auth",
     #                               "mod_status",
                                     "mod_setenv",
                                     "mod_expire",
    a0797059@jiji:~/tisdk/am335x-evm/sources (master)
    $ git -C oe-core/ diff
    diff --git a/meta/recipes-extended/lighttpd/lighttpd/lighttpd.conf b/meta/recipes-extended/lighttpd/lighttpd/lighttpd.conf
    index 6e8402d242..bd20173456 100644
    --- a/meta/recipes-extended/lighttpd/lighttpd/lighttpd.conf
    +++ b/meta/recipes-extended/lighttpd/lighttpd/lighttpd.conf
    @@ -13,12 +13,12 @@
     # - saves memory
     server.modules              = (
     #                               "mod_rewrite",
    -#                               "mod_redirect",
    +                                "mod_redirect",
     #                               "mod_alias",
                                     "mod_access",
     #                               "mod_cml",
     #                               "mod_trigger_b4_dl",
    -#                               "mod_auth",
    +                                "mod_auth",
     #                               "mod_status",
     #                               "mod_setenv",
     #                               "mod_fastcgi",
    diff --git a/meta/recipes-extended/lighttpd/lighttpd_1.4.67.bb b/meta/recipes-extended/lighttpd/lighttpd_1.4.67.bb
    index 838881f238..0ba8cef8c0 100644
    --- a/meta/recipes-extended/lighttpd/lighttpd_1.4.67.bb
    +++ b/meta/recipes-extended/lighttpd/lighttpd_1.4.67.bb
    @@ -11,7 +11,9 @@ RDEPENDS:${PN} = "lighttpd-module-dirlisting \
                       lighttpd-module-indexfile \
                       lighttpd-module-staticfile"
     RRECOMMENDS:${PN} = "lighttpd-module-access \
    -                     lighttpd-module-accesslog"
    +                     lighttpd-module-accesslog \
    +                     lighttpd-module-redirect \
    +                     lighttpd-module-auth"
    
     SRC_URI = "download.lighttpd.net/.../lighttpd-${PV}.tar.xz \
                file://index.html.lighttpd \
    

    ...你现在可以看到下面的模块填充到生成的 rootfs 中:

    a0797059@jiji:~/tisdk/am335x-evm/build (master)
    $ tar -tvf deploy-ti/images/am335x-evm/tisdk-default-image-am335x-evm-20250107054347.rootfs.tar.xz | grep lighttpd
    drwxr-xr-x 0/0               0 2018-03-09 06:34 ./etc/lighttpd/
    -rw-r--r-- 0/0           11595 2018-03-09 06:34 ./etc/lighttpd/lighttpd.conf
    -rw-r--r-- 0/0           11946 2018-03-09 06:34 ./etc/lighttpd/lighttpd.conf.matrix
    drwxr-xr-x 0/0               0 2018-03-09 06:34 ./etc/lighttpd.d/
    lrwxrwxrwx 0/0               0 2018-03-09 06:34 ./etc/systemd/system/multi-user.target.wants/lighttpd.service -> /lib/systemd/system/lighttpd.service
    -rw-r--r-- 0/0             335 2018-03-09 06:34 ./lib/systemd/system/lighttpd.service
    -rw-r--r-- 0/0              24 2018-03-09 06:34 ./lib/systemd/system-preset/98-lighttpd.preset
    drwxr-xr-x 0/0               0 2018-03-09 06:34 ./usr/lib/lighttpd/
    -rwxr-xr-x 0/0            5464 2018-03-09 06:34 ./usr/lib/lighttpd/mod_access.so
    -rwxr-xr-x 0/0           13840 2018-03-09 06:34 ./usr/lib/lighttpd/mod_accesslog.so
    -rwxr-xr-x 0/0           22120 2018-03-09 06:34 ./usr/lib/lighttpd/mod_auth.so          <=== THIS
    -rwxr-xr-x 0/0           13872 2018-03-09 06:34 ./usr/lib/lighttpd/mod_cgi.so
    -rwxr-xr-x 0/0           18020 2018-03-09 06:34 ./usr/lib/lighttpd/mod_deflate.so
    -rwxr-xr-x 0/0           26248 2018-03-09 06:34 ./usr/lib/lighttpd/mod_dirlisting.so
    -rwxr-xr-x 0/0            9624 2018-03-09 06:34 ./usr/lib/lighttpd/mod_expire.so
    -rwxr-xr-x 0/0            5492 2018-03-09 06:34 ./usr/lib/lighttpd/mod_indexfile.so
    -rwxr-xr-x 0/0            5500 2018-03-09 06:34 ./usr/lib/lighttpd/mod_redirect.so      <=== THIS
    -rwxr-xr-x 0/0            9604 2018-03-09 06:34 ./usr/lib/lighttpd/mod_setenv.so
    -rwxr-xr-x 0/0            5472 2018-03-09 06:34 ./usr/lib/lighttpd/mod_staticfile.so
    -rwxr-xr-x 0/0          239888 2018-03-09 06:34 ./usr/sbin/lighttpd
    -rwxr-xr-x 0/0            5604 2018-03-09 06:34 ./usr/sbin/lighttpd-angel
    -rw-r--r-- 0/0             379 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-access.control
    -rw-r--r-- 0/0              65 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-access.list
    -rw-r--r-- 0/0             388 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-accesslog.control
    -rw-r--r-- 0/0              43 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-accesslog.list
    -rw-r--r-- 0/0             397 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-auth.control
    -rw-r--r-- 0/0              38 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-auth.list
    -rw-r--r-- 0/0             370 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-cgi.control
    -rw-r--r-- 0/0              37 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-cgi.list
    -rw-r--r-- 0/0             401 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-deflate.control
    -rw-r--r-- 0/0              41 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-deflate.list
    -rw-r--r-- 0/0             391 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-dirlisting.control
    -rw-r--r-- 0/0              44 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-dirlisting.list
    -rw-r--r-- 0/0             379 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-expire.control
    -rw-r--r-- 0/0              40 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-expire.list
    -rw-r--r-- 0/0             388 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-indexfile.control
    -rw-r--r-- 0/0              43 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-indexfile.list
    -rw-r--r-- 0/0             385 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-redirect.control
    -rw-r--r-- 0/0              42 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-redirect.list
    -rw-r--r-- 0/0             379 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-setenv.control
    -rw-r--r-- 0/0              40 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-setenv.list
    -rw-r--r-- 0/0             391 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-staticfile.control
    -rw-r--r-- 0/0              44 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd-module-staticfile.list
    -rw-r--r-- 0/0              28 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd.conffiles
    -rw-r--r-- 0/0             888 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd.control
    -rw-r--r-- 0/0             374 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd.list
    -rwxr-xr-x 0/0             419 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd.postinst
    -rwxr-xr-x 0/0             160 2018-03-09 06:34 ./var/lib/opkg/info/lighttpd.prerm
    -rw-r--r-- 0/0             379 2018-03-09 06:34 ./var/lib/opkg/info/matrix-lighttpd-config.control
    -rw-r--r-- 0/0              43 2018-03-09 06:34 ./var/lib/opkg/info/matrix-lighttpd-config.list
    -rwxr-xr-x 0/0             313 2018-03-09 06:34 ./var/lib/opkg/info/matrix-lighttpd-config.postinst
    

    此致、Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我们使用的 SDK9.1仅在办公室,官方没有获得批准迁移到 SDK 9.3..  

    我能够获取所有必需的模块、但只需位于/usr/lib.lighttpd 目录中。 这个位使我感到困惑、因为当我们运行 lighttpd 时、它在/usr/lib 目录中搜索模块、因此、我无法运行 lighttpd。 下面是日志。 我觉得在 SDK 9.1或大于8.2 relaseses 中有一个显著的变化。  

    root@manu:~# systemctl status lighttpd.service
    x lighttpd.service - Lighttpd Daemon
    已加载:已加载(/lib/systemd/system/lighttpd.service;已启用;供应商预设:已启用)
    活动:失败(结果:退出代码)、自2024年12月27日 美国东部时间星期五(FRI) 5:21:39 (15秒前)起
    流程:782 ExecStartPre=/usr/sbin/lighttpd -f tt /etc/lighttpd/lighttpd.conf (code=exelled、status=255/ exception)

    Dec 27 05:21:39 manu systemd[1]:lighttpd.service:计划的重新启动作业、重新启动计数器为5。
    Dec 27 05:21:39 manu systemd[1]:Stopped Lighttpd Daemon。
    Dec 27 05:21:39 manu systemd[1]:lighttpd.service:启动请求重复太快。
    Dec 27 05:21:39 manu systemd[1]:lighttpd.service:失败、结果为"exit-code"。
    Dec 27 05:21:39 manu systemd[1]:无法启动 Lighttpd 守护程序。
    root@manu:~# journalctl -xeu lighttpd.service
    Dec 27 02:42:19 manu systemd[1]:启动 Lighttpd Daemon...
    ——主题:已开始执行 lighttpd.service 单元的开始作业
    --定义-由: systemd.
    --支持: lists.freedesktop.org/.../systemd-devel
    ——
    ——已开始执行 lighttpd.service 单元的开始作业。
    ——
    作业标识符为109。
    Dec 27 02:42:25 manu lighttpd[152]:2024年12月27日02:42:21:(../lighttpd-1.4.67/plugin.c.202) src dlopen()失败原因:/usr/lib/lighttpd/mod_redirect.so /usr/lib/lighttpd/mod_redirect.so:无法打开共享目标文件:没有此类文件或目录
    Dec 27 02:42:25 manu lighttpd[152]:2024年12月27日02:42:21:(./lighttpd-1.4.67/server/server.c.1285) src 加载插件最终失败
    Dec 27 02:42:26 manu systemd[1]:lighttpd.service:控制进程已退出、代码=已退出、状态=255/异常
    --主题:单元进程已退出
    --定义-由: systemd.
    --支持: lists.freedesktop.org/.../systemd-devel
    ——
    ——一个属于 lighttpd.service 单元的 ExecStartPre=进程已退出。
    ——
    --进程退出代码为"退出",退出状态为255。
    Dec 27 02:42:26 manu systemd[1]:lighttpd.service:失败、结果为"exit-code"。
    --主题:单元失败
    --定义-由: systemd.
    --支持: lists.freedesktop.org/.../systemd-devel
    ——
    --设备 lighttpd.service 已进入"失败"状态,结果为"退出代码"。
    Dec 27 02:42:27 manu systemd[1]:无法启动 Lighttpd 守护程序。
    --主题:单位 lighttpd.service 的开始作业失败
    --定义-由: systemd.
    --支持: lists.freedesktop.org/.../systemd-devel
    ——
    ---设备 lighttpd.service 的开始作业已完成失败。
    ——
    ——作业标识符为109、作业结果失败。
    Dec 27 02:42:31 manu systemd[1]:lighttpd.service:计划的重新启动作业、重新启动计数器为1。
    --主题:已计划自动重新启动装置
    --定义-由: systemd.
    --支持: lists.freedesktop.org/.../systemd-devel
    ——
    --已计划自动重新启动设备 lighttpd.service 的结果
    ——设备配置的 Restart=设置。
    Dec 27 02:43:03 manu systemd[1]:Stopped Lighttpd Daemon。
    --主题:单位 lighttpd.service 的停止作业已完成
    --定义-由: systemd.
    --支持: lists.freedesktop.org/.../systemd-devel
    ——
    --- lighttpd.service 单元的停止作业已完成。
    ——
    ——作业标识符为111、作业结果已完成。
    Dec 27 02:43:03 manu systemd[1]:正在启动 Lighttpd Daemon...
    ——主题:已开始执行 lighttpd.service 单元的开始作业
    --定义-由: systemd.
    --支持: lists.freedesktop.org/.../systemd-devel
    ——
    ——已开始执行 lighttpd.service 单元的开始作业。
    ——
    作业标识符为111。
    Dec 27 02:43:04 manu lighttpd[203]:2024年12月27日02:43:03:(../lighttpd-1.4.67/plugin.c.202) src dlopen()失败原因:/usr/lib/lighttpd/mod_redirect.so /usr/lib/lighttpd/mod_redirect.so:无法打开共享目标文件:没有此类文件或目录
    Dec 27 02:43:04 manu lighttpd[203]:2024年12月27日02:43:03:(./lighttpd-1.4.67/server/server.c.1285) src 加载插件最终失败
    Dec 27 02:43:04 manu systemd[1]:lighttpd.service:控制进程已退出、代码=已退出、状态=255/异常
    --主题:单元进程已退出
    --定义-由: systemd.
    --支持: lists.freedesktop.org/.../systemd-devel
    ——
    ——一个属于 lighttpd.service 单元的 ExecStartPre=进程已退出。
    ——
    --进程退出代码为"退出",退出状态为255。
    Dec 27 02:43:04 manu systemd[1]:lighttpd.service:失败、结果为"exit-code"。
    --主题:单元失败
    --定义-由: systemd.
    --支持: lists.freedesktop.org/.../systemd-devel
    ——
    --设备 lighttpd.service 已进入"失败"状态,结果为"退出代码"。
    Dec 27 02:43:04 manu systemd[1]:无法启动 Lighttpd 守护程序。
    --主题:单位 lighttpd.service 的开始作业失败
    --定义-由: systemd.
    --支持: lists.freedesktop.org/.../systemd-devel
    ——
    ---设备 lighttpd.service 的开始作业已完成失败。
    ——
    ——作业标识符为111、作业结果失败。

    此外、我在/etc/init.d 目录中看不到任何二进制文件。 如下面所示的 SDK 8.2、

    sem3user@INKEO42659LNPR:~/11624/SEM3T_com/build$ ls -lt arago-tmp-external-arm-glibc/work/am335x_evm-linux-gnueabi/sem3-iot-image/1.0-r0/rootfs/etc/init.d/
    alSA-state avahi-daemon boot-flags dropBear hostapd inetd.busybox lldpd neard ntpd README run-postinsts systemd-udevd
    apmd 蓝牙 dbus-1功能 hwclock.sh lighttpd modutils.sh 网络 ofono rpcbind syslog
    sem3user@INKEO42659LNPR:~/11624/SEM3T_com/build$ ls -lt arago-tmp-external-arm-glibc/work/am335x_evm-linux-gnueabi/sem3-iot-image/1.0-r0/rootfs/etc/init.d/

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Manu:

    我目前正在国际商务旅行中的客户网站工作、无法进一步了解这一点;下周回到办公室后、我将发表评论。

    此致、Andreas

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    、现在 lighttpd 正在运行、我能够解决此问题!! :)感谢您的答复。 通过在 lighttttpd bbappend 文件中添加相关模块来修复它。

    我们可以解决该问题

    在静态 IP 的保留方面、我们还遇到了1个问题。 我将为此提出一个申请