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.

[参考译文] Linux:BeagleBone Black 使用 Yocto 自定义 rootfs /etc/network/interfaces

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/733583/linux-beaglebone-black-customizing-rootfs-etc-network-interfaces-using-yocto

工具/软件:Linux

您好!

我需要使用 Yocto 修改 rootfs 上的/etc/network/interfaces。 我一直在使用"git diff "为内核源代码生成补丁文件、并使用.bbappend 文件执行该补丁。 但是,当我对 rootfs 应用相同的命令(在本例中为/etc/network/interfaces)时,bitbake 命令会显示错误:

Build/tmp/Work/armv7ahf-neon poky-linux-gnueabi/init-ifupdown/1.0-r7/pege-sysroot-native/etc/quiltrc 推送退出为0 输出:

正在应用修补程序 mypath.diff
在输入行5中找不到要修补的文件
也许您使用了错误的-p 或--strip 选项?
由此产生的文本为:
----------------
|diff--git a/etc/network/interfaces b/etc/network/interface.
|索引0acf4cf..307fc6a 100644
|-- a/etc/network/interfaces/interface.
|++ b/etc/network/interfaces/interface.
----------------
没有要修补的文件。  跳过修补程序。

在 Web 上进行一些搜索后、我看到人们只是使用.bbappend 文件来覆盖"接口"文件。 因此、问题是:

使用 Yocto 构建系统执行此操作的正确方法是什么? 修补还是覆盖? 如果首选修补程序,应用修补程序的正确方法是什么?

请提前提供帮助和感谢!

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

    Matt、您好!

    接口文件直接从复制 /sources/meta-processor-sdk/recipes-core/init-ifupdown/init-ifupdown/ti33x/interfaces 至 rootfs。 您只需修改该文件即可在 rootfs 上进行更改。

    此致、
    Kemal

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

    您好、Kemal、

    谢谢你。 这对我很有用。