- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我有两个问题:
target/ which contains almost the complete root filesystem for the target:everything needed is present except the device files in /dev/ (Buildroot doesn’t run as root and doesn’t want to run as root)
为什么buildroot需要root才能创建/dev
target
生成 images/rootfs.tar
;它是使用tar
还是...的简单压缩?你能帮我找到生成 images/rootfs.tar
的 make 目标吗?在使用 NFS 的情况下,为什么我们不能直接使用 target
文件夹作为 rootfs 是什么使得“untaring” images/rootfs.tar
不同于 target
引用:http://free-electrons.com/~thomas/buildroot/manual/html/ch03.html
最佳答案
I am not sure to undrestand(from the directories description in Buildroot manual):
Buildroot 是一种用于生成内核和根文件系统的工具,它作为普通用户在您的主机系统上执行,无需 super 用户权限。
Why buildroot need to be root to create the /dev
Buildroot 不使用 super 用户权限。
what i know is that buildroot uses target to generate images/rootfs.tar; is it a simple compression with taror ...?
.tar 是一个没有压缩的普通存档。
您可以使用 make menuconfig
过程配置/指定压缩(和/或选择文件系统镜像)。
could you please help me find the make target that generate images/rootfs.tar?
您不要在 make shell 命令中指定它。
您可以使用 make menuconfig
过程配置/指定带有可选压缩(和/或选择文件系统镜像)的 tar 和/或 cpio 存档。
In case of using NFS why can't we use directly the target folder as rootfs
因为它不适合做屋顶。
文件所有者和组不正确(这可能与 NFS 使用无关)。
文件权限可能不正确(例如 busybox 二进制文件的 setuid)。
/dev 目录没有目标内核所需的最小设备节点。
目标目录没有所需的最小设备节点(例如console
),而是在dev中有普通的文件:
buildroot-2015.05/output/target$ ls -l dev
total 4
-rw--w--w- 1 me swdev 0 Sep 15 16:34 console
lrwxrwxrwx 1 me swdev 10 Aug 14 2015 log -> ../tmp/log
drwxrwxr-x 2 me swdev 4096 May 31 2015 pts
$
目标内核在需要设备节点时不能使用这些文件。将尝试使用这些文件进行普通文件传输,而不是通过设备节点执行 I/O。
实际的dev目录应该是:
crw--w--w- 1 root root 5, 1 Sep 15 16:34 console
lrwxrwxrwx 1 root root 10 Aug 14 2015 log -> ../tmp/log
drwxr-xr-x 2 root root 4096 May 31 2015 pts
what makes "untaring" images/rootfs.tar different than target
Buildroot 可以巧妙地为设备节点创建条目,并在创建存档(或文件系统镜像)时为每个文件名分配适当的所有者和组。
这只是以适当的格式生成二进制数据,这些数据与写入文件的实际存档条目(或 fs 图像)一起插入。
只有当它未归档(或文件系统镜像已安装)时,“数据”才被正确解释为设备节点。
关于linux - Buildroot 不以 root 身份运行,也不想以 root 身份运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42175387/
我是 Buildroot 的新手。我有 P2041RDB NXP 板的 Linux 内核源代码,那么我应该把它放在哪里以及如何在配置中设置这个位置? 最佳答案 目前无法从 Buildroot 配置中设
Buildroot 中是否有某种方法可以更改使用“uname -a”命令显示的内核版本字符串?例如: # uname -a Linux buildroot 5.1.0 #1 PREEMPT Wed N
我继承的一个项目使用了一个非常旧版本的 buildroot,但我想将其更改为使用仅在以后的 buildroot 版本中添加的功能。 是否有一种直接的方法可以更新 buildroot 设置以使用更高版本
我正在实现一个 buildroot 包 foo,它不能与特定的其他包 bar 一起包含。我试图通过编写 depends on 来定义相互排斥的包- 相应 Config.in 中的声明-文件。 在 fo
是否有一个中心位置记录了 buildroot 的配置和 defconfig 文件中使用的所有 BR2 选项? 目前,我正在寻找自定义 buildroot 目标设备树的方法。我偶然发现了选项 BR2_L
Buildroot 是一种可用于为嵌入式系统板构建 Linux 镜像的工具。 Buildroot 带有一组预定义的 Python 包,我可以从它的菜单中选择。 此外,Buildroot 添加了一个漂亮
我试过: git checkout 2018.05 make qemu_x86_64_defconfig make BR2_JLEVEL="$(nproc)" "$(pwd)/output/image
Buildroot 提供了一种将 sqlite 添加到我的构建配置中的方法,但我看不到任何地方表明 sqlite 库是否具有多线程支持。如何判断Builtroot包含的sqlite库版本是否支持多线程
我试过: git checkout 2018.05 make qemu_x86_64_defconfig make BR2_JLEVEL="$(nproc)" "$(pwd)/output/image
Buildroot 提供了一种将 sqlite 添加到我的构建配置中的方法,但我看不到任何地方表明 sqlite 库是否具有多线程支持。如何判断Builtroot包含的sqlite库版本是否支持多线程
我将 Buildroot 用作子模块,并且我想通过自己的一些修改来重用现有的树内定义配置。 我只想将修改后的选项存储在配置片段中,就像我可以使用 BR2_LINUX_KERNEL_CONFIG_FRA
我已将 BR2_JLEVEL 设置为 2 ;不确定这个选项在 buildroot 中如何工作?有人可以详细说明它在 buildroot 中的工作方式,因为我没有看到我的构建时间有所改进。 最佳答案 B
我们已将 bash 添加到我们的 buildroot 配置中,现在希望将其设为 root 用户的默认 shell。我不希望将 passwd 文件添加到我们的覆盖中,所以有没有办法通过 buildroo
是否可以在 buildroot 的外部树(由 BR2_EXTERNAL 变量指定的树)中有一个主机包?我知道我可以实现这样的包,如果存在任何依赖它的包,它将被构建。但是如果没有板包依赖呢?例如,当我们
是否可以在 buildroot 的外部树(由 BR2_EXTERNAL 变量指定的树)中有一个主机包?我知道我可以实现这样的包,如果存在任何依赖它的包,它将被构建。但是如果没有板包依赖呢?例如,当我们
我正在尝试向 buildroot 添加一个包,但我没有取得太大的成功。我要添加的包是 autotools名为 scew 的包裹.我遵循了有关添加包的 buildroot 指南,尽管在 make men
我正在使用 buildroot 和 arm 的 linaro 2016.11。我实际上正在为 i.MX6 处理器构建最新的 Linux 内核。到目前为止一切顺利。 我已经用 设置了 buildroot
buildroot 支持从 git repo 下载包。但是我的 git repo 包含子模块。 如何命令 buildroot 下载带有子模块的包? 最佳答案 自~ July 2016您可以为包启用子模
我想知道是否可以在分区表中添加更多分区,以及如何添加。我已经测试过更改 genimage.cfg 但似乎 support/scripts/genimage.sh 没有创建它。 提前谢谢你。 最佳答案
我目前有一个 buildroot 配置,输出一个 U-Boot 包装的根文件系统。该过程的一部分覆盖来自外部目录的文件,其中包含网络接口(interface)、profile.d 脚本和一些自定义可执
我是一名优秀的程序员,十分优秀!