问题: 在使用busybox制作rootfs时, 发现busybox–>ps指令不支持复杂的选项, 在menuconfig界面上也只显示了-l -w两个选项。
处理: 启用DESKTOP配置, 路径:
Busybox Settings -->[*] Enable options for full-blown desktop systems
开启之后原来的 -l -w两个选项会被覆盖,使用默认的配置即可。打开帮助,可以查看DESKTOP选项的解释, 大致意思就是启用DESKTOP之后,busybox将会使用更高级和更完整的指令集,而非精简的指令,缺点是生成的busybox会更大,资源紧张的嵌入式系统须慎用。考虑到这一点, 也可以直接下载ps的源码编译。
CONFIG_DESKTOP: │
│ │
│ Enable options and features which are not essential. │
│ Select this if you plan to use busybox on full-blown desktop machine │
│ with common Linux distro, which needs higher level of command-line │
│ compatibility. │
│ │
│ If you are preparing your build to be used on an embedded box │
│ where you have tighter control over the entire set of userspace │
│ tools, you can unselect this option for smaller code size. │
│ │
│ Symbol: DESKTOP [=y] │
│ Prompt: Enable options for full-blown desktop systems │
│ Defined at Config.in:14 │
│ Location: │
│ -> Busybox Settings
procps-ng链接:https://sourceforge.net/projects/procps-ng/files/Production